2018-09-19 11:43:35 -07:00
|
|
|
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
|
|
// source: extensions/proto3/ext3.proto
|
|
|
|
|
|
|
|
package proto3
|
|
|
|
|
|
|
|
import (
|
|
|
|
proto "github.com/golang/protobuf/proto"
|
|
|
|
descriptor "github.com/golang/protobuf/protoc-gen-go/descriptor"
|
cmd/protoc-gen-go: add support for protobuf reflection
Implement support in protoc-gen-go for generating messages and enums
that satisfy the v2 protobuf reflection interfaces. Specifically, the following
are added:
* top-level variable representing the file descriptor
* ProtoReflect method on enums (to implement protoV2.Enum)
* ProtoReflect method on messages (to implement protoV2.Message)
The following are not supported yet:
* resolving transitive dependencies for file imports
* Extension descriptors
* Service descriptors
The implementation approach creates a single array for all the message and enum
declarations and references sections of that array to complete dependencies.
Since protobuf declarations can form a graph (a message may depend on itself),
it is difficult to construct a graph as a single literal. One way is to use
placeholder descriptors, but that is not efficient as it requires encoding
the full name of each dependent enum and message and then later resolving it;
thus, both expanding the binary size and also increasing initialization cost.
Instead, we add a prototype.{Enum,Message}.Reference method to obtain a
descriptor reference for the purposes for satisfying dependencies.
As such, nested declarations and dependencies are populated in an init function.
Other changes to support the implementation:
* Added a protoimpl package to expose the MessageType type and also the
MessageTypeOf and EnumTypeOf helper functions.
* Added a protogen.File.GoIdent field to provide a suggested variable name
for the file descriptor.
* Added prototype.{Enum,Message}.Reference that provides a descriptor reference
for the purposes for satisfying cyclic dependencies.
* Added protoreflect.{Syntax,Cardinality,Kind}.GoString to obtain a Go source
identifier that represents the given constant.
Change-Id: I9455764882dee6ad10f251901e7d419091e8bf1d
Reviewed-on: https://go-review.googlesource.com/c/150074
Reviewed-by: Damien Neil <dneil@google.com>
2018-11-15 14:44:37 -08:00
|
|
|
protoreflect "github.com/golang/protobuf/v2/reflect/protoreflect"
|
|
|
|
prototype "github.com/golang/protobuf/v2/reflect/prototype"
|
|
|
|
protoimpl "github.com/golang/protobuf/v2/runtime/protoimpl"
|
2018-09-19 11:43:35 -07:00
|
|
|
)
|
|
|
|
|
|
|
|
// This is a compile-time assertion to ensure that this generated file
|
|
|
|
// is compatible with the proto package it is being compiled against.
|
|
|
|
// A compilation error at this line likely means your copy of the
|
|
|
|
// proto package needs to be updated.
|
2018-11-26 12:57:27 -08:00
|
|
|
const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
|
2018-09-19 11:43:35 -07:00
|
|
|
|
|
|
|
type Enum int32
|
|
|
|
|
|
|
|
const (
|
|
|
|
Enum_ZERO Enum = 0
|
|
|
|
)
|
|
|
|
|
2019-01-08 16:18:07 -08:00
|
|
|
func (e Enum) Type() protoreflect.EnumType {
|
2019-01-09 21:31:15 -08:00
|
|
|
return xxx_Ext3_protoFile_EnumTypes[0]
|
cmd/protoc-gen-go: add support for protobuf reflection
Implement support in protoc-gen-go for generating messages and enums
that satisfy the v2 protobuf reflection interfaces. Specifically, the following
are added:
* top-level variable representing the file descriptor
* ProtoReflect method on enums (to implement protoV2.Enum)
* ProtoReflect method on messages (to implement protoV2.Message)
The following are not supported yet:
* resolving transitive dependencies for file imports
* Extension descriptors
* Service descriptors
The implementation approach creates a single array for all the message and enum
declarations and references sections of that array to complete dependencies.
Since protobuf declarations can form a graph (a message may depend on itself),
it is difficult to construct a graph as a single literal. One way is to use
placeholder descriptors, but that is not efficient as it requires encoding
the full name of each dependent enum and message and then later resolving it;
thus, both expanding the binary size and also increasing initialization cost.
Instead, we add a prototype.{Enum,Message}.Reference method to obtain a
descriptor reference for the purposes for satisfying dependencies.
As such, nested declarations and dependencies are populated in an init function.
Other changes to support the implementation:
* Added a protoimpl package to expose the MessageType type and also the
MessageTypeOf and EnumTypeOf helper functions.
* Added a protogen.File.GoIdent field to provide a suggested variable name
for the file descriptor.
* Added prototype.{Enum,Message}.Reference that provides a descriptor reference
for the purposes for satisfying cyclic dependencies.
* Added protoreflect.{Syntax,Cardinality,Kind}.GoString to obtain a Go source
identifier that represents the given constant.
Change-Id: I9455764882dee6ad10f251901e7d419091e8bf1d
Reviewed-on: https://go-review.googlesource.com/c/150074
Reviewed-by: Damien Neil <dneil@google.com>
2018-11-15 14:44:37 -08:00
|
|
|
}
|
2019-01-08 16:18:07 -08:00
|
|
|
func (e Enum) Number() protoreflect.EnumNumber {
|
cmd/protoc-gen-go: add support for protobuf reflection
Implement support in protoc-gen-go for generating messages and enums
that satisfy the v2 protobuf reflection interfaces. Specifically, the following
are added:
* top-level variable representing the file descriptor
* ProtoReflect method on enums (to implement protoV2.Enum)
* ProtoReflect method on messages (to implement protoV2.Message)
The following are not supported yet:
* resolving transitive dependencies for file imports
* Extension descriptors
* Service descriptors
The implementation approach creates a single array for all the message and enum
declarations and references sections of that array to complete dependencies.
Since protobuf declarations can form a graph (a message may depend on itself),
it is difficult to construct a graph as a single literal. One way is to use
placeholder descriptors, but that is not efficient as it requires encoding
the full name of each dependent enum and message and then later resolving it;
thus, both expanding the binary size and also increasing initialization cost.
Instead, we add a prototype.{Enum,Message}.Reference method to obtain a
descriptor reference for the purposes for satisfying dependencies.
As such, nested declarations and dependencies are populated in an init function.
Other changes to support the implementation:
* Added a protoimpl package to expose the MessageType type and also the
MessageTypeOf and EnumTypeOf helper functions.
* Added a protogen.File.GoIdent field to provide a suggested variable name
for the file descriptor.
* Added prototype.{Enum,Message}.Reference that provides a descriptor reference
for the purposes for satisfying cyclic dependencies.
* Added protoreflect.{Syntax,Cardinality,Kind}.GoString to obtain a Go source
identifier that represents the given constant.
Change-Id: I9455764882dee6ad10f251901e7d419091e8bf1d
Reviewed-on: https://go-review.googlesource.com/c/150074
Reviewed-by: Damien Neil <dneil@google.com>
2018-11-15 14:44:37 -08:00
|
|
|
return protoreflect.EnumNumber(e)
|
|
|
|
}
|
|
|
|
|
2018-09-19 11:43:35 -07:00
|
|
|
var Enum_name = map[int32]string{
|
|
|
|
0: "ZERO",
|
|
|
|
}
|
|
|
|
|
|
|
|
var Enum_value = map[string]int32{
|
|
|
|
"ZERO": 0,
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x Enum) String() string {
|
|
|
|
return proto.EnumName(Enum_name, int32(x))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (Enum) EnumDescriptor() ([]byte, []int) {
|
|
|
|
return fileDescriptor_3db31bb248c8865e, []int{0}
|
|
|
|
}
|
|
|
|
|
|
|
|
type Message struct {
|
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
|
XXX_sizecache int32 `json:"-"`
|
|
|
|
}
|
|
|
|
|
cmd/protoc-gen-go: add support for protobuf reflection
Implement support in protoc-gen-go for generating messages and enums
that satisfy the v2 protobuf reflection interfaces. Specifically, the following
are added:
* top-level variable representing the file descriptor
* ProtoReflect method on enums (to implement protoV2.Enum)
* ProtoReflect method on messages (to implement protoV2.Message)
The following are not supported yet:
* resolving transitive dependencies for file imports
* Extension descriptors
* Service descriptors
The implementation approach creates a single array for all the message and enum
declarations and references sections of that array to complete dependencies.
Since protobuf declarations can form a graph (a message may depend on itself),
it is difficult to construct a graph as a single literal. One way is to use
placeholder descriptors, but that is not efficient as it requires encoding
the full name of each dependent enum and message and then later resolving it;
thus, both expanding the binary size and also increasing initialization cost.
Instead, we add a prototype.{Enum,Message}.Reference method to obtain a
descriptor reference for the purposes for satisfying dependencies.
As such, nested declarations and dependencies are populated in an init function.
Other changes to support the implementation:
* Added a protoimpl package to expose the MessageType type and also the
MessageTypeOf and EnumTypeOf helper functions.
* Added a protogen.File.GoIdent field to provide a suggested variable name
for the file descriptor.
* Added prototype.{Enum,Message}.Reference that provides a descriptor reference
for the purposes for satisfying cyclic dependencies.
* Added protoreflect.{Syntax,Cardinality,Kind}.GoString to obtain a Go source
identifier that represents the given constant.
Change-Id: I9455764882dee6ad10f251901e7d419091e8bf1d
Reviewed-on: https://go-review.googlesource.com/c/150074
Reviewed-by: Damien Neil <dneil@google.com>
2018-11-15 14:44:37 -08:00
|
|
|
type xxx_Message struct{ m *Message }
|
|
|
|
|
|
|
|
func (m *Message) ProtoReflect() protoreflect.Message {
|
|
|
|
return xxx_Message{m}
|
|
|
|
}
|
|
|
|
func (m xxx_Message) Type() protoreflect.MessageType {
|
2019-01-09 21:31:15 -08:00
|
|
|
return xxx_Ext3_protoFile_MessageTypes[0].Type
|
cmd/protoc-gen-go: add support for protobuf reflection
Implement support in protoc-gen-go for generating messages and enums
that satisfy the v2 protobuf reflection interfaces. Specifically, the following
are added:
* top-level variable representing the file descriptor
* ProtoReflect method on enums (to implement protoV2.Enum)
* ProtoReflect method on messages (to implement protoV2.Message)
The following are not supported yet:
* resolving transitive dependencies for file imports
* Extension descriptors
* Service descriptors
The implementation approach creates a single array for all the message and enum
declarations and references sections of that array to complete dependencies.
Since protobuf declarations can form a graph (a message may depend on itself),
it is difficult to construct a graph as a single literal. One way is to use
placeholder descriptors, but that is not efficient as it requires encoding
the full name of each dependent enum and message and then later resolving it;
thus, both expanding the binary size and also increasing initialization cost.
Instead, we add a prototype.{Enum,Message}.Reference method to obtain a
descriptor reference for the purposes for satisfying dependencies.
As such, nested declarations and dependencies are populated in an init function.
Other changes to support the implementation:
* Added a protoimpl package to expose the MessageType type and also the
MessageTypeOf and EnumTypeOf helper functions.
* Added a protogen.File.GoIdent field to provide a suggested variable name
for the file descriptor.
* Added prototype.{Enum,Message}.Reference that provides a descriptor reference
for the purposes for satisfying cyclic dependencies.
* Added protoreflect.{Syntax,Cardinality,Kind}.GoString to obtain a Go source
identifier that represents the given constant.
Change-Id: I9455764882dee6ad10f251901e7d419091e8bf1d
Reviewed-on: https://go-review.googlesource.com/c/150074
Reviewed-by: Damien Neil <dneil@google.com>
2018-11-15 14:44:37 -08:00
|
|
|
}
|
|
|
|
func (m xxx_Message) KnownFields() protoreflect.KnownFields {
|
2019-01-09 21:31:15 -08:00
|
|
|
return xxx_Ext3_protoFile_MessageTypes[0].KnownFieldsOf(m.m)
|
cmd/protoc-gen-go: add support for protobuf reflection
Implement support in protoc-gen-go for generating messages and enums
that satisfy the v2 protobuf reflection interfaces. Specifically, the following
are added:
* top-level variable representing the file descriptor
* ProtoReflect method on enums (to implement protoV2.Enum)
* ProtoReflect method on messages (to implement protoV2.Message)
The following are not supported yet:
* resolving transitive dependencies for file imports
* Extension descriptors
* Service descriptors
The implementation approach creates a single array for all the message and enum
declarations and references sections of that array to complete dependencies.
Since protobuf declarations can form a graph (a message may depend on itself),
it is difficult to construct a graph as a single literal. One way is to use
placeholder descriptors, but that is not efficient as it requires encoding
the full name of each dependent enum and message and then later resolving it;
thus, both expanding the binary size and also increasing initialization cost.
Instead, we add a prototype.{Enum,Message}.Reference method to obtain a
descriptor reference for the purposes for satisfying dependencies.
As such, nested declarations and dependencies are populated in an init function.
Other changes to support the implementation:
* Added a protoimpl package to expose the MessageType type and also the
MessageTypeOf and EnumTypeOf helper functions.
* Added a protogen.File.GoIdent field to provide a suggested variable name
for the file descriptor.
* Added prototype.{Enum,Message}.Reference that provides a descriptor reference
for the purposes for satisfying cyclic dependencies.
* Added protoreflect.{Syntax,Cardinality,Kind}.GoString to obtain a Go source
identifier that represents the given constant.
Change-Id: I9455764882dee6ad10f251901e7d419091e8bf1d
Reviewed-on: https://go-review.googlesource.com/c/150074
Reviewed-by: Damien Neil <dneil@google.com>
2018-11-15 14:44:37 -08:00
|
|
|
}
|
|
|
|
func (m xxx_Message) UnknownFields() protoreflect.UnknownFields {
|
2019-01-09 21:31:15 -08:00
|
|
|
return xxx_Ext3_protoFile_MessageTypes[0].UnknownFieldsOf(m.m)
|
cmd/protoc-gen-go: add support for protobuf reflection
Implement support in protoc-gen-go for generating messages and enums
that satisfy the v2 protobuf reflection interfaces. Specifically, the following
are added:
* top-level variable representing the file descriptor
* ProtoReflect method on enums (to implement protoV2.Enum)
* ProtoReflect method on messages (to implement protoV2.Message)
The following are not supported yet:
* resolving transitive dependencies for file imports
* Extension descriptors
* Service descriptors
The implementation approach creates a single array for all the message and enum
declarations and references sections of that array to complete dependencies.
Since protobuf declarations can form a graph (a message may depend on itself),
it is difficult to construct a graph as a single literal. One way is to use
placeholder descriptors, but that is not efficient as it requires encoding
the full name of each dependent enum and message and then later resolving it;
thus, both expanding the binary size and also increasing initialization cost.
Instead, we add a prototype.{Enum,Message}.Reference method to obtain a
descriptor reference for the purposes for satisfying dependencies.
As such, nested declarations and dependencies are populated in an init function.
Other changes to support the implementation:
* Added a protoimpl package to expose the MessageType type and also the
MessageTypeOf and EnumTypeOf helper functions.
* Added a protogen.File.GoIdent field to provide a suggested variable name
for the file descriptor.
* Added prototype.{Enum,Message}.Reference that provides a descriptor reference
for the purposes for satisfying cyclic dependencies.
* Added protoreflect.{Syntax,Cardinality,Kind}.GoString to obtain a Go source
identifier that represents the given constant.
Change-Id: I9455764882dee6ad10f251901e7d419091e8bf1d
Reviewed-on: https://go-review.googlesource.com/c/150074
Reviewed-by: Damien Neil <dneil@google.com>
2018-11-15 14:44:37 -08:00
|
|
|
}
|
|
|
|
func (m xxx_Message) Interface() protoreflect.ProtoMessage {
|
|
|
|
return m.m
|
|
|
|
}
|
|
|
|
|
2018-09-19 11:43:35 -07:00
|
|
|
func (m *Message) Reset() { *m = Message{} }
|
|
|
|
func (m *Message) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*Message) ProtoMessage() {}
|
|
|
|
func (*Message) Descriptor() ([]byte, []int) {
|
|
|
|
return fileDescriptor_3db31bb248c8865e, []int{0}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *Message) XXX_Unmarshal(b []byte) error {
|
|
|
|
return xxx_messageInfo_Message.Unmarshal(m, b)
|
|
|
|
}
|
|
|
|
func (m *Message) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
return xxx_messageInfo_Message.Marshal(b, m, deterministic)
|
|
|
|
}
|
|
|
|
func (m *Message) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_Message.Merge(m, src)
|
|
|
|
}
|
|
|
|
func (m *Message) XXX_Size() int {
|
|
|
|
return xxx_messageInfo_Message.Size(m)
|
|
|
|
}
|
|
|
|
func (m *Message) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_Message.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_Message proto.InternalMessageInfo
|
|
|
|
|
|
|
|
var E_ExtensionBool = &proto.ExtensionDesc{
|
|
|
|
ExtendedType: (*descriptor.MessageOptions)(nil),
|
2018-10-24 12:31:16 -07:00
|
|
|
ExtensionType: (*bool)(nil),
|
2018-09-19 11:43:35 -07:00
|
|
|
Field: 1001,
|
|
|
|
Name: "goproto.protoc.extension.proto3.extension_bool",
|
2018-10-24 12:31:16 -07:00
|
|
|
Tag: "varint,1001,opt,name=extension_bool",
|
2018-09-19 11:43:35 -07:00
|
|
|
Filename: "extensions/proto3/ext3.proto",
|
|
|
|
}
|
|
|
|
|
|
|
|
var E_ExtensionEnum = &proto.ExtensionDesc{
|
|
|
|
ExtendedType: (*descriptor.MessageOptions)(nil),
|
2018-10-24 12:31:16 -07:00
|
|
|
ExtensionType: (*Enum)(nil),
|
2018-09-19 11:43:35 -07:00
|
|
|
Field: 1002,
|
|
|
|
Name: "goproto.protoc.extension.proto3.extension_enum",
|
2018-10-24 12:31:16 -07:00
|
|
|
Tag: "varint,1002,opt,name=extension_enum,enum=goproto.protoc.extension.proto3.Enum",
|
2018-09-19 11:43:35 -07:00
|
|
|
Filename: "extensions/proto3/ext3.proto",
|
|
|
|
}
|
|
|
|
|
|
|
|
var E_ExtensionInt32 = &proto.ExtensionDesc{
|
|
|
|
ExtendedType: (*descriptor.MessageOptions)(nil),
|
2018-10-24 12:31:16 -07:00
|
|
|
ExtensionType: (*int32)(nil),
|
2018-09-19 11:43:35 -07:00
|
|
|
Field: 1003,
|
|
|
|
Name: "goproto.protoc.extension.proto3.extension_int32",
|
2018-10-24 12:31:16 -07:00
|
|
|
Tag: "varint,1003,opt,name=extension_int32",
|
2018-09-19 11:43:35 -07:00
|
|
|
Filename: "extensions/proto3/ext3.proto",
|
|
|
|
}
|
|
|
|
|
|
|
|
var E_ExtensionSint32 = &proto.ExtensionDesc{
|
|
|
|
ExtendedType: (*descriptor.MessageOptions)(nil),
|
2018-10-24 12:31:16 -07:00
|
|
|
ExtensionType: (*int32)(nil),
|
2018-09-19 11:43:35 -07:00
|
|
|
Field: 1004,
|
|
|
|
Name: "goproto.protoc.extension.proto3.extension_sint32",
|
2018-10-24 12:31:16 -07:00
|
|
|
Tag: "zigzag32,1004,opt,name=extension_sint32",
|
2018-09-19 11:43:35 -07:00
|
|
|
Filename: "extensions/proto3/ext3.proto",
|
|
|
|
}
|
|
|
|
|
|
|
|
var E_ExtensionUint32 = &proto.ExtensionDesc{
|
|
|
|
ExtendedType: (*descriptor.MessageOptions)(nil),
|
2018-10-24 12:31:16 -07:00
|
|
|
ExtensionType: (*uint32)(nil),
|
2018-09-19 11:43:35 -07:00
|
|
|
Field: 1005,
|
|
|
|
Name: "goproto.protoc.extension.proto3.extension_uint32",
|
2018-10-24 12:31:16 -07:00
|
|
|
Tag: "varint,1005,opt,name=extension_uint32",
|
2018-09-19 11:43:35 -07:00
|
|
|
Filename: "extensions/proto3/ext3.proto",
|
|
|
|
}
|
|
|
|
|
|
|
|
var E_ExtensionInt64 = &proto.ExtensionDesc{
|
|
|
|
ExtendedType: (*descriptor.MessageOptions)(nil),
|
2018-10-24 12:31:16 -07:00
|
|
|
ExtensionType: (*int64)(nil),
|
2018-09-19 11:43:35 -07:00
|
|
|
Field: 1006,
|
|
|
|
Name: "goproto.protoc.extension.proto3.extension_int64",
|
2018-10-24 12:31:16 -07:00
|
|
|
Tag: "varint,1006,opt,name=extension_int64",
|
2018-09-19 11:43:35 -07:00
|
|
|
Filename: "extensions/proto3/ext3.proto",
|
|
|
|
}
|
|
|
|
|
|
|
|
var E_ExtensionSint64 = &proto.ExtensionDesc{
|
|
|
|
ExtendedType: (*descriptor.MessageOptions)(nil),
|
2018-10-24 12:31:16 -07:00
|
|
|
ExtensionType: (*int64)(nil),
|
2018-09-19 11:43:35 -07:00
|
|
|
Field: 1007,
|
|
|
|
Name: "goproto.protoc.extension.proto3.extension_sint64",
|
2018-10-24 12:31:16 -07:00
|
|
|
Tag: "zigzag64,1007,opt,name=extension_sint64",
|
2018-09-19 11:43:35 -07:00
|
|
|
Filename: "extensions/proto3/ext3.proto",
|
|
|
|
}
|
|
|
|
|
|
|
|
var E_ExtensionUint64 = &proto.ExtensionDesc{
|
|
|
|
ExtendedType: (*descriptor.MessageOptions)(nil),
|
2018-10-24 12:31:16 -07:00
|
|
|
ExtensionType: (*uint64)(nil),
|
2018-09-19 11:43:35 -07:00
|
|
|
Field: 1008,
|
|
|
|
Name: "goproto.protoc.extension.proto3.extension_uint64",
|
2018-10-24 12:31:16 -07:00
|
|
|
Tag: "varint,1008,opt,name=extension_uint64",
|
2018-09-19 11:43:35 -07:00
|
|
|
Filename: "extensions/proto3/ext3.proto",
|
|
|
|
}
|
|
|
|
|
|
|
|
var E_ExtensionSfixed32 = &proto.ExtensionDesc{
|
|
|
|
ExtendedType: (*descriptor.MessageOptions)(nil),
|
2018-10-24 12:31:16 -07:00
|
|
|
ExtensionType: (*int32)(nil),
|
2018-09-19 11:43:35 -07:00
|
|
|
Field: 1009,
|
|
|
|
Name: "goproto.protoc.extension.proto3.extension_sfixed32",
|
2018-10-24 12:31:16 -07:00
|
|
|
Tag: "fixed32,1009,opt,name=extension_sfixed32",
|
2018-09-19 11:43:35 -07:00
|
|
|
Filename: "extensions/proto3/ext3.proto",
|
|
|
|
}
|
|
|
|
|
|
|
|
var E_ExtensionFixed32 = &proto.ExtensionDesc{
|
|
|
|
ExtendedType: (*descriptor.MessageOptions)(nil),
|
2018-10-24 12:31:16 -07:00
|
|
|
ExtensionType: (*uint32)(nil),
|
2018-09-19 11:43:35 -07:00
|
|
|
Field: 1010,
|
|
|
|
Name: "goproto.protoc.extension.proto3.extension_fixed32",
|
2018-10-24 12:31:16 -07:00
|
|
|
Tag: "fixed32,1010,opt,name=extension_fixed32",
|
2018-09-19 11:43:35 -07:00
|
|
|
Filename: "extensions/proto3/ext3.proto",
|
|
|
|
}
|
|
|
|
|
|
|
|
var E_ExtensionFloat = &proto.ExtensionDesc{
|
|
|
|
ExtendedType: (*descriptor.MessageOptions)(nil),
|
2018-10-24 12:31:16 -07:00
|
|
|
ExtensionType: (*float32)(nil),
|
2018-09-19 11:43:35 -07:00
|
|
|
Field: 1011,
|
|
|
|
Name: "goproto.protoc.extension.proto3.extension_float",
|
2018-10-24 12:31:16 -07:00
|
|
|
Tag: "fixed32,1011,opt,name=extension_float",
|
2018-09-19 11:43:35 -07:00
|
|
|
Filename: "extensions/proto3/ext3.proto",
|
|
|
|
}
|
|
|
|
|
|
|
|
var E_ExtensionSfixed64 = &proto.ExtensionDesc{
|
|
|
|
ExtendedType: (*descriptor.MessageOptions)(nil),
|
2018-10-24 12:31:16 -07:00
|
|
|
ExtensionType: (*int64)(nil),
|
2018-09-19 11:43:35 -07:00
|
|
|
Field: 1012,
|
|
|
|
Name: "goproto.protoc.extension.proto3.extension_sfixed64",
|
2018-10-24 12:31:16 -07:00
|
|
|
Tag: "fixed64,1012,opt,name=extension_sfixed64",
|
2018-09-19 11:43:35 -07:00
|
|
|
Filename: "extensions/proto3/ext3.proto",
|
|
|
|
}
|
|
|
|
|
|
|
|
var E_ExtensionFixed64 = &proto.ExtensionDesc{
|
|
|
|
ExtendedType: (*descriptor.MessageOptions)(nil),
|
2018-10-24 12:31:16 -07:00
|
|
|
ExtensionType: (*uint64)(nil),
|
2018-09-19 11:43:35 -07:00
|
|
|
Field: 1013,
|
|
|
|
Name: "goproto.protoc.extension.proto3.extension_fixed64",
|
2018-10-24 12:31:16 -07:00
|
|
|
Tag: "fixed64,1013,opt,name=extension_fixed64",
|
2018-09-19 11:43:35 -07:00
|
|
|
Filename: "extensions/proto3/ext3.proto",
|
|
|
|
}
|
|
|
|
|
|
|
|
var E_ExtensionDouble = &proto.ExtensionDesc{
|
|
|
|
ExtendedType: (*descriptor.MessageOptions)(nil),
|
2018-10-24 12:31:16 -07:00
|
|
|
ExtensionType: (*float64)(nil),
|
2018-09-19 11:43:35 -07:00
|
|
|
Field: 1014,
|
|
|
|
Name: "goproto.protoc.extension.proto3.extension_double",
|
2018-10-24 12:31:16 -07:00
|
|
|
Tag: "fixed64,1014,opt,name=extension_double",
|
2018-09-19 11:43:35 -07:00
|
|
|
Filename: "extensions/proto3/ext3.proto",
|
|
|
|
}
|
|
|
|
|
|
|
|
var E_ExtensionString = &proto.ExtensionDesc{
|
|
|
|
ExtendedType: (*descriptor.MessageOptions)(nil),
|
2018-10-24 12:31:16 -07:00
|
|
|
ExtensionType: (*string)(nil),
|
2018-09-19 11:43:35 -07:00
|
|
|
Field: 1015,
|
|
|
|
Name: "goproto.protoc.extension.proto3.extension_string",
|
2018-10-24 12:31:16 -07:00
|
|
|
Tag: "bytes,1015,opt,name=extension_string",
|
2018-09-19 11:43:35 -07:00
|
|
|
Filename: "extensions/proto3/ext3.proto",
|
|
|
|
}
|
|
|
|
|
|
|
|
var E_ExtensionBytes = &proto.ExtensionDesc{
|
|
|
|
ExtendedType: (*descriptor.MessageOptions)(nil),
|
|
|
|
ExtensionType: ([]byte)(nil),
|
|
|
|
Field: 1016,
|
|
|
|
Name: "goproto.protoc.extension.proto3.extension_bytes",
|
2018-10-24 12:31:16 -07:00
|
|
|
Tag: "bytes,1016,opt,name=extension_bytes",
|
2018-09-19 11:43:35 -07:00
|
|
|
Filename: "extensions/proto3/ext3.proto",
|
|
|
|
}
|
|
|
|
|
|
|
|
var E_Extension_Message = &proto.ExtensionDesc{
|
|
|
|
ExtendedType: (*descriptor.MessageOptions)(nil),
|
|
|
|
ExtensionType: (*Message)(nil),
|
|
|
|
Field: 1017,
|
|
|
|
Name: "goproto.protoc.extension.proto3.extension_Message",
|
2018-10-24 12:31:16 -07:00
|
|
|
Tag: "bytes,1017,opt,name=extension_Message",
|
2018-09-19 11:43:35 -07:00
|
|
|
Filename: "extensions/proto3/ext3.proto",
|
|
|
|
}
|
|
|
|
|
|
|
|
var E_RepeatedExtensionBool = &proto.ExtensionDesc{
|
|
|
|
ExtendedType: (*descriptor.MessageOptions)(nil),
|
|
|
|
ExtensionType: ([]bool)(nil),
|
|
|
|
Field: 2001,
|
|
|
|
Name: "goproto.protoc.extension.proto3.repeated_extension_bool",
|
2018-10-24 12:31:16 -07:00
|
|
|
Tag: "varint,2001,rep,name=repeated_extension_bool",
|
2018-09-19 11:43:35 -07:00
|
|
|
Filename: "extensions/proto3/ext3.proto",
|
|
|
|
}
|
|
|
|
|
|
|
|
var E_RepeatedExtensionEnum = &proto.ExtensionDesc{
|
|
|
|
ExtendedType: (*descriptor.MessageOptions)(nil),
|
|
|
|
ExtensionType: ([]Enum)(nil),
|
|
|
|
Field: 2002,
|
|
|
|
Name: "goproto.protoc.extension.proto3.repeated_extension_enum",
|
2018-10-24 12:31:16 -07:00
|
|
|
Tag: "varint,2002,rep,name=repeated_extension_enum,enum=goproto.protoc.extension.proto3.Enum",
|
2018-09-19 11:43:35 -07:00
|
|
|
Filename: "extensions/proto3/ext3.proto",
|
|
|
|
}
|
|
|
|
|
|
|
|
var E_RepeatedExtensionInt32 = &proto.ExtensionDesc{
|
|
|
|
ExtendedType: (*descriptor.MessageOptions)(nil),
|
|
|
|
ExtensionType: ([]int32)(nil),
|
|
|
|
Field: 2003,
|
|
|
|
Name: "goproto.protoc.extension.proto3.repeated_extension_int32",
|
2018-10-24 12:31:16 -07:00
|
|
|
Tag: "varint,2003,rep,name=repeated_extension_int32",
|
2018-09-19 11:43:35 -07:00
|
|
|
Filename: "extensions/proto3/ext3.proto",
|
|
|
|
}
|
|
|
|
|
|
|
|
var E_RepeatedExtensionSint32 = &proto.ExtensionDesc{
|
|
|
|
ExtendedType: (*descriptor.MessageOptions)(nil),
|
|
|
|
ExtensionType: ([]int32)(nil),
|
|
|
|
Field: 2004,
|
|
|
|
Name: "goproto.protoc.extension.proto3.repeated_extension_sint32",
|
2018-10-24 12:31:16 -07:00
|
|
|
Tag: "zigzag32,2004,rep,name=repeated_extension_sint32",
|
2018-09-19 11:43:35 -07:00
|
|
|
Filename: "extensions/proto3/ext3.proto",
|
|
|
|
}
|
|
|
|
|
|
|
|
var E_RepeatedExtensionUint32 = &proto.ExtensionDesc{
|
|
|
|
ExtendedType: (*descriptor.MessageOptions)(nil),
|
|
|
|
ExtensionType: ([]uint32)(nil),
|
|
|
|
Field: 2005,
|
|
|
|
Name: "goproto.protoc.extension.proto3.repeated_extension_uint32",
|
2018-10-24 12:31:16 -07:00
|
|
|
Tag: "varint,2005,rep,name=repeated_extension_uint32",
|
2018-09-19 11:43:35 -07:00
|
|
|
Filename: "extensions/proto3/ext3.proto",
|
|
|
|
}
|
|
|
|
|
|
|
|
var E_RepeatedExtensionInt64 = &proto.ExtensionDesc{
|
|
|
|
ExtendedType: (*descriptor.MessageOptions)(nil),
|
|
|
|
ExtensionType: ([]int64)(nil),
|
|
|
|
Field: 2006,
|
|
|
|
Name: "goproto.protoc.extension.proto3.repeated_extension_int64",
|
2018-10-24 12:31:16 -07:00
|
|
|
Tag: "varint,2006,rep,name=repeated_extension_int64",
|
2018-09-19 11:43:35 -07:00
|
|
|
Filename: "extensions/proto3/ext3.proto",
|
|
|
|
}
|
|
|
|
|
|
|
|
var E_RepeatedExtensionSint64 = &proto.ExtensionDesc{
|
|
|
|
ExtendedType: (*descriptor.MessageOptions)(nil),
|
|
|
|
ExtensionType: ([]int64)(nil),
|
|
|
|
Field: 2007,
|
|
|
|
Name: "goproto.protoc.extension.proto3.repeated_extension_sint64",
|
2018-10-24 12:31:16 -07:00
|
|
|
Tag: "zigzag64,2007,rep,name=repeated_extension_sint64",
|
2018-09-19 11:43:35 -07:00
|
|
|
Filename: "extensions/proto3/ext3.proto",
|
|
|
|
}
|
|
|
|
|
|
|
|
var E_RepeatedExtensionUint64 = &proto.ExtensionDesc{
|
|
|
|
ExtendedType: (*descriptor.MessageOptions)(nil),
|
|
|
|
ExtensionType: ([]uint64)(nil),
|
|
|
|
Field: 2008,
|
|
|
|
Name: "goproto.protoc.extension.proto3.repeated_extension_uint64",
|
2018-10-24 12:31:16 -07:00
|
|
|
Tag: "varint,2008,rep,name=repeated_extension_uint64",
|
2018-09-19 11:43:35 -07:00
|
|
|
Filename: "extensions/proto3/ext3.proto",
|
|
|
|
}
|
|
|
|
|
|
|
|
var E_RepeatedExtensionSfixed32 = &proto.ExtensionDesc{
|
|
|
|
ExtendedType: (*descriptor.MessageOptions)(nil),
|
|
|
|
ExtensionType: ([]int32)(nil),
|
|
|
|
Field: 2009,
|
|
|
|
Name: "goproto.protoc.extension.proto3.repeated_extension_sfixed32",
|
2018-10-24 12:31:16 -07:00
|
|
|
Tag: "fixed32,2009,rep,name=repeated_extension_sfixed32",
|
2018-09-19 11:43:35 -07:00
|
|
|
Filename: "extensions/proto3/ext3.proto",
|
|
|
|
}
|
|
|
|
|
|
|
|
var E_RepeatedExtensionFixed32 = &proto.ExtensionDesc{
|
|
|
|
ExtendedType: (*descriptor.MessageOptions)(nil),
|
|
|
|
ExtensionType: ([]uint32)(nil),
|
|
|
|
Field: 2010,
|
|
|
|
Name: "goproto.protoc.extension.proto3.repeated_extension_fixed32",
|
2018-10-24 12:31:16 -07:00
|
|
|
Tag: "fixed32,2010,rep,name=repeated_extension_fixed32",
|
2018-09-19 11:43:35 -07:00
|
|
|
Filename: "extensions/proto3/ext3.proto",
|
|
|
|
}
|
|
|
|
|
|
|
|
var E_RepeatedExtensionFloat = &proto.ExtensionDesc{
|
|
|
|
ExtendedType: (*descriptor.MessageOptions)(nil),
|
|
|
|
ExtensionType: ([]float32)(nil),
|
|
|
|
Field: 2011,
|
|
|
|
Name: "goproto.protoc.extension.proto3.repeated_extension_float",
|
2018-10-24 12:31:16 -07:00
|
|
|
Tag: "fixed32,2011,rep,name=repeated_extension_float",
|
2018-09-19 11:43:35 -07:00
|
|
|
Filename: "extensions/proto3/ext3.proto",
|
|
|
|
}
|
|
|
|
|
|
|
|
var E_RepeatedExtensionSfixed64 = &proto.ExtensionDesc{
|
|
|
|
ExtendedType: (*descriptor.MessageOptions)(nil),
|
|
|
|
ExtensionType: ([]int64)(nil),
|
|
|
|
Field: 2012,
|
|
|
|
Name: "goproto.protoc.extension.proto3.repeated_extension_sfixed64",
|
2018-10-24 12:31:16 -07:00
|
|
|
Tag: "fixed64,2012,rep,name=repeated_extension_sfixed64",
|
2018-09-19 11:43:35 -07:00
|
|
|
Filename: "extensions/proto3/ext3.proto",
|
|
|
|
}
|
|
|
|
|
|
|
|
var E_RepeatedExtensionFixed64 = &proto.ExtensionDesc{
|
|
|
|
ExtendedType: (*descriptor.MessageOptions)(nil),
|
|
|
|
ExtensionType: ([]uint64)(nil),
|
|
|
|
Field: 2013,
|
|
|
|
Name: "goproto.protoc.extension.proto3.repeated_extension_fixed64",
|
2018-10-24 12:31:16 -07:00
|
|
|
Tag: "fixed64,2013,rep,name=repeated_extension_fixed64",
|
2018-09-19 11:43:35 -07:00
|
|
|
Filename: "extensions/proto3/ext3.proto",
|
|
|
|
}
|
|
|
|
|
|
|
|
var E_RepeatedExtensionDouble = &proto.ExtensionDesc{
|
|
|
|
ExtendedType: (*descriptor.MessageOptions)(nil),
|
|
|
|
ExtensionType: ([]float64)(nil),
|
|
|
|
Field: 2014,
|
|
|
|
Name: "goproto.protoc.extension.proto3.repeated_extension_double",
|
2018-10-24 12:31:16 -07:00
|
|
|
Tag: "fixed64,2014,rep,name=repeated_extension_double",
|
2018-09-19 11:43:35 -07:00
|
|
|
Filename: "extensions/proto3/ext3.proto",
|
|
|
|
}
|
|
|
|
|
|
|
|
var E_RepeatedExtensionString = &proto.ExtensionDesc{
|
|
|
|
ExtendedType: (*descriptor.MessageOptions)(nil),
|
|
|
|
ExtensionType: ([]string)(nil),
|
|
|
|
Field: 2015,
|
|
|
|
Name: "goproto.protoc.extension.proto3.repeated_extension_string",
|
2018-10-24 12:31:16 -07:00
|
|
|
Tag: "bytes,2015,rep,name=repeated_extension_string",
|
2018-09-19 11:43:35 -07:00
|
|
|
Filename: "extensions/proto3/ext3.proto",
|
|
|
|
}
|
|
|
|
|
|
|
|
var E_RepeatedExtensionBytes = &proto.ExtensionDesc{
|
|
|
|
ExtendedType: (*descriptor.MessageOptions)(nil),
|
|
|
|
ExtensionType: ([][]byte)(nil),
|
|
|
|
Field: 2016,
|
|
|
|
Name: "goproto.protoc.extension.proto3.repeated_extension_bytes",
|
2018-10-24 12:31:16 -07:00
|
|
|
Tag: "bytes,2016,rep,name=repeated_extension_bytes",
|
2018-09-19 11:43:35 -07:00
|
|
|
Filename: "extensions/proto3/ext3.proto",
|
|
|
|
}
|
|
|
|
|
|
|
|
var E_RepeatedExtension_Message = &proto.ExtensionDesc{
|
|
|
|
ExtendedType: (*descriptor.MessageOptions)(nil),
|
|
|
|
ExtensionType: ([]*Message)(nil),
|
|
|
|
Field: 2017,
|
|
|
|
Name: "goproto.protoc.extension.proto3.repeated_extension_Message",
|
2018-10-24 12:31:16 -07:00
|
|
|
Tag: "bytes,2017,rep,name=repeated_extension_Message",
|
2018-09-19 11:43:35 -07:00
|
|
|
Filename: "extensions/proto3/ext3.proto",
|
|
|
|
}
|
|
|
|
|
|
|
|
func init() {
|
2018-12-05 15:42:52 -08:00
|
|
|
proto.RegisterFile("extensions/proto3/ext3.proto", fileDescriptor_3db31bb248c8865e)
|
2018-09-19 11:43:35 -07:00
|
|
|
proto.RegisterEnum("goproto.protoc.extension.proto3.Enum", Enum_name, Enum_value)
|
2018-09-19 13:21:58 -07:00
|
|
|
proto.RegisterType((*Message)(nil), "goproto.protoc.extension.proto3.Message")
|
2018-09-19 11:43:35 -07:00
|
|
|
proto.RegisterExtension(E_ExtensionBool)
|
|
|
|
proto.RegisterExtension(E_ExtensionEnum)
|
|
|
|
proto.RegisterExtension(E_ExtensionInt32)
|
|
|
|
proto.RegisterExtension(E_ExtensionSint32)
|
|
|
|
proto.RegisterExtension(E_ExtensionUint32)
|
|
|
|
proto.RegisterExtension(E_ExtensionInt64)
|
|
|
|
proto.RegisterExtension(E_ExtensionSint64)
|
|
|
|
proto.RegisterExtension(E_ExtensionUint64)
|
|
|
|
proto.RegisterExtension(E_ExtensionSfixed32)
|
|
|
|
proto.RegisterExtension(E_ExtensionFixed32)
|
|
|
|
proto.RegisterExtension(E_ExtensionFloat)
|
|
|
|
proto.RegisterExtension(E_ExtensionSfixed64)
|
|
|
|
proto.RegisterExtension(E_ExtensionFixed64)
|
|
|
|
proto.RegisterExtension(E_ExtensionDouble)
|
|
|
|
proto.RegisterExtension(E_ExtensionString)
|
|
|
|
proto.RegisterExtension(E_ExtensionBytes)
|
|
|
|
proto.RegisterExtension(E_Extension_Message)
|
|
|
|
proto.RegisterExtension(E_RepeatedExtensionBool)
|
|
|
|
proto.RegisterExtension(E_RepeatedExtensionEnum)
|
|
|
|
proto.RegisterExtension(E_RepeatedExtensionInt32)
|
|
|
|
proto.RegisterExtension(E_RepeatedExtensionSint32)
|
|
|
|
proto.RegisterExtension(E_RepeatedExtensionUint32)
|
|
|
|
proto.RegisterExtension(E_RepeatedExtensionInt64)
|
|
|
|
proto.RegisterExtension(E_RepeatedExtensionSint64)
|
|
|
|
proto.RegisterExtension(E_RepeatedExtensionUint64)
|
|
|
|
proto.RegisterExtension(E_RepeatedExtensionSfixed32)
|
|
|
|
proto.RegisterExtension(E_RepeatedExtensionFixed32)
|
|
|
|
proto.RegisterExtension(E_RepeatedExtensionFloat)
|
|
|
|
proto.RegisterExtension(E_RepeatedExtensionSfixed64)
|
|
|
|
proto.RegisterExtension(E_RepeatedExtensionFixed64)
|
|
|
|
proto.RegisterExtension(E_RepeatedExtensionDouble)
|
|
|
|
proto.RegisterExtension(E_RepeatedExtensionString)
|
|
|
|
proto.RegisterExtension(E_RepeatedExtensionBytes)
|
|
|
|
proto.RegisterExtension(E_RepeatedExtension_Message)
|
|
|
|
}
|
|
|
|
|
|
|
|
var fileDescriptor_3db31bb248c8865e = []byte{
|
2018-09-19 13:21:58 -07:00
|
|
|
// 758 bytes of a gzipped FileDescriptorProto
|
|
|
|
0x1f, 0x8b, 0x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x2e, 0x49, 0x85, 0x47, 0x6f, 0xa1, 0x37,
|
|
|
|
0x80, 0x3f, 0xcc, 0x16, 0xca, 0x8e, 0x28, 0xfa, 0xcf, 0xca, 0xf9, 0xad, 0xb3, 0x8e, 0xcb, 0xaf,
|
|
|
|
0x85, 0x96, 0xd2, 0x66, 0xbb, 0xaa, 0xc3, 0xbc, 0x96, 0xef, 0xc4, 0x5f, 0x11, 0xd7, 0x1b, 0x6a,
|
|
|
|
0x7b, 0xd7, 0x16, 0xf7, 0xed, 0x65, 0x87, 0xfa, 0xcb, 0x0e, 0x53, 0x39, 0x0d, 0xb8, 0xdd, 0xe2,
|
|
|
|
0x2d, 0x35, 0xf3, 0xc9, 0x62, 0x8d, 0x8a, 0xbf, 0xff, 0x02, 0x00, 0x00, 0xff, 0xff, 0x65, 0x92,
|
|
|
|
0xaa, 0xed, 0xce, 0x0c, 0x00, 0x00,
|
2018-09-19 11:43:35 -07:00
|
|
|
}
|
cmd/protoc-gen-go: add support for protobuf reflection
Implement support in protoc-gen-go for generating messages and enums
that satisfy the v2 protobuf reflection interfaces. Specifically, the following
are added:
* top-level variable representing the file descriptor
* ProtoReflect method on enums (to implement protoV2.Enum)
* ProtoReflect method on messages (to implement protoV2.Message)
The following are not supported yet:
* resolving transitive dependencies for file imports
* Extension descriptors
* Service descriptors
The implementation approach creates a single array for all the message and enum
declarations and references sections of that array to complete dependencies.
Since protobuf declarations can form a graph (a message may depend on itself),
it is difficult to construct a graph as a single literal. One way is to use
placeholder descriptors, but that is not efficient as it requires encoding
the full name of each dependent enum and message and then later resolving it;
thus, both expanding the binary size and also increasing initialization cost.
Instead, we add a prototype.{Enum,Message}.Reference method to obtain a
descriptor reference for the purposes for satisfying dependencies.
As such, nested declarations and dependencies are populated in an init function.
Other changes to support the implementation:
* Added a protoimpl package to expose the MessageType type and also the
MessageTypeOf and EnumTypeOf helper functions.
* Added a protogen.File.GoIdent field to provide a suggested variable name
for the file descriptor.
* Added prototype.{Enum,Message}.Reference that provides a descriptor reference
for the purposes for satisfying cyclic dependencies.
* Added protoreflect.{Syntax,Cardinality,Kind}.GoString to obtain a Go source
identifier that represents the given constant.
Change-Id: I9455764882dee6ad10f251901e7d419091e8bf1d
Reviewed-on: https://go-review.googlesource.com/c/150074
Reviewed-by: Damien Neil <dneil@google.com>
2018-11-15 14:44:37 -08:00
|
|
|
|
|
|
|
func init() {
|
2019-01-09 21:31:15 -08:00
|
|
|
xxx_Ext3_protoFile_FileDesc.Enums = xxx_Ext3_protoFile_EnumDescs[0:1]
|
|
|
|
xxx_Ext3_protoFile_FileDesc.Messages = xxx_Ext3_protoFile_MessageDescs[0:1]
|
cmd/protoc-gen-go: add support for protobuf reflection
Implement support in protoc-gen-go for generating messages and enums
that satisfy the v2 protobuf reflection interfaces. Specifically, the following
are added:
* top-level variable representing the file descriptor
* ProtoReflect method on enums (to implement protoV2.Enum)
* ProtoReflect method on messages (to implement protoV2.Message)
The following are not supported yet:
* resolving transitive dependencies for file imports
* Extension descriptors
* Service descriptors
The implementation approach creates a single array for all the message and enum
declarations and references sections of that array to complete dependencies.
Since protobuf declarations can form a graph (a message may depend on itself),
it is difficult to construct a graph as a single literal. One way is to use
placeholder descriptors, but that is not efficient as it requires encoding
the full name of each dependent enum and message and then later resolving it;
thus, both expanding the binary size and also increasing initialization cost.
Instead, we add a prototype.{Enum,Message}.Reference method to obtain a
descriptor reference for the purposes for satisfying dependencies.
As such, nested declarations and dependencies are populated in an init function.
Other changes to support the implementation:
* Added a protoimpl package to expose the MessageType type and also the
MessageTypeOf and EnumTypeOf helper functions.
* Added a protogen.File.GoIdent field to provide a suggested variable name
for the file descriptor.
* Added prototype.{Enum,Message}.Reference that provides a descriptor reference
for the purposes for satisfying cyclic dependencies.
* Added protoreflect.{Syntax,Cardinality,Kind}.GoString to obtain a Go source
identifier that represents the given constant.
Change-Id: I9455764882dee6ad10f251901e7d419091e8bf1d
Reviewed-on: https://go-review.googlesource.com/c/150074
Reviewed-by: Damien Neil <dneil@google.com>
2018-11-15 14:44:37 -08:00
|
|
|
var err error
|
2019-01-09 21:31:15 -08:00
|
|
|
Ext3_protoFile, err = prototype.NewFile(&xxx_Ext3_protoFile_FileDesc)
|
cmd/protoc-gen-go: add support for protobuf reflection
Implement support in protoc-gen-go for generating messages and enums
that satisfy the v2 protobuf reflection interfaces. Specifically, the following
are added:
* top-level variable representing the file descriptor
* ProtoReflect method on enums (to implement protoV2.Enum)
* ProtoReflect method on messages (to implement protoV2.Message)
The following are not supported yet:
* resolving transitive dependencies for file imports
* Extension descriptors
* Service descriptors
The implementation approach creates a single array for all the message and enum
declarations and references sections of that array to complete dependencies.
Since protobuf declarations can form a graph (a message may depend on itself),
it is difficult to construct a graph as a single literal. One way is to use
placeholder descriptors, but that is not efficient as it requires encoding
the full name of each dependent enum and message and then later resolving it;
thus, both expanding the binary size and also increasing initialization cost.
Instead, we add a prototype.{Enum,Message}.Reference method to obtain a
descriptor reference for the purposes for satisfying dependencies.
As such, nested declarations and dependencies are populated in an init function.
Other changes to support the implementation:
* Added a protoimpl package to expose the MessageType type and also the
MessageTypeOf and EnumTypeOf helper functions.
* Added a protogen.File.GoIdent field to provide a suggested variable name
for the file descriptor.
* Added prototype.{Enum,Message}.Reference that provides a descriptor reference
for the purposes for satisfying cyclic dependencies.
* Added protoreflect.{Syntax,Cardinality,Kind}.GoString to obtain a Go source
identifier that represents the given constant.
Change-Id: I9455764882dee6ad10f251901e7d419091e8bf1d
Reviewed-on: https://go-review.googlesource.com/c/150074
Reviewed-by: Damien Neil <dneil@google.com>
2018-11-15 14:44:37 -08:00
|
|
|
if err != nil {
|
|
|
|
panic(err)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
const _ = protoimpl.EnforceVersion(protoimpl.Version - 0)
|
|
|
|
|
2019-01-09 21:31:15 -08:00
|
|
|
var Ext3_protoFile protoreflect.FileDescriptor
|
cmd/protoc-gen-go: add support for protobuf reflection
Implement support in protoc-gen-go for generating messages and enums
that satisfy the v2 protobuf reflection interfaces. Specifically, the following
are added:
* top-level variable representing the file descriptor
* ProtoReflect method on enums (to implement protoV2.Enum)
* ProtoReflect method on messages (to implement protoV2.Message)
The following are not supported yet:
* resolving transitive dependencies for file imports
* Extension descriptors
* Service descriptors
The implementation approach creates a single array for all the message and enum
declarations and references sections of that array to complete dependencies.
Since protobuf declarations can form a graph (a message may depend on itself),
it is difficult to construct a graph as a single literal. One way is to use
placeholder descriptors, but that is not efficient as it requires encoding
the full name of each dependent enum and message and then later resolving it;
thus, both expanding the binary size and also increasing initialization cost.
Instead, we add a prototype.{Enum,Message}.Reference method to obtain a
descriptor reference for the purposes for satisfying dependencies.
As such, nested declarations and dependencies are populated in an init function.
Other changes to support the implementation:
* Added a protoimpl package to expose the MessageType type and also the
MessageTypeOf and EnumTypeOf helper functions.
* Added a protogen.File.GoIdent field to provide a suggested variable name
for the file descriptor.
* Added prototype.{Enum,Message}.Reference that provides a descriptor reference
for the purposes for satisfying cyclic dependencies.
* Added protoreflect.{Syntax,Cardinality,Kind}.GoString to obtain a Go source
identifier that represents the given constant.
Change-Id: I9455764882dee6ad10f251901e7d419091e8bf1d
Reviewed-on: https://go-review.googlesource.com/c/150074
Reviewed-by: Damien Neil <dneil@google.com>
2018-11-15 14:44:37 -08:00
|
|
|
|
2019-01-09 21:31:15 -08:00
|
|
|
var xxx_Ext3_protoFile_FileDesc = prototype.File{
|
cmd/protoc-gen-go: add support for protobuf reflection
Implement support in protoc-gen-go for generating messages and enums
that satisfy the v2 protobuf reflection interfaces. Specifically, the following
are added:
* top-level variable representing the file descriptor
* ProtoReflect method on enums (to implement protoV2.Enum)
* ProtoReflect method on messages (to implement protoV2.Message)
The following are not supported yet:
* resolving transitive dependencies for file imports
* Extension descriptors
* Service descriptors
The implementation approach creates a single array for all the message and enum
declarations and references sections of that array to complete dependencies.
Since protobuf declarations can form a graph (a message may depend on itself),
it is difficult to construct a graph as a single literal. One way is to use
placeholder descriptors, but that is not efficient as it requires encoding
the full name of each dependent enum and message and then later resolving it;
thus, both expanding the binary size and also increasing initialization cost.
Instead, we add a prototype.{Enum,Message}.Reference method to obtain a
descriptor reference for the purposes for satisfying dependencies.
As such, nested declarations and dependencies are populated in an init function.
Other changes to support the implementation:
* Added a protoimpl package to expose the MessageType type and also the
MessageTypeOf and EnumTypeOf helper functions.
* Added a protogen.File.GoIdent field to provide a suggested variable name
for the file descriptor.
* Added prototype.{Enum,Message}.Reference that provides a descriptor reference
for the purposes for satisfying cyclic dependencies.
* Added protoreflect.{Syntax,Cardinality,Kind}.GoString to obtain a Go source
identifier that represents the given constant.
Change-Id: I9455764882dee6ad10f251901e7d419091e8bf1d
Reviewed-on: https://go-review.googlesource.com/c/150074
Reviewed-by: Damien Neil <dneil@google.com>
2018-11-15 14:44:37 -08:00
|
|
|
Syntax: protoreflect.Proto3,
|
|
|
|
Path: "extensions/proto3/ext3.proto",
|
|
|
|
Package: "goproto.protoc.extension.proto3",
|
|
|
|
Imports: []protoreflect.FileImport{
|
|
|
|
{FileDescriptor: prototype.PlaceholderFile("google/protobuf/descriptor.proto", "google.protobuf")},
|
|
|
|
},
|
|
|
|
}
|
2019-01-09 21:31:15 -08:00
|
|
|
var xxx_Ext3_protoFile_EnumTypes = [1]protoreflect.EnumType{
|
cmd/protoc-gen-go: add support for protobuf reflection
Implement support in protoc-gen-go for generating messages and enums
that satisfy the v2 protobuf reflection interfaces. Specifically, the following
are added:
* top-level variable representing the file descriptor
* ProtoReflect method on enums (to implement protoV2.Enum)
* ProtoReflect method on messages (to implement protoV2.Message)
The following are not supported yet:
* resolving transitive dependencies for file imports
* Extension descriptors
* Service descriptors
The implementation approach creates a single array for all the message and enum
declarations and references sections of that array to complete dependencies.
Since protobuf declarations can form a graph (a message may depend on itself),
it is difficult to construct a graph as a single literal. One way is to use
placeholder descriptors, but that is not efficient as it requires encoding
the full name of each dependent enum and message and then later resolving it;
thus, both expanding the binary size and also increasing initialization cost.
Instead, we add a prototype.{Enum,Message}.Reference method to obtain a
descriptor reference for the purposes for satisfying dependencies.
As such, nested declarations and dependencies are populated in an init function.
Other changes to support the implementation:
* Added a protoimpl package to expose the MessageType type and also the
MessageTypeOf and EnumTypeOf helper functions.
* Added a protogen.File.GoIdent field to provide a suggested variable name
for the file descriptor.
* Added prototype.{Enum,Message}.Reference that provides a descriptor reference
for the purposes for satisfying cyclic dependencies.
* Added protoreflect.{Syntax,Cardinality,Kind}.GoString to obtain a Go source
identifier that represents the given constant.
Change-Id: I9455764882dee6ad10f251901e7d419091e8bf1d
Reviewed-on: https://go-review.googlesource.com/c/150074
Reviewed-by: Damien Neil <dneil@google.com>
2018-11-15 14:44:37 -08:00
|
|
|
prototype.GoEnum(
|
2019-01-09 21:31:15 -08:00
|
|
|
xxx_Ext3_protoFile_EnumDescs[0].Reference(),
|
2019-01-08 16:18:07 -08:00
|
|
|
func(_ protoreflect.EnumType, n protoreflect.EnumNumber) protoreflect.Enum {
|
cmd/protoc-gen-go: add support for protobuf reflection
Implement support in protoc-gen-go for generating messages and enums
that satisfy the v2 protobuf reflection interfaces. Specifically, the following
are added:
* top-level variable representing the file descriptor
* ProtoReflect method on enums (to implement protoV2.Enum)
* ProtoReflect method on messages (to implement protoV2.Message)
The following are not supported yet:
* resolving transitive dependencies for file imports
* Extension descriptors
* Service descriptors
The implementation approach creates a single array for all the message and enum
declarations and references sections of that array to complete dependencies.
Since protobuf declarations can form a graph (a message may depend on itself),
it is difficult to construct a graph as a single literal. One way is to use
placeholder descriptors, but that is not efficient as it requires encoding
the full name of each dependent enum and message and then later resolving it;
thus, both expanding the binary size and also increasing initialization cost.
Instead, we add a prototype.{Enum,Message}.Reference method to obtain a
descriptor reference for the purposes for satisfying dependencies.
As such, nested declarations and dependencies are populated in an init function.
Other changes to support the implementation:
* Added a protoimpl package to expose the MessageType type and also the
MessageTypeOf and EnumTypeOf helper functions.
* Added a protogen.File.GoIdent field to provide a suggested variable name
for the file descriptor.
* Added prototype.{Enum,Message}.Reference that provides a descriptor reference
for the purposes for satisfying cyclic dependencies.
* Added protoreflect.{Syntax,Cardinality,Kind}.GoString to obtain a Go source
identifier that represents the given constant.
Change-Id: I9455764882dee6ad10f251901e7d419091e8bf1d
Reviewed-on: https://go-review.googlesource.com/c/150074
Reviewed-by: Damien Neil <dneil@google.com>
2018-11-15 14:44:37 -08:00
|
|
|
return Enum(n)
|
|
|
|
},
|
|
|
|
),
|
|
|
|
}
|
2019-01-09 21:31:15 -08:00
|
|
|
var xxx_Ext3_protoFile_EnumDescs = [1]prototype.Enum{
|
cmd/protoc-gen-go: add support for protobuf reflection
Implement support in protoc-gen-go for generating messages and enums
that satisfy the v2 protobuf reflection interfaces. Specifically, the following
are added:
* top-level variable representing the file descriptor
* ProtoReflect method on enums (to implement protoV2.Enum)
* ProtoReflect method on messages (to implement protoV2.Message)
The following are not supported yet:
* resolving transitive dependencies for file imports
* Extension descriptors
* Service descriptors
The implementation approach creates a single array for all the message and enum
declarations and references sections of that array to complete dependencies.
Since protobuf declarations can form a graph (a message may depend on itself),
it is difficult to construct a graph as a single literal. One way is to use
placeholder descriptors, but that is not efficient as it requires encoding
the full name of each dependent enum and message and then later resolving it;
thus, both expanding the binary size and also increasing initialization cost.
Instead, we add a prototype.{Enum,Message}.Reference method to obtain a
descriptor reference for the purposes for satisfying dependencies.
As such, nested declarations and dependencies are populated in an init function.
Other changes to support the implementation:
* Added a protoimpl package to expose the MessageType type and also the
MessageTypeOf and EnumTypeOf helper functions.
* Added a protogen.File.GoIdent field to provide a suggested variable name
for the file descriptor.
* Added prototype.{Enum,Message}.Reference that provides a descriptor reference
for the purposes for satisfying cyclic dependencies.
* Added protoreflect.{Syntax,Cardinality,Kind}.GoString to obtain a Go source
identifier that represents the given constant.
Change-Id: I9455764882dee6ad10f251901e7d419091e8bf1d
Reviewed-on: https://go-review.googlesource.com/c/150074
Reviewed-by: Damien Neil <dneil@google.com>
2018-11-15 14:44:37 -08:00
|
|
|
{
|
|
|
|
Name: "Enum",
|
|
|
|
Values: []prototype.EnumValue{
|
|
|
|
{Name: "ZERO", Number: 0},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
}
|
2019-01-09 21:31:15 -08:00
|
|
|
var xxx_Ext3_protoFile_MessageTypes = [1]protoimpl.MessageType{
|
cmd/protoc-gen-go: add support for protobuf reflection
Implement support in protoc-gen-go for generating messages and enums
that satisfy the v2 protobuf reflection interfaces. Specifically, the following
are added:
* top-level variable representing the file descriptor
* ProtoReflect method on enums (to implement protoV2.Enum)
* ProtoReflect method on messages (to implement protoV2.Message)
The following are not supported yet:
* resolving transitive dependencies for file imports
* Extension descriptors
* Service descriptors
The implementation approach creates a single array for all the message and enum
declarations and references sections of that array to complete dependencies.
Since protobuf declarations can form a graph (a message may depend on itself),
it is difficult to construct a graph as a single literal. One way is to use
placeholder descriptors, but that is not efficient as it requires encoding
the full name of each dependent enum and message and then later resolving it;
thus, both expanding the binary size and also increasing initialization cost.
Instead, we add a prototype.{Enum,Message}.Reference method to obtain a
descriptor reference for the purposes for satisfying dependencies.
As such, nested declarations and dependencies are populated in an init function.
Other changes to support the implementation:
* Added a protoimpl package to expose the MessageType type and also the
MessageTypeOf and EnumTypeOf helper functions.
* Added a protogen.File.GoIdent field to provide a suggested variable name
for the file descriptor.
* Added prototype.{Enum,Message}.Reference that provides a descriptor reference
for the purposes for satisfying cyclic dependencies.
* Added protoreflect.{Syntax,Cardinality,Kind}.GoString to obtain a Go source
identifier that represents the given constant.
Change-Id: I9455764882dee6ad10f251901e7d419091e8bf1d
Reviewed-on: https://go-review.googlesource.com/c/150074
Reviewed-by: Damien Neil <dneil@google.com>
2018-11-15 14:44:37 -08:00
|
|
|
{Type: prototype.GoMessage(
|
2019-01-09 21:31:15 -08:00
|
|
|
xxx_Ext3_protoFile_MessageDescs[0].Reference(),
|
2019-01-09 02:57:13 -08:00
|
|
|
func(protoreflect.MessageType) protoreflect.Message {
|
|
|
|
return xxx_Message{new(Message)}
|
cmd/protoc-gen-go: add support for protobuf reflection
Implement support in protoc-gen-go for generating messages and enums
that satisfy the v2 protobuf reflection interfaces. Specifically, the following
are added:
* top-level variable representing the file descriptor
* ProtoReflect method on enums (to implement protoV2.Enum)
* ProtoReflect method on messages (to implement protoV2.Message)
The following are not supported yet:
* resolving transitive dependencies for file imports
* Extension descriptors
* Service descriptors
The implementation approach creates a single array for all the message and enum
declarations and references sections of that array to complete dependencies.
Since protobuf declarations can form a graph (a message may depend on itself),
it is difficult to construct a graph as a single literal. One way is to use
placeholder descriptors, but that is not efficient as it requires encoding
the full name of each dependent enum and message and then later resolving it;
thus, both expanding the binary size and also increasing initialization cost.
Instead, we add a prototype.{Enum,Message}.Reference method to obtain a
descriptor reference for the purposes for satisfying dependencies.
As such, nested declarations and dependencies are populated in an init function.
Other changes to support the implementation:
* Added a protoimpl package to expose the MessageType type and also the
MessageTypeOf and EnumTypeOf helper functions.
* Added a protogen.File.GoIdent field to provide a suggested variable name
for the file descriptor.
* Added prototype.{Enum,Message}.Reference that provides a descriptor reference
for the purposes for satisfying cyclic dependencies.
* Added protoreflect.{Syntax,Cardinality,Kind}.GoString to obtain a Go source
identifier that represents the given constant.
Change-Id: I9455764882dee6ad10f251901e7d419091e8bf1d
Reviewed-on: https://go-review.googlesource.com/c/150074
Reviewed-by: Damien Neil <dneil@google.com>
2018-11-15 14:44:37 -08:00
|
|
|
},
|
|
|
|
)},
|
|
|
|
}
|
2019-01-09 21:31:15 -08:00
|
|
|
var xxx_Ext3_protoFile_MessageDescs = [1]prototype.Message{
|
cmd/protoc-gen-go: add support for protobuf reflection
Implement support in protoc-gen-go for generating messages and enums
that satisfy the v2 protobuf reflection interfaces. Specifically, the following
are added:
* top-level variable representing the file descriptor
* ProtoReflect method on enums (to implement protoV2.Enum)
* ProtoReflect method on messages (to implement protoV2.Message)
The following are not supported yet:
* resolving transitive dependencies for file imports
* Extension descriptors
* Service descriptors
The implementation approach creates a single array for all the message and enum
declarations and references sections of that array to complete dependencies.
Since protobuf declarations can form a graph (a message may depend on itself),
it is difficult to construct a graph as a single literal. One way is to use
placeholder descriptors, but that is not efficient as it requires encoding
the full name of each dependent enum and message and then later resolving it;
thus, both expanding the binary size and also increasing initialization cost.
Instead, we add a prototype.{Enum,Message}.Reference method to obtain a
descriptor reference for the purposes for satisfying dependencies.
As such, nested declarations and dependencies are populated in an init function.
Other changes to support the implementation:
* Added a protoimpl package to expose the MessageType type and also the
MessageTypeOf and EnumTypeOf helper functions.
* Added a protogen.File.GoIdent field to provide a suggested variable name
for the file descriptor.
* Added prototype.{Enum,Message}.Reference that provides a descriptor reference
for the purposes for satisfying cyclic dependencies.
* Added protoreflect.{Syntax,Cardinality,Kind}.GoString to obtain a Go source
identifier that represents the given constant.
Change-Id: I9455764882dee6ad10f251901e7d419091e8bf1d
Reviewed-on: https://go-review.googlesource.com/c/150074
Reviewed-by: Damien Neil <dneil@google.com>
2018-11-15 14:44:37 -08:00
|
|
|
{
|
|
|
|
Name: "Message",
|
|
|
|
},
|
|
|
|
}
|