// Code generated by protoc-gen-go from "test.proto" // DO NOT EDIT! package my_test import proto "goprotobuf.googlecode.com/hg/proto" import "math" import "os" import imp1 "imp.pb" // discarding unused import multitest2 "multi1.pb" // Reference proto, math & os imports to suppress error if they are not otherwise used. var _ = proto.GetString var _ = math.Inf var _ os.Error type HatType int32 const ( HatType_FEDORA HatType = 1 HatType_FEZ HatType = 2 ) var HatType_name = map[int32]string{ 1: "FEDORA", 2: "FEZ", } var HatType_value = map[string]int32{ "FEDORA": 1, "FEZ": 2, } func NewHatType(x HatType) *HatType { e := HatType(x) return &e } func (x HatType) String() string { return proto.EnumName(HatType_name, int32(x)) } type Days int32 const ( Days_MONDAY Days = 1 Days_TUESDAY Days = 2 Days_LUNDI Days = 1 ) var Days_name = map[int32]string{ 1: "MONDAY", 2: "TUESDAY", // Duplicate value: 1: "LUNDI", } var Days_value = map[string]int32{ "MONDAY": 1, "TUESDAY": 2, "LUNDI": 1, } func NewDays(x Days) *Days { e := Days(x) return &e } func (x Days) String() string { return proto.EnumName(Days_name, int32(x)) } type Request_Color int32 const ( Request_RED Request_Color = 0 Request_GREEN Request_Color = 1 Request_BLUE Request_Color = 2 ) var Request_Color_name = map[int32]string{ 0: "RED", 1: "GREEN", 2: "BLUE", } var Request_Color_value = map[string]int32{ "RED": 0, "GREEN": 1, "BLUE": 2, } func NewRequest_Color(x Request_Color) *Request_Color { e := Request_Color(x) return &e } func (x Request_Color) String() string { return proto.EnumName(Request_Color_name, int32(x)) } type Reply_Entry_Game int32 const ( Reply_Entry_FOOTBALL Reply_Entry_Game = 1 Reply_Entry_TENNIS Reply_Entry_Game = 2 ) var Reply_Entry_Game_name = map[int32]string{ 1: "FOOTBALL", 2: "TENNIS", } var Reply_Entry_Game_value = map[string]int32{ "FOOTBALL": 1, "TENNIS": 2, } func NewReply_Entry_Game(x Reply_Entry_Game) *Reply_Entry_Game { e := Reply_Entry_Game(x) return &e } func (x Reply_Entry_Game) String() string { return proto.EnumName(Reply_Entry_Game_name, int32(x)) } type Request struct { Key []int64 `protobuf:"varint,1,rep,name=key" json:"key,omitempty"` ImportedMessage *imp1.ImportedMessage `protobuf:"bytes,2,opt,name=imported_message" json:"imported_message,omitempty"` Hue *Request_Color `protobuf:"varint,3,opt,name=hue,enum=my.test.Request_Color" json:"hue,omitempty"` Hat *HatType `protobuf:"varint,4,opt,name=hat,enum=my.test.HatType,def=1" json:"hat,omitempty"` Owner *imp1.ImportedMessage_Owner `protobuf:"varint,6,opt,name=owner,enum=imp.ImportedMessage_Owner" json:"owner,omitempty"` Deadline *float32 `protobuf:"fixed32,7,opt,name=deadline,def=inf" json:"deadline,omitempty"` Somegroup *Request_SomeGroup `protobuf:"group,8,opt,name=SomeGroup" json:"somegroup,omitempty"` XXX_unrecognized []byte `json:",omitempty"` } func (this *Request) Reset() { *this = Request{} } func (this *Request) String() string { return proto.CompactTextString(this) } const Default_Request_Hat HatType = HatType_FEDORA var Default_Request_Deadline float32 = float32(math.Inf(1)) type Request_SomeGroup struct { GroupField *int32 `protobuf:"varint,9,opt,name=group_field" json:"group_field,omitempty"` XXX_unrecognized []byte `json:",omitempty"` } func (this *Request_SomeGroup) Reset() { *this = Request_SomeGroup{} } func (this *Request_SomeGroup) String() string { return proto.CompactTextString(this) } type Reply struct { Found []*Reply_Entry `protobuf:"bytes,1,rep,name=found" json:"found,omitempty"` CompactKeys []int32 `protobuf:"varint,2,rep,packed,name=compact_keys" json:"compact_keys,omitempty"` XXX_extensions map[int32]proto.Extension `json:",omitempty"` XXX_unrecognized []byte `json:",omitempty"` } func (this *Reply) Reset() { *this = Reply{} } func (this *Reply) String() string { return proto.CompactTextString(this) } var extRange_Reply = []proto.ExtensionRange{ {100, 536870911}, } func (*Reply) ExtensionRangeArray() []proto.ExtensionRange { return extRange_Reply } func (this *Reply) ExtensionMap() map[int32]proto.Extension { if this.XXX_extensions == nil { this.XXX_extensions = make(map[int32]proto.Extension) } return this.XXX_extensions } type Reply_Entry struct { KeyThatNeeds_1234Camel_CasIng *int64 `protobuf:"varint,1,req,name=key_that_needs_1234camel_CasIng" json:"key_that_needs_1234camel_CasIng,omitempty"` Value *int64 `protobuf:"varint,2,opt,name=value,def=7" json:"value,omitempty"` XMyFieldName_2 *int64 `protobuf:"varint,3,opt,name=_my_field_name_2" json:"_my_field_name_2,omitempty"` XXX_unrecognized []byte `json:",omitempty"` } func (this *Reply_Entry) Reset() { *this = Reply_Entry{} } func (this *Reply_Entry) String() string { return proto.CompactTextString(this) } const Default_Reply_Entry_Value int64 = 7 type ReplyExtensions struct { XXX_unrecognized []byte `json:",omitempty"` } func (this *ReplyExtensions) Reset() { *this = ReplyExtensions{} } func (this *ReplyExtensions) String() string { return proto.CompactTextString(this) } var E_ReplyExtensions_Time = &proto.ExtensionDesc{ ExtendedType: (*Reply)(nil), ExtensionType: (*float64)(nil), Field: 101, Name: "my_test.ReplyExtensions.time", Tag: "fixed64,101,opt,name=time", } type OldReply struct { XXX_extensions map[int32]proto.Extension `json:",omitempty"` XXX_unrecognized []byte `json:",omitempty"` } func (this *OldReply) Reset() { *this = OldReply{} } func (this *OldReply) String() string { return proto.CompactTextString(this) } func (this *OldReply) Marshal() ([]byte, os.Error) { return proto.MarshalMessageSet(this.ExtensionMap()) } func (this *OldReply) Unmarshal(buf []byte) os.Error { return proto.UnmarshalMessageSet(buf, this.ExtensionMap()) } // ensure OldReply satisfies proto.Marshaler and proto.Unmarshaler var _ proto.Marshaler = (*OldReply)(nil) var _ proto.Unmarshaler = (*OldReply)(nil) var extRange_OldReply = []proto.ExtensionRange{ {100, 536870911}, } func (*OldReply) ExtensionRangeArray() []proto.ExtensionRange { return extRange_OldReply } func (this *OldReply) ExtensionMap() map[int32]proto.Extension { if this.XXX_extensions == nil { this.XXX_extensions = make(map[int32]proto.Extension) } return this.XXX_extensions } var E_Tag = &proto.ExtensionDesc{ ExtendedType: (*Reply)(nil), ExtensionType: (*string)(nil), Field: 103, Name: "my_test.tag", Tag: "bytes,103,opt,name=tag", } func init() { proto.RegisterEnum("my.test.HatType", HatType_name, HatType_value) proto.RegisterEnum("my.test.Days", Days_name, Days_value) proto.RegisterEnum("my.test.Request_Color", Request_Color_name, Request_Color_value) proto.RegisterEnum("my.test.Reply_Entry_Game", Reply_Entry_Game_name, Reply_Entry_Game_value) proto.RegisterExtension(E_ReplyExtensions_Time) proto.RegisterExtension(E_Tag) }