OSDN Git Service

new repo
[bytom/vapor.git] / vendor / github.com / golang / protobuf / protoc-gen-go / testdata / imp.pb.go.golden
1 // Code generated by protoc-gen-go.
2 // source: imp.proto
3 // DO NOT EDIT!
4
5 package imp
6
7 import proto "github.com/golang/protobuf/proto"
8 import "math"
9 import "os"
10 import imp1 "imp2.pb"
11
12 // Reference proto & math imports to suppress error if they are not otherwise used.
13 var _ = proto.GetString
14 var _ = math.Inf
15
16 // Types from public import imp2.proto
17 type PubliclyImportedMessage imp1.PubliclyImportedMessage
18
19 func (this *PubliclyImportedMessage) Reset() { (*imp1.PubliclyImportedMessage)(this).Reset() }
20 func (this *PubliclyImportedMessage) String() string {
21         return (*imp1.PubliclyImportedMessage)(this).String()
22 }
23
24 // PubliclyImportedMessage from public import imp.proto
25
26 type ImportedMessage_Owner int32
27
28 const (
29         ImportedMessage_DAVE ImportedMessage_Owner = 1
30         ImportedMessage_MIKE ImportedMessage_Owner = 2
31 )
32
33 var ImportedMessage_Owner_name = map[int32]string{
34         1: "DAVE",
35         2: "MIKE",
36 }
37 var ImportedMessage_Owner_value = map[string]int32{
38         "DAVE": 1,
39         "MIKE": 2,
40 }
41
42 // NewImportedMessage_Owner is deprecated. Use x.Enum() instead.
43 func NewImportedMessage_Owner(x ImportedMessage_Owner) *ImportedMessage_Owner {
44         e := ImportedMessage_Owner(x)
45         return &e
46 }
47 func (x ImportedMessage_Owner) Enum() *ImportedMessage_Owner {
48         p := new(ImportedMessage_Owner)
49         *p = x
50         return p
51 }
52 func (x ImportedMessage_Owner) String() string {
53         return proto.EnumName(ImportedMessage_Owner_name, int32(x))
54 }
55
56 type ImportedMessage struct {
57         Field            *int64           `protobuf:"varint,1,req,name=field" json:"field,omitempty"`
58         XXX_extensions   map[int32][]byte `json:",omitempty"`
59         XXX_unrecognized []byte           `json:",omitempty"`
60 }
61
62 func (this *ImportedMessage) Reset()         { *this = ImportedMessage{} }
63 func (this *ImportedMessage) String() string { return proto.CompactTextString(this) }
64
65 var extRange_ImportedMessage = []proto.ExtensionRange{
66         proto.ExtensionRange{90, 100},
67 }
68
69 func (*ImportedMessage) ExtensionRangeArray() []proto.ExtensionRange {
70         return extRange_ImportedMessage
71 }
72 func (this *ImportedMessage) ExtensionMap() map[int32][]byte {
73         if this.XXX_extensions == nil {
74                 this.XXX_extensions = make(map[int32][]byte)
75         }
76         return this.XXX_extensions
77 }
78
79 type ImportedExtendable struct {
80         XXX_extensions   map[int32][]byte `json:",omitempty"`
81         XXX_unrecognized []byte           `json:",omitempty"`
82 }
83
84 func (this *ImportedExtendable) Reset()         { *this = ImportedExtendable{} }
85 func (this *ImportedExtendable) String() string { return proto.CompactTextString(this) }
86
87 func (this *ImportedExtendable) Marshal() ([]byte, error) {
88         return proto.MarshalMessageSet(this.ExtensionMap())
89 }
90 func (this *ImportedExtendable) Unmarshal(buf []byte) error {
91         return proto.UnmarshalMessageSet(buf, this.ExtensionMap())
92 }
93 // ensure ImportedExtendable satisfies proto.Marshaler and proto.Unmarshaler
94 var _ proto.Marshaler = (*ImportedExtendable)(nil)
95 var _ proto.Unmarshaler = (*ImportedExtendable)(nil)
96
97 var extRange_ImportedExtendable = []proto.ExtensionRange{
98         proto.ExtensionRange{100, 536870911},
99 }
100
101 func (*ImportedExtendable) ExtensionRangeArray() []proto.ExtensionRange {
102         return extRange_ImportedExtendable
103 }
104 func (this *ImportedExtendable) ExtensionMap() map[int32][]byte {
105         if this.XXX_extensions == nil {
106                 this.XXX_extensions = make(map[int32][]byte)
107         }
108         return this.XXX_extensions
109 }
110
111 func init() {
112         proto.RegisterEnum("imp.ImportedMessage_Owner", ImportedMessage_Owner_name, ImportedMessage_Owner_value)
113 }