From bf3a70ae101809ba1445a7de823fac5a739e11ac Mon Sep 17 00:00:00 2001 From: Huan LI Date: Mon, 13 Apr 2020 20:03:03 +0800 Subject: [PATCH] remove generated Go files (#50) --- go/go.mod | 8 - go/go.sum | 54 - go/proto_test.go | 10 - go/wechaty/puppet.pb.go | 2369 ----------------------- go/wechaty/puppet/base.pb.go | 379 ---- go/wechaty/puppet/contact.pb.go | 771 -------- go/wechaty/puppet/event.pb.go | 198 -- go/wechaty/puppet/friendship.pb.go | 610 ------ go/wechaty/puppet/message.pb.go | 1267 ------------ go/wechaty/puppet/room.pb.go | 911 --------- go/wechaty/puppet/room_invitation.pb.go | 278 --- go/wechaty/puppet/room_member.pb.go | 247 --- go/wechaty/puppet/tag.pb.go | 361 ---- 13 files changed, 7463 deletions(-) delete mode 100644 go/go.mod delete mode 100644 go/go.sum delete mode 100644 go/proto_test.go delete mode 100644 go/wechaty/puppet.pb.go delete mode 100644 go/wechaty/puppet/base.pb.go delete mode 100644 go/wechaty/puppet/contact.pb.go delete mode 100644 go/wechaty/puppet/event.pb.go delete mode 100644 go/wechaty/puppet/friendship.pb.go delete mode 100644 go/wechaty/puppet/message.pb.go delete mode 100644 go/wechaty/puppet/room.pb.go delete mode 100644 go/wechaty/puppet/room_invitation.pb.go delete mode 100644 go/wechaty/puppet/room_member.pb.go delete mode 100644 go/wechaty/puppet/tag.pb.go diff --git a/go/go.mod b/go/go.mod deleted file mode 100644 index 5a287344..00000000 --- a/go/go.mod +++ /dev/null @@ -1,8 +0,0 @@ -module github.com/chatie/grpc/go - -go 1.13 - -require ( - github.com/golang/protobuf v1.3.5 - google.golang.org/grpc v1.28.1 -) diff --git a/go/go.sum b/go/go.sum deleted file mode 100644 index 0b4da6c0..00000000 --- a/go/go.sum +++ /dev/null @@ -1,54 +0,0 @@ -cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= -github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= -github.com/census-instrumentation/opencensus-proto v0.2.1/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU= -github.com/chatie/grpc v0.0.0-20200410112054-9d6eb5c7938d h1:5A1LrJkgPEEuNV5Uk33li8JksNOqIHS6bonNqgagexI= -github.com/client9/misspell v0.3.4/go.mod h1:qj6jICC3Q7zFZvVWo7KLAzC3yx5G7kyvSDkc90ppPyw= -github.com/cncf/udpa/go v0.0.0-20191209042840-269d4d468f6f/go.mod h1:M8M6+tZqaGXZJjfX53e64911xZQV5JYwmTeXPW+k8Sc= -github.com/envoyproxy/go-control-plane v0.9.0/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4= -github.com/envoyproxy/go-control-plane v0.9.4/go.mod h1:6rpuAdCZL397s3pYoYcLgu1mIlRU8Am5FuJP05cCM98= -github.com/envoyproxy/protoc-gen-validate v0.1.0/go.mod h1:iSmxcyjqTsJpI2R4NaDN7+kN2VEUnK/pcBlmesArF7c= -github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b/go.mod h1:SBH7ygxi8pfUlaOkMMuAQtPIUF8ecWP5IEl/CR7VP2Q= -github.com/golang/mock v1.1.1/go.mod h1:oTYuIxOrZwtPieC+H1uAHpcLFnEyAGVDL/k47Jfbm0A= -github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= -github.com/golang/protobuf v1.3.2/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= -github.com/golang/protobuf v1.3.3/go.mod h1:vzj43D7+SQXF/4pzW/hwtAqwc6iTitCiVSaWz5lYuqw= -github.com/golang/protobuf v1.3.5 h1:F768QJ1E9tib+q5Sc8MkdJi1RxLTbRcTf8LJV56aRls= -github.com/golang/protobuf v1.3.5/go.mod h1:6O5/vntMXwX2lRkT1hjjk0nAC1IDOTvTlVgjlRvqsdk= -github.com/google/go-cmp v0.2.0 h1:+dTQ8DZQJz0Mb/HjFlkptS1FeQ4cWSnN941F8aEG4SQ= -github.com/google/go-cmp v0.2.0/go.mod h1:oXzfMopK8JAjlY9xF4vHSVASa0yLyX7SntLO5aqRK0M= -github.com/prometheus/client_model v0.0.0-20190812154241-14fe0d1b01d4/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA= -golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= -golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= -golang.org/x/lint v0.0.0-20181026193005-c67002cb31c3/go.mod h1:UVdnD1Gm6xHRNCYTkRU2/jEulfH38KcIWyp/GAMgvoE= -golang.org/x/lint v0.0.0-20190227174305-5b3e6a55c961/go.mod h1:wehouNa3lNwaWXcvxsM5YxQ5yQlVC4a0KAMCusXpPoU= -golang.org/x/lint v0.0.0-20190313153728-d0100b6bd8b3/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= -golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= -golang.org/x/net v0.0.0-20180826012351-8a410e7b638d/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= -golang.org/x/net v0.0.0-20190213061140-3a22650c66bd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= -golang.org/x/net v0.0.0-20190311183353-d8887717615a h1:oWX7TPOiFAMXLq8o0ikBYfCJVlRHBcsciT5bXOrH628= -golang.org/x/net v0.0.0-20190311183353-d8887717615a/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= -golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= -golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sys v0.0.0-20180830151530-49385e6e1522/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= -golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a h1:1BGLXjeY4akVXGgbC9HugT3Jv3hCI0z56oJR5vAMgBU= -golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= -golang.org/x/text v0.3.0 h1:g61tztE5qeGQ89tm6NTjjM9VPIm088od1l6aSorWRWg= -golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= -golang.org/x/tools v0.0.0-20190114222345-bf090417da8b/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= -golang.org/x/tools v0.0.0-20190226205152-f727befe758c/go.mod h1:9Yl7xja0Znq3iFh3HoIrodX9oNMXvdceNzlUR8zjMvY= -golang.org/x/tools v0.0.0-20190311212946-11955173bddd/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= -golang.org/x/tools v0.0.0-20190524140312-2c0ae7006135/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q= -google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM= -google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= -google.golang.org/genproto v0.0.0-20180817151627-c66870c02cf8/go.mod h1:JiN7NxoALGmiZfu7CAH4rXhgtRTLTxftemlI0sWmxmc= -google.golang.org/genproto v0.0.0-20190819201941-24fa4b261c55 h1:gSJIx1SDwno+2ElGhA4+qG2zF97qiUzTM+rQ0klBOcE= -google.golang.org/genproto v0.0.0-20190819201941-24fa4b261c55/go.mod h1:DMBHOl98Agz4BDEuKkezgsaosCRResVns1a3J2ZsMNc= -google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c= -google.golang.org/grpc v1.23.0/go.mod h1:Y5yQAOtifL1yxbo5wqy6BxZv8vAUGQwXBOALyacEbxg= -google.golang.org/grpc v1.25.1/go.mod h1:c3i+UQWmh7LiEpx4sFZnkU36qjEYZ0imhYfXVyQciAY= -google.golang.org/grpc v1.28.1 h1:C1QC6KzgSiLyBabDi87BbjaGreoRgGUF5nOyvfrAZ1k= -google.golang.org/grpc v1.28.1/go.mod h1:rpkK4SK4GF4Ach/+MFLZUBavHOvF2JJB5uozKKal+60= -honnef.co/go/tools v0.0.0-20190102054323-c2f93a96b099/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= -honnef.co/go/tools v0.0.0-20190523083050-ea95bdfd59fc/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= diff --git a/go/proto_test.go b/go/proto_test.go deleted file mode 100644 index 5c17c00f..00000000 --- a/go/proto_test.go +++ /dev/null @@ -1,10 +0,0 @@ -package _go - -import ( - "github.com/chatie/grpc/go/wechaty" - "testing" -) - -func TestProto(t *testing.T) { - var _ wechaty.PuppetClient = wechaty.NewPuppetClient(nil) -} diff --git a/go/wechaty/puppet.pb.go b/go/wechaty/puppet.pb.go deleted file mode 100644 index e446e682..00000000 --- a/go/wechaty/puppet.pb.go +++ /dev/null @@ -1,2369 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// source: puppet.proto - -package wechaty - -import ( - context "context" - fmt "fmt" - puppet "github.com/chatie/grpc/go/wechaty/puppet" - proto "github.com/golang/protobuf/proto" - grpc "google.golang.org/grpc" - codes "google.golang.org/grpc/codes" - status "google.golang.org/grpc/status" - math "math" -) - -// Reference imports to suppress errors if they are not otherwise used. -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.ProtoPackageIsVersion3 // please upgrade the proto package - -// StartRequest from public import puppet/base.proto -type StartRequest = puppet.StartRequest - -// StartResponse from public import puppet/base.proto -type StartResponse = puppet.StartResponse - -// StopRequest from public import puppet/base.proto -type StopRequest = puppet.StopRequest - -// StopResponse from public import puppet/base.proto -type StopResponse = puppet.StopResponse - -// VersionRequest from public import puppet/base.proto -type VersionRequest = puppet.VersionRequest - -// VersionResponse from public import puppet/base.proto -type VersionResponse = puppet.VersionResponse - -// LogoutRequest from public import puppet/base.proto -type LogoutRequest = puppet.LogoutRequest - -// LogoutResponse from public import puppet/base.proto -type LogoutResponse = puppet.LogoutResponse - -// DingRequest from public import puppet/base.proto -type DingRequest = puppet.DingRequest - -// DingResponse from public import puppet/base.proto -type DingResponse = puppet.DingResponse - -// ContactListRequest from public import puppet/contact.proto -type ContactListRequest = puppet.ContactListRequest - -// ContactListResponse from public import puppet/contact.proto -type ContactListResponse = puppet.ContactListResponse - -// ContactPayloadRequest from public import puppet/contact.proto -type ContactPayloadRequest = puppet.ContactPayloadRequest - -// ContactPayloadResponse from public import puppet/contact.proto -type ContactPayloadResponse = puppet.ContactPayloadResponse - -// ContactSelfQRCodeRequest from public import puppet/contact.proto -type ContactSelfQRCodeRequest = puppet.ContactSelfQRCodeRequest - -// ContactSelfQRCodeResponse from public import puppet/contact.proto -type ContactSelfQRCodeResponse = puppet.ContactSelfQRCodeResponse - -// ContactSelfNameRequest from public import puppet/contact.proto -type ContactSelfNameRequest = puppet.ContactSelfNameRequest - -// ContactSelfNameResponse from public import puppet/contact.proto -type ContactSelfNameResponse = puppet.ContactSelfNameResponse - -// ContactSelfSignatureRequest from public import puppet/contact.proto -type ContactSelfSignatureRequest = puppet.ContactSelfSignatureRequest - -// ContactSelfSignatureResponse from public import puppet/contact.proto -type ContactSelfSignatureResponse = puppet.ContactSelfSignatureResponse - -// ContactAliasRequest from public import puppet/contact.proto -type ContactAliasRequest = puppet.ContactAliasRequest - -// ContactAliasResponse from public import puppet/contact.proto -type ContactAliasResponse = puppet.ContactAliasResponse - -// ContactAvatarRequest from public import puppet/contact.proto -type ContactAvatarRequest = puppet.ContactAvatarRequest - -// ContactAvatarResponse from public import puppet/contact.proto -type ContactAvatarResponse = puppet.ContactAvatarResponse - -// ContactGender from public import puppet/contact.proto -type ContactGender = puppet.ContactGender - -var ContactGender_name = puppet.ContactGender_name -var ContactGender_value = puppet.ContactGender_value - -const ContactGender_CONTACT_GENDER_UNSPECIFIED = ContactGender(puppet.ContactGender_CONTACT_GENDER_UNSPECIFIED) -const ContactGender_CONTACT_GENDER_MALE = ContactGender(puppet.ContactGender_CONTACT_GENDER_MALE) -const ContactGender_CONTACT_GENDER_FEMALE = ContactGender(puppet.ContactGender_CONTACT_GENDER_FEMALE) - -// ContactType from public import puppet/contact.proto -type ContactType = puppet.ContactType - -var ContactType_name = puppet.ContactType_name -var ContactType_value = puppet.ContactType_value - -const ContactType_CONTACT_TYPE_UNSPECIFIED = ContactType(puppet.ContactType_CONTACT_TYPE_UNSPECIFIED) -const ContactType_CONTACT_TYPE_PERSONAL = ContactType(puppet.ContactType_CONTACT_TYPE_PERSONAL) -const ContactType_CONTACT_TYPE_OFFICIAL = ContactType(puppet.ContactType_CONTACT_TYPE_OFFICIAL) - -// EventRequest from public import puppet/event.proto -type EventRequest = puppet.EventRequest - -// EventResponse from public import puppet/event.proto -type EventResponse = puppet.EventResponse - -// EventType from public import puppet/event.proto -type EventType = puppet.EventType - -var EventType_name = puppet.EventType_name -var EventType_value = puppet.EventType_value - -const EventType_EVENT_TYPE_UNSPECIFIED = EventType(puppet.EventType_EVENT_TYPE_UNSPECIFIED) -const EventType_EVENT_TYPE_HEARTBEAT = EventType(puppet.EventType_EVENT_TYPE_HEARTBEAT) -const EventType_EVENT_TYPE_MESSAGE = EventType(puppet.EventType_EVENT_TYPE_MESSAGE) -const EventType_EVENT_TYPE_DONG = EventType(puppet.EventType_EVENT_TYPE_DONG) -const EventType_EVENT_TYPE_ERROR = EventType(puppet.EventType_EVENT_TYPE_ERROR) -const EventType_EVENT_TYPE_FRIENDSHIP = EventType(puppet.EventType_EVENT_TYPE_FRIENDSHIP) -const EventType_EVENT_TYPE_ROOM_INVITE = EventType(puppet.EventType_EVENT_TYPE_ROOM_INVITE) -const EventType_EVENT_TYPE_ROOM_JOIN = EventType(puppet.EventType_EVENT_TYPE_ROOM_JOIN) -const EventType_EVENT_TYPE_ROOM_LEAVE = EventType(puppet.EventType_EVENT_TYPE_ROOM_LEAVE) -const EventType_EVENT_TYPE_ROOM_TOPIC = EventType(puppet.EventType_EVENT_TYPE_ROOM_TOPIC) -const EventType_EVENT_TYPE_SCAN = EventType(puppet.EventType_EVENT_TYPE_SCAN) -const EventType_EVENT_TYPE_READY = EventType(puppet.EventType_EVENT_TYPE_READY) -const EventType_EVENT_TYPE_RESET = EventType(puppet.EventType_EVENT_TYPE_RESET) -const EventType_EVENT_TYPE_LOGIN = EventType(puppet.EventType_EVENT_TYPE_LOGIN) -const EventType_EVENT_TYPE_LOGOUT = EventType(puppet.EventType_EVENT_TYPE_LOGOUT) - -// FriendshipPayloadRequest from public import puppet/friendship.proto -type FriendshipPayloadRequest = puppet.FriendshipPayloadRequest - -// FriendshipPayloadResponse from public import puppet/friendship.proto -type FriendshipPayloadResponse = puppet.FriendshipPayloadResponse - -// FriendshipSearchPhoneRequest from public import puppet/friendship.proto -type FriendshipSearchPhoneRequest = puppet.FriendshipSearchPhoneRequest - -// FriendshipSearchPhoneResponse from public import puppet/friendship.proto -type FriendshipSearchPhoneResponse = puppet.FriendshipSearchPhoneResponse - -// FriendshipSearchWeixinRequest from public import puppet/friendship.proto -type FriendshipSearchWeixinRequest = puppet.FriendshipSearchWeixinRequest - -// FriendshipSearchWeixinResponse from public import puppet/friendship.proto -type FriendshipSearchWeixinResponse = puppet.FriendshipSearchWeixinResponse - -// FriendshipAddRequest from public import puppet/friendship.proto -type FriendshipAddRequest = puppet.FriendshipAddRequest - -// FriendshipAddResponse from public import puppet/friendship.proto -type FriendshipAddResponse = puppet.FriendshipAddResponse - -// FriendshipAcceptRequest from public import puppet/friendship.proto -type FriendshipAcceptRequest = puppet.FriendshipAcceptRequest - -// FriendshipAcceptResponse from public import puppet/friendship.proto -type FriendshipAcceptResponse = puppet.FriendshipAcceptResponse - -// FriendshipType from public import puppet/friendship.proto -type FriendshipType = puppet.FriendshipType - -var FriendshipType_name = puppet.FriendshipType_name -var FriendshipType_value = puppet.FriendshipType_value - -const FriendshipType_FRIENDSHIP_TYPE_UNSPECIFIED = FriendshipType(puppet.FriendshipType_FRIENDSHIP_TYPE_UNSPECIFIED) -const FriendshipType_FRIENDSHIP_TYPE_CONFIRM = FriendshipType(puppet.FriendshipType_FRIENDSHIP_TYPE_CONFIRM) -const FriendshipType_FRIENDSHIP_TYPE_RECEIVE = FriendshipType(puppet.FriendshipType_FRIENDSHIP_TYPE_RECEIVE) -const FriendshipType_FRIENDSHIP_TYPE_VERIFY = FriendshipType(puppet.FriendshipType_FRIENDSHIP_TYPE_VERIFY) - -// FriendshipSceneType from public import puppet/friendship.proto -type FriendshipSceneType = puppet.FriendshipSceneType - -var FriendshipSceneType_name = puppet.FriendshipSceneType_name -var FriendshipSceneType_value = puppet.FriendshipSceneType_value - -const FriendshipSceneType_FRIENDSHIP_SCENE_TYPE_UNSPECIFIED = FriendshipSceneType(puppet.FriendshipSceneType_FRIENDSHIP_SCENE_TYPE_UNSPECIFIED) -const FriendshipSceneType_FRIENDSHIP_SCENE_TYPE_QQ = FriendshipSceneType(puppet.FriendshipSceneType_FRIENDSHIP_SCENE_TYPE_QQ) -const FriendshipSceneType_FRIENDSHIP_SCENE_TYPE_EMAIL = FriendshipSceneType(puppet.FriendshipSceneType_FRIENDSHIP_SCENE_TYPE_EMAIL) -const FriendshipSceneType_FRIENDSHIP_SCENE_TYPE_WEIXIN = FriendshipSceneType(puppet.FriendshipSceneType_FRIENDSHIP_SCENE_TYPE_WEIXIN) -const FriendshipSceneType_FRIENDSHIP_SCENE_TYPE_QQTBD = FriendshipSceneType(puppet.FriendshipSceneType_FRIENDSHIP_SCENE_TYPE_QQTBD) -const FriendshipSceneType_FRIENDSHIP_SCENE_TYPE_ROOM = FriendshipSceneType(puppet.FriendshipSceneType_FRIENDSHIP_SCENE_TYPE_ROOM) -const FriendshipSceneType_FRIENDSHIP_SCENE_TYPE_PHONE = FriendshipSceneType(puppet.FriendshipSceneType_FRIENDSHIP_SCENE_TYPE_PHONE) -const FriendshipSceneType_FRIENDSHIP_SCENE_TYPE_CARD = FriendshipSceneType(puppet.FriendshipSceneType_FRIENDSHIP_SCENE_TYPE_CARD) -const FriendshipSceneType_FRIENDSHIP_SCENE_TYPE_LOCATION = FriendshipSceneType(puppet.FriendshipSceneType_FRIENDSHIP_SCENE_TYPE_LOCATION) -const FriendshipSceneType_FRIENDSHIP_SCENE_TYPE_BOTTLE = FriendshipSceneType(puppet.FriendshipSceneType_FRIENDSHIP_SCENE_TYPE_BOTTLE) -const FriendshipSceneType_FRIENDSHIP_SCENE_TYPE_SHAKING = FriendshipSceneType(puppet.FriendshipSceneType_FRIENDSHIP_SCENE_TYPE_SHAKING) -const FriendshipSceneType_FRIENDSHIP_SCENE_TYPE_QRCODE = FriendshipSceneType(puppet.FriendshipSceneType_FRIENDSHIP_SCENE_TYPE_QRCODE) - -// MessagePayloadRequest from public import puppet/message.proto -type MessagePayloadRequest = puppet.MessagePayloadRequest - -// MessagePayloadResponse from public import puppet/message.proto -type MessagePayloadResponse = puppet.MessagePayloadResponse - -// MessageImageRequest from public import puppet/message.proto -type MessageImageRequest = puppet.MessageImageRequest - -// MessageImageResponse from public import puppet/message.proto -type MessageImageResponse = puppet.MessageImageResponse - -// MessageContactRequest from public import puppet/message.proto -type MessageContactRequest = puppet.MessageContactRequest - -// MessageContactResponse from public import puppet/message.proto -type MessageContactResponse = puppet.MessageContactResponse - -// MessageFileRequest from public import puppet/message.proto -type MessageFileRequest = puppet.MessageFileRequest - -// MessageFileResponse from public import puppet/message.proto -type MessageFileResponse = puppet.MessageFileResponse - -// MessageMiniProgramRequest from public import puppet/message.proto -type MessageMiniProgramRequest = puppet.MessageMiniProgramRequest - -// MessageMiniProgramResponse from public import puppet/message.proto -type MessageMiniProgramResponse = puppet.MessageMiniProgramResponse - -// MessageUrlRequest from public import puppet/message.proto -type MessageUrlRequest = puppet.MessageUrlRequest - -// MessageUrlResponse from public import puppet/message.proto -type MessageUrlResponse = puppet.MessageUrlResponse - -// MessageSendContactRequest from public import puppet/message.proto -type MessageSendContactRequest = puppet.MessageSendContactRequest - -// MessageSendContactResponse from public import puppet/message.proto -type MessageSendContactResponse = puppet.MessageSendContactResponse - -// MessageSendFileRequest from public import puppet/message.proto -type MessageSendFileRequest = puppet.MessageSendFileRequest - -// MessageSendFileResponse from public import puppet/message.proto -type MessageSendFileResponse = puppet.MessageSendFileResponse - -// MessageSendTextRequest from public import puppet/message.proto -type MessageSendTextRequest = puppet.MessageSendTextRequest - -// MessageSendTextResponse from public import puppet/message.proto -type MessageSendTextResponse = puppet.MessageSendTextResponse - -// MessageSendMiniProgramRequest from public import puppet/message.proto -type MessageSendMiniProgramRequest = puppet.MessageSendMiniProgramRequest - -// MessageSendMiniProgramResponse from public import puppet/message.proto -type MessageSendMiniProgramResponse = puppet.MessageSendMiniProgramResponse - -// MessageSendUrlRequest from public import puppet/message.proto -type MessageSendUrlRequest = puppet.MessageSendUrlRequest - -// MessageSendUrlResponse from public import puppet/message.proto -type MessageSendUrlResponse = puppet.MessageSendUrlResponse - -// MessageRecallRequest from public import puppet/message.proto -type MessageRecallRequest = puppet.MessageRecallRequest - -// MessageRecallResponse from public import puppet/message.proto -type MessageRecallResponse = puppet.MessageRecallResponse - -// MessageType from public import puppet/message.proto -type MessageType = puppet.MessageType - -var MessageType_name = puppet.MessageType_name -var MessageType_value = puppet.MessageType_value - -const MessageType_MESSAGE_TYPE_UNSPECIFIED = MessageType(puppet.MessageType_MESSAGE_TYPE_UNSPECIFIED) -const MessageType_MESSAGE_TYPE_ATTACHMENT = MessageType(puppet.MessageType_MESSAGE_TYPE_ATTACHMENT) -const MessageType_MESSAGE_TYPE_AUDIO = MessageType(puppet.MessageType_MESSAGE_TYPE_AUDIO) -const MessageType_MESSAGE_TYPE_CONTACT = MessageType(puppet.MessageType_MESSAGE_TYPE_CONTACT) -const MessageType_MESSAGE_TYPE_EMOTICON = MessageType(puppet.MessageType_MESSAGE_TYPE_EMOTICON) -const MessageType_MESSAGE_TYPE_IMAGE = MessageType(puppet.MessageType_MESSAGE_TYPE_IMAGE) -const MessageType_MESSAGE_TYPE_TEXT = MessageType(puppet.MessageType_MESSAGE_TYPE_TEXT) -const MessageType_MESSAGE_TYPE_VIDEO = MessageType(puppet.MessageType_MESSAGE_TYPE_VIDEO) -const MessageType_MESSAGE_TYPE_CHAT_HISTORY = MessageType(puppet.MessageType_MESSAGE_TYPE_CHAT_HISTORY) -const MessageType_MESSAGE_TYPE_LOCATION = MessageType(puppet.MessageType_MESSAGE_TYPE_LOCATION) -const MessageType_MESSAGE_TYPE_MINI_PROGRAM = MessageType(puppet.MessageType_MESSAGE_TYPE_MINI_PROGRAM) -const MessageType_MESSAGE_TYPE_TRANSFER = MessageType(puppet.MessageType_MESSAGE_TYPE_TRANSFER) -const MessageType_MESSAGE_TYPE_RED_ENVELOPE = MessageType(puppet.MessageType_MESSAGE_TYPE_RED_ENVELOPE) -const MessageType_MESSAGE_TYPE_RECALLED = MessageType(puppet.MessageType_MESSAGE_TYPE_RECALLED) -const MessageType_MESSAGE_TYPE_URL = MessageType(puppet.MessageType_MESSAGE_TYPE_URL) - -// ImageType from public import puppet/message.proto -type ImageType = puppet.ImageType - -var ImageType_name = puppet.ImageType_name -var ImageType_value = puppet.ImageType_value - -const ImageType_IMAGE_TYPE_UNSPECIFIED = ImageType(puppet.ImageType_IMAGE_TYPE_UNSPECIFIED) -const ImageType_IMAGE_TYPE_THUMBNAIL = ImageType(puppet.ImageType_IMAGE_TYPE_THUMBNAIL) -const ImageType_IMAGE_TYPE_HD = ImageType(puppet.ImageType_IMAGE_TYPE_HD) -const ImageType_IMAGE_TYPE_ARTWORK = ImageType(puppet.ImageType_IMAGE_TYPE_ARTWORK) - -// RoomListRequest from public import puppet/room.proto -type RoomListRequest = puppet.RoomListRequest - -// RoomListResponse from public import puppet/room.proto -type RoomListResponse = puppet.RoomListResponse - -// RoomPayloadRequest from public import puppet/room.proto -type RoomPayloadRequest = puppet.RoomPayloadRequest - -// RoomPayloadResponse from public import puppet/room.proto -type RoomPayloadResponse = puppet.RoomPayloadResponse - -// RoomAddRequest from public import puppet/room.proto -type RoomAddRequest = puppet.RoomAddRequest - -// RoomAddResponse from public import puppet/room.proto -type RoomAddResponse = puppet.RoomAddResponse - -// RoomAvatarRequest from public import puppet/room.proto -type RoomAvatarRequest = puppet.RoomAvatarRequest - -// RoomAvatarResponse from public import puppet/room.proto -type RoomAvatarResponse = puppet.RoomAvatarResponse - -// RoomCreateRequest from public import puppet/room.proto -type RoomCreateRequest = puppet.RoomCreateRequest - -// RoomCreateResponse from public import puppet/room.proto -type RoomCreateResponse = puppet.RoomCreateResponse - -// RoomDelRequest from public import puppet/room.proto -type RoomDelRequest = puppet.RoomDelRequest - -// RoomDelResponse from public import puppet/room.proto -type RoomDelResponse = puppet.RoomDelResponse - -// RoomQuitRequest from public import puppet/room.proto -type RoomQuitRequest = puppet.RoomQuitRequest - -// RoomQuitResponse from public import puppet/room.proto -type RoomQuitResponse = puppet.RoomQuitResponse - -// RoomTopicRequest from public import puppet/room.proto -type RoomTopicRequest = puppet.RoomTopicRequest - -// RoomTopicResponse from public import puppet/room.proto -type RoomTopicResponse = puppet.RoomTopicResponse - -// RoomQRCodeRequest from public import puppet/room.proto -type RoomQRCodeRequest = puppet.RoomQRCodeRequest - -// RoomQRCodeResponse from public import puppet/room.proto -type RoomQRCodeResponse = puppet.RoomQRCodeResponse - -// RoomAnnounceRequest from public import puppet/room.proto -type RoomAnnounceRequest = puppet.RoomAnnounceRequest - -// RoomAnnounceResponse from public import puppet/room.proto -type RoomAnnounceResponse = puppet.RoomAnnounceResponse - -// RoomInvitationPayloadRequest from public import puppet/room_invitation.proto -type RoomInvitationPayloadRequest = puppet.RoomInvitationPayloadRequest - -// RoomInvitationPayloadResponse from public import puppet/room_invitation.proto -type RoomInvitationPayloadResponse = puppet.RoomInvitationPayloadResponse - -// RoomInvitationAcceptRequest from public import puppet/room_invitation.proto -type RoomInvitationAcceptRequest = puppet.RoomInvitationAcceptRequest - -// RoomInvitationAcceptResponse from public import puppet/room_invitation.proto -type RoomInvitationAcceptResponse = puppet.RoomInvitationAcceptResponse - -// RoomMemberPayloadRequest from public import puppet/room_member.proto -type RoomMemberPayloadRequest = puppet.RoomMemberPayloadRequest - -// RoomMemberPayloadResponse from public import puppet/room_member.proto -type RoomMemberPayloadResponse = puppet.RoomMemberPayloadResponse - -// RoomMemberListRequest from public import puppet/room_member.proto -type RoomMemberListRequest = puppet.RoomMemberListRequest - -// RoomMemberListResponse from public import puppet/room_member.proto -type RoomMemberListResponse = puppet.RoomMemberListResponse - -// TagContactAddRequest from public import puppet/tag.proto -type TagContactAddRequest = puppet.TagContactAddRequest - -// TagContactAddResponse from public import puppet/tag.proto -type TagContactAddResponse = puppet.TagContactAddResponse - -// TagContactRemoveRequest from public import puppet/tag.proto -type TagContactRemoveRequest = puppet.TagContactRemoveRequest - -// TagContactRemoveResponse from public import puppet/tag.proto -type TagContactRemoveResponse = puppet.TagContactRemoveResponse - -// TagContactDeleteRequest from public import puppet/tag.proto -type TagContactDeleteRequest = puppet.TagContactDeleteRequest - -// TagContactDeleteResponse from public import puppet/tag.proto -type TagContactDeleteResponse = puppet.TagContactDeleteResponse - -// TagContactListRequest from public import puppet/tag.proto -type TagContactListRequest = puppet.TagContactListRequest - -// TagContactListResponse from public import puppet/tag.proto -type TagContactListResponse = puppet.TagContactListResponse - -func init() { proto.RegisterFile("puppet.proto", fileDescriptor_ea67cb507bb1d4ef) } - -var fileDescriptor_ea67cb507bb1d4ef = []byte{ - // 1023 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x98, 0x6f, 0x73, 0xdc, 0x34, - 0x10, 0xc6, 0x5b, 0x68, 0x92, 0x22, 0x0a, 0x6d, 0x34, 0xe5, 0xcf, 0x84, 0xd0, 0x90, 0x6b, 0x73, - 0x69, 0x69, 0x7a, 0x30, 0xf0, 0x09, 0x3a, 0x09, 0x19, 0x32, 0x93, 0x80, 0x7b, 0x97, 0x00, 0x33, - 0xcc, 0xc0, 0x28, 0x3e, 0xc5, 0xa7, 0x8e, 0x6d, 0x19, 0x5b, 0x77, 0x24, 0xef, 0xf8, 0xe8, 0x8c, - 0x6d, 0x49, 0xb7, 0xb6, 0xb5, 0xb2, 0xdf, 0xee, 0xf3, 0xdb, 0x67, 0x4f, 0xf6, 0x4a, 0x5a, 0x1f, - 0x79, 0x94, 0x2d, 0xb3, 0x8c, 0xab, 0x49, 0x96, 0x4b, 0x25, 0xe9, 0xd6, 0xbf, 0x3c, 0x5c, 0x30, - 0x75, 0xb7, 0xb3, 0x5d, 0x87, 0xbf, 0xbb, 0x66, 0x05, 0xaf, 0xb5, 0x9d, 0xa7, 0x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x12, 0x00, 0x00, -} - -// Reference imports to suppress errors if they are not otherwise used. -var _ context.Context -var _ grpc.ClientConn - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the grpc package it is being compiled against. -const _ = grpc.SupportPackageIsVersion4 - -// PuppetClient is the client API for Puppet service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. -type PuppetClient interface { - //* - // - // Base - // - Start(ctx context.Context, in *puppet.StartRequest, opts ...grpc.CallOption) (*puppet.StartResponse, error) - Stop(ctx context.Context, in *puppet.StopRequest, opts ...grpc.CallOption) (*puppet.StopResponse, error) - Logout(ctx context.Context, in *puppet.LogoutRequest, opts ...grpc.CallOption) (*puppet.LogoutResponse, error) - Ding(ctx context.Context, in *puppet.DingRequest, opts ...grpc.CallOption) (*puppet.DingResponse, error) - Version(ctx context.Context, in *puppet.VersionRequest, opts ...grpc.CallOption) (*puppet.VersionResponse, error) - //* - // - // Event - Server Stream - // - Event(ctx context.Context, in *puppet.EventRequest, opts ...grpc.CallOption) (Puppet_EventClient, error) - //* - // - // Contact Self - // - ContactSelfQRCode(ctx context.Context, in *puppet.ContactSelfQRCodeRequest, opts ...grpc.CallOption) (*puppet.ContactSelfQRCodeResponse, error) - ContactSelfName(ctx context.Context, in *puppet.ContactSelfNameRequest, opts ...grpc.CallOption) (*puppet.ContactSelfNameResponse, error) - ContactSelfSignature(ctx context.Context, in *puppet.ContactSelfSignatureRequest, opts ...grpc.CallOption) (*puppet.ContactSelfSignatureResponse, error) - //* - // - // Contact - // - ContactPayload(ctx context.Context, in *puppet.ContactPayloadRequest, opts ...grpc.CallOption) (*puppet.ContactPayloadResponse, error) - ContactAlias(ctx context.Context, in *puppet.ContactAliasRequest, opts ...grpc.CallOption) (*puppet.ContactAliasResponse, error) - ContactAvatar(ctx context.Context, in *puppet.ContactAvatarRequest, opts ...grpc.CallOption) (*puppet.ContactAvatarResponse, error) - ContactList(ctx context.Context, in *puppet.ContactListRequest, opts ...grpc.CallOption) (*puppet.ContactListResponse, error) - //* - // - // Friendship - // - FriendshipPayload(ctx context.Context, in *puppet.FriendshipPayloadRequest, opts ...grpc.CallOption) (*puppet.FriendshipPayloadResponse, error) - FriendshipSearchPhone(ctx context.Context, in *puppet.FriendshipSearchPhoneRequest, opts ...grpc.CallOption) (*puppet.FriendshipSearchPhoneResponse, error) - FriendshipSearchWeixin(ctx context.Context, in *puppet.FriendshipSearchWeixinRequest, opts ...grpc.CallOption) (*puppet.FriendshipSearchWeixinResponse, error) - FriendshipAdd(ctx context.Context, in *puppet.FriendshipAddRequest, opts ...grpc.CallOption) (*puppet.FriendshipAddResponse, error) - FrendshipAccept(ctx context.Context, in *puppet.FriendshipAcceptRequest, opts ...grpc.CallOption) (*puppet.FriendshipAcceptResponse, error) - //* - // - // Message - // - MessagePayload(ctx context.Context, in *puppet.MessagePayloadRequest, opts ...grpc.CallOption) (*puppet.MessagePayloadResponse, error) - MessageContact(ctx context.Context, in *puppet.MessageContactRequest, opts ...grpc.CallOption) (*puppet.MessageContactResponse, error) - MessageFile(ctx context.Context, in *puppet.MessageFileRequest, opts ...grpc.CallOption) (*puppet.MessageFileResponse, error) - MessageImage(ctx context.Context, in *puppet.MessageImageRequest, opts ...grpc.CallOption) (*puppet.MessageImageResponse, error) - MessageMiniProgram(ctx context.Context, in *puppet.MessageMiniProgramRequest, opts ...grpc.CallOption) (*puppet.MessageMiniProgramResponse, error) - MessageUrl(ctx context.Context, in *puppet.MessageUrlRequest, opts ...grpc.CallOption) (*puppet.MessageUrlResponse, error) - MessageSendContact(ctx context.Context, in *puppet.MessageSendContactRequest, opts ...grpc.CallOption) (*puppet.MessageSendContactResponse, error) - MessageSendFile(ctx context.Context, in *puppet.MessageSendFileRequest, opts ...grpc.CallOption) (*puppet.MessageSendFileResponse, error) - MessageSendText(ctx context.Context, in *puppet.MessageSendTextRequest, opts ...grpc.CallOption) (*puppet.MessageSendTextResponse, error) - MessageSendMiniProgram(ctx context.Context, in *puppet.MessageSendMiniProgramRequest, opts ...grpc.CallOption) (*puppet.MessageSendMiniProgramResponse, error) - MessageSendUrl(ctx context.Context, in *puppet.MessageSendUrlRequest, opts ...grpc.CallOption) (*puppet.MessageSendUrlResponse, error) - MessageRecall(ctx context.Context, in *puppet.MessageRecallRequest, opts ...grpc.CallOption) (*puppet.MessageRecallResponse, error) - //* - // - // Room - // - RoomPayload(ctx context.Context, in *puppet.RoomPayloadRequest, opts ...grpc.CallOption) (*puppet.RoomPayloadResponse, error) - RoomList(ctx context.Context, in *puppet.RoomListRequest, opts ...grpc.CallOption) (*puppet.RoomListResponse, error) - RoomAdd(ctx context.Context, in *puppet.RoomAddRequest, opts ...grpc.CallOption) (*puppet.RoomAddResponse, error) - RoomAvatar(ctx context.Context, in *puppet.RoomAvatarRequest, opts ...grpc.CallOption) (*puppet.RoomAvatarResponse, error) - RoomCreate(ctx context.Context, in *puppet.RoomCreateRequest, opts ...grpc.CallOption) (*puppet.RoomCreateResponse, error) - RoomDel(ctx context.Context, in *puppet.RoomDelRequest, opts ...grpc.CallOption) (*puppet.RoomDelResponse, error) - RoomQuit(ctx context.Context, in *puppet.RoomQuitRequest, opts ...grpc.CallOption) (*puppet.RoomQuitResponse, error) - RoomTopic(ctx context.Context, in *puppet.RoomTopicRequest, opts ...grpc.CallOption) (*puppet.RoomTopicResponse, error) - RoomQRCode(ctx context.Context, in *puppet.RoomQRCodeRequest, opts ...grpc.CallOption) (*puppet.RoomQRCodeResponse, error) - RoomAnnounce(ctx context.Context, in *puppet.RoomAnnounceRequest, opts ...grpc.CallOption) (*puppet.RoomAnnounceResponse, error) - //* - // - // Room Member - // - RoomMemberPayload(ctx context.Context, in *puppet.RoomMemberPayloadRequest, opts ...grpc.CallOption) (*puppet.RoomMemberPayloadResponse, error) - RoomMemberList(ctx context.Context, in *puppet.RoomMemberListRequest, opts ...grpc.CallOption) (*puppet.RoomMemberListResponse, error) - //* - // - // Room Invitation - // - RoomInvitationPayload(ctx context.Context, in *puppet.RoomInvitationPayloadRequest, opts ...grpc.CallOption) (*puppet.RoomInvitationPayloadResponse, error) - RoomInvitationAccept(ctx context.Context, in *puppet.RoomInvitationAcceptRequest, opts ...grpc.CallOption) (*puppet.RoomInvitationAcceptResponse, error) - //* - // - // Tag - // - TagContactAdd(ctx context.Context, in *puppet.TagContactAddRequest, opts ...grpc.CallOption) (*puppet.TagContactAddResponse, error) - TagContactRemove(ctx context.Context, in *puppet.TagContactRemoveRequest, opts ...grpc.CallOption) (*puppet.TagContactRemoveResponse, error) - TagContactDelete(ctx context.Context, in *puppet.TagContactDeleteRequest, opts ...grpc.CallOption) (*puppet.TagContactDeleteResponse, error) - TagContactList(ctx context.Context, in *puppet.TagContactListRequest, opts ...grpc.CallOption) (*puppet.TagContactListResponse, error) -} - -type puppetClient struct { - cc *grpc.ClientConn -} - -func NewPuppetClient(cc *grpc.ClientConn) PuppetClient { - return &puppetClient{cc} -} - -func (c *puppetClient) Start(ctx context.Context, in *puppet.StartRequest, opts ...grpc.CallOption) (*puppet.StartResponse, error) { - out := new(puppet.StartResponse) - err := c.cc.Invoke(ctx, "/wechaty.Puppet/Start", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *puppetClient) Stop(ctx context.Context, in *puppet.StopRequest, opts ...grpc.CallOption) (*puppet.StopResponse, error) { - out := new(puppet.StopResponse) - err := c.cc.Invoke(ctx, "/wechaty.Puppet/Stop", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *puppetClient) Logout(ctx context.Context, in *puppet.LogoutRequest, opts ...grpc.CallOption) (*puppet.LogoutResponse, error) { - out := new(puppet.LogoutResponse) - err := c.cc.Invoke(ctx, "/wechaty.Puppet/Logout", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *puppetClient) Ding(ctx context.Context, in *puppet.DingRequest, opts ...grpc.CallOption) (*puppet.DingResponse, error) { - out := new(puppet.DingResponse) - err := c.cc.Invoke(ctx, "/wechaty.Puppet/Ding", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *puppetClient) Version(ctx context.Context, in *puppet.VersionRequest, opts ...grpc.CallOption) (*puppet.VersionResponse, error) { - out := new(puppet.VersionResponse) - err := c.cc.Invoke(ctx, "/wechaty.Puppet/Version", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *puppetClient) Event(ctx context.Context, in *puppet.EventRequest, opts ...grpc.CallOption) (Puppet_EventClient, error) { - stream, err := c.cc.NewStream(ctx, &_Puppet_serviceDesc.Streams[0], "/wechaty.Puppet/Event", opts...) - if err != nil { - return nil, err - } - x := &puppetEventClient{stream} - if err := x.ClientStream.SendMsg(in); err != nil { - return nil, err - } - if err := x.ClientStream.CloseSend(); err != nil { - return nil, err - } - return x, nil -} - -type Puppet_EventClient interface { - Recv() (*puppet.EventResponse, error) - grpc.ClientStream -} - -type puppetEventClient struct { - grpc.ClientStream -} - -func (x *puppetEventClient) Recv() (*puppet.EventResponse, error) { - m := new(puppet.EventResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} - -func (c *puppetClient) ContactSelfQRCode(ctx context.Context, in *puppet.ContactSelfQRCodeRequest, opts ...grpc.CallOption) (*puppet.ContactSelfQRCodeResponse, error) { - out := new(puppet.ContactSelfQRCodeResponse) - err := c.cc.Invoke(ctx, "/wechaty.Puppet/ContactSelfQRCode", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *puppetClient) ContactSelfName(ctx context.Context, in *puppet.ContactSelfNameRequest, opts ...grpc.CallOption) (*puppet.ContactSelfNameResponse, error) { - out := new(puppet.ContactSelfNameResponse) - err := c.cc.Invoke(ctx, "/wechaty.Puppet/ContactSelfName", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *puppetClient) ContactSelfSignature(ctx context.Context, in *puppet.ContactSelfSignatureRequest, opts ...grpc.CallOption) (*puppet.ContactSelfSignatureResponse, error) { - out := new(puppet.ContactSelfSignatureResponse) - err := c.cc.Invoke(ctx, "/wechaty.Puppet/ContactSelfSignature", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *puppetClient) ContactPayload(ctx context.Context, in *puppet.ContactPayloadRequest, opts ...grpc.CallOption) (*puppet.ContactPayloadResponse, error) { - out := new(puppet.ContactPayloadResponse) - err := c.cc.Invoke(ctx, "/wechaty.Puppet/ContactPayload", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *puppetClient) ContactAlias(ctx context.Context, in *puppet.ContactAliasRequest, opts ...grpc.CallOption) (*puppet.ContactAliasResponse, error) { - out := new(puppet.ContactAliasResponse) - err := c.cc.Invoke(ctx, "/wechaty.Puppet/ContactAlias", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *puppetClient) ContactAvatar(ctx context.Context, in *puppet.ContactAvatarRequest, opts ...grpc.CallOption) (*puppet.ContactAvatarResponse, error) { - out := new(puppet.ContactAvatarResponse) - err := c.cc.Invoke(ctx, "/wechaty.Puppet/ContactAvatar", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *puppetClient) ContactList(ctx context.Context, in *puppet.ContactListRequest, opts ...grpc.CallOption) (*puppet.ContactListResponse, error) { - out := new(puppet.ContactListResponse) - err := c.cc.Invoke(ctx, "/wechaty.Puppet/ContactList", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *puppetClient) FriendshipPayload(ctx context.Context, in *puppet.FriendshipPayloadRequest, opts ...grpc.CallOption) (*puppet.FriendshipPayloadResponse, error) { - out := new(puppet.FriendshipPayloadResponse) - err := c.cc.Invoke(ctx, "/wechaty.Puppet/FriendshipPayload", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *puppetClient) FriendshipSearchPhone(ctx context.Context, in *puppet.FriendshipSearchPhoneRequest, opts ...grpc.CallOption) (*puppet.FriendshipSearchPhoneResponse, error) { - out := new(puppet.FriendshipSearchPhoneResponse) - err := c.cc.Invoke(ctx, "/wechaty.Puppet/FriendshipSearchPhone", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *puppetClient) FriendshipSearchWeixin(ctx context.Context, in *puppet.FriendshipSearchWeixinRequest, opts ...grpc.CallOption) (*puppet.FriendshipSearchWeixinResponse, error) { - out := new(puppet.FriendshipSearchWeixinResponse) - err := c.cc.Invoke(ctx, "/wechaty.Puppet/FriendshipSearchWeixin", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *puppetClient) FriendshipAdd(ctx context.Context, in *puppet.FriendshipAddRequest, opts ...grpc.CallOption) (*puppet.FriendshipAddResponse, error) { - out := new(puppet.FriendshipAddResponse) - err := c.cc.Invoke(ctx, "/wechaty.Puppet/FriendshipAdd", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *puppetClient) FrendshipAccept(ctx context.Context, in *puppet.FriendshipAcceptRequest, opts ...grpc.CallOption) (*puppet.FriendshipAcceptResponse, error) { - out := new(puppet.FriendshipAcceptResponse) - err := c.cc.Invoke(ctx, "/wechaty.Puppet/FrendshipAccept", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *puppetClient) MessagePayload(ctx context.Context, in *puppet.MessagePayloadRequest, opts ...grpc.CallOption) (*puppet.MessagePayloadResponse, error) { - out := new(puppet.MessagePayloadResponse) - err := c.cc.Invoke(ctx, "/wechaty.Puppet/MessagePayload", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *puppetClient) MessageContact(ctx context.Context, in *puppet.MessageContactRequest, opts ...grpc.CallOption) (*puppet.MessageContactResponse, error) { - out := new(puppet.MessageContactResponse) - err := c.cc.Invoke(ctx, "/wechaty.Puppet/MessageContact", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *puppetClient) MessageFile(ctx context.Context, in *puppet.MessageFileRequest, opts ...grpc.CallOption) (*puppet.MessageFileResponse, error) { - out := new(puppet.MessageFileResponse) - err := c.cc.Invoke(ctx, "/wechaty.Puppet/MessageFile", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *puppetClient) MessageImage(ctx context.Context, in *puppet.MessageImageRequest, opts ...grpc.CallOption) (*puppet.MessageImageResponse, error) { - out := new(puppet.MessageImageResponse) - err := c.cc.Invoke(ctx, "/wechaty.Puppet/MessageImage", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *puppetClient) MessageMiniProgram(ctx context.Context, in *puppet.MessageMiniProgramRequest, opts ...grpc.CallOption) (*puppet.MessageMiniProgramResponse, error) { - out := new(puppet.MessageMiniProgramResponse) - err := c.cc.Invoke(ctx, "/wechaty.Puppet/MessageMiniProgram", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *puppetClient) MessageUrl(ctx context.Context, in *puppet.MessageUrlRequest, opts ...grpc.CallOption) (*puppet.MessageUrlResponse, error) { - out := new(puppet.MessageUrlResponse) - err := c.cc.Invoke(ctx, "/wechaty.Puppet/MessageUrl", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *puppetClient) MessageSendContact(ctx context.Context, in *puppet.MessageSendContactRequest, opts ...grpc.CallOption) (*puppet.MessageSendContactResponse, error) { - out := new(puppet.MessageSendContactResponse) - err := c.cc.Invoke(ctx, "/wechaty.Puppet/MessageSendContact", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *puppetClient) MessageSendFile(ctx context.Context, in *puppet.MessageSendFileRequest, opts ...grpc.CallOption) (*puppet.MessageSendFileResponse, error) { - out := new(puppet.MessageSendFileResponse) - err := c.cc.Invoke(ctx, "/wechaty.Puppet/MessageSendFile", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *puppetClient) MessageSendText(ctx context.Context, in *puppet.MessageSendTextRequest, opts ...grpc.CallOption) (*puppet.MessageSendTextResponse, error) { - out := new(puppet.MessageSendTextResponse) - err := c.cc.Invoke(ctx, "/wechaty.Puppet/MessageSendText", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *puppetClient) MessageSendMiniProgram(ctx context.Context, in *puppet.MessageSendMiniProgramRequest, opts ...grpc.CallOption) (*puppet.MessageSendMiniProgramResponse, error) { - out := new(puppet.MessageSendMiniProgramResponse) - err := c.cc.Invoke(ctx, "/wechaty.Puppet/MessageSendMiniProgram", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *puppetClient) MessageSendUrl(ctx context.Context, in *puppet.MessageSendUrlRequest, opts ...grpc.CallOption) (*puppet.MessageSendUrlResponse, error) { - out := new(puppet.MessageSendUrlResponse) - err := c.cc.Invoke(ctx, "/wechaty.Puppet/MessageSendUrl", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *puppetClient) MessageRecall(ctx context.Context, in *puppet.MessageRecallRequest, opts ...grpc.CallOption) (*puppet.MessageRecallResponse, error) { - out := new(puppet.MessageRecallResponse) - err := c.cc.Invoke(ctx, "/wechaty.Puppet/MessageRecall", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *puppetClient) RoomPayload(ctx context.Context, in *puppet.RoomPayloadRequest, opts ...grpc.CallOption) (*puppet.RoomPayloadResponse, error) { - out := new(puppet.RoomPayloadResponse) - err := c.cc.Invoke(ctx, "/wechaty.Puppet/RoomPayload", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *puppetClient) RoomList(ctx context.Context, in *puppet.RoomListRequest, opts ...grpc.CallOption) (*puppet.RoomListResponse, error) { - out := new(puppet.RoomListResponse) - err := c.cc.Invoke(ctx, "/wechaty.Puppet/RoomList", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *puppetClient) RoomAdd(ctx context.Context, in *puppet.RoomAddRequest, opts ...grpc.CallOption) (*puppet.RoomAddResponse, error) { - out := new(puppet.RoomAddResponse) - err := c.cc.Invoke(ctx, "/wechaty.Puppet/RoomAdd", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *puppetClient) RoomAvatar(ctx context.Context, in *puppet.RoomAvatarRequest, opts ...grpc.CallOption) (*puppet.RoomAvatarResponse, error) { - out := new(puppet.RoomAvatarResponse) - err := c.cc.Invoke(ctx, "/wechaty.Puppet/RoomAvatar", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *puppetClient) RoomCreate(ctx context.Context, in *puppet.RoomCreateRequest, opts ...grpc.CallOption) (*puppet.RoomCreateResponse, error) { - out := new(puppet.RoomCreateResponse) - err := c.cc.Invoke(ctx, "/wechaty.Puppet/RoomCreate", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *puppetClient) RoomDel(ctx context.Context, in *puppet.RoomDelRequest, opts ...grpc.CallOption) (*puppet.RoomDelResponse, error) { - out := new(puppet.RoomDelResponse) - err := c.cc.Invoke(ctx, "/wechaty.Puppet/RoomDel", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *puppetClient) RoomQuit(ctx context.Context, in *puppet.RoomQuitRequest, opts ...grpc.CallOption) (*puppet.RoomQuitResponse, error) { - out := new(puppet.RoomQuitResponse) - err := c.cc.Invoke(ctx, "/wechaty.Puppet/RoomQuit", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *puppetClient) RoomTopic(ctx context.Context, in *puppet.RoomTopicRequest, opts ...grpc.CallOption) (*puppet.RoomTopicResponse, error) { - out := new(puppet.RoomTopicResponse) - err := c.cc.Invoke(ctx, "/wechaty.Puppet/RoomTopic", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *puppetClient) RoomQRCode(ctx context.Context, in *puppet.RoomQRCodeRequest, opts ...grpc.CallOption) (*puppet.RoomQRCodeResponse, error) { - out := new(puppet.RoomQRCodeResponse) - err := c.cc.Invoke(ctx, "/wechaty.Puppet/RoomQRCode", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *puppetClient) RoomAnnounce(ctx context.Context, in *puppet.RoomAnnounceRequest, opts ...grpc.CallOption) (*puppet.RoomAnnounceResponse, error) { - out := new(puppet.RoomAnnounceResponse) - err := c.cc.Invoke(ctx, "/wechaty.Puppet/RoomAnnounce", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *puppetClient) RoomMemberPayload(ctx context.Context, in *puppet.RoomMemberPayloadRequest, opts ...grpc.CallOption) (*puppet.RoomMemberPayloadResponse, error) { - out := new(puppet.RoomMemberPayloadResponse) - err := c.cc.Invoke(ctx, "/wechaty.Puppet/RoomMemberPayload", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *puppetClient) RoomMemberList(ctx context.Context, in *puppet.RoomMemberListRequest, opts ...grpc.CallOption) (*puppet.RoomMemberListResponse, error) { - out := new(puppet.RoomMemberListResponse) - err := c.cc.Invoke(ctx, "/wechaty.Puppet/RoomMemberList", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *puppetClient) RoomInvitationPayload(ctx context.Context, in *puppet.RoomInvitationPayloadRequest, opts ...grpc.CallOption) (*puppet.RoomInvitationPayloadResponse, error) { - out := new(puppet.RoomInvitationPayloadResponse) - err := c.cc.Invoke(ctx, "/wechaty.Puppet/RoomInvitationPayload", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *puppetClient) RoomInvitationAccept(ctx context.Context, in *puppet.RoomInvitationAcceptRequest, opts ...grpc.CallOption) (*puppet.RoomInvitationAcceptResponse, error) { - out := new(puppet.RoomInvitationAcceptResponse) - err := c.cc.Invoke(ctx, "/wechaty.Puppet/RoomInvitationAccept", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *puppetClient) TagContactAdd(ctx context.Context, in *puppet.TagContactAddRequest, opts ...grpc.CallOption) (*puppet.TagContactAddResponse, error) { - out := new(puppet.TagContactAddResponse) - err := c.cc.Invoke(ctx, "/wechaty.Puppet/TagContactAdd", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *puppetClient) TagContactRemove(ctx context.Context, in *puppet.TagContactRemoveRequest, opts ...grpc.CallOption) (*puppet.TagContactRemoveResponse, error) { - out := new(puppet.TagContactRemoveResponse) - err := c.cc.Invoke(ctx, "/wechaty.Puppet/TagContactRemove", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *puppetClient) TagContactDelete(ctx context.Context, in *puppet.TagContactDeleteRequest, opts ...grpc.CallOption) (*puppet.TagContactDeleteResponse, error) { - out := new(puppet.TagContactDeleteResponse) - err := c.cc.Invoke(ctx, "/wechaty.Puppet/TagContactDelete", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *puppetClient) TagContactList(ctx context.Context, in *puppet.TagContactListRequest, opts ...grpc.CallOption) (*puppet.TagContactListResponse, error) { - out := new(puppet.TagContactListResponse) - err := c.cc.Invoke(ctx, "/wechaty.Puppet/TagContactList", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -// PuppetServer is the server API for Puppet service. -type PuppetServer interface { - //* - // - // Base - // - Start(context.Context, *puppet.StartRequest) (*puppet.StartResponse, error) - Stop(context.Context, *puppet.StopRequest) (*puppet.StopResponse, error) - Logout(context.Context, *puppet.LogoutRequest) (*puppet.LogoutResponse, error) - Ding(context.Context, *puppet.DingRequest) (*puppet.DingResponse, error) - Version(context.Context, *puppet.VersionRequest) (*puppet.VersionResponse, error) - //* - // - // Event - Server Stream - // - Event(*puppet.EventRequest, Puppet_EventServer) error - //* - // - // Contact Self - // - ContactSelfQRCode(context.Context, *puppet.ContactSelfQRCodeRequest) (*puppet.ContactSelfQRCodeResponse, error) - ContactSelfName(context.Context, *puppet.ContactSelfNameRequest) (*puppet.ContactSelfNameResponse, error) - ContactSelfSignature(context.Context, *puppet.ContactSelfSignatureRequest) (*puppet.ContactSelfSignatureResponse, error) - //* - // - // Contact - // - ContactPayload(context.Context, *puppet.ContactPayloadRequest) (*puppet.ContactPayloadResponse, error) - ContactAlias(context.Context, *puppet.ContactAliasRequest) (*puppet.ContactAliasResponse, error) - ContactAvatar(context.Context, *puppet.ContactAvatarRequest) (*puppet.ContactAvatarResponse, error) - ContactList(context.Context, *puppet.ContactListRequest) (*puppet.ContactListResponse, error) - //* - // - // Friendship - // - FriendshipPayload(context.Context, *puppet.FriendshipPayloadRequest) (*puppet.FriendshipPayloadResponse, error) - FriendshipSearchPhone(context.Context, *puppet.FriendshipSearchPhoneRequest) (*puppet.FriendshipSearchPhoneResponse, error) - FriendshipSearchWeixin(context.Context, *puppet.FriendshipSearchWeixinRequest) (*puppet.FriendshipSearchWeixinResponse, error) - FriendshipAdd(context.Context, *puppet.FriendshipAddRequest) (*puppet.FriendshipAddResponse, error) - FrendshipAccept(context.Context, *puppet.FriendshipAcceptRequest) (*puppet.FriendshipAcceptResponse, error) - //* - // - // Message - // - MessagePayload(context.Context, *puppet.MessagePayloadRequest) (*puppet.MessagePayloadResponse, error) - MessageContact(context.Context, *puppet.MessageContactRequest) (*puppet.MessageContactResponse, error) - MessageFile(context.Context, *puppet.MessageFileRequest) (*puppet.MessageFileResponse, error) - MessageImage(context.Context, *puppet.MessageImageRequest) (*puppet.MessageImageResponse, error) - MessageMiniProgram(context.Context, *puppet.MessageMiniProgramRequest) (*puppet.MessageMiniProgramResponse, error) - MessageUrl(context.Context, *puppet.MessageUrlRequest) (*puppet.MessageUrlResponse, error) - MessageSendContact(context.Context, *puppet.MessageSendContactRequest) (*puppet.MessageSendContactResponse, error) - MessageSendFile(context.Context, *puppet.MessageSendFileRequest) (*puppet.MessageSendFileResponse, error) - MessageSendText(context.Context, *puppet.MessageSendTextRequest) (*puppet.MessageSendTextResponse, error) - MessageSendMiniProgram(context.Context, *puppet.MessageSendMiniProgramRequest) (*puppet.MessageSendMiniProgramResponse, error) - MessageSendUrl(context.Context, *puppet.MessageSendUrlRequest) (*puppet.MessageSendUrlResponse, error) - MessageRecall(context.Context, *puppet.MessageRecallRequest) (*puppet.MessageRecallResponse, error) - //* - // - // Room - // - RoomPayload(context.Context, *puppet.RoomPayloadRequest) (*puppet.RoomPayloadResponse, error) - RoomList(context.Context, *puppet.RoomListRequest) (*puppet.RoomListResponse, error) - RoomAdd(context.Context, *puppet.RoomAddRequest) (*puppet.RoomAddResponse, error) - RoomAvatar(context.Context, *puppet.RoomAvatarRequest) (*puppet.RoomAvatarResponse, error) - RoomCreate(context.Context, *puppet.RoomCreateRequest) (*puppet.RoomCreateResponse, error) - RoomDel(context.Context, *puppet.RoomDelRequest) (*puppet.RoomDelResponse, error) - RoomQuit(context.Context, *puppet.RoomQuitRequest) (*puppet.RoomQuitResponse, error) - RoomTopic(context.Context, *puppet.RoomTopicRequest) (*puppet.RoomTopicResponse, error) - RoomQRCode(context.Context, *puppet.RoomQRCodeRequest) (*puppet.RoomQRCodeResponse, error) - RoomAnnounce(context.Context, *puppet.RoomAnnounceRequest) (*puppet.RoomAnnounceResponse, error) - //* - // - // Room Member - // - RoomMemberPayload(context.Context, *puppet.RoomMemberPayloadRequest) (*puppet.RoomMemberPayloadResponse, error) - RoomMemberList(context.Context, *puppet.RoomMemberListRequest) (*puppet.RoomMemberListResponse, error) - //* - // - // Room Invitation - // - RoomInvitationPayload(context.Context, *puppet.RoomInvitationPayloadRequest) (*puppet.RoomInvitationPayloadResponse, error) - RoomInvitationAccept(context.Context, *puppet.RoomInvitationAcceptRequest) (*puppet.RoomInvitationAcceptResponse, error) - //* - // - // Tag - // - TagContactAdd(context.Context, *puppet.TagContactAddRequest) (*puppet.TagContactAddResponse, error) - TagContactRemove(context.Context, *puppet.TagContactRemoveRequest) (*puppet.TagContactRemoveResponse, error) - TagContactDelete(context.Context, *puppet.TagContactDeleteRequest) (*puppet.TagContactDeleteResponse, error) - TagContactList(context.Context, *puppet.TagContactListRequest) (*puppet.TagContactListResponse, error) -} - -// UnimplementedPuppetServer can be embedded to have forward compatible implementations. -type UnimplementedPuppetServer struct { -} - -func (*UnimplementedPuppetServer) Start(ctx context.Context, req *puppet.StartRequest) (*puppet.StartResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method Start not implemented") -} -func (*UnimplementedPuppetServer) Stop(ctx context.Context, req *puppet.StopRequest) (*puppet.StopResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method Stop not implemented") -} -func (*UnimplementedPuppetServer) Logout(ctx context.Context, req *puppet.LogoutRequest) (*puppet.LogoutResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method Logout not implemented") -} -func (*UnimplementedPuppetServer) Ding(ctx context.Context, req *puppet.DingRequest) (*puppet.DingResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method Ding not implemented") -} -func (*UnimplementedPuppetServer) Version(ctx context.Context, req *puppet.VersionRequest) (*puppet.VersionResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method Version not implemented") -} -func (*UnimplementedPuppetServer) Event(req *puppet.EventRequest, srv Puppet_EventServer) error { - return status.Errorf(codes.Unimplemented, "method Event not implemented") -} -func (*UnimplementedPuppetServer) ContactSelfQRCode(ctx context.Context, req *puppet.ContactSelfQRCodeRequest) (*puppet.ContactSelfQRCodeResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method ContactSelfQRCode not implemented") -} -func (*UnimplementedPuppetServer) ContactSelfName(ctx context.Context, req *puppet.ContactSelfNameRequest) (*puppet.ContactSelfNameResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method ContactSelfName not implemented") -} -func (*UnimplementedPuppetServer) ContactSelfSignature(ctx context.Context, req *puppet.ContactSelfSignatureRequest) (*puppet.ContactSelfSignatureResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method ContactSelfSignature not implemented") -} -func (*UnimplementedPuppetServer) ContactPayload(ctx context.Context, req *puppet.ContactPayloadRequest) (*puppet.ContactPayloadResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method ContactPayload not implemented") -} -func (*UnimplementedPuppetServer) ContactAlias(ctx context.Context, req *puppet.ContactAliasRequest) (*puppet.ContactAliasResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method ContactAlias not implemented") -} -func (*UnimplementedPuppetServer) ContactAvatar(ctx context.Context, req *puppet.ContactAvatarRequest) (*puppet.ContactAvatarResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method ContactAvatar not implemented") -} -func (*UnimplementedPuppetServer) ContactList(ctx context.Context, req *puppet.ContactListRequest) (*puppet.ContactListResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method ContactList not implemented") -} -func (*UnimplementedPuppetServer) FriendshipPayload(ctx context.Context, req *puppet.FriendshipPayloadRequest) (*puppet.FriendshipPayloadResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method FriendshipPayload not implemented") -} -func (*UnimplementedPuppetServer) FriendshipSearchPhone(ctx context.Context, req *puppet.FriendshipSearchPhoneRequest) (*puppet.FriendshipSearchPhoneResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method FriendshipSearchPhone not implemented") -} -func (*UnimplementedPuppetServer) FriendshipSearchWeixin(ctx context.Context, req *puppet.FriendshipSearchWeixinRequest) (*puppet.FriendshipSearchWeixinResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method FriendshipSearchWeixin not implemented") -} -func (*UnimplementedPuppetServer) FriendshipAdd(ctx context.Context, req *puppet.FriendshipAddRequest) (*puppet.FriendshipAddResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method FriendshipAdd not implemented") -} -func (*UnimplementedPuppetServer) FrendshipAccept(ctx context.Context, req *puppet.FriendshipAcceptRequest) (*puppet.FriendshipAcceptResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method FrendshipAccept not implemented") -} -func (*UnimplementedPuppetServer) MessagePayload(ctx context.Context, req *puppet.MessagePayloadRequest) (*puppet.MessagePayloadResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method MessagePayload not implemented") -} -func (*UnimplementedPuppetServer) MessageContact(ctx context.Context, req *puppet.MessageContactRequest) (*puppet.MessageContactResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method MessageContact not implemented") -} -func (*UnimplementedPuppetServer) MessageFile(ctx context.Context, req *puppet.MessageFileRequest) (*puppet.MessageFileResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method MessageFile not implemented") -} -func (*UnimplementedPuppetServer) MessageImage(ctx context.Context, req *puppet.MessageImageRequest) (*puppet.MessageImageResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method MessageImage not implemented") -} -func (*UnimplementedPuppetServer) MessageMiniProgram(ctx context.Context, req *puppet.MessageMiniProgramRequest) (*puppet.MessageMiniProgramResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method MessageMiniProgram not implemented") -} -func (*UnimplementedPuppetServer) MessageUrl(ctx context.Context, req *puppet.MessageUrlRequest) (*puppet.MessageUrlResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method MessageUrl not implemented") -} -func (*UnimplementedPuppetServer) MessageSendContact(ctx context.Context, req *puppet.MessageSendContactRequest) (*puppet.MessageSendContactResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method MessageSendContact not implemented") -} -func (*UnimplementedPuppetServer) MessageSendFile(ctx context.Context, req *puppet.MessageSendFileRequest) (*puppet.MessageSendFileResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method MessageSendFile not implemented") -} -func (*UnimplementedPuppetServer) MessageSendText(ctx context.Context, req *puppet.MessageSendTextRequest) (*puppet.MessageSendTextResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method MessageSendText not implemented") -} -func (*UnimplementedPuppetServer) MessageSendMiniProgram(ctx context.Context, req *puppet.MessageSendMiniProgramRequest) (*puppet.MessageSendMiniProgramResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method MessageSendMiniProgram not implemented") -} -func (*UnimplementedPuppetServer) MessageSendUrl(ctx context.Context, req *puppet.MessageSendUrlRequest) (*puppet.MessageSendUrlResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method MessageSendUrl not implemented") -} -func (*UnimplementedPuppetServer) MessageRecall(ctx context.Context, req *puppet.MessageRecallRequest) (*puppet.MessageRecallResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method MessageRecall not implemented") -} -func (*UnimplementedPuppetServer) RoomPayload(ctx context.Context, req *puppet.RoomPayloadRequest) (*puppet.RoomPayloadResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method RoomPayload not implemented") -} -func (*UnimplementedPuppetServer) RoomList(ctx context.Context, req *puppet.RoomListRequest) (*puppet.RoomListResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method RoomList not implemented") -} -func (*UnimplementedPuppetServer) RoomAdd(ctx context.Context, req *puppet.RoomAddRequest) (*puppet.RoomAddResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method RoomAdd not implemented") -} -func (*UnimplementedPuppetServer) RoomAvatar(ctx context.Context, req *puppet.RoomAvatarRequest) (*puppet.RoomAvatarResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method RoomAvatar not implemented") -} -func (*UnimplementedPuppetServer) RoomCreate(ctx context.Context, req *puppet.RoomCreateRequest) (*puppet.RoomCreateResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method RoomCreate not implemented") -} -func (*UnimplementedPuppetServer) RoomDel(ctx context.Context, req *puppet.RoomDelRequest) (*puppet.RoomDelResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method RoomDel not implemented") -} -func (*UnimplementedPuppetServer) RoomQuit(ctx context.Context, req *puppet.RoomQuitRequest) (*puppet.RoomQuitResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method RoomQuit not implemented") -} -func (*UnimplementedPuppetServer) RoomTopic(ctx context.Context, req *puppet.RoomTopicRequest) (*puppet.RoomTopicResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method RoomTopic not implemented") -} -func (*UnimplementedPuppetServer) RoomQRCode(ctx context.Context, req *puppet.RoomQRCodeRequest) (*puppet.RoomQRCodeResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method RoomQRCode not implemented") -} -func (*UnimplementedPuppetServer) RoomAnnounce(ctx context.Context, req *puppet.RoomAnnounceRequest) (*puppet.RoomAnnounceResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method RoomAnnounce not implemented") -} -func (*UnimplementedPuppetServer) RoomMemberPayload(ctx context.Context, req *puppet.RoomMemberPayloadRequest) (*puppet.RoomMemberPayloadResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method RoomMemberPayload not implemented") -} -func (*UnimplementedPuppetServer) RoomMemberList(ctx context.Context, req *puppet.RoomMemberListRequest) (*puppet.RoomMemberListResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method RoomMemberList not implemented") -} -func (*UnimplementedPuppetServer) RoomInvitationPayload(ctx context.Context, req *puppet.RoomInvitationPayloadRequest) (*puppet.RoomInvitationPayloadResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method RoomInvitationPayload not implemented") -} -func (*UnimplementedPuppetServer) RoomInvitationAccept(ctx context.Context, req *puppet.RoomInvitationAcceptRequest) (*puppet.RoomInvitationAcceptResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method RoomInvitationAccept not implemented") -} -func (*UnimplementedPuppetServer) TagContactAdd(ctx context.Context, req *puppet.TagContactAddRequest) (*puppet.TagContactAddResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method TagContactAdd not implemented") -} -func (*UnimplementedPuppetServer) TagContactRemove(ctx context.Context, req *puppet.TagContactRemoveRequest) (*puppet.TagContactRemoveResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method TagContactRemove not implemented") -} -func (*UnimplementedPuppetServer) TagContactDelete(ctx context.Context, req *puppet.TagContactDeleteRequest) (*puppet.TagContactDeleteResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method TagContactDelete not implemented") -} -func (*UnimplementedPuppetServer) TagContactList(ctx context.Context, req *puppet.TagContactListRequest) (*puppet.TagContactListResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method TagContactList not implemented") -} - -func RegisterPuppetServer(s *grpc.Server, srv PuppetServer) { - s.RegisterService(&_Puppet_serviceDesc, srv) -} - -func _Puppet_Start_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(puppet.StartRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(PuppetServer).Start(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/wechaty.Puppet/Start", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(PuppetServer).Start(ctx, req.(*puppet.StartRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _Puppet_Stop_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(puppet.StopRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(PuppetServer).Stop(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/wechaty.Puppet/Stop", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(PuppetServer).Stop(ctx, req.(*puppet.StopRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _Puppet_Logout_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(puppet.LogoutRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(PuppetServer).Logout(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/wechaty.Puppet/Logout", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(PuppetServer).Logout(ctx, req.(*puppet.LogoutRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _Puppet_Ding_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(puppet.DingRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(PuppetServer).Ding(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/wechaty.Puppet/Ding", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(PuppetServer).Ding(ctx, req.(*puppet.DingRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _Puppet_Version_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(puppet.VersionRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(PuppetServer).Version(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/wechaty.Puppet/Version", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(PuppetServer).Version(ctx, req.(*puppet.VersionRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _Puppet_Event_Handler(srv interface{}, stream grpc.ServerStream) error { - m := new(puppet.EventRequest) - if err := stream.RecvMsg(m); err != nil { - return err - } - return srv.(PuppetServer).Event(m, &puppetEventServer{stream}) -} - -type Puppet_EventServer interface { - Send(*puppet.EventResponse) error - grpc.ServerStream -} - -type puppetEventServer struct { - grpc.ServerStream -} - -func (x *puppetEventServer) Send(m *puppet.EventResponse) error { - return x.ServerStream.SendMsg(m) -} - -func _Puppet_ContactSelfQRCode_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(puppet.ContactSelfQRCodeRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(PuppetServer).ContactSelfQRCode(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/wechaty.Puppet/ContactSelfQRCode", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(PuppetServer).ContactSelfQRCode(ctx, req.(*puppet.ContactSelfQRCodeRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _Puppet_ContactSelfName_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(puppet.ContactSelfNameRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(PuppetServer).ContactSelfName(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/wechaty.Puppet/ContactSelfName", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(PuppetServer).ContactSelfName(ctx, req.(*puppet.ContactSelfNameRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _Puppet_ContactSelfSignature_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(puppet.ContactSelfSignatureRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(PuppetServer).ContactSelfSignature(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/wechaty.Puppet/ContactSelfSignature", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(PuppetServer).ContactSelfSignature(ctx, req.(*puppet.ContactSelfSignatureRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _Puppet_ContactPayload_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(puppet.ContactPayloadRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(PuppetServer).ContactPayload(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/wechaty.Puppet/ContactPayload", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(PuppetServer).ContactPayload(ctx, req.(*puppet.ContactPayloadRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _Puppet_ContactAlias_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(puppet.ContactAliasRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(PuppetServer).ContactAlias(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/wechaty.Puppet/ContactAlias", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(PuppetServer).ContactAlias(ctx, req.(*puppet.ContactAliasRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _Puppet_ContactAvatar_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(puppet.ContactAvatarRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(PuppetServer).ContactAvatar(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/wechaty.Puppet/ContactAvatar", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(PuppetServer).ContactAvatar(ctx, req.(*puppet.ContactAvatarRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _Puppet_ContactList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(puppet.ContactListRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(PuppetServer).ContactList(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/wechaty.Puppet/ContactList", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(PuppetServer).ContactList(ctx, req.(*puppet.ContactListRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _Puppet_FriendshipPayload_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(puppet.FriendshipPayloadRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(PuppetServer).FriendshipPayload(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/wechaty.Puppet/FriendshipPayload", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(PuppetServer).FriendshipPayload(ctx, req.(*puppet.FriendshipPayloadRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _Puppet_FriendshipSearchPhone_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(puppet.FriendshipSearchPhoneRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(PuppetServer).FriendshipSearchPhone(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/wechaty.Puppet/FriendshipSearchPhone", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(PuppetServer).FriendshipSearchPhone(ctx, req.(*puppet.FriendshipSearchPhoneRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _Puppet_FriendshipSearchWeixin_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(puppet.FriendshipSearchWeixinRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(PuppetServer).FriendshipSearchWeixin(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/wechaty.Puppet/FriendshipSearchWeixin", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(PuppetServer).FriendshipSearchWeixin(ctx, req.(*puppet.FriendshipSearchWeixinRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _Puppet_FriendshipAdd_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(puppet.FriendshipAddRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(PuppetServer).FriendshipAdd(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/wechaty.Puppet/FriendshipAdd", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(PuppetServer).FriendshipAdd(ctx, req.(*puppet.FriendshipAddRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _Puppet_FrendshipAccept_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(puppet.FriendshipAcceptRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(PuppetServer).FrendshipAccept(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/wechaty.Puppet/FrendshipAccept", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(PuppetServer).FrendshipAccept(ctx, req.(*puppet.FriendshipAcceptRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _Puppet_MessagePayload_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(puppet.MessagePayloadRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(PuppetServer).MessagePayload(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/wechaty.Puppet/MessagePayload", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(PuppetServer).MessagePayload(ctx, req.(*puppet.MessagePayloadRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _Puppet_MessageContact_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(puppet.MessageContactRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(PuppetServer).MessageContact(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/wechaty.Puppet/MessageContact", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(PuppetServer).MessageContact(ctx, req.(*puppet.MessageContactRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _Puppet_MessageFile_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(puppet.MessageFileRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(PuppetServer).MessageFile(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/wechaty.Puppet/MessageFile", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(PuppetServer).MessageFile(ctx, req.(*puppet.MessageFileRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _Puppet_MessageImage_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(puppet.MessageImageRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(PuppetServer).MessageImage(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/wechaty.Puppet/MessageImage", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(PuppetServer).MessageImage(ctx, req.(*puppet.MessageImageRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _Puppet_MessageMiniProgram_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(puppet.MessageMiniProgramRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(PuppetServer).MessageMiniProgram(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/wechaty.Puppet/MessageMiniProgram", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(PuppetServer).MessageMiniProgram(ctx, req.(*puppet.MessageMiniProgramRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _Puppet_MessageUrl_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(puppet.MessageUrlRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(PuppetServer).MessageUrl(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/wechaty.Puppet/MessageUrl", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(PuppetServer).MessageUrl(ctx, req.(*puppet.MessageUrlRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _Puppet_MessageSendContact_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(puppet.MessageSendContactRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(PuppetServer).MessageSendContact(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/wechaty.Puppet/MessageSendContact", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(PuppetServer).MessageSendContact(ctx, req.(*puppet.MessageSendContactRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _Puppet_MessageSendFile_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(puppet.MessageSendFileRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(PuppetServer).MessageSendFile(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/wechaty.Puppet/MessageSendFile", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(PuppetServer).MessageSendFile(ctx, req.(*puppet.MessageSendFileRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _Puppet_MessageSendText_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(puppet.MessageSendTextRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(PuppetServer).MessageSendText(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/wechaty.Puppet/MessageSendText", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(PuppetServer).MessageSendText(ctx, req.(*puppet.MessageSendTextRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _Puppet_MessageSendMiniProgram_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(puppet.MessageSendMiniProgramRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(PuppetServer).MessageSendMiniProgram(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/wechaty.Puppet/MessageSendMiniProgram", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(PuppetServer).MessageSendMiniProgram(ctx, req.(*puppet.MessageSendMiniProgramRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _Puppet_MessageSendUrl_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(puppet.MessageSendUrlRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(PuppetServer).MessageSendUrl(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/wechaty.Puppet/MessageSendUrl", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(PuppetServer).MessageSendUrl(ctx, req.(*puppet.MessageSendUrlRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _Puppet_MessageRecall_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(puppet.MessageRecallRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(PuppetServer).MessageRecall(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/wechaty.Puppet/MessageRecall", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(PuppetServer).MessageRecall(ctx, req.(*puppet.MessageRecallRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _Puppet_RoomPayload_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(puppet.RoomPayloadRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(PuppetServer).RoomPayload(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/wechaty.Puppet/RoomPayload", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(PuppetServer).RoomPayload(ctx, req.(*puppet.RoomPayloadRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _Puppet_RoomList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(puppet.RoomListRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(PuppetServer).RoomList(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/wechaty.Puppet/RoomList", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(PuppetServer).RoomList(ctx, req.(*puppet.RoomListRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _Puppet_RoomAdd_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(puppet.RoomAddRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(PuppetServer).RoomAdd(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/wechaty.Puppet/RoomAdd", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(PuppetServer).RoomAdd(ctx, req.(*puppet.RoomAddRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _Puppet_RoomAvatar_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(puppet.RoomAvatarRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(PuppetServer).RoomAvatar(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/wechaty.Puppet/RoomAvatar", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(PuppetServer).RoomAvatar(ctx, req.(*puppet.RoomAvatarRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _Puppet_RoomCreate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(puppet.RoomCreateRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(PuppetServer).RoomCreate(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/wechaty.Puppet/RoomCreate", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(PuppetServer).RoomCreate(ctx, req.(*puppet.RoomCreateRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _Puppet_RoomDel_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(puppet.RoomDelRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(PuppetServer).RoomDel(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/wechaty.Puppet/RoomDel", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(PuppetServer).RoomDel(ctx, req.(*puppet.RoomDelRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _Puppet_RoomQuit_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(puppet.RoomQuitRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(PuppetServer).RoomQuit(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/wechaty.Puppet/RoomQuit", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(PuppetServer).RoomQuit(ctx, req.(*puppet.RoomQuitRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _Puppet_RoomTopic_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(puppet.RoomTopicRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(PuppetServer).RoomTopic(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/wechaty.Puppet/RoomTopic", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(PuppetServer).RoomTopic(ctx, req.(*puppet.RoomTopicRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _Puppet_RoomQRCode_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(puppet.RoomQRCodeRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(PuppetServer).RoomQRCode(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/wechaty.Puppet/RoomQRCode", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(PuppetServer).RoomQRCode(ctx, req.(*puppet.RoomQRCodeRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _Puppet_RoomAnnounce_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(puppet.RoomAnnounceRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(PuppetServer).RoomAnnounce(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/wechaty.Puppet/RoomAnnounce", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(PuppetServer).RoomAnnounce(ctx, req.(*puppet.RoomAnnounceRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _Puppet_RoomMemberPayload_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(puppet.RoomMemberPayloadRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(PuppetServer).RoomMemberPayload(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/wechaty.Puppet/RoomMemberPayload", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(PuppetServer).RoomMemberPayload(ctx, req.(*puppet.RoomMemberPayloadRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _Puppet_RoomMemberList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(puppet.RoomMemberListRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(PuppetServer).RoomMemberList(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/wechaty.Puppet/RoomMemberList", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(PuppetServer).RoomMemberList(ctx, req.(*puppet.RoomMemberListRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _Puppet_RoomInvitationPayload_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(puppet.RoomInvitationPayloadRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(PuppetServer).RoomInvitationPayload(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/wechaty.Puppet/RoomInvitationPayload", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(PuppetServer).RoomInvitationPayload(ctx, req.(*puppet.RoomInvitationPayloadRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _Puppet_RoomInvitationAccept_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(puppet.RoomInvitationAcceptRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(PuppetServer).RoomInvitationAccept(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/wechaty.Puppet/RoomInvitationAccept", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(PuppetServer).RoomInvitationAccept(ctx, req.(*puppet.RoomInvitationAcceptRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _Puppet_TagContactAdd_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(puppet.TagContactAddRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(PuppetServer).TagContactAdd(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/wechaty.Puppet/TagContactAdd", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(PuppetServer).TagContactAdd(ctx, req.(*puppet.TagContactAddRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _Puppet_TagContactRemove_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(puppet.TagContactRemoveRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(PuppetServer).TagContactRemove(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/wechaty.Puppet/TagContactRemove", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(PuppetServer).TagContactRemove(ctx, req.(*puppet.TagContactRemoveRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _Puppet_TagContactDelete_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(puppet.TagContactDeleteRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(PuppetServer).TagContactDelete(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/wechaty.Puppet/TagContactDelete", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(PuppetServer).TagContactDelete(ctx, req.(*puppet.TagContactDeleteRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _Puppet_TagContactList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(puppet.TagContactListRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(PuppetServer).TagContactList(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/wechaty.Puppet/TagContactList", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(PuppetServer).TagContactList(ctx, req.(*puppet.TagContactListRequest)) - } - return interceptor(ctx, in, info, handler) -} - -var _Puppet_serviceDesc = grpc.ServiceDesc{ - ServiceName: "wechaty.Puppet", - HandlerType: (*PuppetServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "Start", - Handler: _Puppet_Start_Handler, - }, - { - MethodName: "Stop", - Handler: _Puppet_Stop_Handler, - }, - { - MethodName: "Logout", - Handler: _Puppet_Logout_Handler, - }, - { - MethodName: "Ding", - Handler: _Puppet_Ding_Handler, - }, - { - MethodName: "Version", - Handler: _Puppet_Version_Handler, - }, - { - MethodName: "ContactSelfQRCode", - Handler: _Puppet_ContactSelfQRCode_Handler, - }, - { - MethodName: "ContactSelfName", - Handler: _Puppet_ContactSelfName_Handler, - }, - { - MethodName: "ContactSelfSignature", - Handler: _Puppet_ContactSelfSignature_Handler, - }, - { - MethodName: "ContactPayload", - Handler: _Puppet_ContactPayload_Handler, - }, - { - MethodName: "ContactAlias", - Handler: _Puppet_ContactAlias_Handler, - }, - { - MethodName: "ContactAvatar", - Handler: _Puppet_ContactAvatar_Handler, - }, - { - MethodName: "ContactList", - Handler: _Puppet_ContactList_Handler, - }, - { - MethodName: "FriendshipPayload", - Handler: _Puppet_FriendshipPayload_Handler, - }, - { - MethodName: "FriendshipSearchPhone", - Handler: _Puppet_FriendshipSearchPhone_Handler, - }, - { - MethodName: "FriendshipSearchWeixin", - Handler: _Puppet_FriendshipSearchWeixin_Handler, - }, - { - MethodName: "FriendshipAdd", - Handler: _Puppet_FriendshipAdd_Handler, - }, - { - MethodName: "FrendshipAccept", - Handler: _Puppet_FrendshipAccept_Handler, - }, - { - MethodName: "MessagePayload", - Handler: _Puppet_MessagePayload_Handler, - }, - { - MethodName: "MessageContact", - Handler: _Puppet_MessageContact_Handler, - }, - { - MethodName: "MessageFile", - Handler: _Puppet_MessageFile_Handler, - }, - { - MethodName: "MessageImage", - Handler: _Puppet_MessageImage_Handler, - }, - { - MethodName: "MessageMiniProgram", - Handler: _Puppet_MessageMiniProgram_Handler, - }, - { - MethodName: "MessageUrl", - Handler: _Puppet_MessageUrl_Handler, - }, - { - MethodName: "MessageSendContact", - Handler: _Puppet_MessageSendContact_Handler, - }, - { - MethodName: "MessageSendFile", - Handler: _Puppet_MessageSendFile_Handler, - }, - { - MethodName: "MessageSendText", - Handler: _Puppet_MessageSendText_Handler, - }, - { - MethodName: "MessageSendMiniProgram", - Handler: _Puppet_MessageSendMiniProgram_Handler, - }, - { - MethodName: "MessageSendUrl", - Handler: _Puppet_MessageSendUrl_Handler, - }, - { - MethodName: "MessageRecall", - Handler: _Puppet_MessageRecall_Handler, - }, - { - MethodName: "RoomPayload", - Handler: _Puppet_RoomPayload_Handler, - }, - { - MethodName: "RoomList", - Handler: _Puppet_RoomList_Handler, - }, - { - MethodName: "RoomAdd", - Handler: _Puppet_RoomAdd_Handler, - }, - { - MethodName: "RoomAvatar", - Handler: _Puppet_RoomAvatar_Handler, - }, - { - MethodName: "RoomCreate", - Handler: _Puppet_RoomCreate_Handler, - }, - { - MethodName: "RoomDel", - Handler: _Puppet_RoomDel_Handler, - }, - { - MethodName: "RoomQuit", - Handler: _Puppet_RoomQuit_Handler, - }, - { - MethodName: "RoomTopic", - Handler: _Puppet_RoomTopic_Handler, - }, - { - MethodName: "RoomQRCode", - Handler: _Puppet_RoomQRCode_Handler, - }, - { - MethodName: "RoomAnnounce", - Handler: _Puppet_RoomAnnounce_Handler, - }, - { - MethodName: "RoomMemberPayload", - Handler: _Puppet_RoomMemberPayload_Handler, - }, - { - MethodName: "RoomMemberList", - Handler: _Puppet_RoomMemberList_Handler, - }, - { - MethodName: "RoomInvitationPayload", - Handler: _Puppet_RoomInvitationPayload_Handler, - }, - { - MethodName: "RoomInvitationAccept", - Handler: _Puppet_RoomInvitationAccept_Handler, - }, - { - MethodName: "TagContactAdd", - Handler: _Puppet_TagContactAdd_Handler, - }, - { - MethodName: "TagContactRemove", - Handler: _Puppet_TagContactRemove_Handler, - }, - { - MethodName: "TagContactDelete", - Handler: _Puppet_TagContactDelete_Handler, - }, - { - MethodName: "TagContactList", - Handler: _Puppet_TagContactList_Handler, - }, - }, - Streams: []grpc.StreamDesc{ - { - StreamName: "Event", - Handler: _Puppet_Event_Handler, - ServerStreams: true, - }, - }, - Metadata: "puppet.proto", -} diff --git a/go/wechaty/puppet/base.pb.go b/go/wechaty/puppet/base.pb.go deleted file mode 100644 index f9ad6778..00000000 --- a/go/wechaty/puppet/base.pb.go +++ /dev/null @@ -1,379 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// source: base.proto - -package puppet - -import ( - fmt "fmt" - proto "github.com/golang/protobuf/proto" - math "math" -) - -// Reference imports to suppress errors if they are not otherwise used. -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.ProtoPackageIsVersion3 // please upgrade the proto package - -type StartRequest struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *StartRequest) Reset() { *m = StartRequest{} } -func (m *StartRequest) String() string { return proto.CompactTextString(m) } -func (*StartRequest) ProtoMessage() {} -func (*StartRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_db1b6b0986796150, []int{0} -} - -func (m *StartRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_StartRequest.Unmarshal(m, b) -} -func (m *StartRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_StartRequest.Marshal(b, m, deterministic) -} -func (m *StartRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_StartRequest.Merge(m, src) -} -func (m *StartRequest) XXX_Size() int { - return xxx_messageInfo_StartRequest.Size(m) -} -func (m *StartRequest) XXX_DiscardUnknown() { - xxx_messageInfo_StartRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_StartRequest proto.InternalMessageInfo - -type StartResponse struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *StartResponse) Reset() { *m = StartResponse{} } -func (m *StartResponse) String() string { return proto.CompactTextString(m) } -func (*StartResponse) ProtoMessage() {} -func (*StartResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_db1b6b0986796150, []int{1} -} - -func (m *StartResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_StartResponse.Unmarshal(m, b) -} -func (m *StartResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_StartResponse.Marshal(b, m, deterministic) -} -func (m *StartResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_StartResponse.Merge(m, src) -} -func (m *StartResponse) XXX_Size() int { - return xxx_messageInfo_StartResponse.Size(m) -} -func (m *StartResponse) XXX_DiscardUnknown() { - xxx_messageInfo_StartResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_StartResponse proto.InternalMessageInfo - -type StopRequest struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *StopRequest) Reset() { *m = StopRequest{} } -func (m *StopRequest) String() string { return proto.CompactTextString(m) } -func (*StopRequest) ProtoMessage() {} -func (*StopRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_db1b6b0986796150, []int{2} -} - -func (m *StopRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_StopRequest.Unmarshal(m, b) -} -func (m *StopRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_StopRequest.Marshal(b, m, deterministic) -} -func (m *StopRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_StopRequest.Merge(m, src) -} -func (m *StopRequest) XXX_Size() int { - return xxx_messageInfo_StopRequest.Size(m) -} -func (m *StopRequest) XXX_DiscardUnknown() { - xxx_messageInfo_StopRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_StopRequest proto.InternalMessageInfo - -type StopResponse struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *StopResponse) Reset() { *m = StopResponse{} } -func (m *StopResponse) String() string { return proto.CompactTextString(m) } -func (*StopResponse) ProtoMessage() {} -func (*StopResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_db1b6b0986796150, []int{3} -} - -func (m *StopResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_StopResponse.Unmarshal(m, b) -} -func (m *StopResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_StopResponse.Marshal(b, m, deterministic) -} -func (m *StopResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_StopResponse.Merge(m, src) -} -func (m *StopResponse) XXX_Size() int { - return xxx_messageInfo_StopResponse.Size(m) -} -func (m *StopResponse) XXX_DiscardUnknown() { - xxx_messageInfo_StopResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_StopResponse proto.InternalMessageInfo - -type VersionRequest struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *VersionRequest) Reset() { *m = VersionRequest{} } -func (m *VersionRequest) String() string { return proto.CompactTextString(m) } -func (*VersionRequest) ProtoMessage() {} -func (*VersionRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_db1b6b0986796150, []int{4} -} - -func (m *VersionRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_VersionRequest.Unmarshal(m, b) -} -func (m *VersionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_VersionRequest.Marshal(b, m, deterministic) -} -func (m *VersionRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_VersionRequest.Merge(m, src) -} -func (m *VersionRequest) XXX_Size() int { - return xxx_messageInfo_VersionRequest.Size(m) -} -func (m *VersionRequest) XXX_DiscardUnknown() { - xxx_messageInfo_VersionRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_VersionRequest proto.InternalMessageInfo - -type VersionResponse struct { - Version string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *VersionResponse) Reset() { *m = VersionResponse{} } -func (m *VersionResponse) String() string { return proto.CompactTextString(m) } -func (*VersionResponse) ProtoMessage() {} -func (*VersionResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_db1b6b0986796150, []int{5} -} - -func (m *VersionResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_VersionResponse.Unmarshal(m, b) -} -func (m *VersionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_VersionResponse.Marshal(b, m, deterministic) -} -func (m *VersionResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_VersionResponse.Merge(m, src) -} -func (m *VersionResponse) XXX_Size() int { - return xxx_messageInfo_VersionResponse.Size(m) -} -func (m *VersionResponse) XXX_DiscardUnknown() { - xxx_messageInfo_VersionResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_VersionResponse proto.InternalMessageInfo - -func (m *VersionResponse) GetVersion() string { - if m != nil { - return m.Version - } - return "" -} - -type LogoutRequest struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *LogoutRequest) Reset() { *m = LogoutRequest{} } -func (m *LogoutRequest) String() string { return proto.CompactTextString(m) } -func (*LogoutRequest) ProtoMessage() {} -func (*LogoutRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_db1b6b0986796150, []int{6} -} - -func (m *LogoutRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_LogoutRequest.Unmarshal(m, b) -} -func (m *LogoutRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_LogoutRequest.Marshal(b, m, deterministic) -} -func (m *LogoutRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_LogoutRequest.Merge(m, src) -} -func (m *LogoutRequest) XXX_Size() int { - return xxx_messageInfo_LogoutRequest.Size(m) -} -func (m *LogoutRequest) XXX_DiscardUnknown() { - xxx_messageInfo_LogoutRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_LogoutRequest proto.InternalMessageInfo - -type LogoutResponse struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *LogoutResponse) Reset() { *m = LogoutResponse{} } -func (m *LogoutResponse) String() string { return proto.CompactTextString(m) } -func (*LogoutResponse) ProtoMessage() {} -func (*LogoutResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_db1b6b0986796150, []int{7} -} - -func (m *LogoutResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_LogoutResponse.Unmarshal(m, b) -} -func (m *LogoutResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_LogoutResponse.Marshal(b, m, deterministic) -} -func (m *LogoutResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_LogoutResponse.Merge(m, src) -} -func (m *LogoutResponse) XXX_Size() int { - return xxx_messageInfo_LogoutResponse.Size(m) -} -func (m *LogoutResponse) XXX_DiscardUnknown() { - xxx_messageInfo_LogoutResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_LogoutResponse proto.InternalMessageInfo - -type DingRequest struct { - Data string `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *DingRequest) Reset() { *m = DingRequest{} } -func (m *DingRequest) String() string { return proto.CompactTextString(m) } -func (*DingRequest) ProtoMessage() {} -func (*DingRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_db1b6b0986796150, []int{8} -} - -func (m *DingRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_DingRequest.Unmarshal(m, b) -} -func (m *DingRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_DingRequest.Marshal(b, m, deterministic) -} -func (m *DingRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_DingRequest.Merge(m, src) -} -func (m *DingRequest) XXX_Size() int { - return xxx_messageInfo_DingRequest.Size(m) -} -func (m *DingRequest) XXX_DiscardUnknown() { - xxx_messageInfo_DingRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_DingRequest proto.InternalMessageInfo - -func (m *DingRequest) GetData() string { - if m != nil { - return m.Data - } - return "" -} - -type DingResponse struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *DingResponse) Reset() { *m = DingResponse{} } -func (m *DingResponse) String() string { return proto.CompactTextString(m) } -func (*DingResponse) ProtoMessage() {} -func (*DingResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_db1b6b0986796150, []int{9} -} - -func (m *DingResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_DingResponse.Unmarshal(m, b) -} -func (m *DingResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_DingResponse.Marshal(b, m, deterministic) -} -func (m *DingResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_DingResponse.Merge(m, src) -} -func (m *DingResponse) XXX_Size() int { - return xxx_messageInfo_DingResponse.Size(m) -} -func (m *DingResponse) XXX_DiscardUnknown() { - xxx_messageInfo_DingResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_DingResponse proto.InternalMessageInfo - -func init() { - proto.RegisterType((*StartRequest)(nil), "wechaty.puppet.StartRequest") - proto.RegisterType((*StartResponse)(nil), "wechaty.puppet.StartResponse") - proto.RegisterType((*StopRequest)(nil), "wechaty.puppet.StopRequest") - proto.RegisterType((*StopResponse)(nil), "wechaty.puppet.StopResponse") - proto.RegisterType((*VersionRequest)(nil), "wechaty.puppet.VersionRequest") - proto.RegisterType((*VersionResponse)(nil), "wechaty.puppet.VersionResponse") - proto.RegisterType((*LogoutRequest)(nil), "wechaty.puppet.LogoutRequest") - proto.RegisterType((*LogoutResponse)(nil), "wechaty.puppet.LogoutResponse") - proto.RegisterType((*DingRequest)(nil), "wechaty.puppet.DingRequest") - proto.RegisterType((*DingResponse)(nil), "wechaty.puppet.DingResponse") -} - -func init() { proto.RegisterFile("base.proto", fileDescriptor_db1b6b0986796150) } - -var fileDescriptor_db1b6b0986796150 = []byte{ - // 207 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x3c, 0x90, 0x41, 0x4f, 0xc4, 0x20, - 0x10, 0x85, 0xb3, 0x89, 0xd1, 0x38, 0xeb, 0xb2, 0x1b, 0x4e, 0x3d, 0x6a, 0x4f, 0x8d, 0x26, 0xe5, - 0xe0, 0x3f, 0x30, 0x1e, 0x3d, 0xb5, 0x89, 0x07, 0x6f, 0xb4, 0x4e, 0x28, 0x07, 0x3b, 0x08, 0x83, - 0xc6, 0x7f, 0x6f, 0x28, 0xd0, 0x1b, 0xef, 0xcd, 0x07, 0x8f, 0x79, 0x00, 0x93, 0x0e, 0xd8, 0x3b, - 0x4f, 0x4c, 0x52, 0xfc, 0xe2, 0xbc, 0x68, 0xfe, 0xeb, 0x5d, 0x74, 0x0e, 0xb9, 0x15, 0x70, 0x37, - 0xb2, 0xf6, 0x3c, 0xe0, 0x77, 0xc4, 0xc0, 0xed, 0x19, 0x4e, 0x45, 0x07, 0x47, 0x6b, 0xc0, 0xf6, - 0x04, 0xc7, 0x91, 0xc9, 0xd5, 0xf9, 0xc6, 0x27, 0x59, 0xc6, 0x17, 0x10, 0xef, 0xe8, 0x83, 0xa5, - 0xb5, 0x12, 0x4f, 0x70, 0xde, 0x9d, 0x0c, 0xc9, 0x06, 0x6e, 0x7e, 0xb2, 0xd5, 0x1c, 0xee, 0x0f, - 0xdd, 0xed, 0x50, 0x65, 0x8a, 0x7b, 0x23, 0x43, 0x71, 0xcf, 0xbf, 0x80, 0xa8, 0x46, 0x49, 0x78, - 0x80, 0xe3, 0xab, 0x5d, 0x4d, 0x01, 0xa4, 0x84, 0xab, 0x4f, 0xcd, 0xba, 0x3c, 0xb4, 0x9d, 0xd3, - 0xa7, 0x32, 0x92, 0xaf, 0xbc, 0x3c, 0x7e, 0x74, 0xc6, 0xf2, 0x12, 0xa7, 0x7e, 0xa6, 0x2f, 0x95, - 0xf6, 0xb5, 0xa8, 0x8c, 0x77, 0xb3, 0x32, 0xa4, 0x4a, 0x01, 0x2a, 0x17, 0x30, 0x5d, 0x6f, 0xbd, - 0x3c, 0xff, 0x07, 0x00, 0x00, 0xff, 0xff, 0x27, 0x4a, 0xb6, 0xa0, 0x25, 0x01, 0x00, 0x00, -} diff --git a/go/wechaty/puppet/contact.pb.go b/go/wechaty/puppet/contact.pb.go deleted file mode 100644 index df99e8e2..00000000 --- a/go/wechaty/puppet/contact.pb.go +++ /dev/null @@ -1,771 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// source: contact.proto - -package puppet - -import ( - fmt "fmt" - proto "github.com/golang/protobuf/proto" - wrappers "github.com/golang/protobuf/ptypes/wrappers" - math "math" -) - -// Reference imports to suppress errors if they are not otherwise used. -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.ProtoPackageIsVersion3 // please upgrade the proto package - -type ContactGender int32 - -const ( - ContactGender_CONTACT_GENDER_UNSPECIFIED ContactGender = 0 - ContactGender_CONTACT_GENDER_MALE ContactGender = 1 - ContactGender_CONTACT_GENDER_FEMALE ContactGender = 2 -) - -var ContactGender_name = map[int32]string{ - 0: "CONTACT_GENDER_UNSPECIFIED", - 1: "CONTACT_GENDER_MALE", - 2: "CONTACT_GENDER_FEMALE", -} - -var ContactGender_value = map[string]int32{ - "CONTACT_GENDER_UNSPECIFIED": 0, - "CONTACT_GENDER_MALE": 1, - "CONTACT_GENDER_FEMALE": 2, -} - -func (x ContactGender) String() string { - return proto.EnumName(ContactGender_name, int32(x)) -} - -func (ContactGender) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_a5036fff2565fb15, []int{0} -} - -type ContactType int32 - -const ( - ContactType_CONTACT_TYPE_UNSPECIFIED ContactType = 0 - ContactType_CONTACT_TYPE_PERSONAL ContactType = 1 - ContactType_CONTACT_TYPE_OFFICIAL ContactType = 2 -) - -var ContactType_name = map[int32]string{ - 0: "CONTACT_TYPE_UNSPECIFIED", - 1: "CONTACT_TYPE_PERSONAL", - 2: "CONTACT_TYPE_OFFICIAL", -} - -var ContactType_value = map[string]int32{ - "CONTACT_TYPE_UNSPECIFIED": 0, - "CONTACT_TYPE_PERSONAL": 1, - "CONTACT_TYPE_OFFICIAL": 2, -} - -func (x ContactType) String() string { - return proto.EnumName(ContactType_name, int32(x)) -} - -func (ContactType) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_a5036fff2565fb15, []int{1} -} - -type ContactListRequest struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ContactListRequest) Reset() { *m = ContactListRequest{} } -func (m *ContactListRequest) String() string { return proto.CompactTextString(m) } -func (*ContactListRequest) ProtoMessage() {} -func (*ContactListRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_a5036fff2565fb15, []int{0} -} - -func (m *ContactListRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ContactListRequest.Unmarshal(m, b) -} -func (m *ContactListRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ContactListRequest.Marshal(b, m, deterministic) -} -func (m *ContactListRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_ContactListRequest.Merge(m, src) -} -func (m *ContactListRequest) XXX_Size() int { - return xxx_messageInfo_ContactListRequest.Size(m) -} -func (m *ContactListRequest) XXX_DiscardUnknown() { - xxx_messageInfo_ContactListRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_ContactListRequest proto.InternalMessageInfo - -type ContactListResponse struct { - Ids []string `protobuf:"bytes,1,rep,name=ids,proto3" json:"ids,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ContactListResponse) Reset() { *m = ContactListResponse{} } -func (m *ContactListResponse) String() string { return proto.CompactTextString(m) } -func (*ContactListResponse) ProtoMessage() {} -func (*ContactListResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_a5036fff2565fb15, []int{1} -} - -func (m *ContactListResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ContactListResponse.Unmarshal(m, b) -} -func (m *ContactListResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ContactListResponse.Marshal(b, m, deterministic) -} -func (m *ContactListResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_ContactListResponse.Merge(m, src) -} -func (m *ContactListResponse) XXX_Size() int { - return xxx_messageInfo_ContactListResponse.Size(m) -} -func (m *ContactListResponse) XXX_DiscardUnknown() { - xxx_messageInfo_ContactListResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_ContactListResponse proto.InternalMessageInfo - -func (m *ContactListResponse) GetIds() []string { - if m != nil { - return m.Ids - } - return nil -} - -type ContactPayloadRequest struct { - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ContactPayloadRequest) Reset() { *m = ContactPayloadRequest{} } -func (m *ContactPayloadRequest) String() string { return proto.CompactTextString(m) } -func (*ContactPayloadRequest) ProtoMessage() {} -func (*ContactPayloadRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_a5036fff2565fb15, []int{2} -} - -func (m *ContactPayloadRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ContactPayloadRequest.Unmarshal(m, b) -} -func (m *ContactPayloadRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ContactPayloadRequest.Marshal(b, m, deterministic) -} -func (m *ContactPayloadRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_ContactPayloadRequest.Merge(m, src) -} -func (m *ContactPayloadRequest) XXX_Size() int { - return xxx_messageInfo_ContactPayloadRequest.Size(m) -} -func (m *ContactPayloadRequest) XXX_DiscardUnknown() { - xxx_messageInfo_ContactPayloadRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_ContactPayloadRequest proto.InternalMessageInfo - -func (m *ContactPayloadRequest) GetId() string { - if m != nil { - return m.Id - } - return "" -} - -type ContactPayloadResponse struct { - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - Gender ContactGender `protobuf:"varint,2,opt,name=gender,proto3,enum=wechaty.puppet.ContactGender" json:"gender,omitempty"` - Type ContactType `protobuf:"varint,3,opt,name=type,proto3,enum=wechaty.puppet.ContactType" json:"type,omitempty"` - Name string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"` - Avatar string `protobuf:"bytes,5,opt,name=avatar,proto3" json:"avatar,omitempty"` - Address string `protobuf:"bytes,6,opt,name=address,proto3" json:"address,omitempty"` - Alias string `protobuf:"bytes,7,opt,name=alias,proto3" json:"alias,omitempty"` - City string `protobuf:"bytes,8,opt,name=city,proto3" json:"city,omitempty"` - Friend bool `protobuf:"varint,9,opt,name=friend,proto3" json:"friend,omitempty"` - Province string `protobuf:"bytes,10,opt,name=province,proto3" json:"province,omitempty"` - Signature string `protobuf:"bytes,11,opt,name=signature,proto3" json:"signature,omitempty"` - Star bool `protobuf:"varint,12,opt,name=star,proto3" json:"star,omitempty"` - Weixin string `protobuf:"bytes,13,opt,name=weixin,proto3" json:"weixin,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ContactPayloadResponse) Reset() { *m = ContactPayloadResponse{} } -func (m *ContactPayloadResponse) String() string { return proto.CompactTextString(m) } -func (*ContactPayloadResponse) ProtoMessage() {} -func (*ContactPayloadResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_a5036fff2565fb15, []int{3} -} - -func (m *ContactPayloadResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ContactPayloadResponse.Unmarshal(m, b) -} -func (m *ContactPayloadResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ContactPayloadResponse.Marshal(b, m, deterministic) -} -func (m *ContactPayloadResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_ContactPayloadResponse.Merge(m, src) -} -func (m *ContactPayloadResponse) XXX_Size() int { - return xxx_messageInfo_ContactPayloadResponse.Size(m) -} -func (m *ContactPayloadResponse) XXX_DiscardUnknown() { - xxx_messageInfo_ContactPayloadResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_ContactPayloadResponse proto.InternalMessageInfo - -func (m *ContactPayloadResponse) GetId() string { - if m != nil { - return m.Id - } - return "" -} - -func (m *ContactPayloadResponse) GetGender() ContactGender { - if m != nil { - return m.Gender - } - return ContactGender_CONTACT_GENDER_UNSPECIFIED -} - -func (m *ContactPayloadResponse) GetType() ContactType { - if m != nil { - return m.Type - } - return ContactType_CONTACT_TYPE_UNSPECIFIED -} - -func (m *ContactPayloadResponse) GetName() string { - if m != nil { - return m.Name - } - return "" -} - -func (m *ContactPayloadResponse) GetAvatar() string { - if m != nil { - return m.Avatar - } - return "" -} - -func (m *ContactPayloadResponse) GetAddress() string { - if m != nil { - return m.Address - } - return "" -} - -func (m *ContactPayloadResponse) GetAlias() string { - if m != nil { - return m.Alias - } - return "" -} - -func (m *ContactPayloadResponse) GetCity() string { - if m != nil { - return m.City - } - return "" -} - -func (m *ContactPayloadResponse) GetFriend() bool { - if m != nil { - return m.Friend - } - return false -} - -func (m *ContactPayloadResponse) GetProvince() string { - if m != nil { - return m.Province - } - return "" -} - -func (m *ContactPayloadResponse) GetSignature() string { - if m != nil { - return m.Signature - } - return "" -} - -func (m *ContactPayloadResponse) GetStar() bool { - if m != nil { - return m.Star - } - return false -} - -func (m *ContactPayloadResponse) GetWeixin() string { - if m != nil { - return m.Weixin - } - return "" -} - -type ContactSelfQRCodeRequest struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ContactSelfQRCodeRequest) Reset() { *m = ContactSelfQRCodeRequest{} } -func (m *ContactSelfQRCodeRequest) String() string { return proto.CompactTextString(m) } -func (*ContactSelfQRCodeRequest) ProtoMessage() {} -func (*ContactSelfQRCodeRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_a5036fff2565fb15, []int{4} -} - -func (m *ContactSelfQRCodeRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ContactSelfQRCodeRequest.Unmarshal(m, b) -} -func (m *ContactSelfQRCodeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ContactSelfQRCodeRequest.Marshal(b, m, deterministic) -} -func (m *ContactSelfQRCodeRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_ContactSelfQRCodeRequest.Merge(m, src) -} -func (m *ContactSelfQRCodeRequest) XXX_Size() int { - return xxx_messageInfo_ContactSelfQRCodeRequest.Size(m) -} -func (m *ContactSelfQRCodeRequest) XXX_DiscardUnknown() { - xxx_messageInfo_ContactSelfQRCodeRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_ContactSelfQRCodeRequest proto.InternalMessageInfo - -type ContactSelfQRCodeResponse struct { - Qrcode string `protobuf:"bytes,1,opt,name=qrcode,proto3" json:"qrcode,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ContactSelfQRCodeResponse) Reset() { *m = ContactSelfQRCodeResponse{} } -func (m *ContactSelfQRCodeResponse) String() string { return proto.CompactTextString(m) } -func (*ContactSelfQRCodeResponse) ProtoMessage() {} -func (*ContactSelfQRCodeResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_a5036fff2565fb15, []int{5} -} - -func (m *ContactSelfQRCodeResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ContactSelfQRCodeResponse.Unmarshal(m, b) -} -func (m *ContactSelfQRCodeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ContactSelfQRCodeResponse.Marshal(b, m, deterministic) -} -func (m *ContactSelfQRCodeResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_ContactSelfQRCodeResponse.Merge(m, src) -} -func (m *ContactSelfQRCodeResponse) XXX_Size() int { - return xxx_messageInfo_ContactSelfQRCodeResponse.Size(m) -} -func (m *ContactSelfQRCodeResponse) XXX_DiscardUnknown() { - xxx_messageInfo_ContactSelfQRCodeResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_ContactSelfQRCodeResponse proto.InternalMessageInfo - -func (m *ContactSelfQRCodeResponse) GetQrcode() string { - if m != nil { - return m.Qrcode - } - return "" -} - -type ContactSelfNameRequest struct { - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ContactSelfNameRequest) Reset() { *m = ContactSelfNameRequest{} } -func (m *ContactSelfNameRequest) String() string { return proto.CompactTextString(m) } -func (*ContactSelfNameRequest) ProtoMessage() {} -func (*ContactSelfNameRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_a5036fff2565fb15, []int{6} -} - -func (m *ContactSelfNameRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ContactSelfNameRequest.Unmarshal(m, b) -} -func (m *ContactSelfNameRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ContactSelfNameRequest.Marshal(b, m, deterministic) -} -func (m *ContactSelfNameRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_ContactSelfNameRequest.Merge(m, src) -} -func (m *ContactSelfNameRequest) XXX_Size() int { - return xxx_messageInfo_ContactSelfNameRequest.Size(m) -} -func (m *ContactSelfNameRequest) XXX_DiscardUnknown() { - xxx_messageInfo_ContactSelfNameRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_ContactSelfNameRequest proto.InternalMessageInfo - -func (m *ContactSelfNameRequest) GetName() string { - if m != nil { - return m.Name - } - return "" -} - -type ContactSelfNameResponse struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ContactSelfNameResponse) Reset() { *m = ContactSelfNameResponse{} } -func (m *ContactSelfNameResponse) String() string { return proto.CompactTextString(m) } -func (*ContactSelfNameResponse) ProtoMessage() {} -func (*ContactSelfNameResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_a5036fff2565fb15, []int{7} -} - -func (m *ContactSelfNameResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ContactSelfNameResponse.Unmarshal(m, b) -} -func (m *ContactSelfNameResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ContactSelfNameResponse.Marshal(b, m, deterministic) -} -func (m *ContactSelfNameResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_ContactSelfNameResponse.Merge(m, src) -} -func (m *ContactSelfNameResponse) XXX_Size() int { - return xxx_messageInfo_ContactSelfNameResponse.Size(m) -} -func (m *ContactSelfNameResponse) XXX_DiscardUnknown() { - xxx_messageInfo_ContactSelfNameResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_ContactSelfNameResponse proto.InternalMessageInfo - -type ContactSelfSignatureRequest struct { - Signature string `protobuf:"bytes,1,opt,name=signature,proto3" json:"signature,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ContactSelfSignatureRequest) Reset() { *m = ContactSelfSignatureRequest{} } -func (m *ContactSelfSignatureRequest) String() string { return proto.CompactTextString(m) } -func (*ContactSelfSignatureRequest) ProtoMessage() {} -func (*ContactSelfSignatureRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_a5036fff2565fb15, []int{8} -} - -func (m *ContactSelfSignatureRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ContactSelfSignatureRequest.Unmarshal(m, b) -} -func (m *ContactSelfSignatureRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ContactSelfSignatureRequest.Marshal(b, m, deterministic) -} -func (m *ContactSelfSignatureRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_ContactSelfSignatureRequest.Merge(m, src) -} -func (m *ContactSelfSignatureRequest) XXX_Size() int { - return xxx_messageInfo_ContactSelfSignatureRequest.Size(m) -} -func (m *ContactSelfSignatureRequest) XXX_DiscardUnknown() { - xxx_messageInfo_ContactSelfSignatureRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_ContactSelfSignatureRequest proto.InternalMessageInfo - -func (m *ContactSelfSignatureRequest) GetSignature() string { - if m != nil { - return m.Signature - } - return "" -} - -type ContactSelfSignatureResponse struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ContactSelfSignatureResponse) Reset() { *m = ContactSelfSignatureResponse{} } -func (m *ContactSelfSignatureResponse) String() string { return proto.CompactTextString(m) } -func (*ContactSelfSignatureResponse) ProtoMessage() {} -func (*ContactSelfSignatureResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_a5036fff2565fb15, []int{9} -} - -func (m *ContactSelfSignatureResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ContactSelfSignatureResponse.Unmarshal(m, b) -} -func (m *ContactSelfSignatureResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ContactSelfSignatureResponse.Marshal(b, m, deterministic) -} -func (m *ContactSelfSignatureResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_ContactSelfSignatureResponse.Merge(m, src) -} -func (m *ContactSelfSignatureResponse) XXX_Size() int { - return xxx_messageInfo_ContactSelfSignatureResponse.Size(m) -} -func (m *ContactSelfSignatureResponse) XXX_DiscardUnknown() { - xxx_messageInfo_ContactSelfSignatureResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_ContactSelfSignatureResponse proto.InternalMessageInfo - -type ContactAliasRequest struct { - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - // nullable - Alias *wrappers.StringValue `protobuf:"bytes,2,opt,name=alias,proto3" json:"alias,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ContactAliasRequest) Reset() { *m = ContactAliasRequest{} } -func (m *ContactAliasRequest) String() string { return proto.CompactTextString(m) } -func (*ContactAliasRequest) ProtoMessage() {} -func (*ContactAliasRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_a5036fff2565fb15, []int{10} -} - -func (m *ContactAliasRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ContactAliasRequest.Unmarshal(m, b) -} -func (m *ContactAliasRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ContactAliasRequest.Marshal(b, m, deterministic) -} -func (m *ContactAliasRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_ContactAliasRequest.Merge(m, src) -} -func (m *ContactAliasRequest) XXX_Size() int { - return xxx_messageInfo_ContactAliasRequest.Size(m) -} -func (m *ContactAliasRequest) XXX_DiscardUnknown() { - xxx_messageInfo_ContactAliasRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_ContactAliasRequest proto.InternalMessageInfo - -func (m *ContactAliasRequest) GetId() string { - if m != nil { - return m.Id - } - return "" -} - -func (m *ContactAliasRequest) GetAlias() *wrappers.StringValue { - if m != nil { - return m.Alias - } - return nil -} - -type ContactAliasResponse struct { - Alias *wrappers.StringValue `protobuf:"bytes,1,opt,name=alias,proto3" json:"alias,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ContactAliasResponse) Reset() { *m = ContactAliasResponse{} } -func (m *ContactAliasResponse) String() string { return proto.CompactTextString(m) } -func (*ContactAliasResponse) ProtoMessage() {} -func (*ContactAliasResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_a5036fff2565fb15, []int{11} -} - -func (m *ContactAliasResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ContactAliasResponse.Unmarshal(m, b) -} -func (m *ContactAliasResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ContactAliasResponse.Marshal(b, m, deterministic) -} -func (m *ContactAliasResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_ContactAliasResponse.Merge(m, src) -} -func (m *ContactAliasResponse) XXX_Size() int { - return xxx_messageInfo_ContactAliasResponse.Size(m) -} -func (m *ContactAliasResponse) XXX_DiscardUnknown() { - xxx_messageInfo_ContactAliasResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_ContactAliasResponse proto.InternalMessageInfo - -func (m *ContactAliasResponse) GetAlias() *wrappers.StringValue { - if m != nil { - return m.Alias - } - return nil -} - -type ContactAvatarRequest struct { - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - // nullable - Filebox *wrappers.StringValue `protobuf:"bytes,2,opt,name=filebox,proto3" json:"filebox,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ContactAvatarRequest) Reset() { *m = ContactAvatarRequest{} } -func (m *ContactAvatarRequest) String() string { return proto.CompactTextString(m) } -func (*ContactAvatarRequest) ProtoMessage() {} -func (*ContactAvatarRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_a5036fff2565fb15, []int{12} -} - -func (m *ContactAvatarRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ContactAvatarRequest.Unmarshal(m, b) -} -func (m *ContactAvatarRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ContactAvatarRequest.Marshal(b, m, deterministic) -} -func (m *ContactAvatarRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_ContactAvatarRequest.Merge(m, src) -} -func (m *ContactAvatarRequest) XXX_Size() int { - return xxx_messageInfo_ContactAvatarRequest.Size(m) -} -func (m *ContactAvatarRequest) XXX_DiscardUnknown() { - xxx_messageInfo_ContactAvatarRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_ContactAvatarRequest proto.InternalMessageInfo - -func (m *ContactAvatarRequest) GetId() string { - if m != nil { - return m.Id - } - return "" -} - -func (m *ContactAvatarRequest) GetFilebox() *wrappers.StringValue { - if m != nil { - return m.Filebox - } - return nil -} - -type ContactAvatarResponse struct { - Filebox *wrappers.StringValue `protobuf:"bytes,1,opt,name=filebox,proto3" json:"filebox,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ContactAvatarResponse) Reset() { *m = ContactAvatarResponse{} } -func (m *ContactAvatarResponse) String() string { return proto.CompactTextString(m) } -func (*ContactAvatarResponse) ProtoMessage() {} -func (*ContactAvatarResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_a5036fff2565fb15, []int{13} -} - -func (m *ContactAvatarResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ContactAvatarResponse.Unmarshal(m, b) -} -func (m *ContactAvatarResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ContactAvatarResponse.Marshal(b, m, deterministic) -} -func (m *ContactAvatarResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_ContactAvatarResponse.Merge(m, src) -} -func (m *ContactAvatarResponse) XXX_Size() int { - return xxx_messageInfo_ContactAvatarResponse.Size(m) -} -func (m *ContactAvatarResponse) XXX_DiscardUnknown() { - xxx_messageInfo_ContactAvatarResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_ContactAvatarResponse proto.InternalMessageInfo - -func (m *ContactAvatarResponse) GetFilebox() *wrappers.StringValue { - if m != nil { - return m.Filebox - } - return nil -} - -func init() { - proto.RegisterEnum("wechaty.puppet.ContactGender", ContactGender_name, ContactGender_value) - proto.RegisterEnum("wechaty.puppet.ContactType", ContactType_name, ContactType_value) - proto.RegisterType((*ContactListRequest)(nil), "wechaty.puppet.ContactListRequest") - proto.RegisterType((*ContactListResponse)(nil), "wechaty.puppet.ContactListResponse") - proto.RegisterType((*ContactPayloadRequest)(nil), "wechaty.puppet.ContactPayloadRequest") - proto.RegisterType((*ContactPayloadResponse)(nil), "wechaty.puppet.ContactPayloadResponse") - proto.RegisterType((*ContactSelfQRCodeRequest)(nil), "wechaty.puppet.ContactSelfQRCodeRequest") - proto.RegisterType((*ContactSelfQRCodeResponse)(nil), "wechaty.puppet.ContactSelfQRCodeResponse") - proto.RegisterType((*ContactSelfNameRequest)(nil), "wechaty.puppet.ContactSelfNameRequest") - proto.RegisterType((*ContactSelfNameResponse)(nil), "wechaty.puppet.ContactSelfNameResponse") - proto.RegisterType((*ContactSelfSignatureRequest)(nil), "wechaty.puppet.ContactSelfSignatureRequest") - proto.RegisterType((*ContactSelfSignatureResponse)(nil), "wechaty.puppet.ContactSelfSignatureResponse") - proto.RegisterType((*ContactAliasRequest)(nil), "wechaty.puppet.ContactAliasRequest") - proto.RegisterType((*ContactAliasResponse)(nil), "wechaty.puppet.ContactAliasResponse") - proto.RegisterType((*ContactAvatarRequest)(nil), "wechaty.puppet.ContactAvatarRequest") - proto.RegisterType((*ContactAvatarResponse)(nil), "wechaty.puppet.ContactAvatarResponse") -} - -func init() { proto.RegisterFile("contact.proto", fileDescriptor_a5036fff2565fb15) } - -var fileDescriptor_a5036fff2565fb15 = []byte{ - // 640 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x94, 0x5f, 0x4f, 0xdb, 0x3c, - 0x14, 0xc6, 0xdf, 0x14, 0x28, 0xf4, 0xf0, 0x82, 0x2a, 0xf3, 0xcf, 0x94, 0x0e, 0x55, 0xb9, 0xa1, - 0x42, 0x53, 0x22, 0x81, 0xb6, 0x9b, 0x5d, 0x75, 0x25, 0x45, 0x9d, 0xba, 0xb6, 0x4b, 0xbb, 0x49, - 0xec, 0x62, 0xc8, 0x4d, 0xdc, 0x60, 0xa9, 0xc4, 0xc1, 0x71, 0x81, 0x7e, 0xf9, 0x69, 0x8a, 0xe3, - 0x94, 0x36, 0xa3, 0x12, 0xbb, 0xf3, 0xf1, 0xf3, 0xf8, 0x77, 0xec, 0x73, 0x6c, 0xc3, 0x8e, 0xc7, - 0x43, 0x49, 0x3c, 0x69, 0x45, 0x82, 0x4b, 0x8e, 0x76, 0x9f, 0xa8, 0x77, 0x47, 0xe4, 0xcc, 0x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diff --git a/go/wechaty/puppet/event.pb.go b/go/wechaty/puppet/event.pb.go deleted file mode 100644 index 159bd690..00000000 --- a/go/wechaty/puppet/event.pb.go +++ /dev/null @@ -1,198 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// source: event.proto - -package puppet - -import ( - fmt "fmt" - proto "github.com/golang/protobuf/proto" - math "math" -) - -// Reference imports to suppress errors if they are not otherwise used. -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.ProtoPackageIsVersion3 // please upgrade the proto package - -type EventType int32 - -const ( - EventType_EVENT_TYPE_UNSPECIFIED EventType = 0 - EventType_EVENT_TYPE_HEARTBEAT EventType = 1 - EventType_EVENT_TYPE_MESSAGE EventType = 2 - EventType_EVENT_TYPE_DONG EventType = 3 - EventType_EVENT_TYPE_ERROR EventType = 16 - EventType_EVENT_TYPE_FRIENDSHIP EventType = 17 - EventType_EVENT_TYPE_ROOM_INVITE EventType = 18 - EventType_EVENT_TYPE_ROOM_JOIN EventType = 19 - EventType_EVENT_TYPE_ROOM_LEAVE EventType = 20 - EventType_EVENT_TYPE_ROOM_TOPIC EventType = 21 - EventType_EVENT_TYPE_SCAN EventType = 22 - EventType_EVENT_TYPE_READY EventType = 23 - EventType_EVENT_TYPE_RESET EventType = 24 - EventType_EVENT_TYPE_LOGIN EventType = 25 - EventType_EVENT_TYPE_LOGOUT EventType = 26 -) - -var EventType_name = map[int32]string{ - 0: "EVENT_TYPE_UNSPECIFIED", - 1: "EVENT_TYPE_HEARTBEAT", - 2: "EVENT_TYPE_MESSAGE", - 3: "EVENT_TYPE_DONG", - 16: "EVENT_TYPE_ERROR", - 17: "EVENT_TYPE_FRIENDSHIP", - 18: "EVENT_TYPE_ROOM_INVITE", - 19: "EVENT_TYPE_ROOM_JOIN", - 20: "EVENT_TYPE_ROOM_LEAVE", - 21: "EVENT_TYPE_ROOM_TOPIC", - 22: "EVENT_TYPE_SCAN", - 23: "EVENT_TYPE_READY", - 24: "EVENT_TYPE_RESET", - 25: "EVENT_TYPE_LOGIN", - 26: "EVENT_TYPE_LOGOUT", -} - -var EventType_value = map[string]int32{ - "EVENT_TYPE_UNSPECIFIED": 0, - "EVENT_TYPE_HEARTBEAT": 1, - "EVENT_TYPE_MESSAGE": 2, - "EVENT_TYPE_DONG": 3, - "EVENT_TYPE_ERROR": 16, - "EVENT_TYPE_FRIENDSHIP": 17, - "EVENT_TYPE_ROOM_INVITE": 18, - "EVENT_TYPE_ROOM_JOIN": 19, - "EVENT_TYPE_ROOM_LEAVE": 20, - "EVENT_TYPE_ROOM_TOPIC": 21, - "EVENT_TYPE_SCAN": 22, - "EVENT_TYPE_READY": 23, - "EVENT_TYPE_RESET": 24, - "EVENT_TYPE_LOGIN": 25, - "EVENT_TYPE_LOGOUT": 26, -} - -func (x EventType) String() string { - return proto.EnumName(EventType_name, int32(x)) -} - -func (EventType) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_2d17a9d3f0ddf27e, []int{0} -} - -type EventRequest struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *EventRequest) Reset() { *m = EventRequest{} } -func (m *EventRequest) String() string { return proto.CompactTextString(m) } -func (*EventRequest) ProtoMessage() {} -func (*EventRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_2d17a9d3f0ddf27e, []int{0} -} - -func (m *EventRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_EventRequest.Unmarshal(m, b) -} -func (m *EventRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_EventRequest.Marshal(b, m, deterministic) -} -func (m *EventRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_EventRequest.Merge(m, src) -} -func (m *EventRequest) XXX_Size() int { - return xxx_messageInfo_EventRequest.Size(m) -} -func (m *EventRequest) XXX_DiscardUnknown() { - xxx_messageInfo_EventRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_EventRequest proto.InternalMessageInfo - -type EventResponse struct { - Type EventType `protobuf:"varint,1,opt,name=type,proto3,enum=wechaty.puppet.EventType" json:"type,omitempty"` - // TODO: Huan(202002) consider to use a PB Map? - Payload string `protobuf:"bytes,2,opt,name=payload,proto3" json:"payload,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *EventResponse) Reset() { *m = EventResponse{} } -func (m *EventResponse) String() string { return proto.CompactTextString(m) } -func (*EventResponse) ProtoMessage() {} -func (*EventResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_2d17a9d3f0ddf27e, []int{1} -} - -func (m *EventResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_EventResponse.Unmarshal(m, b) -} -func (m *EventResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_EventResponse.Marshal(b, m, deterministic) -} -func (m *EventResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_EventResponse.Merge(m, src) -} -func (m *EventResponse) XXX_Size() int { - return xxx_messageInfo_EventResponse.Size(m) -} -func (m *EventResponse) XXX_DiscardUnknown() { - xxx_messageInfo_EventResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_EventResponse proto.InternalMessageInfo - -func (m *EventResponse) GetType() EventType { - if m != nil { - return m.Type - } - return EventType_EVENT_TYPE_UNSPECIFIED -} - -func (m *EventResponse) GetPayload() string { - if m != nil { - return m.Payload - } - return "" -} - -func init() { - proto.RegisterEnum("wechaty.puppet.EventType", EventType_name, EventType_value) - proto.RegisterType((*EventRequest)(nil), "wechaty.puppet.EventRequest") - proto.RegisterType((*EventResponse)(nil), "wechaty.puppet.EventResponse") -} - -func init() { proto.RegisterFile("event.proto", fileDescriptor_2d17a9d3f0ddf27e) } - -var fileDescriptor_2d17a9d3f0ddf27e = []byte{ - // 350 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x6c, 0x92, 0xdd, 0xae, 0xd2, 0x40, - 0x14, 0x85, 0x2d, 0x12, 0x95, 0x51, 0x61, 0x33, 0xfc, 0x58, 0xb8, 0x22, 0x5c, 0x11, 0x12, 0xdb, - 0x44, 0x9f, 0xa0, 0xd0, 0x0d, 0x8c, 0x81, 0x99, 0x66, 0x3a, 0x10, 0xf1, 0x86, 0x00, 0x4e, 0x80, - 0x44, 0xe9, 0x08, 0x45, 0xd3, 0xa7, 0xd7, 0x50, 0x39, 0x27, 0xa5, 0xe7, 0x5c, 0xee, 0xef, 0x5b, - 0x6d, 0x56, 0xb2, 0x86, 0xbc, 0xd5, 0xbf, 0xf5, 0x31, 0x76, 0xcc, 0x29, 0x8a, 0x23, 0x5a, 0xfe, - 0xa3, 0xb7, 0xfb, 0x75, 0x9c, 0x38, 0xe6, 0x62, 0x8c, 0x8e, 0xbb, 0x65, 0xf2, 0x0e, 0xaf, 0x5a, - 0xea, 0x5f, 0x17, 0x7d, 0x8e, 0xbb, 0x5f, 0xc9, 0xfb, 0xdb, 0x7d, 0x36, 0xd1, 0xf1, 0xac, 0xe9, - 0x47, 0x52, 0x8c, 0x13, 0xa3, 0x6d, 0xab, 0x63, 0xf5, 0xca, 0x9f, 0x5a, 0xce, 0xfd, 0xf7, 0x4e, - 0x1a, 0x56, 0x89, 0xd1, 0x32, 0x8d, 0x51, 0x9b, 0xbc, 0x36, 0xeb, 0xe4, 0x47, 0xb4, 0xfe, 0x6e, - 0x17, 0x3a, 0x56, 0xaf, 0x24, 0x1f, 0xce, 0xfe, 0xdf, 0x02, 0x29, 0x3d, 0xa6, 0x69, 0x9b, 0x34, - 0x71, 0x81, 0x5c, 0xad, 0xd4, 0x32, 0xc0, 0xd5, 0x9c, 0x87, 0x01, 0x0e, 0xd9, 0x88, 0xa1, 0x0f, - 0x2f, 0xa8, 0x4d, 0xea, 0x19, 0x37, 0x41, 0x4f, 0xaa, 0x01, 0x7a, 0x0a, 0x2c, 0xda, 0x24, 0x34, - 0x63, 0x66, 0x18, 0x86, 0xde, 0x18, 0xa1, 0x40, 0x6b, 0xa4, 0x92, 0xe1, 0xbe, 0xe0, 0x63, 0x78, - 0x49, 0xeb, 0x04, 0x32, 0x10, 0xa5, 0x14, 0x12, 0x80, 0xb6, 0x48, 0x23, 0x43, 0x47, 0x92, 0x21, - 0xf7, 0xc3, 0x09, 0x0b, 0xa0, 0x9a, 0xeb, 0x24, 0x85, 0x98, 0xad, 0x18, 0x5f, 0x30, 0x85, 0x40, - 0x73, 0x9d, 0x52, 0xf7, 0x45, 0x30, 0x0e, 0xb5, 0xdc, 0x0f, 0x53, 0x33, 0x45, 0x6f, 0x81, 0x50, - 0x7f, 0x4e, 0x29, 0x11, 0xb0, 0x21, 0x34, 0x72, 0x8d, 0xc3, 0xa1, 0xc7, 0xa1, 0x99, 0x6b, 0x2c, - 0xd1, 0xf3, 0x97, 0xf0, 0xe1, 0x09, 0x0d, 0x51, 0x81, 0x9d, 0xa3, 0x53, 0x31, 0x66, 0x1c, 0x5a, - 0xb4, 0x41, 0xaa, 0xf7, 0x54, 0xcc, 0x15, 0xb4, 0xbb, 0xc5, 0x37, 0x45, 0xa8, 0x0c, 0xfa, 0xdf, - 0x7a, 0xbb, 0x43, 0xbc, 0xbf, 0x6c, 0x9c, 0x6d, 0xf4, 0xd3, 0xbd, 0xce, 0x78, 0xd0, 0xee, 0xee, - 0x64, 0xb6, 0xee, 0x2e, 0x72, 0x6f, 0xbb, 0xba, 0xff, 0x77, 0xdd, 0xbc, 0x4a, 0x9f, 0xcb, 0xe7, - 0x7f, 0x01, 0x00, 0x00, 0xff, 0xff, 0x5b, 0x0c, 0x58, 0xa5, 0x3d, 0x02, 0x00, 0x00, -} diff --git a/go/wechaty/puppet/friendship.pb.go b/go/wechaty/puppet/friendship.pb.go deleted file mode 100644 index d0dc8b56..00000000 --- a/go/wechaty/puppet/friendship.pb.go +++ /dev/null @@ -1,610 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// source: friendship.proto - -package puppet - -import ( - fmt "fmt" - proto "github.com/golang/protobuf/proto" - wrappers "github.com/golang/protobuf/ptypes/wrappers" - math "math" -) - -// Reference imports to suppress errors if they are not otherwise used. -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.ProtoPackageIsVersion3 // please upgrade the proto package - -type FriendshipType int32 - -const ( - FriendshipType_FRIENDSHIP_TYPE_UNSPECIFIED FriendshipType = 0 - FriendshipType_FRIENDSHIP_TYPE_CONFIRM FriendshipType = 1 - FriendshipType_FRIENDSHIP_TYPE_RECEIVE FriendshipType = 2 - FriendshipType_FRIENDSHIP_TYPE_VERIFY FriendshipType = 3 -) - -var FriendshipType_name = map[int32]string{ - 0: "FRIENDSHIP_TYPE_UNSPECIFIED", - 1: "FRIENDSHIP_TYPE_CONFIRM", - 2: "FRIENDSHIP_TYPE_RECEIVE", - 3: "FRIENDSHIP_TYPE_VERIFY", -} - -var FriendshipType_value = map[string]int32{ - "FRIENDSHIP_TYPE_UNSPECIFIED": 0, - "FRIENDSHIP_TYPE_CONFIRM": 1, - "FRIENDSHIP_TYPE_RECEIVE": 2, - "FRIENDSHIP_TYPE_VERIFY": 3, -} - -func (x FriendshipType) String() string { - return proto.EnumName(FriendshipType_name, int32(x)) -} - -func (FriendshipType) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_d4164b89dcff7420, []int{0} -} - -type FriendshipSceneType int32 - -const ( - FriendshipSceneType_FRIENDSHIP_SCENE_TYPE_UNSPECIFIED FriendshipSceneType = 0 - FriendshipSceneType_FRIENDSHIP_SCENE_TYPE_QQ FriendshipSceneType = 1 - FriendshipSceneType_FRIENDSHIP_SCENE_TYPE_EMAIL FriendshipSceneType = 2 - FriendshipSceneType_FRIENDSHIP_SCENE_TYPE_WEIXIN FriendshipSceneType = 3 - FriendshipSceneType_FRIENDSHIP_SCENE_TYPE_QQTBD FriendshipSceneType = 12 - FriendshipSceneType_FRIENDSHIP_SCENE_TYPE_ROOM FriendshipSceneType = 14 - FriendshipSceneType_FRIENDSHIP_SCENE_TYPE_PHONE FriendshipSceneType = 15 - FriendshipSceneType_FRIENDSHIP_SCENE_TYPE_CARD FriendshipSceneType = 17 - FriendshipSceneType_FRIENDSHIP_SCENE_TYPE_LOCATION FriendshipSceneType = 18 - FriendshipSceneType_FRIENDSHIP_SCENE_TYPE_BOTTLE FriendshipSceneType = 25 - FriendshipSceneType_FRIENDSHIP_SCENE_TYPE_SHAKING FriendshipSceneType = 29 - FriendshipSceneType_FRIENDSHIP_SCENE_TYPE_QRCODE FriendshipSceneType = 30 -) - -var FriendshipSceneType_name = map[int32]string{ - 0: "FRIENDSHIP_SCENE_TYPE_UNSPECIFIED", - 1: "FRIENDSHIP_SCENE_TYPE_QQ", - 2: "FRIENDSHIP_SCENE_TYPE_EMAIL", - 3: "FRIENDSHIP_SCENE_TYPE_WEIXIN", - 12: "FRIENDSHIP_SCENE_TYPE_QQTBD", - 14: "FRIENDSHIP_SCENE_TYPE_ROOM", - 15: "FRIENDSHIP_SCENE_TYPE_PHONE", - 17: "FRIENDSHIP_SCENE_TYPE_CARD", - 18: "FRIENDSHIP_SCENE_TYPE_LOCATION", - 25: "FRIENDSHIP_SCENE_TYPE_BOTTLE", - 29: "FRIENDSHIP_SCENE_TYPE_SHAKING", - 30: "FRIENDSHIP_SCENE_TYPE_QRCODE", -} - -var FriendshipSceneType_value = map[string]int32{ - "FRIENDSHIP_SCENE_TYPE_UNSPECIFIED": 0, - "FRIENDSHIP_SCENE_TYPE_QQ": 1, - "FRIENDSHIP_SCENE_TYPE_EMAIL": 2, - "FRIENDSHIP_SCENE_TYPE_WEIXIN": 3, - "FRIENDSHIP_SCENE_TYPE_QQTBD": 12, - "FRIENDSHIP_SCENE_TYPE_ROOM": 14, - "FRIENDSHIP_SCENE_TYPE_PHONE": 15, - "FRIENDSHIP_SCENE_TYPE_CARD": 17, - "FRIENDSHIP_SCENE_TYPE_LOCATION": 18, - "FRIENDSHIP_SCENE_TYPE_BOTTLE": 25, - "FRIENDSHIP_SCENE_TYPE_SHAKING": 29, - "FRIENDSHIP_SCENE_TYPE_QRCODE": 30, -} - -func (x FriendshipSceneType) String() string { - return proto.EnumName(FriendshipSceneType_name, int32(x)) -} - -func (FriendshipSceneType) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_d4164b89dcff7420, []int{1} -} - -type FriendshipPayloadRequest struct { - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - Payload *wrappers.StringValue `protobuf:"bytes,2,opt,name=payload,proto3" json:"payload,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *FriendshipPayloadRequest) Reset() { *m = FriendshipPayloadRequest{} } -func (m *FriendshipPayloadRequest) String() string { return proto.CompactTextString(m) } -func (*FriendshipPayloadRequest) ProtoMessage() {} -func (*FriendshipPayloadRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_d4164b89dcff7420, []int{0} -} - -func (m *FriendshipPayloadRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_FriendshipPayloadRequest.Unmarshal(m, b) -} -func (m *FriendshipPayloadRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_FriendshipPayloadRequest.Marshal(b, m, deterministic) -} -func (m *FriendshipPayloadRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_FriendshipPayloadRequest.Merge(m, src) -} -func (m *FriendshipPayloadRequest) XXX_Size() int { - return xxx_messageInfo_FriendshipPayloadRequest.Size(m) -} -func (m *FriendshipPayloadRequest) XXX_DiscardUnknown() { - xxx_messageInfo_FriendshipPayloadRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_FriendshipPayloadRequest proto.InternalMessageInfo - -func (m *FriendshipPayloadRequest) GetId() string { - if m != nil { - return m.Id - } - return "" -} - -func (m *FriendshipPayloadRequest) GetPayload() *wrappers.StringValue { - if m != nil { - return m.Payload - } - return nil -} - -type FriendshipPayloadResponse struct { - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - ContactId string `protobuf:"bytes,2,opt,name=contact_id,json=contactId,proto3" json:"contact_id,omitempty"` - Hello string `protobuf:"bytes,3,opt,name=hello,proto3" json:"hello,omitempty"` - Type FriendshipType `protobuf:"varint,4,opt,name=type,proto3,enum=wechaty.puppet.FriendshipType" json:"type,omitempty"` - Stranger string `protobuf:"bytes,5,opt,name=stranger,proto3" json:"stranger,omitempty"` - Ticket string `protobuf:"bytes,6,opt,name=ticket,proto3" json:"ticket,omitempty"` - Scene FriendshipSceneType `protobuf:"varint,7,opt,name=scene,proto3,enum=wechaty.puppet.FriendshipSceneType" json:"scene,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *FriendshipPayloadResponse) Reset() { *m = FriendshipPayloadResponse{} } -func (m *FriendshipPayloadResponse) String() string { return proto.CompactTextString(m) } -func (*FriendshipPayloadResponse) ProtoMessage() {} -func (*FriendshipPayloadResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_d4164b89dcff7420, []int{1} -} - -func (m *FriendshipPayloadResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_FriendshipPayloadResponse.Unmarshal(m, b) -} -func (m *FriendshipPayloadResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_FriendshipPayloadResponse.Marshal(b, m, deterministic) -} -func (m *FriendshipPayloadResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_FriendshipPayloadResponse.Merge(m, src) -} -func (m *FriendshipPayloadResponse) XXX_Size() int { - return xxx_messageInfo_FriendshipPayloadResponse.Size(m) -} -func (m *FriendshipPayloadResponse) XXX_DiscardUnknown() { - xxx_messageInfo_FriendshipPayloadResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_FriendshipPayloadResponse proto.InternalMessageInfo - -func (m *FriendshipPayloadResponse) GetId() string { - if m != nil { - return m.Id - } - return "" -} - -func (m *FriendshipPayloadResponse) GetContactId() string { - if m != nil { - return m.ContactId - } - return "" -} - -func (m *FriendshipPayloadResponse) GetHello() string { - if m != nil { - return m.Hello - } - return "" -} - -func (m *FriendshipPayloadResponse) GetType() FriendshipType { - if m != nil { - return m.Type - } - return FriendshipType_FRIENDSHIP_TYPE_UNSPECIFIED -} - -func (m *FriendshipPayloadResponse) GetStranger() string { - if m != nil { - return m.Stranger - } - return "" -} - -func (m *FriendshipPayloadResponse) GetTicket() string { - if m != nil { - return m.Ticket - } - return "" -} - -func (m *FriendshipPayloadResponse) GetScene() FriendshipSceneType { - if m != nil { - return m.Scene - } - return FriendshipSceneType_FRIENDSHIP_SCENE_TYPE_UNSPECIFIED -} - -type FriendshipSearchPhoneRequest struct { - Phone string `protobuf:"bytes,1,opt,name=phone,proto3" json:"phone,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *FriendshipSearchPhoneRequest) Reset() { *m = FriendshipSearchPhoneRequest{} } -func (m *FriendshipSearchPhoneRequest) String() string { return proto.CompactTextString(m) } -func (*FriendshipSearchPhoneRequest) ProtoMessage() {} -func (*FriendshipSearchPhoneRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_d4164b89dcff7420, []int{2} -} - -func (m *FriendshipSearchPhoneRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_FriendshipSearchPhoneRequest.Unmarshal(m, b) -} -func (m *FriendshipSearchPhoneRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_FriendshipSearchPhoneRequest.Marshal(b, m, deterministic) -} -func (m *FriendshipSearchPhoneRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_FriendshipSearchPhoneRequest.Merge(m, src) -} -func (m *FriendshipSearchPhoneRequest) XXX_Size() int { - return xxx_messageInfo_FriendshipSearchPhoneRequest.Size(m) -} -func (m *FriendshipSearchPhoneRequest) XXX_DiscardUnknown() { - xxx_messageInfo_FriendshipSearchPhoneRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_FriendshipSearchPhoneRequest proto.InternalMessageInfo - -func (m *FriendshipSearchPhoneRequest) GetPhone() string { - if m != nil { - return m.Phone - } - return "" -} - -type FriendshipSearchPhoneResponse struct { - // nullable - ContactId *wrappers.StringValue `protobuf:"bytes,1,opt,name=contact_id,json=contactId,proto3" json:"contact_id,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *FriendshipSearchPhoneResponse) Reset() { *m = FriendshipSearchPhoneResponse{} } -func (m *FriendshipSearchPhoneResponse) String() string { return proto.CompactTextString(m) } -func (*FriendshipSearchPhoneResponse) ProtoMessage() {} -func (*FriendshipSearchPhoneResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_d4164b89dcff7420, []int{3} -} - -func (m *FriendshipSearchPhoneResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_FriendshipSearchPhoneResponse.Unmarshal(m, b) -} -func (m *FriendshipSearchPhoneResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_FriendshipSearchPhoneResponse.Marshal(b, m, deterministic) -} -func (m *FriendshipSearchPhoneResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_FriendshipSearchPhoneResponse.Merge(m, src) -} -func (m *FriendshipSearchPhoneResponse) XXX_Size() int { - return xxx_messageInfo_FriendshipSearchPhoneResponse.Size(m) -} -func (m *FriendshipSearchPhoneResponse) XXX_DiscardUnknown() { - xxx_messageInfo_FriendshipSearchPhoneResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_FriendshipSearchPhoneResponse proto.InternalMessageInfo - -func (m *FriendshipSearchPhoneResponse) GetContactId() *wrappers.StringValue { - if m != nil { - return m.ContactId - } - return nil -} - -type FriendshipSearchWeixinRequest struct { - Weixin string `protobuf:"bytes,1,opt,name=weixin,proto3" json:"weixin,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *FriendshipSearchWeixinRequest) Reset() { *m = FriendshipSearchWeixinRequest{} } -func (m *FriendshipSearchWeixinRequest) String() string { return proto.CompactTextString(m) } -func (*FriendshipSearchWeixinRequest) ProtoMessage() {} -func (*FriendshipSearchWeixinRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_d4164b89dcff7420, []int{4} -} - -func (m *FriendshipSearchWeixinRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_FriendshipSearchWeixinRequest.Unmarshal(m, b) -} -func (m *FriendshipSearchWeixinRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_FriendshipSearchWeixinRequest.Marshal(b, m, deterministic) -} -func (m *FriendshipSearchWeixinRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_FriendshipSearchWeixinRequest.Merge(m, src) -} -func (m *FriendshipSearchWeixinRequest) XXX_Size() int { - return xxx_messageInfo_FriendshipSearchWeixinRequest.Size(m) -} -func (m *FriendshipSearchWeixinRequest) XXX_DiscardUnknown() { - xxx_messageInfo_FriendshipSearchWeixinRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_FriendshipSearchWeixinRequest proto.InternalMessageInfo - -func (m *FriendshipSearchWeixinRequest) GetWeixin() string { - if m != nil { - return m.Weixin - } - return "" -} - -type FriendshipSearchWeixinResponse struct { - // nullable - ContactId *wrappers.StringValue `protobuf:"bytes,1,opt,name=contact_id,json=contactId,proto3" json:"contact_id,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *FriendshipSearchWeixinResponse) Reset() { *m = FriendshipSearchWeixinResponse{} } -func (m *FriendshipSearchWeixinResponse) String() string { return proto.CompactTextString(m) } -func (*FriendshipSearchWeixinResponse) ProtoMessage() {} -func (*FriendshipSearchWeixinResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_d4164b89dcff7420, []int{5} -} - -func (m *FriendshipSearchWeixinResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_FriendshipSearchWeixinResponse.Unmarshal(m, b) -} -func (m *FriendshipSearchWeixinResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_FriendshipSearchWeixinResponse.Marshal(b, m, deterministic) -} -func (m *FriendshipSearchWeixinResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_FriendshipSearchWeixinResponse.Merge(m, src) -} -func (m *FriendshipSearchWeixinResponse) XXX_Size() int { - return xxx_messageInfo_FriendshipSearchWeixinResponse.Size(m) -} -func (m *FriendshipSearchWeixinResponse) XXX_DiscardUnknown() { - xxx_messageInfo_FriendshipSearchWeixinResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_FriendshipSearchWeixinResponse proto.InternalMessageInfo - -func (m *FriendshipSearchWeixinResponse) GetContactId() *wrappers.StringValue { - if m != nil { - return m.ContactId - } - return nil -} - -type FriendshipAddRequest struct { - ContactId string `protobuf:"bytes,1,opt,name=contact_id,json=contactId,proto3" json:"contact_id,omitempty"` - Hello string `protobuf:"bytes,2,opt,name=hello,proto3" json:"hello,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *FriendshipAddRequest) Reset() { *m = FriendshipAddRequest{} } -func (m *FriendshipAddRequest) String() string { return proto.CompactTextString(m) } -func (*FriendshipAddRequest) ProtoMessage() {} -func (*FriendshipAddRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_d4164b89dcff7420, []int{6} -} - -func (m *FriendshipAddRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_FriendshipAddRequest.Unmarshal(m, b) -} -func (m *FriendshipAddRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_FriendshipAddRequest.Marshal(b, m, deterministic) -} -func (m *FriendshipAddRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_FriendshipAddRequest.Merge(m, src) -} -func (m *FriendshipAddRequest) XXX_Size() int { - return xxx_messageInfo_FriendshipAddRequest.Size(m) -} -func (m *FriendshipAddRequest) XXX_DiscardUnknown() { - xxx_messageInfo_FriendshipAddRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_FriendshipAddRequest proto.InternalMessageInfo - -func (m *FriendshipAddRequest) GetContactId() string { - if m != nil { - return m.ContactId - } - return "" -} - -func (m *FriendshipAddRequest) GetHello() string { - if m != nil { - return m.Hello - } - return "" -} - -type FriendshipAddResponse struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *FriendshipAddResponse) Reset() { *m = FriendshipAddResponse{} } -func (m *FriendshipAddResponse) String() string { return proto.CompactTextString(m) } -func (*FriendshipAddResponse) ProtoMessage() {} -func (*FriendshipAddResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_d4164b89dcff7420, []int{7} -} - -func (m *FriendshipAddResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_FriendshipAddResponse.Unmarshal(m, b) -} -func (m *FriendshipAddResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_FriendshipAddResponse.Marshal(b, m, deterministic) -} -func (m *FriendshipAddResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_FriendshipAddResponse.Merge(m, src) -} -func (m *FriendshipAddResponse) XXX_Size() int { - return xxx_messageInfo_FriendshipAddResponse.Size(m) -} -func (m *FriendshipAddResponse) XXX_DiscardUnknown() { - xxx_messageInfo_FriendshipAddResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_FriendshipAddResponse proto.InternalMessageInfo - -type FriendshipAcceptRequest struct { - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *FriendshipAcceptRequest) Reset() { *m = FriendshipAcceptRequest{} } -func (m *FriendshipAcceptRequest) String() string { return proto.CompactTextString(m) } -func (*FriendshipAcceptRequest) ProtoMessage() {} -func (*FriendshipAcceptRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_d4164b89dcff7420, []int{8} -} - -func (m *FriendshipAcceptRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_FriendshipAcceptRequest.Unmarshal(m, b) -} -func (m *FriendshipAcceptRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_FriendshipAcceptRequest.Marshal(b, m, deterministic) -} -func (m *FriendshipAcceptRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_FriendshipAcceptRequest.Merge(m, src) -} -func (m *FriendshipAcceptRequest) XXX_Size() int { - return xxx_messageInfo_FriendshipAcceptRequest.Size(m) -} -func (m *FriendshipAcceptRequest) XXX_DiscardUnknown() { - xxx_messageInfo_FriendshipAcceptRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_FriendshipAcceptRequest proto.InternalMessageInfo - -func (m *FriendshipAcceptRequest) GetId() string { - if m != nil { - return m.Id - } - return "" -} - -type FriendshipAcceptResponse struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *FriendshipAcceptResponse) Reset() { *m = FriendshipAcceptResponse{} } -func (m *FriendshipAcceptResponse) String() string { return proto.CompactTextString(m) } -func (*FriendshipAcceptResponse) ProtoMessage() {} -func (*FriendshipAcceptResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_d4164b89dcff7420, []int{9} -} - -func (m *FriendshipAcceptResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_FriendshipAcceptResponse.Unmarshal(m, b) -} -func (m *FriendshipAcceptResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_FriendshipAcceptResponse.Marshal(b, m, deterministic) -} -func (m *FriendshipAcceptResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_FriendshipAcceptResponse.Merge(m, src) -} -func (m *FriendshipAcceptResponse) XXX_Size() int { - return xxx_messageInfo_FriendshipAcceptResponse.Size(m) -} -func (m *FriendshipAcceptResponse) XXX_DiscardUnknown() { - xxx_messageInfo_FriendshipAcceptResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_FriendshipAcceptResponse proto.InternalMessageInfo - -func init() { - proto.RegisterEnum("wechaty.puppet.FriendshipType", FriendshipType_name, FriendshipType_value) - proto.RegisterEnum("wechaty.puppet.FriendshipSceneType", FriendshipSceneType_name, FriendshipSceneType_value) - proto.RegisterType((*FriendshipPayloadRequest)(nil), "wechaty.puppet.FriendshipPayloadRequest") - proto.RegisterType((*FriendshipPayloadResponse)(nil), "wechaty.puppet.FriendshipPayloadResponse") - proto.RegisterType((*FriendshipSearchPhoneRequest)(nil), "wechaty.puppet.FriendshipSearchPhoneRequest") - proto.RegisterType((*FriendshipSearchPhoneResponse)(nil), "wechaty.puppet.FriendshipSearchPhoneResponse") - proto.RegisterType((*FriendshipSearchWeixinRequest)(nil), "wechaty.puppet.FriendshipSearchWeixinRequest") - proto.RegisterType((*FriendshipSearchWeixinResponse)(nil), "wechaty.puppet.FriendshipSearchWeixinResponse") - proto.RegisterType((*FriendshipAddRequest)(nil), "wechaty.puppet.FriendshipAddRequest") - proto.RegisterType((*FriendshipAddResponse)(nil), "wechaty.puppet.FriendshipAddResponse") - proto.RegisterType((*FriendshipAcceptRequest)(nil), "wechaty.puppet.FriendshipAcceptRequest") - proto.RegisterType((*FriendshipAcceptResponse)(nil), "wechaty.puppet.FriendshipAcceptResponse") -} - -func init() { proto.RegisterFile("friendship.proto", fileDescriptor_d4164b89dcff7420) } - -var fileDescriptor_d4164b89dcff7420 = []byte{ - // 642 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x94, 0x51, 0x4f, 0xd3, 0x50, - 0x14, 0xc7, 0x6d, 0xc7, 0x86, 0x1c, 0xcd, 0xbc, 0x5e, 0x11, 0xca, 0xd8, 0xe6, 0xa8, 0x31, 0x99, - 0x3c, 0xb4, 0x09, 0x1a, 0x8d, 0xf1, 0x69, 0x74, 0x77, 0xd2, 0x00, 0xed, 0xd6, 0x4d, 0x10, 0xa3, - 0x21, 0x5d, 0x77, 0xe9, 0x1a, 0x67, 0x7b, 0x6d, 0xef, 0x82, 0x7b, 0xf6, 0xc1, 0xef, 0xe2, 0xa7, - 0x34, 0xb4, 0x1d, 0x8c, 0xd1, 0x26, 0x3e, 0xf8, 0x78, 0xfa, 0xff, 0x9f, 0xdf, 0x39, 0xf7, 0xf4, - 0xdc, 0x0b, 0xe8, 0x22, 0xf4, 0xa8, 0x3f, 0x8a, 0xc6, 0x1e, 0x53, 0x58, 0x18, 0xf0, 0x00, 0x97, - 0x2f, 0xa9, 0x33, 0xb6, 0xf9, 0x4c, 0x61, 0x53, 0xc6, 0x28, 0xaf, 0xd4, 0xdd, 0x20, 0x70, 0x27, - 0x54, 0x8d, 0xd5, 0xe1, 0xf4, 0x42, 0xbd, 0x0c, 0x6d, 0xc6, 0x68, 0x18, 0x25, 0x7e, 0x79, 0x08, - 0x52, 0xe7, 0x9a, 0xd1, 0xb5, 0x67, 0x93, 0xc0, 0x1e, 0x59, 0xf4, 0xc7, 0x94, 0x46, 0x1c, 0x97, - 0x41, 0xf4, 0x46, 0x92, 0x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0x86, 0x53, 0xa2, 0x7f, 0xd2, 0x0d, 0x54, 0xc8, 0x47, 0xf4, 0x7a, 0x83, 0xfd, 0x36, 0x7a, 0x88, - 0xeb, 0x50, 0xc9, 0x36, 0x58, 0xa6, 0x79, 0x8c, 0xca, 0xf9, 0x80, 0xee, 0x81, 0x69, 0x10, 0xf4, - 0x28, 0x1f, 0xa0, 0xb5, 0xac, 0x36, 0x7a, 0x8c, 0x65, 0xa8, 0x67, 0xeb, 0x47, 0xa6, 0xd6, 0x1a, - 0xe8, 0xa6, 0x81, 0x70, 0xfe, 0x39, 0xf6, 0xcd, 0xc1, 0xe0, 0x88, 0xa0, 0x2d, 0xbc, 0x03, 0xb5, - 0x6c, 0x47, 0xff, 0xa0, 0x75, 0xa8, 0x1b, 0x1f, 0x50, 0x2d, 0x1f, 0xd2, 0xb3, 0x34, 0xb3, 0x4d, - 0x50, 0x7d, 0x7f, 0xf7, 0x73, 0xd3, 0xf5, 0xf8, 0x78, 0x3a, 0x54, 0x9c, 0xe0, 0xbb, 0x7a, 0xf5, - 0x8a, 0x78, 0x54, 0x75, 0x43, 0xe6, 0xa8, 0x6e, 0xa0, 0xa6, 0xcf, 0x8a, 0x9a, 0x3c, 0x2b, 0xc3, - 0x52, 0x7c, 0x61, 0x5e, 0xfd, 0x0d, 0x00, 0x00, 0xff, 0xff, 0x62, 0x60, 0xb7, 0x24, 0xf0, 0x05, - 0x00, 0x00, -} diff --git a/go/wechaty/puppet/message.pb.go b/go/wechaty/puppet/message.pb.go deleted file mode 100644 index b51b5cda..00000000 --- a/go/wechaty/puppet/message.pb.go +++ /dev/null @@ -1,1267 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// source: message.proto - -package puppet - -import ( - fmt "fmt" - proto "github.com/golang/protobuf/proto" - wrappers "github.com/golang/protobuf/ptypes/wrappers" - math "math" -) - -// Reference imports to suppress errors if they are not otherwise used. -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.ProtoPackageIsVersion3 // please upgrade the proto package - -type MessageType int32 - -const ( - MessageType_MESSAGE_TYPE_UNSPECIFIED MessageType = 0 - MessageType_MESSAGE_TYPE_ATTACHMENT MessageType = 1 - MessageType_MESSAGE_TYPE_AUDIO MessageType = 2 - MessageType_MESSAGE_TYPE_CONTACT MessageType = 3 - MessageType_MESSAGE_TYPE_EMOTICON MessageType = 4 - MessageType_MESSAGE_TYPE_IMAGE MessageType = 5 - MessageType_MESSAGE_TYPE_TEXT MessageType = 6 - MessageType_MESSAGE_TYPE_VIDEO MessageType = 7 - MessageType_MESSAGE_TYPE_CHAT_HISTORY MessageType = 8 - MessageType_MESSAGE_TYPE_LOCATION MessageType = 9 - MessageType_MESSAGE_TYPE_MINI_PROGRAM MessageType = 10 - MessageType_MESSAGE_TYPE_TRANSFER MessageType = 11 - MessageType_MESSAGE_TYPE_RED_ENVELOPE MessageType = 12 - MessageType_MESSAGE_TYPE_RECALLED MessageType = 13 - MessageType_MESSAGE_TYPE_URL MessageType = 14 -) - -var MessageType_name = map[int32]string{ - 0: "MESSAGE_TYPE_UNSPECIFIED", - 1: "MESSAGE_TYPE_ATTACHMENT", - 2: "MESSAGE_TYPE_AUDIO", - 3: "MESSAGE_TYPE_CONTACT", - 4: "MESSAGE_TYPE_EMOTICON", - 5: "MESSAGE_TYPE_IMAGE", - 6: "MESSAGE_TYPE_TEXT", - 7: "MESSAGE_TYPE_VIDEO", - 8: "MESSAGE_TYPE_CHAT_HISTORY", - 9: "MESSAGE_TYPE_LOCATION", - 10: "MESSAGE_TYPE_MINI_PROGRAM", - 11: "MESSAGE_TYPE_TRANSFER", - 12: "MESSAGE_TYPE_RED_ENVELOPE", - 13: "MESSAGE_TYPE_RECALLED", - 14: "MESSAGE_TYPE_URL", -} - -var MessageType_value = map[string]int32{ - "MESSAGE_TYPE_UNSPECIFIED": 0, - "MESSAGE_TYPE_ATTACHMENT": 1, - "MESSAGE_TYPE_AUDIO": 2, - "MESSAGE_TYPE_CONTACT": 3, - "MESSAGE_TYPE_EMOTICON": 4, - "MESSAGE_TYPE_IMAGE": 5, - "MESSAGE_TYPE_TEXT": 6, - "MESSAGE_TYPE_VIDEO": 7, - "MESSAGE_TYPE_CHAT_HISTORY": 8, - "MESSAGE_TYPE_LOCATION": 9, - "MESSAGE_TYPE_MINI_PROGRAM": 10, - "MESSAGE_TYPE_TRANSFER": 11, - "MESSAGE_TYPE_RED_ENVELOPE": 12, - "MESSAGE_TYPE_RECALLED": 13, - "MESSAGE_TYPE_URL": 14, -} - -func (x MessageType) String() string { - return proto.EnumName(MessageType_name, int32(x)) -} - -func (MessageType) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_33c57e4bae7b9afd, []int{0} -} - -type ImageType int32 - -const ( - ImageType_IMAGE_TYPE_UNSPECIFIED ImageType = 0 - ImageType_IMAGE_TYPE_THUMBNAIL ImageType = 1 - ImageType_IMAGE_TYPE_HD ImageType = 2 - ImageType_IMAGE_TYPE_ARTWORK ImageType = 3 -) - -var ImageType_name = map[int32]string{ - 0: "IMAGE_TYPE_UNSPECIFIED", - 1: "IMAGE_TYPE_THUMBNAIL", - 2: "IMAGE_TYPE_HD", - 3: "IMAGE_TYPE_ARTWORK", -} - -var ImageType_value = map[string]int32{ - "IMAGE_TYPE_UNSPECIFIED": 0, - "IMAGE_TYPE_THUMBNAIL": 1, - "IMAGE_TYPE_HD": 2, - "IMAGE_TYPE_ARTWORK": 3, -} - -func (x ImageType) String() string { - return proto.EnumName(ImageType_name, int32(x)) -} - -func (ImageType) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_33c57e4bae7b9afd, []int{1} -} - -type MessagePayloadRequest struct { - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *MessagePayloadRequest) Reset() { *m = MessagePayloadRequest{} } -func (m *MessagePayloadRequest) String() string { return proto.CompactTextString(m) } -func (*MessagePayloadRequest) ProtoMessage() {} -func (*MessagePayloadRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_33c57e4bae7b9afd, []int{0} -} - -func (m *MessagePayloadRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_MessagePayloadRequest.Unmarshal(m, b) -} -func (m *MessagePayloadRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_MessagePayloadRequest.Marshal(b, m, deterministic) -} -func (m *MessagePayloadRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_MessagePayloadRequest.Merge(m, src) -} -func (m *MessagePayloadRequest) XXX_Size() int { - return xxx_messageInfo_MessagePayloadRequest.Size(m) -} -func (m *MessagePayloadRequest) XXX_DiscardUnknown() { - xxx_messageInfo_MessagePayloadRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_MessagePayloadRequest proto.InternalMessageInfo - -func (m *MessagePayloadRequest) GetId() string { - if m != nil { - return m.Id - } - return "" -} - -type MessagePayloadResponse struct { - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - Filename string `protobuf:"bytes,2,opt,name=filename,proto3" json:"filename,omitempty"` - Text string `protobuf:"bytes,3,opt,name=text,proto3" json:"text,omitempty"` - Timestamp uint64 `protobuf:"varint,4,opt,name=timestamp,proto3" json:"timestamp,omitempty"` - Type MessageType `protobuf:"varint,5,opt,name=type,proto3,enum=wechaty.puppet.MessageType" json:"type,omitempty"` - FromId string `protobuf:"bytes,6,opt,name=from_id,json=fromId,proto3" json:"from_id,omitempty"` - RoomId string `protobuf:"bytes,7,opt,name=room_id,json=roomId,proto3" json:"room_id,omitempty"` - ToId string `protobuf:"bytes,8,opt,name=to_id,json=toId,proto3" json:"to_id,omitempty"` - MentionIds []string `protobuf:"bytes,9,rep,name=mention_ids,json=mentionIds,proto3" json:"mention_ids,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *MessagePayloadResponse) Reset() { *m = MessagePayloadResponse{} } -func (m *MessagePayloadResponse) String() string { return proto.CompactTextString(m) } -func (*MessagePayloadResponse) ProtoMessage() {} -func (*MessagePayloadResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_33c57e4bae7b9afd, []int{1} -} - -func (m *MessagePayloadResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_MessagePayloadResponse.Unmarshal(m, b) -} -func (m *MessagePayloadResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_MessagePayloadResponse.Marshal(b, m, deterministic) -} -func (m *MessagePayloadResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_MessagePayloadResponse.Merge(m, src) -} -func (m *MessagePayloadResponse) XXX_Size() int { - return xxx_messageInfo_MessagePayloadResponse.Size(m) -} -func (m *MessagePayloadResponse) XXX_DiscardUnknown() { - xxx_messageInfo_MessagePayloadResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_MessagePayloadResponse proto.InternalMessageInfo - -func (m *MessagePayloadResponse) GetId() string { - if m != nil { - return m.Id - } - return "" -} - -func (m *MessagePayloadResponse) GetFilename() string { - if m != nil { - return m.Filename - } - return "" -} - -func (m *MessagePayloadResponse) GetText() string { - if m != nil { - return m.Text - } - return "" -} - -func (m *MessagePayloadResponse) GetTimestamp() uint64 { - if m != nil { - return m.Timestamp - } - return 0 -} - -func (m *MessagePayloadResponse) GetType() MessageType { - if m != nil { - return m.Type - } - return MessageType_MESSAGE_TYPE_UNSPECIFIED -} - -func (m *MessagePayloadResponse) GetFromId() string { - if m != nil { - return m.FromId - } - return "" -} - -func (m *MessagePayloadResponse) GetRoomId() string { - if m != nil { - return m.RoomId - } - return "" -} - -func (m *MessagePayloadResponse) GetToId() string { - if m != nil { - return m.ToId - } - return "" -} - -func (m *MessagePayloadResponse) GetMentionIds() []string { - if m != nil { - return m.MentionIds - } - return nil -} - -type MessageImageRequest struct { - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - Type ImageType `protobuf:"varint,2,opt,name=type,proto3,enum=wechaty.puppet.ImageType" json:"type,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *MessageImageRequest) Reset() { *m = MessageImageRequest{} } -func (m *MessageImageRequest) String() string { return proto.CompactTextString(m) } -func (*MessageImageRequest) ProtoMessage() {} -func (*MessageImageRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_33c57e4bae7b9afd, []int{2} -} - -func (m *MessageImageRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_MessageImageRequest.Unmarshal(m, b) -} -func (m *MessageImageRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_MessageImageRequest.Marshal(b, m, deterministic) -} -func (m *MessageImageRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_MessageImageRequest.Merge(m, src) -} -func (m *MessageImageRequest) XXX_Size() int { - return xxx_messageInfo_MessageImageRequest.Size(m) -} -func (m *MessageImageRequest) XXX_DiscardUnknown() { - xxx_messageInfo_MessageImageRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_MessageImageRequest proto.InternalMessageInfo - -func (m *MessageImageRequest) GetId() string { - if m != nil { - return m.Id - } - return "" -} - -func (m *MessageImageRequest) GetType() ImageType { - if m != nil { - return m.Type - } - return ImageType_IMAGE_TYPE_UNSPECIFIED -} - -type MessageImageResponse struct { - Filebox string `protobuf:"bytes,1,opt,name=filebox,proto3" json:"filebox,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *MessageImageResponse) Reset() { *m = MessageImageResponse{} } -func (m *MessageImageResponse) String() string { return proto.CompactTextString(m) } -func (*MessageImageResponse) ProtoMessage() {} -func (*MessageImageResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_33c57e4bae7b9afd, []int{3} -} - -func (m *MessageImageResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_MessageImageResponse.Unmarshal(m, b) -} -func (m *MessageImageResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_MessageImageResponse.Marshal(b, m, deterministic) -} -func (m *MessageImageResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_MessageImageResponse.Merge(m, src) -} -func (m *MessageImageResponse) XXX_Size() int { - return xxx_messageInfo_MessageImageResponse.Size(m) -} -func (m *MessageImageResponse) XXX_DiscardUnknown() { - xxx_messageInfo_MessageImageResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_MessageImageResponse proto.InternalMessageInfo - -func (m *MessageImageResponse) GetFilebox() string { - if m != nil { - return m.Filebox - } - return "" -} - -type MessageContactRequest struct { - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *MessageContactRequest) Reset() { *m = MessageContactRequest{} } -func (m *MessageContactRequest) String() string { return proto.CompactTextString(m) } -func (*MessageContactRequest) ProtoMessage() {} -func (*MessageContactRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_33c57e4bae7b9afd, []int{4} -} - -func (m *MessageContactRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_MessageContactRequest.Unmarshal(m, b) -} -func (m *MessageContactRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_MessageContactRequest.Marshal(b, m, deterministic) -} -func (m *MessageContactRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_MessageContactRequest.Merge(m, src) -} -func (m *MessageContactRequest) XXX_Size() int { - return xxx_messageInfo_MessageContactRequest.Size(m) -} -func (m *MessageContactRequest) XXX_DiscardUnknown() { - xxx_messageInfo_MessageContactRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_MessageContactRequest proto.InternalMessageInfo - -func (m *MessageContactRequest) GetId() string { - if m != nil { - return m.Id - } - return "" -} - -type MessageContactResponse struct { - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *MessageContactResponse) Reset() { *m = MessageContactResponse{} } -func (m *MessageContactResponse) String() string { return proto.CompactTextString(m) } -func (*MessageContactResponse) ProtoMessage() {} -func (*MessageContactResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_33c57e4bae7b9afd, []int{5} -} - -func (m *MessageContactResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_MessageContactResponse.Unmarshal(m, b) -} -func (m *MessageContactResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_MessageContactResponse.Marshal(b, m, deterministic) -} -func (m *MessageContactResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_MessageContactResponse.Merge(m, src) -} -func (m *MessageContactResponse) XXX_Size() int { - return xxx_messageInfo_MessageContactResponse.Size(m) -} -func (m *MessageContactResponse) XXX_DiscardUnknown() { - xxx_messageInfo_MessageContactResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_MessageContactResponse proto.InternalMessageInfo - -func (m *MessageContactResponse) GetId() string { - if m != nil { - return m.Id - } - return "" -} - -type MessageFileRequest struct { - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *MessageFileRequest) Reset() { *m = MessageFileRequest{} } -func (m *MessageFileRequest) String() string { return proto.CompactTextString(m) } -func (*MessageFileRequest) ProtoMessage() {} -func (*MessageFileRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_33c57e4bae7b9afd, []int{6} -} - -func (m *MessageFileRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_MessageFileRequest.Unmarshal(m, b) -} -func (m *MessageFileRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_MessageFileRequest.Marshal(b, m, deterministic) -} -func (m *MessageFileRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_MessageFileRequest.Merge(m, src) -} -func (m *MessageFileRequest) XXX_Size() int { - return xxx_messageInfo_MessageFileRequest.Size(m) -} -func (m *MessageFileRequest) XXX_DiscardUnknown() { - xxx_messageInfo_MessageFileRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_MessageFileRequest proto.InternalMessageInfo - -func (m *MessageFileRequest) GetId() string { - if m != nil { - return m.Id - } - return "" -} - -type MessageFileResponse struct { - Filebox string `protobuf:"bytes,1,opt,name=filebox,proto3" json:"filebox,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *MessageFileResponse) Reset() { *m = MessageFileResponse{} } -func (m *MessageFileResponse) String() string { return proto.CompactTextString(m) } -func (*MessageFileResponse) ProtoMessage() {} -func (*MessageFileResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_33c57e4bae7b9afd, []int{7} -} - -func (m *MessageFileResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_MessageFileResponse.Unmarshal(m, b) -} -func (m *MessageFileResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_MessageFileResponse.Marshal(b, m, deterministic) -} -func (m *MessageFileResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_MessageFileResponse.Merge(m, src) -} -func (m *MessageFileResponse) XXX_Size() int { - return xxx_messageInfo_MessageFileResponse.Size(m) -} -func (m *MessageFileResponse) XXX_DiscardUnknown() { - xxx_messageInfo_MessageFileResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_MessageFileResponse proto.InternalMessageInfo - -func (m *MessageFileResponse) GetFilebox() string { - if m != nil { - return m.Filebox - } - return "" -} - -type MessageMiniProgramRequest struct { - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *MessageMiniProgramRequest) Reset() { *m = MessageMiniProgramRequest{} } -func (m *MessageMiniProgramRequest) String() string { return proto.CompactTextString(m) } -func (*MessageMiniProgramRequest) ProtoMessage() {} -func (*MessageMiniProgramRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_33c57e4bae7b9afd, []int{8} -} - -func (m *MessageMiniProgramRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_MessageMiniProgramRequest.Unmarshal(m, b) -} -func (m *MessageMiniProgramRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_MessageMiniProgramRequest.Marshal(b, m, deterministic) -} -func (m *MessageMiniProgramRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_MessageMiniProgramRequest.Merge(m, src) -} -func (m *MessageMiniProgramRequest) XXX_Size() int { - return xxx_messageInfo_MessageMiniProgramRequest.Size(m) -} -func (m *MessageMiniProgramRequest) XXX_DiscardUnknown() { - xxx_messageInfo_MessageMiniProgramRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_MessageMiniProgramRequest proto.InternalMessageInfo - -func (m *MessageMiniProgramRequest) GetId() string { - if m != nil { - return m.Id - } - return "" -} - -type MessageMiniProgramResponse struct { - MiniProgram string `protobuf:"bytes,1,opt,name=mini_program,json=miniProgram,proto3" json:"mini_program,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *MessageMiniProgramResponse) Reset() { *m = MessageMiniProgramResponse{} } -func (m *MessageMiniProgramResponse) String() string { return proto.CompactTextString(m) } -func (*MessageMiniProgramResponse) ProtoMessage() {} -func (*MessageMiniProgramResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_33c57e4bae7b9afd, []int{9} -} - -func (m *MessageMiniProgramResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_MessageMiniProgramResponse.Unmarshal(m, b) -} -func (m *MessageMiniProgramResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_MessageMiniProgramResponse.Marshal(b, m, deterministic) -} -func (m *MessageMiniProgramResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_MessageMiniProgramResponse.Merge(m, src) -} -func (m *MessageMiniProgramResponse) XXX_Size() int { - return xxx_messageInfo_MessageMiniProgramResponse.Size(m) -} -func (m *MessageMiniProgramResponse) XXX_DiscardUnknown() { - xxx_messageInfo_MessageMiniProgramResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_MessageMiniProgramResponse proto.InternalMessageInfo - -func (m *MessageMiniProgramResponse) GetMiniProgram() string { - if m != nil { - return m.MiniProgram - } - return "" -} - -type MessageUrlRequest struct { - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *MessageUrlRequest) Reset() { *m = MessageUrlRequest{} } -func (m *MessageUrlRequest) String() string { return proto.CompactTextString(m) } -func (*MessageUrlRequest) ProtoMessage() {} -func (*MessageUrlRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_33c57e4bae7b9afd, []int{10} -} - -func (m *MessageUrlRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_MessageUrlRequest.Unmarshal(m, b) -} -func (m *MessageUrlRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_MessageUrlRequest.Marshal(b, m, deterministic) -} -func (m *MessageUrlRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_MessageUrlRequest.Merge(m, src) -} -func (m *MessageUrlRequest) XXX_Size() int { - return xxx_messageInfo_MessageUrlRequest.Size(m) -} -func (m *MessageUrlRequest) XXX_DiscardUnknown() { - xxx_messageInfo_MessageUrlRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_MessageUrlRequest proto.InternalMessageInfo - -func (m *MessageUrlRequest) GetId() string { - if m != nil { - return m.Id - } - return "" -} - -type MessageUrlResponse struct { - UrlLink string `protobuf:"bytes,1,opt,name=url_link,json=urlLink,proto3" json:"url_link,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *MessageUrlResponse) Reset() { *m = MessageUrlResponse{} } -func (m *MessageUrlResponse) String() string { return proto.CompactTextString(m) } -func (*MessageUrlResponse) ProtoMessage() {} -func (*MessageUrlResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_33c57e4bae7b9afd, []int{11} -} - -func (m *MessageUrlResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_MessageUrlResponse.Unmarshal(m, b) -} -func (m *MessageUrlResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_MessageUrlResponse.Marshal(b, m, deterministic) -} -func (m *MessageUrlResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_MessageUrlResponse.Merge(m, src) -} -func (m *MessageUrlResponse) XXX_Size() int { - return xxx_messageInfo_MessageUrlResponse.Size(m) -} -func (m *MessageUrlResponse) XXX_DiscardUnknown() { - xxx_messageInfo_MessageUrlResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_MessageUrlResponse proto.InternalMessageInfo - -func (m *MessageUrlResponse) GetUrlLink() string { - if m != nil { - return m.UrlLink - } - return "" -} - -type MessageSendContactRequest struct { - ConversationId string `protobuf:"bytes,1,opt,name=conversation_id,json=conversationId,proto3" json:"conversation_id,omitempty"` - ContactId string `protobuf:"bytes,2,opt,name=contact_id,json=contactId,proto3" json:"contact_id,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *MessageSendContactRequest) Reset() { *m = MessageSendContactRequest{} } -func (m *MessageSendContactRequest) String() string { return proto.CompactTextString(m) } -func (*MessageSendContactRequest) ProtoMessage() {} -func (*MessageSendContactRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_33c57e4bae7b9afd, []int{12} -} - -func (m *MessageSendContactRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_MessageSendContactRequest.Unmarshal(m, b) -} -func (m *MessageSendContactRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_MessageSendContactRequest.Marshal(b, m, deterministic) -} -func (m *MessageSendContactRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_MessageSendContactRequest.Merge(m, src) -} -func (m *MessageSendContactRequest) XXX_Size() int { - return xxx_messageInfo_MessageSendContactRequest.Size(m) -} -func (m *MessageSendContactRequest) XXX_DiscardUnknown() { - xxx_messageInfo_MessageSendContactRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_MessageSendContactRequest proto.InternalMessageInfo - -func (m *MessageSendContactRequest) GetConversationId() string { - if m != nil { - return m.ConversationId - } - return "" -} - -func (m *MessageSendContactRequest) GetContactId() string { - if m != nil { - return m.ContactId - } - return "" -} - -type MessageSendContactResponse struct { - // nullable - Id *wrappers.StringValue `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *MessageSendContactResponse) Reset() { *m = MessageSendContactResponse{} } -func (m *MessageSendContactResponse) String() string { return proto.CompactTextString(m) } -func (*MessageSendContactResponse) ProtoMessage() {} -func (*MessageSendContactResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_33c57e4bae7b9afd, []int{13} -} - -func (m *MessageSendContactResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_MessageSendContactResponse.Unmarshal(m, b) -} -func (m *MessageSendContactResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_MessageSendContactResponse.Marshal(b, m, deterministic) -} -func (m *MessageSendContactResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_MessageSendContactResponse.Merge(m, src) -} -func (m *MessageSendContactResponse) XXX_Size() int { - return xxx_messageInfo_MessageSendContactResponse.Size(m) -} -func (m *MessageSendContactResponse) XXX_DiscardUnknown() { - xxx_messageInfo_MessageSendContactResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_MessageSendContactResponse proto.InternalMessageInfo - -func (m *MessageSendContactResponse) GetId() *wrappers.StringValue { - if m != nil { - return m.Id - } - return nil -} - -type MessageSendFileRequest struct { - ConversationId string `protobuf:"bytes,1,opt,name=conversation_id,json=conversationId,proto3" json:"conversation_id,omitempty"` - Filebox string `protobuf:"bytes,2,opt,name=filebox,proto3" json:"filebox,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *MessageSendFileRequest) Reset() { *m = MessageSendFileRequest{} } -func (m *MessageSendFileRequest) String() string { return proto.CompactTextString(m) } -func (*MessageSendFileRequest) ProtoMessage() {} -func (*MessageSendFileRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_33c57e4bae7b9afd, []int{14} -} - -func (m *MessageSendFileRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_MessageSendFileRequest.Unmarshal(m, b) -} -func (m *MessageSendFileRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_MessageSendFileRequest.Marshal(b, m, deterministic) -} -func (m *MessageSendFileRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_MessageSendFileRequest.Merge(m, src) -} -func (m *MessageSendFileRequest) XXX_Size() int { - return xxx_messageInfo_MessageSendFileRequest.Size(m) -} -func (m *MessageSendFileRequest) XXX_DiscardUnknown() { - xxx_messageInfo_MessageSendFileRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_MessageSendFileRequest proto.InternalMessageInfo - -func (m *MessageSendFileRequest) GetConversationId() string { - if m != nil { - return m.ConversationId - } - return "" -} - -func (m *MessageSendFileRequest) GetFilebox() string { - if m != nil { - return m.Filebox - } - return "" -} - -type MessageSendFileResponse struct { - Id *wrappers.StringValue `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *MessageSendFileResponse) Reset() { *m = MessageSendFileResponse{} } -func (m *MessageSendFileResponse) String() string { return proto.CompactTextString(m) } -func (*MessageSendFileResponse) ProtoMessage() {} -func (*MessageSendFileResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_33c57e4bae7b9afd, []int{15} -} - -func (m *MessageSendFileResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_MessageSendFileResponse.Unmarshal(m, b) -} -func (m *MessageSendFileResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_MessageSendFileResponse.Marshal(b, m, deterministic) -} -func (m *MessageSendFileResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_MessageSendFileResponse.Merge(m, src) -} -func (m *MessageSendFileResponse) XXX_Size() int { - return xxx_messageInfo_MessageSendFileResponse.Size(m) -} -func (m *MessageSendFileResponse) XXX_DiscardUnknown() { - xxx_messageInfo_MessageSendFileResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_MessageSendFileResponse proto.InternalMessageInfo - -func (m *MessageSendFileResponse) GetId() *wrappers.StringValue { - if m != nil { - return m.Id - } - return nil -} - -type MessageSendTextRequest struct { - ConversationId string `protobuf:"bytes,1,opt,name=conversation_id,json=conversationId,proto3" json:"conversation_id,omitempty"` - Text string `protobuf:"bytes,2,opt,name=text,proto3" json:"text,omitempty"` - MentonalIds []string `protobuf:"bytes,3,rep,name=mentonal_ids,json=mentonalIds,proto3" json:"mentonal_ids,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *MessageSendTextRequest) Reset() { *m = MessageSendTextRequest{} } -func (m *MessageSendTextRequest) String() string { return proto.CompactTextString(m) } -func (*MessageSendTextRequest) ProtoMessage() {} -func (*MessageSendTextRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_33c57e4bae7b9afd, []int{16} -} - -func (m *MessageSendTextRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_MessageSendTextRequest.Unmarshal(m, b) -} -func (m *MessageSendTextRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_MessageSendTextRequest.Marshal(b, m, deterministic) -} -func (m *MessageSendTextRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_MessageSendTextRequest.Merge(m, src) -} -func (m *MessageSendTextRequest) XXX_Size() int { - return xxx_messageInfo_MessageSendTextRequest.Size(m) -} -func (m *MessageSendTextRequest) XXX_DiscardUnknown() { - xxx_messageInfo_MessageSendTextRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_MessageSendTextRequest proto.InternalMessageInfo - -func (m *MessageSendTextRequest) GetConversationId() string { - if m != nil { - return m.ConversationId - } - return "" -} - -func (m *MessageSendTextRequest) GetText() string { - if m != nil { - return m.Text - } - return "" -} - -func (m *MessageSendTextRequest) GetMentonalIds() []string { - if m != nil { - return m.MentonalIds - } - return nil -} - -type MessageSendTextResponse struct { - Id *wrappers.StringValue `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *MessageSendTextResponse) Reset() { *m = MessageSendTextResponse{} } -func (m *MessageSendTextResponse) String() string { return proto.CompactTextString(m) } -func (*MessageSendTextResponse) ProtoMessage() {} -func (*MessageSendTextResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_33c57e4bae7b9afd, []int{17} -} - -func (m *MessageSendTextResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_MessageSendTextResponse.Unmarshal(m, b) -} -func (m *MessageSendTextResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_MessageSendTextResponse.Marshal(b, m, deterministic) -} -func (m *MessageSendTextResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_MessageSendTextResponse.Merge(m, src) -} -func (m *MessageSendTextResponse) XXX_Size() int { - return xxx_messageInfo_MessageSendTextResponse.Size(m) -} -func (m *MessageSendTextResponse) XXX_DiscardUnknown() { - xxx_messageInfo_MessageSendTextResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_MessageSendTextResponse proto.InternalMessageInfo - -func (m *MessageSendTextResponse) GetId() *wrappers.StringValue { - if m != nil { - return m.Id - } - return nil -} - -type MessageSendMiniProgramRequest struct { - ConversationId string `protobuf:"bytes,1,opt,name=conversation_id,json=conversationId,proto3" json:"conversation_id,omitempty"` - MiniProgram string `protobuf:"bytes,2,opt,name=mini_program,json=miniProgram,proto3" json:"mini_program,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *MessageSendMiniProgramRequest) Reset() { *m = MessageSendMiniProgramRequest{} } -func (m *MessageSendMiniProgramRequest) String() string { return proto.CompactTextString(m) } -func (*MessageSendMiniProgramRequest) ProtoMessage() {} -func (*MessageSendMiniProgramRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_33c57e4bae7b9afd, []int{18} -} - -func (m *MessageSendMiniProgramRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_MessageSendMiniProgramRequest.Unmarshal(m, b) -} -func (m *MessageSendMiniProgramRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_MessageSendMiniProgramRequest.Marshal(b, m, deterministic) -} -func (m *MessageSendMiniProgramRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_MessageSendMiniProgramRequest.Merge(m, src) -} -func (m *MessageSendMiniProgramRequest) XXX_Size() int { - return xxx_messageInfo_MessageSendMiniProgramRequest.Size(m) -} -func (m *MessageSendMiniProgramRequest) XXX_DiscardUnknown() { - xxx_messageInfo_MessageSendMiniProgramRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_MessageSendMiniProgramRequest proto.InternalMessageInfo - -func (m *MessageSendMiniProgramRequest) GetConversationId() string { - if m != nil { - return m.ConversationId - } - return "" -} - -func (m *MessageSendMiniProgramRequest) GetMiniProgram() string { - if m != nil { - return m.MiniProgram - } - return "" -} - -type MessageSendMiniProgramResponse struct { - Id *wrappers.StringValue `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *MessageSendMiniProgramResponse) Reset() { *m = MessageSendMiniProgramResponse{} } -func (m *MessageSendMiniProgramResponse) String() string { return proto.CompactTextString(m) } -func (*MessageSendMiniProgramResponse) ProtoMessage() {} -func (*MessageSendMiniProgramResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_33c57e4bae7b9afd, []int{19} -} - -func (m *MessageSendMiniProgramResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_MessageSendMiniProgramResponse.Unmarshal(m, b) -} -func (m *MessageSendMiniProgramResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_MessageSendMiniProgramResponse.Marshal(b, m, deterministic) -} -func (m *MessageSendMiniProgramResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_MessageSendMiniProgramResponse.Merge(m, src) -} -func (m *MessageSendMiniProgramResponse) XXX_Size() int { - return xxx_messageInfo_MessageSendMiniProgramResponse.Size(m) -} -func (m *MessageSendMiniProgramResponse) XXX_DiscardUnknown() { - xxx_messageInfo_MessageSendMiniProgramResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_MessageSendMiniProgramResponse proto.InternalMessageInfo - -func (m *MessageSendMiniProgramResponse) GetId() *wrappers.StringValue { - if m != nil { - return m.Id - } - return nil -} - -type MessageSendUrlRequest struct { - ConversationId string `protobuf:"bytes,1,opt,name=conversation_id,json=conversationId,proto3" json:"conversation_id,omitempty"` - UrlLink string `protobuf:"bytes,2,opt,name=url_link,json=urlLink,proto3" json:"url_link,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *MessageSendUrlRequest) Reset() { *m = MessageSendUrlRequest{} } -func (m *MessageSendUrlRequest) String() string { return proto.CompactTextString(m) } -func (*MessageSendUrlRequest) ProtoMessage() {} -func (*MessageSendUrlRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_33c57e4bae7b9afd, []int{20} -} - -func (m *MessageSendUrlRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_MessageSendUrlRequest.Unmarshal(m, b) -} -func (m *MessageSendUrlRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_MessageSendUrlRequest.Marshal(b, m, deterministic) -} -func (m *MessageSendUrlRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_MessageSendUrlRequest.Merge(m, src) -} -func (m *MessageSendUrlRequest) XXX_Size() int { - return xxx_messageInfo_MessageSendUrlRequest.Size(m) -} -func (m *MessageSendUrlRequest) XXX_DiscardUnknown() { - xxx_messageInfo_MessageSendUrlRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_MessageSendUrlRequest proto.InternalMessageInfo - -func (m *MessageSendUrlRequest) GetConversationId() string { - if m != nil { - return m.ConversationId - } - return "" -} - -func (m *MessageSendUrlRequest) GetUrlLink() string { - if m != nil { - return m.UrlLink - } - return "" -} - -type MessageSendUrlResponse struct { - Id *wrappers.StringValue `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *MessageSendUrlResponse) Reset() { *m = MessageSendUrlResponse{} } -func (m *MessageSendUrlResponse) String() string { return proto.CompactTextString(m) } -func (*MessageSendUrlResponse) ProtoMessage() {} -func (*MessageSendUrlResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_33c57e4bae7b9afd, []int{21} -} - -func (m *MessageSendUrlResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_MessageSendUrlResponse.Unmarshal(m, b) -} -func (m *MessageSendUrlResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_MessageSendUrlResponse.Marshal(b, m, deterministic) -} -func (m *MessageSendUrlResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_MessageSendUrlResponse.Merge(m, src) -} -func (m *MessageSendUrlResponse) XXX_Size() int { - return xxx_messageInfo_MessageSendUrlResponse.Size(m) -} -func (m *MessageSendUrlResponse) XXX_DiscardUnknown() { - xxx_messageInfo_MessageSendUrlResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_MessageSendUrlResponse proto.InternalMessageInfo - -func (m *MessageSendUrlResponse) GetId() *wrappers.StringValue { - if m != nil { - return m.Id - } - return nil -} - -type MessageRecallRequest struct { - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *MessageRecallRequest) Reset() { *m = MessageRecallRequest{} } -func (m *MessageRecallRequest) String() string { return proto.CompactTextString(m) } -func (*MessageRecallRequest) ProtoMessage() {} -func (*MessageRecallRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_33c57e4bae7b9afd, []int{22} -} - -func (m *MessageRecallRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_MessageRecallRequest.Unmarshal(m, b) -} -func (m *MessageRecallRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_MessageRecallRequest.Marshal(b, m, deterministic) -} -func (m *MessageRecallRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_MessageRecallRequest.Merge(m, src) -} -func (m *MessageRecallRequest) XXX_Size() int { - return xxx_messageInfo_MessageRecallRequest.Size(m) -} -func (m *MessageRecallRequest) XXX_DiscardUnknown() { - xxx_messageInfo_MessageRecallRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_MessageRecallRequest proto.InternalMessageInfo - -func (m *MessageRecallRequest) GetId() string { - if m != nil { - return m.Id - } - return "" -} - -type MessageRecallResponse struct { - Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *MessageRecallResponse) Reset() { *m = MessageRecallResponse{} } -func (m *MessageRecallResponse) String() string { return proto.CompactTextString(m) } -func (*MessageRecallResponse) ProtoMessage() {} -func (*MessageRecallResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_33c57e4bae7b9afd, []int{23} -} - -func (m *MessageRecallResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_MessageRecallResponse.Unmarshal(m, b) -} -func (m *MessageRecallResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_MessageRecallResponse.Marshal(b, m, deterministic) -} -func (m *MessageRecallResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_MessageRecallResponse.Merge(m, src) -} -func (m *MessageRecallResponse) XXX_Size() int { - return xxx_messageInfo_MessageRecallResponse.Size(m) -} -func (m *MessageRecallResponse) XXX_DiscardUnknown() { - xxx_messageInfo_MessageRecallResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_MessageRecallResponse proto.InternalMessageInfo - -func (m *MessageRecallResponse) GetSuccess() bool { - if m != nil { - return m.Success - } - return false -} - -func init() { - proto.RegisterEnum("wechaty.puppet.MessageType", MessageType_name, MessageType_value) - proto.RegisterEnum("wechaty.puppet.ImageType", ImageType_name, ImageType_value) - proto.RegisterType((*MessagePayloadRequest)(nil), "wechaty.puppet.MessagePayloadRequest") - proto.RegisterType((*MessagePayloadResponse)(nil), "wechaty.puppet.MessagePayloadResponse") - proto.RegisterType((*MessageImageRequest)(nil), "wechaty.puppet.MessageImageRequest") - proto.RegisterType((*MessageImageResponse)(nil), "wechaty.puppet.MessageImageResponse") - proto.RegisterType((*MessageContactRequest)(nil), "wechaty.puppet.MessageContactRequest") - proto.RegisterType((*MessageContactResponse)(nil), "wechaty.puppet.MessageContactResponse") - proto.RegisterType((*MessageFileRequest)(nil), "wechaty.puppet.MessageFileRequest") - proto.RegisterType((*MessageFileResponse)(nil), "wechaty.puppet.MessageFileResponse") - proto.RegisterType((*MessageMiniProgramRequest)(nil), "wechaty.puppet.MessageMiniProgramRequest") - proto.RegisterType((*MessageMiniProgramResponse)(nil), "wechaty.puppet.MessageMiniProgramResponse") - proto.RegisterType((*MessageUrlRequest)(nil), "wechaty.puppet.MessageUrlRequest") - proto.RegisterType((*MessageUrlResponse)(nil), "wechaty.puppet.MessageUrlResponse") - proto.RegisterType((*MessageSendContactRequest)(nil), "wechaty.puppet.MessageSendContactRequest") - proto.RegisterType((*MessageSendContactResponse)(nil), "wechaty.puppet.MessageSendContactResponse") - proto.RegisterType((*MessageSendFileRequest)(nil), "wechaty.puppet.MessageSendFileRequest") - proto.RegisterType((*MessageSendFileResponse)(nil), "wechaty.puppet.MessageSendFileResponse") - proto.RegisterType((*MessageSendTextRequest)(nil), "wechaty.puppet.MessageSendTextRequest") - proto.RegisterType((*MessageSendTextResponse)(nil), "wechaty.puppet.MessageSendTextResponse") - proto.RegisterType((*MessageSendMiniProgramRequest)(nil), "wechaty.puppet.MessageSendMiniProgramRequest") - proto.RegisterType((*MessageSendMiniProgramResponse)(nil), "wechaty.puppet.MessageSendMiniProgramResponse") - proto.RegisterType((*MessageSendUrlRequest)(nil), "wechaty.puppet.MessageSendUrlRequest") - proto.RegisterType((*MessageSendUrlResponse)(nil), "wechaty.puppet.MessageSendUrlResponse") - proto.RegisterType((*MessageRecallRequest)(nil), "wechaty.puppet.MessageRecallRequest") - proto.RegisterType((*MessageRecallResponse)(nil), "wechaty.puppet.MessageRecallResponse") -} - -func init() { proto.RegisterFile("message.proto", fileDescriptor_33c57e4bae7b9afd) } - -var fileDescriptor_33c57e4bae7b9afd = []byte{ - // 922 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x55, 0x6d, 0x77, 0xa3, 0x44, - 0x14, 0x36, 0xa4, 0x2f, 0xc9, 0xcd, 0x36, 0x4e, 0x67, 0xfb, 0x42, 0xba, 0xed, 0x5a, 0xa3, 0xc7, - 0xcd, 0xa9, 0x9a, 0xe8, 0xfa, 0x03, 0x3c, 0x6c, 0x42, 0x1b, 0x34, 0x81, 0x1c, 0x32, 0xad, 0xae, - 0x7e, 0xc8, 0xa1, 0x30, 0xcd, 0x72, 0x0a, 0x0c, 0x02, 0x71, 0xdb, 0x5f, 0xe1, 0x5f, 0xf0, 0xa7, - 0x7a, 0x80, 0x09, 0x85, 0xd0, 0x1c, 0xbb, 0xfd, 0xc6, 0xdc, 0xfb, 0xdc, 0x3b, 0xcf, 0x73, 0x5f, - 0x18, 0xd8, 0x71, 0x69, 0x18, 0x1a, 0x73, 0xda, 0xf5, 0x03, 0x16, 0x31, 0xdc, 0xfc, 0x48, 0xcd, - 0x0f, 0x46, 0x74, 0xdf, 0xf5, 0x17, 0xbe, 0x4f, 0xa3, 0xa3, 0xd7, 0x73, 0xc6, 0xe6, 0x0e, 0xed, - 0x25, 0xde, 0xeb, 0xc5, 0x4d, 0xef, 0x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xae, 0x31, 0xa7, 0x6b, - 0x0a, 0x87, 0xbf, 0xe7, 0xfc, 0x85, 0x84, 0x7f, 0x6b, 0x95, 0x7f, 0x12, 0xfb, 0xc0, 0xbe, 0xfd, - 0x03, 0xec, 0x15, 0xb3, 0xf2, 0x22, 0x8b, 0xb0, 0x1d, 0x17, 0xf1, 0x9a, 0xdd, 0xf1, 0xdc, 0xcb, - 0x63, 0xae, 0x85, 0x7d, 0xe6, 0x45, 0x86, 0x19, 0xad, 0x6b, 0x61, 0x27, 0xeb, 0x60, 0x06, 0x7c, - 0xbc, 0x83, 0xed, 0xaf, 0x01, 0x73, 0xe4, 0xb9, 0xed, 0xac, 0x53, 0xd6, 0xee, 0x65, 0x05, 0x48, - 0x51, 0xff, 0xcb, 0xf4, 0x5b, 0x68, 0xf1, 0x80, 0xb1, 0xed, 0xd9, 0x93, 0x80, 0xcd, 0x03, 0xc3, - 0x5d, 0x97, 0xfd, 0x67, 0x38, 0x7a, 0x0c, 0xcc, 0x2f, 0xf9, 0x12, 0x5e, 0xb8, 0xb6, 0x67, 0xcf, - 0xfc, 0xd4, 0xce, 0xe3, 0x1a, 0xee, 0x03, 0xb4, 0xfd, 0x15, 0xec, 0xf2, 0x04, 0x97, 0x81, 0xb3, - 0x5e, 0x03, 0xce, 0x83, 0x78, 0xf6, 0x16, 0xd4, 0x16, 0x81, 0x33, 0x73, 0x6c, 0xef, 0x76, 0xa9, - 0x61, 0x11, 0x38, 0x23, 0xdb, 0xbb, 0x6d, 0x9b, 0x99, 0x86, 0x29, 0xf5, 0xac, 0x95, 0x8a, 0xbf, - 0x81, 0xcf, 0x4d, 0xe6, 0xfd, 0x4d, 0x83, 0xd0, 0xe0, 0x83, 0xc3, 0xc3, 0x9b, 0x79, 0xb3, 0x62, - 0xe1, 0x13, 0x00, 0x33, 0x0d, 0x8d, 0x31, 0xe9, 0x92, 0xd4, 0xb9, 0x45, 0xb1, 0xda, 0xbf, 0x64, - 0xda, 0x0b, 0x97, 0x70, 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95, 0x94, 0x11, 0xaa, 0xe0, 0x5d, 0xd8, 0xc9, 0x79, 0x86, 0x03, 0x24, 0xc4, 0x15, 0xcb, 0x99, - 0x24, 0x9d, 0xfc, 0xa6, 0xe9, 0xbf, 0xa2, 0xea, 0xbb, 0xb3, 0x3f, 0x3a, 0x73, 0x3b, 0xfa, 0xb0, - 0xb8, 0xee, 0x9a, 0xcc, 0xed, 0xc5, 0x4f, 0xb6, 0x4d, 0x7b, 0xf3, 0xc0, 0x37, 0x7b, 0x73, 0xd6, - 0xe3, 0x6f, 0x78, 0x2f, 0x7d, 0xc3, 0xaf, 0xb7, 0x92, 0x89, 0xfd, 0xe9, 0xbf, 0x00, 0x00, 0x00, - 0xff, 0xff, 0x70, 0x6f, 0xff, 0xab, 0x8c, 0x09, 0x00, 0x00, -} diff --git a/go/wechaty/puppet/room.pb.go b/go/wechaty/puppet/room.pb.go deleted file mode 100644 index 21a424dc..00000000 --- a/go/wechaty/puppet/room.pb.go +++ /dev/null @@ -1,911 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// source: room.proto - -package puppet - -import ( - fmt "fmt" - proto "github.com/golang/protobuf/proto" - wrappers "github.com/golang/protobuf/ptypes/wrappers" - math "math" -) - -// Reference imports to suppress errors if they are not otherwise used. -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.ProtoPackageIsVersion3 // please upgrade the proto package - -type RoomListRequest struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *RoomListRequest) Reset() { *m = RoomListRequest{} } -func (m *RoomListRequest) String() string { return proto.CompactTextString(m) } -func (*RoomListRequest) ProtoMessage() {} -func (*RoomListRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_c5fd27dd97284ef4, []int{0} -} - -func (m *RoomListRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_RoomListRequest.Unmarshal(m, b) -} -func (m *RoomListRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_RoomListRequest.Marshal(b, m, deterministic) -} -func (m *RoomListRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_RoomListRequest.Merge(m, src) -} -func (m *RoomListRequest) XXX_Size() int { - return xxx_messageInfo_RoomListRequest.Size(m) -} -func (m *RoomListRequest) XXX_DiscardUnknown() { - xxx_messageInfo_RoomListRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_RoomListRequest proto.InternalMessageInfo - -type RoomListResponse struct { - Ids []string `protobuf:"bytes,1,rep,name=ids,proto3" json:"ids,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *RoomListResponse) Reset() { *m = RoomListResponse{} } -func (m *RoomListResponse) String() string { return proto.CompactTextString(m) } -func (*RoomListResponse) ProtoMessage() {} -func (*RoomListResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_c5fd27dd97284ef4, []int{1} -} - -func (m *RoomListResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_RoomListResponse.Unmarshal(m, b) -} -func (m *RoomListResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_RoomListResponse.Marshal(b, m, deterministic) -} -func (m *RoomListResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_RoomListResponse.Merge(m, src) -} -func (m *RoomListResponse) XXX_Size() int { - return xxx_messageInfo_RoomListResponse.Size(m) -} -func (m *RoomListResponse) XXX_DiscardUnknown() { - xxx_messageInfo_RoomListResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_RoomListResponse proto.InternalMessageInfo - -func (m *RoomListResponse) GetIds() []string { - if m != nil { - return m.Ids - } - return nil -} - -type RoomPayloadRequest struct { - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *RoomPayloadRequest) Reset() { *m = RoomPayloadRequest{} } -func (m *RoomPayloadRequest) String() string { return proto.CompactTextString(m) } -func (*RoomPayloadRequest) ProtoMessage() {} -func (*RoomPayloadRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_c5fd27dd97284ef4, []int{2} -} - -func (m *RoomPayloadRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_RoomPayloadRequest.Unmarshal(m, b) -} -func (m *RoomPayloadRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_RoomPayloadRequest.Marshal(b, m, deterministic) -} -func (m *RoomPayloadRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_RoomPayloadRequest.Merge(m, src) -} -func (m *RoomPayloadRequest) XXX_Size() int { - return xxx_messageInfo_RoomPayloadRequest.Size(m) -} -func (m *RoomPayloadRequest) XXX_DiscardUnknown() { - xxx_messageInfo_RoomPayloadRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_RoomPayloadRequest proto.InternalMessageInfo - -func (m *RoomPayloadRequest) GetId() string { - if m != nil { - return m.Id - } - return "" -} - -type RoomPayloadResponse struct { - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - Topic string `protobuf:"bytes,2,opt,name=topic,proto3" json:"topic,omitempty"` - Avatar string `protobuf:"bytes,3,opt,name=avatar,proto3" json:"avatar,omitempty"` - OwnerId string `protobuf:"bytes,4,opt,name=owner_id,json=ownerId,proto3" json:"owner_id,omitempty"` - AdminIds []string `protobuf:"bytes,5,rep,name=admin_ids,json=adminIds,proto3" json:"admin_ids,omitempty"` - MemberIds []string `protobuf:"bytes,6,rep,name=member_ids,json=memberIds,proto3" json:"member_ids,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *RoomPayloadResponse) Reset() { *m = RoomPayloadResponse{} } -func (m *RoomPayloadResponse) String() string { return proto.CompactTextString(m) } -func (*RoomPayloadResponse) ProtoMessage() {} -func (*RoomPayloadResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_c5fd27dd97284ef4, []int{3} -} - -func (m *RoomPayloadResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_RoomPayloadResponse.Unmarshal(m, b) -} -func (m *RoomPayloadResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_RoomPayloadResponse.Marshal(b, m, deterministic) -} -func (m *RoomPayloadResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_RoomPayloadResponse.Merge(m, src) -} -func (m *RoomPayloadResponse) XXX_Size() int { - return xxx_messageInfo_RoomPayloadResponse.Size(m) -} -func (m *RoomPayloadResponse) XXX_DiscardUnknown() { - xxx_messageInfo_RoomPayloadResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_RoomPayloadResponse proto.InternalMessageInfo - -func (m *RoomPayloadResponse) GetId() string { - if m != nil { - return m.Id - } - return "" -} - -func (m *RoomPayloadResponse) GetTopic() string { - if m != nil { - return m.Topic - } - return "" -} - -func (m *RoomPayloadResponse) GetAvatar() string { - if m != nil { - return m.Avatar - } - return "" -} - -func (m *RoomPayloadResponse) GetOwnerId() string { - if m != nil { - return m.OwnerId - } - return "" -} - -func (m *RoomPayloadResponse) GetAdminIds() []string { - if m != nil { - return m.AdminIds - } - return nil -} - -func (m *RoomPayloadResponse) GetMemberIds() []string { - if m != nil { - return m.MemberIds - } - return nil -} - -type RoomAddRequest struct { - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - ContactId string `protobuf:"bytes,2,opt,name=contact_id,json=contactId,proto3" json:"contact_id,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *RoomAddRequest) Reset() { *m = RoomAddRequest{} } -func (m *RoomAddRequest) String() string { return proto.CompactTextString(m) } -func (*RoomAddRequest) ProtoMessage() {} -func (*RoomAddRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_c5fd27dd97284ef4, []int{4} -} - -func (m *RoomAddRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_RoomAddRequest.Unmarshal(m, b) -} -func (m *RoomAddRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_RoomAddRequest.Marshal(b, m, deterministic) -} -func (m *RoomAddRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_RoomAddRequest.Merge(m, src) -} -func (m *RoomAddRequest) XXX_Size() int { - return xxx_messageInfo_RoomAddRequest.Size(m) -} -func (m *RoomAddRequest) XXX_DiscardUnknown() { - xxx_messageInfo_RoomAddRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_RoomAddRequest proto.InternalMessageInfo - -func (m *RoomAddRequest) GetId() string { - if m != nil { - return m.Id - } - return "" -} - -func (m *RoomAddRequest) GetContactId() string { - if m != nil { - return m.ContactId - } - return "" -} - -type RoomAddResponse struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *RoomAddResponse) Reset() { *m = RoomAddResponse{} } -func (m *RoomAddResponse) String() string { return proto.CompactTextString(m) } -func (*RoomAddResponse) ProtoMessage() {} -func (*RoomAddResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_c5fd27dd97284ef4, []int{5} -} - -func (m *RoomAddResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_RoomAddResponse.Unmarshal(m, b) -} -func (m *RoomAddResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_RoomAddResponse.Marshal(b, m, deterministic) -} -func (m *RoomAddResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_RoomAddResponse.Merge(m, src) -} -func (m *RoomAddResponse) XXX_Size() int { - return xxx_messageInfo_RoomAddResponse.Size(m) -} -func (m *RoomAddResponse) XXX_DiscardUnknown() { - xxx_messageInfo_RoomAddResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_RoomAddResponse proto.InternalMessageInfo - -type RoomAvatarRequest struct { - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *RoomAvatarRequest) Reset() { *m = RoomAvatarRequest{} } -func (m *RoomAvatarRequest) String() string { return proto.CompactTextString(m) } -func (*RoomAvatarRequest) ProtoMessage() {} -func (*RoomAvatarRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_c5fd27dd97284ef4, []int{6} -} - -func (m *RoomAvatarRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_RoomAvatarRequest.Unmarshal(m, b) -} -func (m *RoomAvatarRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_RoomAvatarRequest.Marshal(b, m, deterministic) -} -func (m *RoomAvatarRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_RoomAvatarRequest.Merge(m, src) -} -func (m *RoomAvatarRequest) XXX_Size() int { - return xxx_messageInfo_RoomAvatarRequest.Size(m) -} -func (m *RoomAvatarRequest) XXX_DiscardUnknown() { - xxx_messageInfo_RoomAvatarRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_RoomAvatarRequest proto.InternalMessageInfo - -func (m *RoomAvatarRequest) GetId() string { - if m != nil { - return m.Id - } - return "" -} - -type RoomAvatarResponse struct { - Filebox string `protobuf:"bytes,1,opt,name=filebox,proto3" json:"filebox,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *RoomAvatarResponse) Reset() { *m = RoomAvatarResponse{} } -func (m *RoomAvatarResponse) String() string { return proto.CompactTextString(m) } -func (*RoomAvatarResponse) ProtoMessage() {} -func (*RoomAvatarResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_c5fd27dd97284ef4, []int{7} -} - -func (m *RoomAvatarResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_RoomAvatarResponse.Unmarshal(m, b) -} -func (m *RoomAvatarResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_RoomAvatarResponse.Marshal(b, m, deterministic) -} -func (m *RoomAvatarResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_RoomAvatarResponse.Merge(m, src) -} -func (m *RoomAvatarResponse) XXX_Size() int { - return xxx_messageInfo_RoomAvatarResponse.Size(m) -} -func (m *RoomAvatarResponse) XXX_DiscardUnknown() { - xxx_messageInfo_RoomAvatarResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_RoomAvatarResponse proto.InternalMessageInfo - -func (m *RoomAvatarResponse) GetFilebox() string { - if m != nil { - return m.Filebox - } - return "" -} - -type RoomCreateRequest struct { - ContactIds []string `protobuf:"bytes,1,rep,name=contact_ids,json=contactIds,proto3" json:"contact_ids,omitempty"` - Topic string `protobuf:"bytes,2,opt,name=topic,proto3" json:"topic,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *RoomCreateRequest) Reset() { *m = RoomCreateRequest{} } -func (m *RoomCreateRequest) String() string { return proto.CompactTextString(m) } -func (*RoomCreateRequest) ProtoMessage() {} -func (*RoomCreateRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_c5fd27dd97284ef4, []int{8} -} - -func (m *RoomCreateRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_RoomCreateRequest.Unmarshal(m, b) -} -func (m *RoomCreateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_RoomCreateRequest.Marshal(b, m, deterministic) -} -func (m *RoomCreateRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_RoomCreateRequest.Merge(m, src) -} -func (m *RoomCreateRequest) XXX_Size() int { - return xxx_messageInfo_RoomCreateRequest.Size(m) -} -func (m *RoomCreateRequest) XXX_DiscardUnknown() { - xxx_messageInfo_RoomCreateRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_RoomCreateRequest proto.InternalMessageInfo - -func (m *RoomCreateRequest) GetContactIds() []string { - if m != nil { - return m.ContactIds - } - return nil -} - -func (m *RoomCreateRequest) GetTopic() string { - if m != nil { - return m.Topic - } - return "" -} - -type RoomCreateResponse struct { - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *RoomCreateResponse) Reset() { *m = RoomCreateResponse{} } -func (m *RoomCreateResponse) String() string { return proto.CompactTextString(m) } -func (*RoomCreateResponse) ProtoMessage() {} -func (*RoomCreateResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_c5fd27dd97284ef4, []int{9} -} - -func (m *RoomCreateResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_RoomCreateResponse.Unmarshal(m, b) -} -func (m *RoomCreateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_RoomCreateResponse.Marshal(b, m, deterministic) -} -func (m *RoomCreateResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_RoomCreateResponse.Merge(m, src) -} -func (m *RoomCreateResponse) XXX_Size() int { - return xxx_messageInfo_RoomCreateResponse.Size(m) -} -func (m *RoomCreateResponse) XXX_DiscardUnknown() { - xxx_messageInfo_RoomCreateResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_RoomCreateResponse proto.InternalMessageInfo - -func (m *RoomCreateResponse) GetId() string { - if m != nil { - return m.Id - } - return "" -} - -type RoomDelRequest struct { - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - ContactId string `protobuf:"bytes,2,opt,name=contact_id,json=contactId,proto3" json:"contact_id,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *RoomDelRequest) Reset() { *m = RoomDelRequest{} } -func (m *RoomDelRequest) String() string { return proto.CompactTextString(m) } -func (*RoomDelRequest) ProtoMessage() {} -func (*RoomDelRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_c5fd27dd97284ef4, []int{10} -} - -func (m *RoomDelRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_RoomDelRequest.Unmarshal(m, b) -} -func (m *RoomDelRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_RoomDelRequest.Marshal(b, m, deterministic) -} -func (m *RoomDelRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_RoomDelRequest.Merge(m, src) -} -func (m *RoomDelRequest) XXX_Size() int { - return xxx_messageInfo_RoomDelRequest.Size(m) -} -func (m *RoomDelRequest) XXX_DiscardUnknown() { - xxx_messageInfo_RoomDelRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_RoomDelRequest proto.InternalMessageInfo - -func (m *RoomDelRequest) GetId() string { - if m != nil { - return m.Id - } - return "" -} - -func (m *RoomDelRequest) GetContactId() string { - if m != nil { - return m.ContactId - } - return "" -} - -type RoomDelResponse struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *RoomDelResponse) Reset() { *m = RoomDelResponse{} } -func (m *RoomDelResponse) String() string { return proto.CompactTextString(m) } -func (*RoomDelResponse) ProtoMessage() {} -func (*RoomDelResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_c5fd27dd97284ef4, []int{11} -} - -func (m *RoomDelResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_RoomDelResponse.Unmarshal(m, b) -} -func (m *RoomDelResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_RoomDelResponse.Marshal(b, m, deterministic) -} -func (m *RoomDelResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_RoomDelResponse.Merge(m, src) -} -func (m *RoomDelResponse) XXX_Size() int { - return xxx_messageInfo_RoomDelResponse.Size(m) -} -func (m *RoomDelResponse) XXX_DiscardUnknown() { - xxx_messageInfo_RoomDelResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_RoomDelResponse proto.InternalMessageInfo - -type RoomQuitRequest struct { - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *RoomQuitRequest) Reset() { *m = RoomQuitRequest{} } -func (m *RoomQuitRequest) String() string { return proto.CompactTextString(m) } -func (*RoomQuitRequest) ProtoMessage() {} -func (*RoomQuitRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_c5fd27dd97284ef4, []int{12} -} - -func (m *RoomQuitRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_RoomQuitRequest.Unmarshal(m, b) -} -func (m *RoomQuitRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_RoomQuitRequest.Marshal(b, m, deterministic) -} -func (m *RoomQuitRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_RoomQuitRequest.Merge(m, src) -} -func (m *RoomQuitRequest) XXX_Size() int { - return xxx_messageInfo_RoomQuitRequest.Size(m) -} -func (m *RoomQuitRequest) XXX_DiscardUnknown() { - xxx_messageInfo_RoomQuitRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_RoomQuitRequest proto.InternalMessageInfo - -func (m *RoomQuitRequest) GetId() string { - if m != nil { - return m.Id - } - return "" -} - -type RoomQuitResponse struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *RoomQuitResponse) Reset() { *m = RoomQuitResponse{} } -func (m *RoomQuitResponse) String() string { return proto.CompactTextString(m) } -func (*RoomQuitResponse) ProtoMessage() {} -func (*RoomQuitResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_c5fd27dd97284ef4, []int{13} -} - -func (m *RoomQuitResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_RoomQuitResponse.Unmarshal(m, b) -} -func (m *RoomQuitResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_RoomQuitResponse.Marshal(b, m, deterministic) -} -func (m *RoomQuitResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_RoomQuitResponse.Merge(m, src) -} -func (m *RoomQuitResponse) XXX_Size() int { - return xxx_messageInfo_RoomQuitResponse.Size(m) -} -func (m *RoomQuitResponse) XXX_DiscardUnknown() { - xxx_messageInfo_RoomQuitResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_RoomQuitResponse proto.InternalMessageInfo - -type RoomTopicRequest struct { - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - Topic *wrappers.StringValue `protobuf:"bytes,2,opt,name=topic,proto3" json:"topic,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *RoomTopicRequest) Reset() { *m = RoomTopicRequest{} } -func (m *RoomTopicRequest) String() string { return proto.CompactTextString(m) } -func (*RoomTopicRequest) ProtoMessage() {} -func (*RoomTopicRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_c5fd27dd97284ef4, []int{14} -} - -func (m *RoomTopicRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_RoomTopicRequest.Unmarshal(m, b) -} -func (m *RoomTopicRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_RoomTopicRequest.Marshal(b, m, deterministic) -} -func (m *RoomTopicRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_RoomTopicRequest.Merge(m, src) -} -func (m *RoomTopicRequest) XXX_Size() int { - return xxx_messageInfo_RoomTopicRequest.Size(m) -} -func (m *RoomTopicRequest) XXX_DiscardUnknown() { - xxx_messageInfo_RoomTopicRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_RoomTopicRequest proto.InternalMessageInfo - -func (m *RoomTopicRequest) GetId() string { - if m != nil { - return m.Id - } - return "" -} - -func (m *RoomTopicRequest) GetTopic() *wrappers.StringValue { - if m != nil { - return m.Topic - } - return nil -} - -type RoomTopicResponse struct { - Topic *wrappers.StringValue `protobuf:"bytes,1,opt,name=topic,proto3" json:"topic,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *RoomTopicResponse) Reset() { *m = RoomTopicResponse{} } -func (m *RoomTopicResponse) String() string { return proto.CompactTextString(m) } -func (*RoomTopicResponse) ProtoMessage() {} -func (*RoomTopicResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_c5fd27dd97284ef4, []int{15} -} - -func (m *RoomTopicResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_RoomTopicResponse.Unmarshal(m, b) -} -func (m *RoomTopicResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_RoomTopicResponse.Marshal(b, m, deterministic) -} -func (m *RoomTopicResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_RoomTopicResponse.Merge(m, src) -} -func (m *RoomTopicResponse) XXX_Size() int { - return xxx_messageInfo_RoomTopicResponse.Size(m) -} -func (m *RoomTopicResponse) XXX_DiscardUnknown() { - xxx_messageInfo_RoomTopicResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_RoomTopicResponse proto.InternalMessageInfo - -func (m *RoomTopicResponse) GetTopic() *wrappers.StringValue { - if m != nil { - return m.Topic - } - return nil -} - -type RoomQRCodeRequest struct { - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *RoomQRCodeRequest) Reset() { *m = RoomQRCodeRequest{} } -func (m *RoomQRCodeRequest) String() string { return proto.CompactTextString(m) } -func (*RoomQRCodeRequest) ProtoMessage() {} -func (*RoomQRCodeRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_c5fd27dd97284ef4, []int{16} -} - -func (m *RoomQRCodeRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_RoomQRCodeRequest.Unmarshal(m, b) -} -func (m *RoomQRCodeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_RoomQRCodeRequest.Marshal(b, m, deterministic) -} -func (m *RoomQRCodeRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_RoomQRCodeRequest.Merge(m, src) -} -func (m *RoomQRCodeRequest) XXX_Size() int { - return xxx_messageInfo_RoomQRCodeRequest.Size(m) -} -func (m *RoomQRCodeRequest) XXX_DiscardUnknown() { - xxx_messageInfo_RoomQRCodeRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_RoomQRCodeRequest proto.InternalMessageInfo - -func (m *RoomQRCodeRequest) GetId() string { - if m != nil { - return m.Id - } - return "" -} - -type RoomQRCodeResponse struct { - Qrcode string `protobuf:"bytes,1,opt,name=qrcode,proto3" json:"qrcode,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *RoomQRCodeResponse) Reset() { *m = RoomQRCodeResponse{} } -func (m *RoomQRCodeResponse) String() string { return proto.CompactTextString(m) } -func (*RoomQRCodeResponse) ProtoMessage() {} -func (*RoomQRCodeResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_c5fd27dd97284ef4, []int{17} -} - -func (m *RoomQRCodeResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_RoomQRCodeResponse.Unmarshal(m, b) -} -func (m *RoomQRCodeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_RoomQRCodeResponse.Marshal(b, m, deterministic) -} -func (m *RoomQRCodeResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_RoomQRCodeResponse.Merge(m, src) -} -func (m *RoomQRCodeResponse) XXX_Size() int { - return xxx_messageInfo_RoomQRCodeResponse.Size(m) -} -func (m *RoomQRCodeResponse) XXX_DiscardUnknown() { - xxx_messageInfo_RoomQRCodeResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_RoomQRCodeResponse proto.InternalMessageInfo - -func (m *RoomQRCodeResponse) GetQrcode() string { - if m != nil { - return m.Qrcode - } - return "" -} - -type RoomAnnounceRequest struct { - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - Text *wrappers.StringValue `protobuf:"bytes,2,opt,name=text,proto3" json:"text,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *RoomAnnounceRequest) Reset() { *m = RoomAnnounceRequest{} } -func (m *RoomAnnounceRequest) String() string { return proto.CompactTextString(m) } -func (*RoomAnnounceRequest) ProtoMessage() {} -func (*RoomAnnounceRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_c5fd27dd97284ef4, []int{18} -} - -func (m *RoomAnnounceRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_RoomAnnounceRequest.Unmarshal(m, b) -} -func (m *RoomAnnounceRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_RoomAnnounceRequest.Marshal(b, m, deterministic) -} -func (m *RoomAnnounceRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_RoomAnnounceRequest.Merge(m, src) -} -func (m *RoomAnnounceRequest) XXX_Size() int { - return xxx_messageInfo_RoomAnnounceRequest.Size(m) -} -func (m *RoomAnnounceRequest) XXX_DiscardUnknown() { - xxx_messageInfo_RoomAnnounceRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_RoomAnnounceRequest proto.InternalMessageInfo - -func (m *RoomAnnounceRequest) GetId() string { - if m != nil { - return m.Id - } - return "" -} - -func (m *RoomAnnounceRequest) GetText() *wrappers.StringValue { - if m != nil { - return m.Text - } - return nil -} - -type RoomAnnounceResponse struct { - Text *wrappers.StringValue `protobuf:"bytes,1,opt,name=text,proto3" json:"text,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *RoomAnnounceResponse) Reset() { *m = RoomAnnounceResponse{} } -func (m *RoomAnnounceResponse) String() string { return proto.CompactTextString(m) } -func (*RoomAnnounceResponse) ProtoMessage() {} -func (*RoomAnnounceResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_c5fd27dd97284ef4, []int{19} -} - -func (m *RoomAnnounceResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_RoomAnnounceResponse.Unmarshal(m, b) -} -func (m *RoomAnnounceResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_RoomAnnounceResponse.Marshal(b, m, deterministic) -} -func (m *RoomAnnounceResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_RoomAnnounceResponse.Merge(m, src) -} -func (m *RoomAnnounceResponse) XXX_Size() int { - return xxx_messageInfo_RoomAnnounceResponse.Size(m) -} -func (m *RoomAnnounceResponse) XXX_DiscardUnknown() { - xxx_messageInfo_RoomAnnounceResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_RoomAnnounceResponse proto.InternalMessageInfo - -func (m *RoomAnnounceResponse) GetText() *wrappers.StringValue { - if m != nil { - return m.Text - } - return nil -} - -func init() { - proto.RegisterType((*RoomListRequest)(nil), "wechaty.puppet.RoomListRequest") - proto.RegisterType((*RoomListResponse)(nil), "wechaty.puppet.RoomListResponse") - proto.RegisterType((*RoomPayloadRequest)(nil), "wechaty.puppet.RoomPayloadRequest") - proto.RegisterType((*RoomPayloadResponse)(nil), "wechaty.puppet.RoomPayloadResponse") - proto.RegisterType((*RoomAddRequest)(nil), "wechaty.puppet.RoomAddRequest") - proto.RegisterType((*RoomAddResponse)(nil), "wechaty.puppet.RoomAddResponse") - proto.RegisterType((*RoomAvatarRequest)(nil), "wechaty.puppet.RoomAvatarRequest") - proto.RegisterType((*RoomAvatarResponse)(nil), "wechaty.puppet.RoomAvatarResponse") - proto.RegisterType((*RoomCreateRequest)(nil), "wechaty.puppet.RoomCreateRequest") - proto.RegisterType((*RoomCreateResponse)(nil), "wechaty.puppet.RoomCreateResponse") - proto.RegisterType((*RoomDelRequest)(nil), "wechaty.puppet.RoomDelRequest") - proto.RegisterType((*RoomDelResponse)(nil), "wechaty.puppet.RoomDelResponse") - proto.RegisterType((*RoomQuitRequest)(nil), "wechaty.puppet.RoomQuitRequest") - proto.RegisterType((*RoomQuitResponse)(nil), "wechaty.puppet.RoomQuitResponse") - proto.RegisterType((*RoomTopicRequest)(nil), "wechaty.puppet.RoomTopicRequest") - proto.RegisterType((*RoomTopicResponse)(nil), "wechaty.puppet.RoomTopicResponse") - proto.RegisterType((*RoomQRCodeRequest)(nil), "wechaty.puppet.RoomQRCodeRequest") - proto.RegisterType((*RoomQRCodeResponse)(nil), "wechaty.puppet.RoomQRCodeResponse") - proto.RegisterType((*RoomAnnounceRequest)(nil), "wechaty.puppet.RoomAnnounceRequest") - proto.RegisterType((*RoomAnnounceResponse)(nil), "wechaty.puppet.RoomAnnounceResponse") -} - -func init() { proto.RegisterFile("room.proto", fileDescriptor_c5fd27dd97284ef4) } - -var fileDescriptor_c5fd27dd97284ef4 = []byte{ - // 504 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x54, 0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bf, 0x05, 0xc9, 0x77, 0x2d, 0x45, 0x53, 0x9e, - 0xd2, 0xaa, 0xe3, 0x3e, 0x88, 0x4f, 0x36, 0x54, 0xa7, 0xeb, 0x72, 0xb8, 0x11, 0x0a, 0x56, 0x17, - 0x72, 0x23, 0x3f, 0xc9, 0x8e, 0x91, 0xf1, 0xa1, 0xce, 0xde, 0xd8, 0xd8, 0x3d, 0xc9, 0x1d, 0xb7, - 0x07, 0x93, 0x4b, 0x59, 0x20, 0xe3, 0x8e, 0xe9, 0xaa, 0xf8, 0xa7, 0xbd, 0x45, 0x47, 0x4d, 0x83, - 0x5d, 0x53, 0x0c, 0x89, 0x92, 0xb7, 0xb0, 0xa6, 0xf9, 0x95, 0x5e, 0xa9, 0x6b, 0xc3, 0x8c, 0x3f, - 0xc3, 0xee, 0x5d, 0x61, 0x67, 0xc4, 0x2b, 0x05, 0xab, 0x2a, 0x7d, 0x78, 0xfd, 0x6b, 0x56, 0x0a, - 0x7d, 0xd1, 0xe5, 0x49, 0x81, 0x75, 0xda, 0xbf, 0x41, 0x82, 0xa7, 0xa5, 0x6c, 0x8b, 0xb4, 0xc4, - 0xd4, 0x3d, 0x4a, 0xa9, 0x7d, 0x94, 0xf2, 0x89, 0xd1, 0x79, 0xf7, 0x37, 0x00, 0x00, 0xff, 0xff, - 0xd9, 0xd2, 0x12, 0x51, 0xb9, 0x04, 0x00, 0x00, -} diff --git a/go/wechaty/puppet/room_invitation.pb.go b/go/wechaty/puppet/room_invitation.pb.go deleted file mode 100644 index 9f494351..00000000 --- a/go/wechaty/puppet/room_invitation.pb.go +++ /dev/null @@ -1,278 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// source: room_invitation.proto - -package puppet - -import ( - fmt "fmt" - proto "github.com/golang/protobuf/proto" - wrappers "github.com/golang/protobuf/ptypes/wrappers" - math "math" -) - -// Reference imports to suppress errors if they are not otherwise used. -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.ProtoPackageIsVersion3 // please upgrade the proto package - -type RoomInvitationPayloadRequest struct { - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - Payload *wrappers.StringValue `protobuf:"bytes,2,opt,name=payload,proto3" json:"payload,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *RoomInvitationPayloadRequest) Reset() { *m = RoomInvitationPayloadRequest{} } -func (m *RoomInvitationPayloadRequest) String() string { return proto.CompactTextString(m) } -func (*RoomInvitationPayloadRequest) ProtoMessage() {} -func (*RoomInvitationPayloadRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_3b96d9038b90c638, []int{0} -} - -func (m *RoomInvitationPayloadRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_RoomInvitationPayloadRequest.Unmarshal(m, b) -} -func (m *RoomInvitationPayloadRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_RoomInvitationPayloadRequest.Marshal(b, m, deterministic) -} -func (m *RoomInvitationPayloadRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_RoomInvitationPayloadRequest.Merge(m, src) -} -func (m *RoomInvitationPayloadRequest) XXX_Size() int { - return xxx_messageInfo_RoomInvitationPayloadRequest.Size(m) -} -func (m *RoomInvitationPayloadRequest) XXX_DiscardUnknown() { - xxx_messageInfo_RoomInvitationPayloadRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_RoomInvitationPayloadRequest proto.InternalMessageInfo - -func (m *RoomInvitationPayloadRequest) GetId() string { - if m != nil { - return m.Id - } - return "" -} - -func (m *RoomInvitationPayloadRequest) GetPayload() *wrappers.StringValue { - if m != nil { - return m.Payload - } - return nil -} - -type RoomInvitationPayloadResponse struct { - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - InviterId string `protobuf:"bytes,2,opt,name=inviter_id,json=inviterId,proto3" json:"inviter_id,omitempty"` - Topic string `protobuf:"bytes,3,opt,name=topic,proto3" json:"topic,omitempty"` - MemberCount uint32 `protobuf:"varint,4,opt,name=member_count,json=memberCount,proto3" json:"member_count,omitempty"` - MemberIds []string `protobuf:"bytes,5,rep,name=member_ids,json=memberIds,proto3" json:"member_ids,omitempty"` - Timestamp uint64 `protobuf:"varint,6,opt,name=timestamp,proto3" json:"timestamp,omitempty"` - Avatar string `protobuf:"bytes,7,opt,name=avatar,proto3" json:"avatar,omitempty"` - Invitation string `protobuf:"bytes,8,opt,name=invitation,proto3" json:"invitation,omitempty"` - ReceiverId string `protobuf:"bytes,9,opt,name=receiver_id,json=receiverId,proto3" json:"receiver_id,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *RoomInvitationPayloadResponse) Reset() { *m = RoomInvitationPayloadResponse{} } -func (m *RoomInvitationPayloadResponse) String() string { return proto.CompactTextString(m) } -func (*RoomInvitationPayloadResponse) ProtoMessage() {} -func (*RoomInvitationPayloadResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_3b96d9038b90c638, []int{1} -} - -func (m *RoomInvitationPayloadResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_RoomInvitationPayloadResponse.Unmarshal(m, b) -} -func (m *RoomInvitationPayloadResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_RoomInvitationPayloadResponse.Marshal(b, m, deterministic) -} -func (m *RoomInvitationPayloadResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_RoomInvitationPayloadResponse.Merge(m, src) -} -func (m *RoomInvitationPayloadResponse) XXX_Size() int { - return xxx_messageInfo_RoomInvitationPayloadResponse.Size(m) -} -func (m *RoomInvitationPayloadResponse) XXX_DiscardUnknown() { - xxx_messageInfo_RoomInvitationPayloadResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_RoomInvitationPayloadResponse proto.InternalMessageInfo - -func (m *RoomInvitationPayloadResponse) GetId() string { - if m != nil { - return m.Id - } - return "" -} - -func (m *RoomInvitationPayloadResponse) GetInviterId() string { - if m != nil { - return m.InviterId - } - return "" -} - -func (m *RoomInvitationPayloadResponse) GetTopic() string { - if m != nil { - return m.Topic - } - return "" -} - -func (m *RoomInvitationPayloadResponse) GetMemberCount() uint32 { - if m != nil { - return m.MemberCount - } - return 0 -} - -func (m *RoomInvitationPayloadResponse) GetMemberIds() []string { - if m != nil { - return m.MemberIds - } - return nil -} - -func (m *RoomInvitationPayloadResponse) GetTimestamp() uint64 { - if m != nil { - return m.Timestamp - } - return 0 -} - -func (m *RoomInvitationPayloadResponse) GetAvatar() string { - if m != nil { - return m.Avatar - } - return "" -} - -func (m *RoomInvitationPayloadResponse) GetInvitation() string { - if m != nil { - return m.Invitation - } - return "" -} - -func (m *RoomInvitationPayloadResponse) GetReceiverId() string { - if m != nil { - return m.ReceiverId - } - return "" -} - -type RoomInvitationAcceptRequest struct { - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *RoomInvitationAcceptRequest) Reset() { *m = RoomInvitationAcceptRequest{} } -func (m *RoomInvitationAcceptRequest) String() string { return proto.CompactTextString(m) } -func (*RoomInvitationAcceptRequest) ProtoMessage() {} -func (*RoomInvitationAcceptRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_3b96d9038b90c638, []int{2} -} - -func (m *RoomInvitationAcceptRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_RoomInvitationAcceptRequest.Unmarshal(m, b) -} -func (m *RoomInvitationAcceptRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_RoomInvitationAcceptRequest.Marshal(b, m, deterministic) -} -func (m *RoomInvitationAcceptRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_RoomInvitationAcceptRequest.Merge(m, src) -} -func (m *RoomInvitationAcceptRequest) XXX_Size() int { - return xxx_messageInfo_RoomInvitationAcceptRequest.Size(m) -} -func (m *RoomInvitationAcceptRequest) XXX_DiscardUnknown() { - xxx_messageInfo_RoomInvitationAcceptRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_RoomInvitationAcceptRequest proto.InternalMessageInfo - -func (m *RoomInvitationAcceptRequest) GetId() string { - if m != nil { - return m.Id - } - return "" -} - -type RoomInvitationAcceptResponse struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *RoomInvitationAcceptResponse) Reset() { *m = RoomInvitationAcceptResponse{} } -func (m *RoomInvitationAcceptResponse) String() string { return proto.CompactTextString(m) } -func (*RoomInvitationAcceptResponse) ProtoMessage() {} -func (*RoomInvitationAcceptResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_3b96d9038b90c638, []int{3} -} - -func (m *RoomInvitationAcceptResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_RoomInvitationAcceptResponse.Unmarshal(m, b) -} -func (m *RoomInvitationAcceptResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_RoomInvitationAcceptResponse.Marshal(b, m, deterministic) -} -func (m *RoomInvitationAcceptResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_RoomInvitationAcceptResponse.Merge(m, src) -} -func (m *RoomInvitationAcceptResponse) XXX_Size() int { - return xxx_messageInfo_RoomInvitationAcceptResponse.Size(m) -} -func (m *RoomInvitationAcceptResponse) XXX_DiscardUnknown() { - xxx_messageInfo_RoomInvitationAcceptResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_RoomInvitationAcceptResponse proto.InternalMessageInfo - -func init() { - proto.RegisterType((*RoomInvitationPayloadRequest)(nil), "wechaty.puppet.RoomInvitationPayloadRequest") - proto.RegisterType((*RoomInvitationPayloadResponse)(nil), "wechaty.puppet.RoomInvitationPayloadResponse") - proto.RegisterType((*RoomInvitationAcceptRequest)(nil), "wechaty.puppet.RoomInvitationAcceptRequest") - proto.RegisterType((*RoomInvitationAcceptResponse)(nil), "wechaty.puppet.RoomInvitationAcceptResponse") -} - -func init() { proto.RegisterFile("room_invitation.proto", fileDescriptor_3b96d9038b90c638) } - -var fileDescriptor_3b96d9038b90c638 = []byte{ - // 363 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x74, 0x92, 0x4f, 0x6f, 0x9b, 0x40, - 0x10, 0xc5, 0x05, 0xfe, 0x57, 0xd6, 0xad, 0x0f, 0xab, 0xb6, 0x5a, 0xb5, 0xb6, 0x4b, 0x39, 0xa1, - 0x4a, 0x05, 0xa9, 0x95, 0x72, 0x4f, 0x72, 0xe2, 0x16, 0x11, 0x29, 0x87, 0x5c, 0xac, 0x65, 0x19, - 0xe3, 0x95, 0x0c, 0xb3, 0x59, 0x16, 0x5b, 0xfe, 0x30, 0xf9, 0xae, 0x11, 0x2c, 0xe4, 0xaf, 0x7c, - 0xdc, 0xdf, 0x3c, 0xcd, 0xdb, 0x99, 0x79, 0xe4, 0x9b, 0x46, 0x2c, 0x37, 0xb2, 0x3a, 0x48, 0xc3, - 0x8d, 0xc4, 0x2a, 0x52, 0x1a, 0x0d, 0xd2, 0xc5, 0x11, 0xc4, 0x8e, 0x9b, 0x53, 0xa4, 0x1a, 0xa5, - 0xc0, 0xfc, 0x58, 0x17, 0x88, 0xc5, 0x1e, 0xe2, 0xae, 0x9a, 0x35, 0xdb, 0xf8, 0xa8, 0xb9, 0x52, - 0xa0, 0x6b, 0xab, 0x0f, 0xb6, 0x64, 0x99, 0x22, 0x96, 0xc9, 0x73, 0x9f, 0x1b, 0x7e, 0xda, 0x23, - 0xcf, 0x53, 0x78, 0x68, 0xa0, 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0x6c, 0x83, 0xdc, 0x2e, 0xf3, 0xea, - 0xcf, 0x7d, 0x58, 0x48, 0xb3, 0x6b, 0xb2, 0x48, 0x60, 0x19, 0xb7, 0x89, 0x90, 0x10, 0x17, 0x5a, - 0x89, 0xb8, 0xc0, 0xb8, 0x8f, 0x48, 0x6c, 0x23, 0x92, 0x4d, 0xbb, 0xcb, 0xfd, 0x7f, 0x0a, 0x00, - 0x00, 0xff, 0xff, 0x0c, 0xbe, 0xff, 0x4b, 0x52, 0x02, 0x00, 0x00, -} diff --git a/go/wechaty/puppet/room_member.pb.go b/go/wechaty/puppet/room_member.pb.go deleted file mode 100644 index 692bb646..00000000 --- a/go/wechaty/puppet/room_member.pb.go +++ /dev/null @@ -1,247 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// source: room_member.proto - -package puppet - -import ( - fmt "fmt" - proto "github.com/golang/protobuf/proto" - math "math" -) - -// Reference imports to suppress errors if they are not otherwise used. -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.ProtoPackageIsVersion3 // please upgrade the proto package - -type RoomMemberPayloadRequest struct { - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - MemberId string `protobuf:"bytes,2,opt,name=member_id,json=memberId,proto3" json:"member_id,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *RoomMemberPayloadRequest) Reset() { *m = RoomMemberPayloadRequest{} } -func (m *RoomMemberPayloadRequest) String() string { return proto.CompactTextString(m) } -func (*RoomMemberPayloadRequest) ProtoMessage() {} -func (*RoomMemberPayloadRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_63e6562082d7765e, []int{0} -} - -func (m *RoomMemberPayloadRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_RoomMemberPayloadRequest.Unmarshal(m, b) -} -func (m *RoomMemberPayloadRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_RoomMemberPayloadRequest.Marshal(b, m, deterministic) -} -func (m *RoomMemberPayloadRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_RoomMemberPayloadRequest.Merge(m, src) -} -func (m *RoomMemberPayloadRequest) XXX_Size() int { - return xxx_messageInfo_RoomMemberPayloadRequest.Size(m) -} -func (m *RoomMemberPayloadRequest) XXX_DiscardUnknown() { - xxx_messageInfo_RoomMemberPayloadRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_RoomMemberPayloadRequest proto.InternalMessageInfo - -func (m *RoomMemberPayloadRequest) GetId() string { - if m != nil { - return m.Id - } - return "" -} - -func (m *RoomMemberPayloadRequest) GetMemberId() string { - if m != nil { - return m.MemberId - } - return "" -} - -type RoomMemberPayloadResponse struct { - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - RoomAlias string `protobuf:"bytes,2,opt,name=room_alias,json=roomAlias,proto3" json:"room_alias,omitempty"` - InviterId string `protobuf:"bytes,3,opt,name=inviter_id,json=inviterId,proto3" json:"inviter_id,omitempty"` - Avatar string `protobuf:"bytes,4,opt,name=avatar,proto3" json:"avatar,omitempty"` - Name string `protobuf:"bytes,5,opt,name=name,proto3" json:"name,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *RoomMemberPayloadResponse) Reset() { *m = RoomMemberPayloadResponse{} } -func (m *RoomMemberPayloadResponse) String() string { return proto.CompactTextString(m) } -func (*RoomMemberPayloadResponse) ProtoMessage() {} -func (*RoomMemberPayloadResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_63e6562082d7765e, []int{1} -} - -func (m *RoomMemberPayloadResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_RoomMemberPayloadResponse.Unmarshal(m, b) -} -func (m *RoomMemberPayloadResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_RoomMemberPayloadResponse.Marshal(b, m, deterministic) -} -func (m *RoomMemberPayloadResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_RoomMemberPayloadResponse.Merge(m, src) -} -func (m *RoomMemberPayloadResponse) XXX_Size() int { - return xxx_messageInfo_RoomMemberPayloadResponse.Size(m) -} -func (m *RoomMemberPayloadResponse) XXX_DiscardUnknown() { - xxx_messageInfo_RoomMemberPayloadResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_RoomMemberPayloadResponse proto.InternalMessageInfo - -func (m *RoomMemberPayloadResponse) GetId() string { - if m != nil { - return m.Id - } - return "" -} - -func (m *RoomMemberPayloadResponse) GetRoomAlias() string { - if m != nil { - return m.RoomAlias - } - return "" -} - -func (m *RoomMemberPayloadResponse) GetInviterId() string { - if m != nil { - return m.InviterId - } - return "" -} - -func (m *RoomMemberPayloadResponse) GetAvatar() string { - if m != nil { - return m.Avatar - } - return "" -} - -func (m *RoomMemberPayloadResponse) GetName() string { - if m != nil { - return m.Name - } - return "" -} - -type RoomMemberListRequest struct { - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *RoomMemberListRequest) Reset() { *m = RoomMemberListRequest{} } -func (m *RoomMemberListRequest) String() string { return proto.CompactTextString(m) } -func (*RoomMemberListRequest) ProtoMessage() {} -func (*RoomMemberListRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_63e6562082d7765e, []int{2} -} - -func (m *RoomMemberListRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_RoomMemberListRequest.Unmarshal(m, b) -} -func (m *RoomMemberListRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_RoomMemberListRequest.Marshal(b, m, deterministic) -} -func (m *RoomMemberListRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_RoomMemberListRequest.Merge(m, src) -} -func (m *RoomMemberListRequest) XXX_Size() int { - return xxx_messageInfo_RoomMemberListRequest.Size(m) -} -func (m *RoomMemberListRequest) XXX_DiscardUnknown() { - xxx_messageInfo_RoomMemberListRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_RoomMemberListRequest proto.InternalMessageInfo - -func (m *RoomMemberListRequest) GetId() string { - if m != nil { - return m.Id - } - return "" -} - -type RoomMemberListResponse struct { - MemberIds []string `protobuf:"bytes,1,rep,name=member_ids,json=memberIds,proto3" json:"member_ids,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *RoomMemberListResponse) Reset() { *m = RoomMemberListResponse{} } -func (m *RoomMemberListResponse) String() string { return proto.CompactTextString(m) } -func (*RoomMemberListResponse) ProtoMessage() {} -func (*RoomMemberListResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_63e6562082d7765e, []int{3} -} - -func (m *RoomMemberListResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_RoomMemberListResponse.Unmarshal(m, b) -} -func (m *RoomMemberListResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_RoomMemberListResponse.Marshal(b, m, deterministic) -} -func (m *RoomMemberListResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_RoomMemberListResponse.Merge(m, src) -} -func (m *RoomMemberListResponse) XXX_Size() int { - return xxx_messageInfo_RoomMemberListResponse.Size(m) -} -func (m *RoomMemberListResponse) XXX_DiscardUnknown() { - xxx_messageInfo_RoomMemberListResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_RoomMemberListResponse proto.InternalMessageInfo - -func (m *RoomMemberListResponse) GetMemberIds() []string { - if m != nil { - return m.MemberIds - } - return nil -} - -func init() { - proto.RegisterType((*RoomMemberPayloadRequest)(nil), "wechaty.puppet.RoomMemberPayloadRequest") - proto.RegisterType((*RoomMemberPayloadResponse)(nil), "wechaty.puppet.RoomMemberPayloadResponse") - proto.RegisterType((*RoomMemberListRequest)(nil), "wechaty.puppet.RoomMemberListRequest") - proto.RegisterType((*RoomMemberListResponse)(nil), "wechaty.puppet.RoomMemberListResponse") -} - -func init() { proto.RegisterFile("room_member.proto", fileDescriptor_63e6562082d7765e) } - -var fileDescriptor_63e6562082d7765e = []byte{ - // 266 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x74, 0x91, 0xcd, 0x4a, 0x03, 0x31, - 0x14, 0x85, 0x99, 0x69, 0x2d, 0xce, 0x5d, 0x14, 0x0c, 0x58, 0x22, 0x52, 0x28, 0xb3, 0xb1, 0xb8, - 0x98, 0x59, 0xb8, 0x70, 0xad, 0x1b, 0x29, 0x28, 0xc8, 0x2c, 0xdd, 0x94, 0xcc, 0x24, 0x4c, 0x03, - 0xcd, 0xdc, 0x98, 0x64, 0x2a, 0x7d, 0x10, 0xdf, 0x57, 0xf2, 0xa3, 0x82, 0x3f, 0xbb, 0xe4, 0xbb, - 0x97, 0x93, 0x73, 0x4e, 0xe0, 0xcc, 0x20, 0xaa, 0xad, 0x12, 0xaa, 0x15, 0xa6, 0xd2, 0x06, 0x1d, - 0x92, 0xf9, 0x9b, 0xe8, 0x76, 0xcc, 0x1d, 0x2b, 0x3d, 0x6a, 0x2d, 0x5c, 0xf9, 0x00, 0xb4, 0x41, - 0x54, 0x4f, 0x61, 0xe7, 0x99, 0x1d, 0xf7, 0xc8, 0x78, 0x23, 0x5e, 0x47, 0x61, 0x1d, 0x99, 0x43, - 0x2e, 0x39, 0xcd, 0x56, 0xd9, 0xba, 0x68, 0x72, 0xc9, 0xc9, 0x25, 0x14, 0x51, 0x6b, 0x2b, 0x39, - 0xcd, 0x03, 0x3e, 0x8d, 0x60, 0xc3, 0xcb, 0xf7, 0x0c, 0x2e, 0xfe, 0x50, 0xb2, 0x1a, 0x07, 0x2b, - 0x7e, 0x49, 0x2d, 0x01, 0x82, 0x37, 0xb6, 0x97, 0xcc, 0x26, 0xad, 0xc2, 0x93, 0x3b, 0x0f, 0xfc, - 0x58, 0x0e, 0x07, 0xe9, 0xe2, 0x53, 0x93, 0x38, 0x4e, 0x64, 0xc3, 0xc9, 0x02, 0x66, 0xec, 0xc0, - 0x1c, 0x33, 0x74, 0x1a, 0x46, 0xe9, 0x46, 0x08, 0x4c, 0x07, 0xa6, 0x04, 0x3d, 0x09, 0x34, 0x9c, - 0xcb, 0x2b, 0x38, 0xff, 0xb6, 0xf5, 0x28, 0xad, 0xfb, 0x27, 0x5d, 0x79, 0x0b, 0x8b, 0x9f, 0x8b, - 0xc9, 0xfc, 0x12, 0xe0, 0x2b, 0xb7, 0xa5, 0xd9, 0x6a, 0xe2, 0xdd, 0x7c, 0x06, 0xb7, 0xf7, 0xd7, - 0x2f, 0xeb, 0x5e, 0xba, 0xdd, 0xd8, 0x56, 0x1d, 0xaa, 0xda, 0xb7, 0x2b, 0x45, 0xdd, 0x1b, 0xdd, - 0xd5, 0x3d, 0xd6, 0xa9, 0xee, 0x3a, 0xd6, 0xdd, 0xce, 0xc2, 0x2f, 0xdc, 0x7c, 0x04, 0x00, 0x00, - 0xff, 0xff, 0x7a, 0x48, 0x5c, 0x1d, 0x9a, 0x01, 0x00, 0x00, -} diff --git a/go/wechaty/puppet/tag.pb.go b/go/wechaty/puppet/tag.pb.go deleted file mode 100644 index f4c9f2be..00000000 --- a/go/wechaty/puppet/tag.pb.go +++ /dev/null @@ -1,361 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// source: tag.proto - -package puppet - -import ( - fmt "fmt" - proto "github.com/golang/protobuf/proto" - wrappers "github.com/golang/protobuf/ptypes/wrappers" - math "math" -) - -// Reference imports to suppress errors if they are not otherwise used. -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.ProtoPackageIsVersion3 // please upgrade the proto package - -type TagContactAddRequest struct { - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - ContactId string `protobuf:"bytes,2,opt,name=contact_id,json=contactId,proto3" json:"contact_id,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *TagContactAddRequest) Reset() { *m = TagContactAddRequest{} } -func (m *TagContactAddRequest) String() string { return proto.CompactTextString(m) } -func (*TagContactAddRequest) ProtoMessage() {} -func (*TagContactAddRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_27f545bcde37ecb5, []int{0} -} - -func (m *TagContactAddRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TagContactAddRequest.Unmarshal(m, b) -} -func (m *TagContactAddRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TagContactAddRequest.Marshal(b, m, deterministic) -} -func (m *TagContactAddRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_TagContactAddRequest.Merge(m, src) -} -func (m *TagContactAddRequest) XXX_Size() int { - return xxx_messageInfo_TagContactAddRequest.Size(m) -} -func (m *TagContactAddRequest) XXX_DiscardUnknown() { - xxx_messageInfo_TagContactAddRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_TagContactAddRequest proto.InternalMessageInfo - -func (m *TagContactAddRequest) GetId() string { - if m != nil { - return m.Id - } - return "" -} - -func (m *TagContactAddRequest) GetContactId() string { - if m != nil { - return m.ContactId - } - return "" -} - -type TagContactAddResponse struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *TagContactAddResponse) Reset() { *m = TagContactAddResponse{} } -func (m *TagContactAddResponse) String() string { return proto.CompactTextString(m) } -func (*TagContactAddResponse) ProtoMessage() {} -func (*TagContactAddResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_27f545bcde37ecb5, []int{1} -} - -func (m *TagContactAddResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TagContactAddResponse.Unmarshal(m, b) -} -func (m *TagContactAddResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TagContactAddResponse.Marshal(b, m, deterministic) -} -func (m *TagContactAddResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_TagContactAddResponse.Merge(m, src) -} -func (m *TagContactAddResponse) XXX_Size() int { - return xxx_messageInfo_TagContactAddResponse.Size(m) -} -func (m *TagContactAddResponse) XXX_DiscardUnknown() { - xxx_messageInfo_TagContactAddResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_TagContactAddResponse proto.InternalMessageInfo - -type TagContactRemoveRequest struct { - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - ContactId string `protobuf:"bytes,2,opt,name=contact_id,json=contactId,proto3" json:"contact_id,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *TagContactRemoveRequest) Reset() { *m = TagContactRemoveRequest{} } -func (m *TagContactRemoveRequest) String() string { return proto.CompactTextString(m) } -func (*TagContactRemoveRequest) ProtoMessage() {} -func (*TagContactRemoveRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_27f545bcde37ecb5, []int{2} -} - -func (m *TagContactRemoveRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TagContactRemoveRequest.Unmarshal(m, b) -} -func (m *TagContactRemoveRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TagContactRemoveRequest.Marshal(b, m, deterministic) -} -func (m *TagContactRemoveRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_TagContactRemoveRequest.Merge(m, src) -} -func (m *TagContactRemoveRequest) XXX_Size() int { - return xxx_messageInfo_TagContactRemoveRequest.Size(m) -} -func (m *TagContactRemoveRequest) XXX_DiscardUnknown() { - xxx_messageInfo_TagContactRemoveRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_TagContactRemoveRequest proto.InternalMessageInfo - -func (m *TagContactRemoveRequest) GetId() string { - if m != nil { - return m.Id - } - return "" -} - -func (m *TagContactRemoveRequest) GetContactId() string { - if m != nil { - return m.ContactId - } - return "" -} - -type TagContactRemoveResponse struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *TagContactRemoveResponse) Reset() { *m = TagContactRemoveResponse{} } -func (m *TagContactRemoveResponse) String() string { return proto.CompactTextString(m) } -func (*TagContactRemoveResponse) ProtoMessage() {} -func (*TagContactRemoveResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_27f545bcde37ecb5, []int{3} -} - -func (m *TagContactRemoveResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TagContactRemoveResponse.Unmarshal(m, b) -} -func (m *TagContactRemoveResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TagContactRemoveResponse.Marshal(b, m, deterministic) -} -func (m *TagContactRemoveResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_TagContactRemoveResponse.Merge(m, src) -} -func (m *TagContactRemoveResponse) XXX_Size() int { - return xxx_messageInfo_TagContactRemoveResponse.Size(m) -} -func (m *TagContactRemoveResponse) XXX_DiscardUnknown() { - xxx_messageInfo_TagContactRemoveResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_TagContactRemoveResponse proto.InternalMessageInfo - -type TagContactDeleteRequest struct { - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *TagContactDeleteRequest) Reset() { *m = TagContactDeleteRequest{} } -func (m *TagContactDeleteRequest) String() string { return proto.CompactTextString(m) } -func (*TagContactDeleteRequest) ProtoMessage() {} -func (*TagContactDeleteRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_27f545bcde37ecb5, []int{4} -} - -func (m *TagContactDeleteRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TagContactDeleteRequest.Unmarshal(m, b) -} -func (m *TagContactDeleteRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TagContactDeleteRequest.Marshal(b, m, deterministic) -} -func (m *TagContactDeleteRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_TagContactDeleteRequest.Merge(m, src) -} -func (m *TagContactDeleteRequest) XXX_Size() int { - return xxx_messageInfo_TagContactDeleteRequest.Size(m) -} -func (m *TagContactDeleteRequest) XXX_DiscardUnknown() { - xxx_messageInfo_TagContactDeleteRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_TagContactDeleteRequest proto.InternalMessageInfo - -func (m *TagContactDeleteRequest) GetId() string { - if m != nil { - return m.Id - } - return "" -} - -type TagContactDeleteResponse struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *TagContactDeleteResponse) Reset() { *m = TagContactDeleteResponse{} } -func (m *TagContactDeleteResponse) String() string { return proto.CompactTextString(m) } -func (*TagContactDeleteResponse) ProtoMessage() {} -func (*TagContactDeleteResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_27f545bcde37ecb5, []int{5} -} - -func (m *TagContactDeleteResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TagContactDeleteResponse.Unmarshal(m, b) -} -func (m *TagContactDeleteResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TagContactDeleteResponse.Marshal(b, m, deterministic) -} -func (m *TagContactDeleteResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_TagContactDeleteResponse.Merge(m, src) -} -func (m *TagContactDeleteResponse) XXX_Size() int { - return xxx_messageInfo_TagContactDeleteResponse.Size(m) -} -func (m *TagContactDeleteResponse) XXX_DiscardUnknown() { - xxx_messageInfo_TagContactDeleteResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_TagContactDeleteResponse proto.InternalMessageInfo - -type TagContactListRequest struct { - ContactId *wrappers.StringValue `protobuf:"bytes,1,opt,name=contact_id,json=contactId,proto3" json:"contact_id,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *TagContactListRequest) Reset() { *m = TagContactListRequest{} } -func (m *TagContactListRequest) String() string { return proto.CompactTextString(m) } -func (*TagContactListRequest) ProtoMessage() {} -func (*TagContactListRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_27f545bcde37ecb5, []int{6} -} - -func (m *TagContactListRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TagContactListRequest.Unmarshal(m, b) -} -func (m *TagContactListRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TagContactListRequest.Marshal(b, m, deterministic) -} -func (m *TagContactListRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_TagContactListRequest.Merge(m, src) -} -func (m *TagContactListRequest) XXX_Size() int { - return xxx_messageInfo_TagContactListRequest.Size(m) -} -func (m *TagContactListRequest) XXX_DiscardUnknown() { - xxx_messageInfo_TagContactListRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_TagContactListRequest proto.InternalMessageInfo - -func (m *TagContactListRequest) GetContactId() *wrappers.StringValue { - if m != nil { - return m.ContactId - } - return nil -} - -type TagContactListResponse struct { - Ids []string `protobuf:"bytes,1,rep,name=ids,proto3" json:"ids,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *TagContactListResponse) Reset() { *m = TagContactListResponse{} } -func (m *TagContactListResponse) String() string { return proto.CompactTextString(m) } -func (*TagContactListResponse) ProtoMessage() {} -func (*TagContactListResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_27f545bcde37ecb5, []int{7} -} - -func (m *TagContactListResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TagContactListResponse.Unmarshal(m, b) -} -func (m *TagContactListResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TagContactListResponse.Marshal(b, m, deterministic) -} -func (m *TagContactListResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_TagContactListResponse.Merge(m, src) -} -func (m *TagContactListResponse) XXX_Size() int { - return xxx_messageInfo_TagContactListResponse.Size(m) -} -func (m *TagContactListResponse) XXX_DiscardUnknown() { - xxx_messageInfo_TagContactListResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_TagContactListResponse proto.InternalMessageInfo - -func (m *TagContactListResponse) GetIds() []string { - if m != nil { - return m.Ids - } - return nil -} - -func init() { - proto.RegisterType((*TagContactAddRequest)(nil), "wechaty.puppet.TagContactAddRequest") - proto.RegisterType((*TagContactAddResponse)(nil), "wechaty.puppet.TagContactAddResponse") - proto.RegisterType((*TagContactRemoveRequest)(nil), "wechaty.puppet.TagContactRemoveRequest") - proto.RegisterType((*TagContactRemoveResponse)(nil), "wechaty.puppet.TagContactRemoveResponse") - proto.RegisterType((*TagContactDeleteRequest)(nil), "wechaty.puppet.TagContactDeleteRequest") - proto.RegisterType((*TagContactDeleteResponse)(nil), "wechaty.puppet.TagContactDeleteResponse") - proto.RegisterType((*TagContactListRequest)(nil), "wechaty.puppet.TagContactListRequest") - proto.RegisterType((*TagContactListResponse)(nil), "wechaty.puppet.TagContactListResponse") -} - -func init() { proto.RegisterFile("tag.proto", fileDescriptor_27f545bcde37ecb5) } - -var fileDescriptor_27f545bcde37ecb5 = []byte{ - // 278 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8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