Update generated files in reflection

This commit is contained in:
Menghan Li
2016-06-13 11:24:53 -07:00
parent ae32a64fc3
commit d7e74bbbb0
4 changed files with 38 additions and 32 deletions

View File

@ -2,20 +2,6 @@
// source: proto2.proto
// DO NOT EDIT!
/*
Package grpc_testing is a generated protocol buffer package.
It is generated from these files:
proto2.proto
proto2_ext.proto
test.proto
It has these top-level messages:
ToBeExtened
Extension
SearchResponse
SearchRequest
*/
package grpc_testing
import proto "github.com/golang/protobuf/proto"
@ -27,20 +13,16 @@ var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
const _ = proto.ProtoPackageIsVersion1
type ToBeExtened struct {
Foo *int32 `protobuf:"varint,1,req,name=foo" json:"foo,omitempty"`
XXX_extensions map[int32]proto.Extension `json:"-"`
XXX_unrecognized []byte `json:"-"`
Foo *int32 `protobuf:"varint,1,req,name=foo" json:"foo,omitempty"`
proto.XXX_InternalExtensions `json:"-"`
XXX_unrecognized []byte `json:"-"`
}
func (m *ToBeExtened) Reset() { *m = ToBeExtened{} }
func (m *ToBeExtened) String() string { return proto.CompactTextString(m) }
func (*ToBeExtened) ProtoMessage() {}
func (*ToBeExtened) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
func (*ToBeExtened) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{0} }
var extRange_ToBeExtened = []proto.ExtensionRange{
{10, 20},
@ -49,12 +31,6 @@ var extRange_ToBeExtened = []proto.ExtensionRange{
func (*ToBeExtened) ExtensionRangeArray() []proto.ExtensionRange {
return extRange_ToBeExtened
}
func (m *ToBeExtened) ExtensionMap() map[int32]proto.Extension {
if m.XXX_extensions == nil {
m.XXX_extensions = make(map[int32]proto.Extension)
}
return m.XXX_extensions
}
func (m *ToBeExtened) GetFoo() int32 {
if m != nil && m.Foo != nil {
@ -67,7 +43,9 @@ func init() {
proto.RegisterType((*ToBeExtened)(nil), "grpc.testing.ToBeExtened")
}
var fileDescriptor0 = []byte{
func init() { proto.RegisterFile("proto2.proto", fileDescriptor1) }
var fileDescriptor1 = []byte{
// 85 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0xe2, 0xe2, 0x29, 0x28, 0xca, 0x2f,
0xc9, 0x37, 0xd2, 0x03, 0x53, 0x42, 0x3c, 0xe9, 0x45, 0x05, 0xc9, 0x7a, 0x25, 0xa9, 0xc5, 0x25,

View File

@ -2,6 +2,20 @@
// source: proto2_ext.proto
// DO NOT EDIT!
/*
Package grpc_testing is a generated protocol buffer package.
It is generated from these files:
proto2_ext.proto
proto2.proto
test.proto
It has these top-level messages:
Extension
ToBeExtened
SearchResponse
SearchRequest
*/
package grpc_testing
import proto "github.com/golang/protobuf/proto"
@ -13,6 +27,12 @@ var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// 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.
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
type Extension struct {
Baz *int32 `protobuf:"varint,1,opt,name=baz" json:"baz,omitempty"`
XXX_unrecognized []byte `json:"-"`
@ -21,7 +41,7 @@ type Extension struct {
func (m *Extension) Reset() { *m = Extension{} }
func (m *Extension) String() string { return proto.CompactTextString(m) }
func (*Extension) ProtoMessage() {}
func (*Extension) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{0} }
func (*Extension) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
func (m *Extension) GetBaz() int32 {
if m != nil && m.Baz != nil {
@ -52,7 +72,9 @@ func init() {
proto.RegisterExtension(E_Baz)
}
var fileDescriptor1 = []byte{
func init() { proto.RegisterFile("proto2_ext.proto", fileDescriptor0) }
var fileDescriptor0 = []byte{
// 130 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0xe2, 0x12, 0x28, 0x28, 0xca, 0x2f,
0xc9, 0x37, 0x8a, 0x4f, 0xad, 0x28, 0xd1, 0x03, 0x33, 0x85, 0x78, 0xd2, 0x8b, 0x0a, 0x92, 0xf5,

View File

@ -197,6 +197,8 @@ var _SearchService_serviceDesc = grpc.ServiceDesc{
},
}
func init() { proto.RegisterFile("test.proto", fileDescriptor2) }
var fileDescriptor2 = []byte{
// 227 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0xe2, 0xe2, 0x2a, 0x49, 0x2d, 0x2e,