diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index 29d2d99..aa4b013 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -17,7 +17,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v2
with:
- go-version: '1.18'
+ go-version: '1.20'
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2
diff --git a/README.md b/README.md
index 666cbfd..8b3422a 100644
--- a/README.md
+++ b/README.md
@@ -4,12 +4,18 @@
用于收发QQ消息,并通过 websocket + protobuf 上报给 server 进行处理。
-支持的开发语言:[Java/Kotlin](https://github.com/protobufbot/spring-mirai-server) , [JavaScript](https://github.com/ProtobufBot/js-pbbot/blob/master/example/src/index.js) , [Python](https://github.com/PHIKN1GHT/pypbbot/tree/main/pypbbot_examples) , [Golang](https://github.com/ProtobufBot/go-pbbot/blob/master/test/bot_test.go) , [C/C++](https://github.com/ProtobufBot/cpp-pbbot/blob/main/src/event_handler/event_handler.cpp) , [易语言](https://github.com/protobufbot/pbbot_e_sdk) 。详情查看 [Protobufbot](https://github.com/ProtobufBot/ProtobufBot) 。
+支持的开发语言:[Java/Kotlin](https://github.com/protobufbot/spring-mirai-server) , [JavaScript](https://github.com/2mf8/TSPbBot) , [TypeScript](https://github.com/2mf8/TSPbBot/blob/master/src/demo/index.ts) , [Python](https://github.com/PHIKN1GHT/pypbbot/tree/main/pypbbot_examples) , [Golang](https://github.com/2mf8/GoPbBot/blob/master/test/bot_test.go) , [C/C++](https://github.com/ProtobufBot/cpp-pbbot/blob/main/src/event_handler/event_handler.cpp) , [易语言](https://github.com/protobufbot/pbbot_e_sdk) 。详情查看 [Protobufbot](https://github.com/ProtobufBot/ProtobufBot) 。
可以使用其他任意语言编写websocket server实现通信,协议:[onebot_idl](https://github.com/lz1998/onebot_idl)
有问题发issue,或者进QQ群335783090
+## 频道API使用条件
+
+必须是AndroidPhone协议且子频道通知开启(关闭通知将无法接收消息)【订不订阅无所谓】
+
+已支持频道API的SDK有 [JavaScript](https://github.com/2mf8/TSPbBot) , [TypeScript](https://github.com/2mf8/TSPbBot/blob/master/src/demo/index.ts) , [Golang](https://github.com/2mf8/GoPbBot/blob/master/test/bot_test.go)
+
## 使用说明
1. 启动程序
@@ -121,5 +127,7 @@ lz1998/gmc:0.1.19
- AndroidWatch: 2
- MacOS: 3
- 企点: 4
+- IPad: 5
+- AndroidPad: 6
输入其他数字默认表示IPad
diff --git a/go.mod b/go.mod
index 0b27338..ff115bd 100644
--- a/go.mod
+++ b/go.mod
@@ -1,54 +1,60 @@
module github.com/ProtobufBot/Go-Mirai-Client
-go 1.19
+go 1.20
require (
- github.com/Mrs4s/MiraiGo v0.0.0-20221206193101-cf66e2864798
+ github.com/Mrs4s/MiraiGo v0.0.0-20230319092203-62d60f132203
github.com/fanliao/go-promise v0.0.0-20141029170127-1890db352a72
- github.com/gin-gonic/gin v1.8.1
+ github.com/gin-gonic/gin v1.9.0
github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da
- github.com/golang/protobuf v1.5.2
+ github.com/golang/protobuf v1.5.3
github.com/gorilla/websocket v1.5.0
github.com/lestrrat-go/file-rotatelogs v2.4.0+incompatible
github.com/pkg/errors v0.9.1
github.com/rifflock/lfshook v0.0.0-20180920164130-b9218ef580f5
github.com/sirupsen/logrus v1.9.0
github.com/t-tomalak/logrus-easy-formatter v0.0.0-20190827215021-c074f06c5816
- github.com/tidwall/gjson v1.14.3
+ github.com/tidwall/gjson v1.14.4
github.com/zserge/lorca v0.1.10
- golang.org/x/mobile v0.0.0-20220722155234-aaac322e2105
+ golang.org/x/mobile v0.0.0-20230301163155-e0f57694e12c
+ google.golang.org/grpc v1.53.0
+ google.golang.org/protobuf v1.30.0
)
require (
- github.com/RomiChan/protobuf v0.1.1-0.20220624030127-3310cba9dbc0 // indirect
+ github.com/RomiChan/protobuf v0.1.1-0.20230204044148-2ed269a2e54d // indirect
github.com/RomiChan/syncx v0.0.0-20220404072119-d7ea0ae15a4c // indirect
+ github.com/bytedance/sonic v1.8.0 // indirect
+ github.com/chenzhuoyu/base64x v0.0.0-20221115062448-fe3a3abad311 // indirect
github.com/fumiama/imgsz v0.0.2 // indirect
github.com/gin-contrib/sse v0.1.0 // indirect
- github.com/go-playground/locales v0.14.0 // indirect
- github.com/go-playground/universal-translator v0.18.0 // indirect
- github.com/go-playground/validator/v10 v10.10.0 // indirect
- github.com/goccy/go-json v0.9.7 // indirect
+ github.com/go-playground/locales v0.14.1 // indirect
+ github.com/go-playground/universal-translator v0.18.1 // indirect
+ github.com/go-playground/validator/v10 v10.11.2 // indirect
+ github.com/goccy/go-json v0.10.0 // indirect
github.com/jonboulle/clockwork v0.3.0 // indirect
github.com/json-iterator/go v1.1.12 // indirect
+ github.com/klauspost/cpuid/v2 v2.0.9 // indirect
github.com/leodido/go-urn v1.2.1 // indirect
github.com/lestrrat-go/strftime v1.0.6 // indirect
- github.com/mattn/go-isatty v0.0.14 // indirect
+ github.com/mattn/go-isatty v0.0.17 // indirect
github.com/modern-go/concurrent v0.0.0-20180228061459-e0a39a4cb421 // indirect
github.com/modern-go/reflect2 v1.0.2 // indirect
- github.com/pelletier/go-toml/v2 v2.0.1 // indirect
+ github.com/pelletier/go-toml/v2 v2.0.6 // indirect
github.com/pierrec/lz4/v4 v4.1.15 // indirect
github.com/smartystreets/goconvey v1.7.2 // indirect
github.com/tidwall/match v1.1.1 // indirect
github.com/tidwall/pretty v1.2.0 // indirect
- github.com/ugorji/go/codec v1.2.7 // indirect
- golang.org/x/crypto v0.0.0-20210711020723-a769d52b0f97 // indirect
- golang.org/x/mod v0.4.2 // indirect
- golang.org/x/net v0.0.0-20210805182204-aaa1db679c0d // indirect
+ github.com/twitchyliquid64/golang-asm v0.15.1 // indirect
+ github.com/ugorji/go/codec v1.2.9 // indirect
+ golang.org/x/arch v0.0.0-20210923205945-b76863e36670 // indirect
+ golang.org/x/crypto v0.5.0 // indirect
+ golang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4 // indirect
+ golang.org/x/net v0.7.0 // indirect
golang.org/x/sync v0.0.0-20220819030929-7fc1605a5dde // indirect
- golang.org/x/sys v0.0.0-20220715151400-c0bba94af5f8 // indirect
- golang.org/x/text v0.3.6 // indirect
- golang.org/x/tools v0.1.8-0.20211022200916-316ba0b74098 // indirect
- golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1 // indirect
- google.golang.org/protobuf v1.28.0 // indirect
- gopkg.in/yaml.v2 v2.4.0 // indirect
+ golang.org/x/sys v0.5.0 // indirect
+ golang.org/x/text v0.7.0 // indirect
+ golang.org/x/tools v0.1.12 // indirect
+ google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f // indirect
+ gopkg.in/yaml.v3 v3.0.1 // indirect
)
diff --git a/go.sum b/go.sum
index 438658b..0380bd7 100644
--- a/go.sum
+++ b/go.sum
@@ -1,13 +1,15 @@
-github.com/BurntSushi/xgb v0.0.0-20160522181843-27f122750802/go.mod h1:IVnqGOEym/WlBOVXweHU+Q+/VP0lqqI8lqeDx9IjBqo=
-github.com/Mrs4s/MiraiGo v0.0.0-20220925082653-d3b8c5f700af h1:4xe+9ejyGT2LkFI9FTASqFGE5Xqbk53F9palO3sLFPw=
-github.com/Mrs4s/MiraiGo v0.0.0-20220925082653-d3b8c5f700af/go.mod h1:lecSP26qedhinCceWn1x02dLDxGotH5nTFlpIMilmVM=
-github.com/Mrs4s/MiraiGo v0.0.0-20221206193101-cf66e2864798 h1:PjpiHpZz0Y15EjSHpPw3+q2PWQsll5OGobbvKrPpxIk=
-github.com/Mrs4s/MiraiGo v0.0.0-20221206193101-cf66e2864798/go.mod h1:lecSP26qedhinCceWn1x02dLDxGotH5nTFlpIMilmVM=
-github.com/RomiChan/protobuf v0.1.1-0.20220624030127-3310cba9dbc0 h1:+UGPBYVjssFsdahLJIiNPwpmmwgl/OaVdv1oc5NonC0=
-github.com/RomiChan/protobuf v0.1.1-0.20220624030127-3310cba9dbc0/go.mod h1:2Ie+hdBFQpQFDHfeklgxoFmQRCE7O+KwFpISeXq7OwA=
+github.com/Mrs4s/MiraiGo v0.0.0-20230319092203-62d60f132203 h1:H/bZoEPwRK/TgqqFxtQGY1gO5Vj28/LskhT5wIyzxlo=
+github.com/Mrs4s/MiraiGo v0.0.0-20230319092203-62d60f132203/go.mod h1:mU3fBFU+7eO0kaGes7YRKtzIDtwIU84nSSwTV7NK2b0=
+github.com/RomiChan/protobuf v0.1.1-0.20230204044148-2ed269a2e54d h1:/Xuj3fIiMY2ls1TwvPKmaqQrtJsPY+c9s+0lOScVHd8=
+github.com/RomiChan/protobuf v0.1.1-0.20230204044148-2ed269a2e54d/go.mod h1:2Ie+hdBFQpQFDHfeklgxoFmQRCE7O+KwFpISeXq7OwA=
github.com/RomiChan/syncx v0.0.0-20220404072119-d7ea0ae15a4c h1:cNPOdTNiVwxLpROLjXCgbIPvdkE+BwvxDvgmdYmWx6Q=
github.com/RomiChan/syncx v0.0.0-20220404072119-d7ea0ae15a4c/go.mod h1:KqZzu7slNKROh3TSYEH/IUMG6f4M+1qubZ5e52QypsE=
-github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E=
+github.com/bytedance/sonic v1.5.0/go.mod h1:ED5hyg4y6t3/9Ku1R6dU/4KyJ48DZ4jPhfY1O2AihPM=
+github.com/bytedance/sonic v1.8.0 h1:ea0Xadu+sHlu7x5O3gKhRpQ1IKiMrSiHttPF0ybECuA=
+github.com/bytedance/sonic v1.8.0/go.mod h1:i736AoUSYt75HyZLoJW9ERYxcy6eaN6h4BZXU064P/U=
+github.com/chenzhuoyu/base64x v0.0.0-20211019084208-fb5309c8db06/go.mod h1:DH46F32mSOjUmXrMHnKwZdA8wcEefY7UVqBKYGjpdQY=
+github.com/chenzhuoyu/base64x v0.0.0-20221115062448-fe3a3abad311 h1:qSGYFH7+jGhDF8vLC+iwCD4WpbV1EBDSzWkJODFLams=
+github.com/chenzhuoyu/base64x v0.0.0-20221115062448-fe3a3abad311/go.mod h1:b583jCggY9gE99b6G5LEC39OIiVsWj+R97kbl5odCEk=
github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
@@ -17,25 +19,24 @@ github.com/fumiama/imgsz v0.0.2 h1:fAkC0FnIscdKOXwAxlyw3EUba5NzxZdSxGaq3Uyfxak=
github.com/fumiama/imgsz v0.0.2/go.mod h1:dR71mI3I2O5u6+PCpd47M9TZptzP+39tRBcbdIkoqM4=
github.com/gin-contrib/sse v0.1.0 h1:Y/yl/+YNO8GZSjAhjMsSuLt29uWRFHdHYUb5lYOV9qE=
github.com/gin-contrib/sse v0.1.0/go.mod h1:RHrZQHXnP2xjPF+u1gW/2HnVO7nvIa9PG3Gm+fLHvGI=
-github.com/gin-gonic/gin v1.8.1 h1:4+fr/el88TOO3ewCmQr8cx/CtZ/umlIRIs5M4NTNjf8=
-github.com/gin-gonic/gin v1.8.1/go.mod h1:ji8BvRH1azfM+SYow9zQ6SZMvR8qOMZHmsCuWR9tTTk=
-github.com/go-playground/assert/v2 v2.0.1 h1:MsBgLAaY856+nPRTKrp3/OZK38U/wa0CcBYNjji3q3A=
-github.com/go-playground/assert/v2 v2.0.1/go.mod h1:VDjEfimB/XKnb+ZQfWdccd7VUvScMdVu0Titje2rxJ4=
-github.com/go-playground/locales v0.14.0 h1:u50s323jtVGugKlcYeyzC0etD1HifMjqmJqb8WugfUU=
-github.com/go-playground/locales v0.14.0/go.mod h1:sawfccIbzZTqEDETgFXqTho0QybSa7l++s0DH+LDiLs=
-github.com/go-playground/universal-translator v0.18.0 h1:82dyy6p4OuJq4/CByFNOn/jYrnRPArHwAcmLoJZxyho=
-github.com/go-playground/universal-translator v0.18.0/go.mod h1:UvRDBj+xPUEGrFYl+lu/H90nyDXpg0fqeB/AQUGNTVA=
-github.com/go-playground/validator/v10 v10.10.0 h1:I7mrTYv78z8k8VXa/qJlOlEXn/nBh+BF8dHX5nt/dr0=
-github.com/go-playground/validator/v10 v10.10.0/go.mod h1:74x4gJWsvQexRdW8Pn3dXSGrTK4nAUsbPlLADvpJkos=
-github.com/goccy/go-json v0.9.7 h1:IcB+Aqpx/iMHu5Yooh7jEzJk1JZ7Pjtmys2ukPr7EeM=
-github.com/goccy/go-json v0.9.7/go.mod h1:6MelG93GURQebXPDq3khkgXZkazVtN9CRI+MGFi0w8I=
+github.com/gin-gonic/gin v1.9.0 h1:OjyFBKICoexlu99ctXNR2gg+c5pKrKMuyjgARg9qeY8=
+github.com/gin-gonic/gin v1.9.0/go.mod h1:W1Me9+hsUSyj3CePGrd1/QrKJMSJ1Tu/0hFEH89961k=
+github.com/go-playground/assert/v2 v2.2.0 h1:JvknZsQTYeFEAhQwI4qEt9cyV5ONwRHC+lYKSsYSR8s=
+github.com/go-playground/locales v0.14.1 h1:EWaQ/wswjilfKLTECiXz7Rh+3BjFhfDFKv/oXslEjJA=
+github.com/go-playground/locales v0.14.1/go.mod h1:hxrqLVvrK65+Rwrd5Fc6F2O76J/NuW9t0sjnWqG1slY=
+github.com/go-playground/universal-translator v0.18.1 h1:Bcnm0ZwsGyWbCzImXv+pAJnYK9S473LQFuzCbDbfSFY=
+github.com/go-playground/universal-translator v0.18.1/go.mod h1:xekY+UJKNuX9WP91TpwSH2VMlDf28Uj24BCp08ZFTUY=
+github.com/go-playground/validator/v10 v10.11.2 h1:q3SHpufmypg+erIExEKUmsgmhDTyhcJ38oeKGACXohU=
+github.com/go-playground/validator/v10 v10.11.2/go.mod h1:NieE624vt4SCTJtD87arVLvdmjPAeV8BQlHtMnw9D7s=
+github.com/goccy/go-json v0.10.0 h1:mXKd9Qw4NuzShiRlOXKews24ufknHO7gx30lsDyokKA=
+github.com/goccy/go-json v0.10.0/go.mod h1:6MelG93GURQebXPDq3khkgXZkazVtN9CRI+MGFi0w8I=
github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da h1:oI5xCqsCo564l8iNU+DwB5epxmsaqB+rhGL0m5jtYqE=
github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc=
github.com/golang/protobuf v1.5.0/go.mod h1:FsONVRAS9T7sI+LIUmWTfcYkHO4aIWwzhcaSAoJOfIk=
-github.com/golang/protobuf v1.5.2 h1:ROPKBNFfQgOUMifHyP+KYbvpjbdoFNs+aK7DXlji0Tw=
-github.com/golang/protobuf v1.5.2/go.mod h1:XVQd3VNwM+JqD3oG2Ue2ip4fOMUkwXdXDdiuN0vRsmY=
-github.com/google/go-cmp v0.5.5 h1:Khx7svrCpmxxtHBq5j2mp/xVjsi8hQMfNLvJFAlrGgU=
+github.com/golang/protobuf v1.5.3 h1:KhyjKVUg7Usr/dYsdSqoFveMYd5ko72D+zANwlG1mmg=
+github.com/golang/protobuf v1.5.3/go.mod h1:XVQd3VNwM+JqD3oG2Ue2ip4fOMUkwXdXDdiuN0vRsmY=
github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
+github.com/google/go-cmp v0.5.9 h1:O2Tfq5qg4qc4AmwVlvv0oLiVAGB7enBSJ2x2DqQFi38=
github.com/google/gofuzz v1.0.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg=
github.com/gopherjs/gopherjs v0.0.0-20181017120253-0766667cb4d1 h1:EGx4pi6eqNxGaHF6qqu48+N2wcFQ5qg5FXgOdqsJ5d8=
github.com/gopherjs/gopherjs v0.0.0-20181017120253-0766667cb4d1/go.mod h1:wJfORRmW1u3UXTncJ5qlYoELFm8eSnnEO6hX4iZ3EWY=
@@ -47,15 +48,11 @@ github.com/json-iterator/go v1.1.12 h1:PV8peI4a0ysnczrg+LtxykD8LfKY9ML6u2jnxaEnr
github.com/json-iterator/go v1.1.12/go.mod h1:e30LSqwooZae/UwlEbR2852Gd8hjQvJoHmT4TnhNGBo=
github.com/jtolds/gls v4.20.0+incompatible h1:xdiiI2gbIgH/gLH7ADydsJ1uDOEzR8yvV7C0MuV77Wo=
github.com/jtolds/gls v4.20.0+incompatible/go.mod h1:QJZ7F/aHp+rZTRtaJ1ow/lLfFfVYBRgL+9YlvaHOwJU=
+github.com/klauspost/cpuid/v2 v2.0.9 h1:lgaqFMSdTdQYdZ04uHyN2d/eKdOMyi2YLSvlQIBFYa4=
+github.com/klauspost/cpuid/v2 v2.0.9/go.mod h1:FInQzS24/EEf25PyTYn52gqo7WaD8xa0213Md/qVLRg=
github.com/konsorten/go-windows-terminal-sequences v1.0.1/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ=
-github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORNo=
-github.com/kr/pretty v0.2.1/go.mod h1:ipq/a2n7PKx3OHsz4KJII5eveXtPO4qwEXGdVfWzfnI=
github.com/kr/pretty v0.3.0 h1:WgNl7dwNpEZ6jJ9k1snq4pZsg7DOEN8hP9Xw0Tsjwk0=
-github.com/kr/pretty v0.3.0/go.mod h1:640gp4NfQd8pI5XOwp5fnNeVWj67G7CFk/SaSQn7NBk=
-github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ=
-github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI=
github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY=
-github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE=
github.com/leodido/go-urn v1.2.1 h1:BqpAaACuzVSgi/VLzGZIobT2z4v53pjosyNd9Yv6n/w=
github.com/leodido/go-urn v1.2.1/go.mod h1:zt4jvISO2HfUBqxjfIshjdMTYS56ZS/qv49ictyFfxY=
github.com/lestrrat-go/envload v0.0.0-20180220234015-a3eb8ddeffcc h1:RKf14vYWi2ttpEmkA4aQ3j4u9dStX2t4M8UM6qqNsG8=
@@ -64,26 +61,23 @@ github.com/lestrrat-go/file-rotatelogs v2.4.0+incompatible h1:Y6sqxHMyB1D2YSzWkL
github.com/lestrrat-go/file-rotatelogs v2.4.0+incompatible/go.mod h1:ZQnN8lSECaebrkQytbHj4xNgtg8CR7RYXnPok8e0EHA=
github.com/lestrrat-go/strftime v1.0.6 h1:CFGsDEt1pOpFNU+TJB0nhz9jl+K0hZSLE205AhTIGQQ=
github.com/lestrrat-go/strftime v1.0.6/go.mod h1:f7jQKgV5nnJpYgdEasS+/y7EsTb8ykN2z68n3TtcTaw=
-github.com/mattn/go-isatty v0.0.14 h1:yVuAays6BHfxijgZPzw+3Zlu5yQgKGP2/hcQbHb7S9Y=
-github.com/mattn/go-isatty v0.0.14/go.mod h1:7GGIvUiUoEMVVmxf/4nioHXj79iQHKdU27kJ6hsGG94=
+github.com/mattn/go-isatty v0.0.17 h1:BTarxUcIeDqL27Mc+vyvdWYSL28zpIhv3RoTdsLMPng=
+github.com/mattn/go-isatty v0.0.17/go.mod h1:kYGgaQfpe5nmfYZH+SKPsOc2e4SrIfOl2e/yFXSvRLM=
github.com/modern-go/concurrent v0.0.0-20180228061459-e0a39a4cb421 h1:ZqeYNhU3OHLH3mGKHDcjJRFFRrJa6eAM5H+CtDdOsPc=
github.com/modern-go/concurrent v0.0.0-20180228061459-e0a39a4cb421/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q=
github.com/modern-go/reflect2 v1.0.2 h1:xBagoLtFs94CBntxluKeaWgTMpvLxC4ur3nMaC9Gz0M=
github.com/modern-go/reflect2 v1.0.2/go.mod h1:yWuevngMOJpCy52FWWMvUC8ws7m/LJsjYzDa0/r8luk=
-github.com/pelletier/go-toml/v2 v2.0.1 h1:8e3L2cCQzLFi2CR4g7vGFuFxX7Jl1kKX8gW+iV0GUKU=
-github.com/pelletier/go-toml/v2 v2.0.1/go.mod h1:r9LEWfGN8R5k0VXJ+0BkIe7MYkRdwZOjgMj2KwnJFUo=
+github.com/pelletier/go-toml/v2 v2.0.6 h1:nrzqCb7j9cDFj2coyLNLaZuJTLjWjlaz6nvTvIwycIU=
+github.com/pelletier/go-toml/v2 v2.0.6/go.mod h1:eumQOmlWiOPt5WriQQqoM5y18pDHwha2N+QD+EUNTek=
github.com/pierrec/lz4/v4 v4.1.15 h1:MO0/ucJhngq7299dKLwIMtgTfbkoSPF6AoMYDd8Q4q0=
github.com/pierrec/lz4/v4 v4.1.15/go.mod h1:gZWDp/Ze/IJXGXf23ltt2EXimqmTUXEy0GFuRQyBid4=
-github.com/pkg/diff v0.0.0-20210226163009-20ebb0f2a09e/go.mod h1:pJLUxLENpZxwdsKMEsNbx1VGcRFpLqf3715MtcvvzbA=
github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4=
github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0=
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
github.com/rifflock/lfshook v0.0.0-20180920164130-b9218ef580f5 h1:mZHayPoR0lNmnHyvtYjDeq0zlVHn9K/ZXoy17ylucdo=
github.com/rifflock/lfshook v0.0.0-20180920164130-b9218ef580f5/go.mod h1:GEXHk5HgEKCvEIIrSpFI3ozzG5xOKA2DVlEX/gGnewM=
-github.com/rogpeppe/go-internal v1.6.1/go.mod h1:xXDCJY+GAPziupqXw64V24skbSoqbTEfhy4qGm1nDQc=
-github.com/rogpeppe/go-internal v1.8.0/go.mod h1:WmiCO8CzOY8rg0OYDC4/i/2WRWAB6poM+XZ2dLUbcbE=
-github.com/rogpeppe/go-internal v1.9.0 h1:73kH8U+JUqXU8lRuOHeVHaa/SZPifC7BkcraZVejAe8=
+github.com/rogpeppe/go-internal v1.8.0 h1:FCbCCtXNOY3UtUuHUYaghJg4y7Fd14rXifAYUAtL9R8=
github.com/sirupsen/logrus v1.4.2/go.mod h1:tLMulIdttU9McNUspp0xgXVQah82FyeX6MwdIuYE2rE=
github.com/sirupsen/logrus v1.9.0 h1:trlNQbNUG3OdDrDil03MCb1H2o9nJ1x4/5LYw7byDE0=
github.com/sirupsen/logrus v1.9.0/go.mod h1:naHLuLoDiP4jHNo9R0sCBMtWGeIprob74mVsIT4qYEQ=
@@ -93,89 +87,69 @@ github.com/smartystreets/goconvey v1.7.2 h1:9RBaZCeXEQ3UselpuwUQHltGVXvdwm6cv1hg
github.com/smartystreets/goconvey v1.7.2/go.mod h1:Vw0tHAZW6lzCRk3xgdin6fKYcG+G3Pg9vgXWeJpQFMM=
github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
github.com/stretchr/objx v0.1.1/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
+github.com/stretchr/objx v0.4.0/go.mod h1:YvHI0jy2hoMjB+UWwv71VJQ9isScKT/TqJzVSSt89Yw=
+github.com/stretchr/objx v0.5.0/go.mod h1:Yh+to48EsGEfYuaHDzXPcE3xhTkx73EhmCGUpEOglKo=
github.com/stretchr/testify v1.2.2/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs=
github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI=
github.com/stretchr/testify v1.6.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
github.com/stretchr/testify v1.7.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
-github.com/stretchr/testify v1.8.0 h1:pSgiaMZlXftHpm5L7V1+rVB+AZJydKsMxsQBIJw4PKk=
+github.com/stretchr/testify v1.8.0/go.mod h1:yNjHg4UonilssWZ8iaSj1OCr/vHnekPRkoO+kdMU+MU=
+github.com/stretchr/testify v1.8.1 h1:w7B6lhMri9wdJUVmEZPGGhZzrYTPvgJArz7wNPgYKsk=
+github.com/stretchr/testify v1.8.1/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o6fzry7u4=
github.com/t-tomalak/logrus-easy-formatter v0.0.0-20190827215021-c074f06c5816 h1:J6v8awz+me+xeb/cUTotKgceAYouhIB3pjzgRd6IlGk=
github.com/t-tomalak/logrus-easy-formatter v0.0.0-20190827215021-c074f06c5816/go.mod h1:tzym/CEb5jnFI+Q0k4Qq3+LvRF4gO3E2pxS8fHP8jcA=
-github.com/tidwall/gjson v1.14.3 h1:9jvXn7olKEHU1S9vwoMGliaT8jq1vJ7IH/n9zD9Dnlw=
-github.com/tidwall/gjson v1.14.3/go.mod h1:/wbyibRr2FHMks5tjHJ5F8dMZh3AcwJEMf5vlfC0lxk=
+github.com/tidwall/gjson v1.14.4 h1:uo0p8EbA09J7RQaflQ1aBRffTR7xedD2bcIVSYxLnkM=
+github.com/tidwall/gjson v1.14.4/go.mod h1:/wbyibRr2FHMks5tjHJ5F8dMZh3AcwJEMf5vlfC0lxk=
github.com/tidwall/match v1.1.1 h1:+Ho715JplO36QYgwN9PGYNhgZvoUSc9X2c80KVTi+GA=
github.com/tidwall/match v1.1.1/go.mod h1:eRSPERbgtNPcGhD8UCthc6PmLEQXEWd3PRB5JTxsfmM=
github.com/tidwall/pretty v1.2.0 h1:RWIZEg2iJ8/g6fDDYzMpobmaoGh5OLl4AXtGUGPcqCs=
github.com/tidwall/pretty v1.2.0/go.mod h1:ITEVvHYasfjBbM0u2Pg8T2nJnzm8xPwvNhhsoaGGjNU=
-github.com/ugorji/go v1.2.7/go.mod h1:nF9osbDWLy6bDVv/Rtoh6QgnvNDpmCalQV5urGCCS6M=
-github.com/ugorji/go/codec v1.2.7 h1:YPXUKf7fYbp/y8xloBqZOw2qaVggbfwMlI8WM3wZUJ0=
-github.com/ugorji/go/codec v1.2.7/go.mod h1:WGN1fab3R1fzQlVQTkfxVtIBhWDRqOviHU95kRgeqEY=
-github.com/yuin/goldmark v1.4.0/go.mod h1:mwnBkeHKe2W/ZEtQ+71ViKU8L12m81fl3OWwC1Zlc8k=
+github.com/twitchyliquid64/golang-asm v0.15.1 h1:SU5vSMR7hnwNxj24w34ZyCi/FmDZTkS4MhqMhdFk5YI=
+github.com/twitchyliquid64/golang-asm v0.15.1/go.mod h1:a1lVb/DtPvCB8fslRZhAngC2+aY1QWCk3Cedj/Gdt08=
+github.com/ugorji/go/codec v1.2.9 h1:rmenucSohSTiyL09Y+l2OCk+FrMxGMzho2+tjr5ticU=
+github.com/ugorji/go/codec v1.2.9/go.mod h1:UNopzCgEMSXjBc6AOMqYvWC1ktqTAfzJZUZgYf6w6lg=
github.com/zserge/lorca v0.1.10 h1:f/xBJ3D3ipcVRCcvN8XqZnpoKcOXV8I4vwqlFyw7ruc=
github.com/zserge/lorca v0.1.10/go.mod h1:bVmnIbIRlOcoV285KIRSe4bUABKi7R7384Ycuum6e4A=
+golang.org/x/arch v0.0.0-20210923205945-b76863e36670 h1:18EFjUmQOcUvxNYSkA6jO9VAiXCnxFY6NyDX0bHDmkU=
+golang.org/x/arch v0.0.0-20210923205945-b76863e36670/go.mod h1:5om86z9Hs0C8fWVUuoMHwpExlXzs5Tkyp9hOrfG7pp8=
golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w=
-golang.org/x/crypto v0.0.0-20190510104115-cbcb75029529/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI=
-golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI=
-golang.org/x/crypto v0.0.0-20210711020723-a769d52b0f97 h1:/UOmuWzQfxxo9UtlXMwuQU8CMgg1eZXqTRwkSQJWKOI=
-golang.org/x/crypto v0.0.0-20210711020723-a769d52b0f97/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc=
-golang.org/x/exp v0.0.0-20190731235908-ec7cb31e5a56/go.mod h1:JhuoJpWY28nO4Vef9tZUw9qufEGTyX1+7lmHxV5q5G4=
-golang.org/x/image v0.0.0-20190227222117-0694c2d4d067/go.mod h1:kZ7UVZpmo3dzQBMxlp+ypCbDeSB+sBbTgSJuh5dn5js=
-golang.org/x/image v0.0.0-20190802002840-cff245a6509b/go.mod h1:FeLwcggjj3mMvU+oOTbSwawSJRM1uh48EjtB4UJZlP0=
-golang.org/x/mobile v0.0.0-20190312151609-d3739f865fa6/go.mod h1:z+o9i4GpDbdi3rU15maQ/Ox0txvL9dWGYEHz965HBQE=
-golang.org/x/mobile v0.0.0-20220722155234-aaac322e2105 h1:3vUV5x5+3LfQbgk7paCM6INOaJG9xXQbn79xoNkwfIk=
-golang.org/x/mobile v0.0.0-20220722155234-aaac322e2105/go.mod h1:pe2sM7Uk+2Su1y7u/6Z8KJ24D7lepUjFZbhFOrmDfuQ=
-golang.org/x/mod v0.1.0/go.mod h1:0QHyrYULN0/3qlju5TqG8bIK38QM8yzMo5ekMj3DlcY=
-golang.org/x/mod v0.4.2 h1:Gz96sIWK3OalVv/I/qNygP42zyoKp3xptRVCWRFEBvo=
-golang.org/x/mod v0.4.2/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA=
+golang.org/x/crypto v0.5.0 h1:U/0M97KRkSFvyD/3FSmdP5W5swImpNgle/EHFhOsQPE=
+golang.org/x/crypto v0.5.0/go.mod h1:NK/OQwhpMQP3MwtdjgLlYHnH9ebylxKWv3e0fK+mkQU=
+golang.org/x/mobile v0.0.0-20230301163155-e0f57694e12c h1:Gk61ECugwEHL6IiyyNLXNzmu8XslmRP2dS0xjIYhbb4=
+golang.org/x/mobile v0.0.0-20230301163155-e0f57694e12c/go.mod h1:aAjjkJNdrh3PMckS4B10TGS2nag27cbKR1y2BpUxsiY=
+golang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4 h1:6zppjxzCulZykYSLyVDYbneBfbaBIQPYMevg0bEwv2s=
+golang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4/go.mod h1:jJ57K6gSWd91VN4djpZkiMVwK6gcyfeH4XE8wZrZaV4=
golang.org/x/net v0.0.0-20190311183353-d8887717615a/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg=
-golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg=
-golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
golang.org/x/net v0.0.0-20200222125558-5a598a2470a0/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
-golang.org/x/net v0.0.0-20210226172049-e18ecbb05110/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg=
-golang.org/x/net v0.0.0-20210805182204-aaa1db679c0d h1:20cMwl2fHAzkJMEA+8J4JgqBQcQGzbisXo31MIeenXI=
-golang.org/x/net v0.0.0-20210805182204-aaa1db679c0d/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y=
-golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
-golang.org/x/sync v0.0.0-20210220032951-036812b2e83c/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
+golang.org/x/net v0.7.0 h1:rJrUqqhjsgNp7KqAIc25s9pZnjU7TUcSY7HcVZjdn1g=
+golang.org/x/net v0.7.0/go.mod h1:2Tu9+aMcznHK/AK1HMvgo6xiTLG5rD5rZLDS+rp2Bjs=
golang.org/x/sync v0.0.0-20220819030929-7fc1605a5dde h1:ejfdSekXMDxDLbRrJMwUk6KnSLZ2McaUCVcIKM+N6jc=
golang.org/x/sync v0.0.0-20220819030929-7fc1605a5dde/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
-golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20190422165155-953cdadca894/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
-golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
-golang.org/x/sys v0.0.0-20210423082822-04245dca01da/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
-golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
-golang.org/x/sys v0.0.0-20210630005230-0f9fa26af87c/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
-golang.org/x/sys v0.0.0-20210806184541-e5e7981a1069/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
-golang.org/x/sys v0.0.0-20210809222454-d867a43fc93e/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
-golang.org/x/sys v0.0.0-20220715151400-c0bba94af5f8 h1:0A+M6Uqn+Eje4kHMK80dtF3JCXC4ykBgQG4Fe06QRhQ=
golang.org/x/sys v0.0.0-20220715151400-c0bba94af5f8/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
-golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo=
+golang.org/x/sys v0.0.0-20220811171246-fbc7d0a398ab/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
+golang.org/x/sys v0.5.0 h1:MUK/U/4lj1t1oPg0HfuXDN/Z1wv31ZJ/YcPiGccS4DU=
+golang.org/x/sys v0.5.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
-golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
-golang.org/x/text v0.3.6 h1:aRYxNxv6iGQlyVaZmk6ZgYEDa+Jg18DxebPSrd6bg1M=
-golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
-golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
-golang.org/x/tools v0.0.0-20190312151545-0bb0c0a6e846/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs=
+golang.org/x/text v0.7.0 h1:4BRB4x83lYWy72KwLD/qYDuTu7q9PjSagHvijDw7cLo=
+golang.org/x/text v0.7.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8=
golang.org/x/tools v0.0.0-20190328211700-ab21143f2384/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs=
-golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo=
-golang.org/x/tools v0.1.8-0.20211022200916-316ba0b74098 h1:YuekqPskqwCCPM79F1X5Dhv4ezTCj+Ki1oNwiafxkA0=
-golang.org/x/tools v0.1.8-0.20211022200916-316ba0b74098/go.mod h1:LGqMHiF4EqQNHR1JncWGqT5BVaXmza+X+BDGol+dOxo=
-golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
-golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
+golang.org/x/tools v0.1.12 h1:VveCTK38A2rkS8ZqFY25HIDFscX5X9OoEhJd3quQmXU=
+golang.org/x/tools v0.1.12/go.mod h1:hNGJHUnrk76NpqgfD5Aqm5Crs+Hm0VOH/i9J2+nxYbc=
golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
-golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1 h1:go1bK/D/BFZV2I8cIQd1NKEZ+0owSTG1fDTci4IqFcE=
-golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
+google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f h1:BWUVssLB0HVOSY78gIdvk1dTVYtT1y8SBWtPYuTJ/6w=
+google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f/go.mod h1:RGgjbofJ8xD9Sq1VVhDM1Vok1vRONV+rg+CjzG4SZKM=
+google.golang.org/grpc v1.53.0 h1:LAv2ds7cmFV/XTS3XG1NneeENYrXGmorPxsBbptIjNc=
+google.golang.org/grpc v1.53.0/go.mod h1:OnIrk0ipVdj4N5d9IUoFUx72/VlD7+jUsHwZgwSMQpw=
google.golang.org/protobuf v1.26.0-rc.1/go.mod h1:jlhhOSvTdKEhbULTjvd4ARK9grFBp09yW+WbY/TyQbw=
google.golang.org/protobuf v1.26.0/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc=
-google.golang.org/protobuf v1.28.0 h1:w43yiav+6bVFTBQFZX0r7ipe9JQ1QsbMgHwbBziscLw=
-google.golang.org/protobuf v1.28.0/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I=
+google.golang.org/protobuf v1.30.0 h1:kPPoIgf3TsEvrm0PFe15JQ+570QVxYzEvvHqChK+cng=
+google.golang.org/protobuf v1.30.0/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I=
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
-gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c h1:Hei/4ADfdWqJk1ZMxUNpqntNwaWcugrBjAiHlqqRiVk=
-gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c/go.mod h1:JHkPIbrfpd72SG/EVd6muEfDQjcINNoR0C8j2r3qZ4Q=
-gopkg.in/errgo.v2 v2.1.0/go.mod h1:hNsd1EY+bozCKY1Ytp96fpM3vjJbqLJn88ws8XvfDNI=
-gopkg.in/yaml.v2 v2.4.0 h1:D8xgwECY7CYvx+Y2n4sBz93Jn9JRvxdiyyo8CTfuKaY=
-gopkg.in/yaml.v2 v2.4.0/go.mod h1:RDklbk79AGWmwhnvt/jBztapEOGDOx6ZbXqjP6csGnQ=
gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
-gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA=
+gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
+rsc.io/pdf v0.1.1/go.mod h1:n8OzWcQ6Sp37PL01nO98y4iUCRdTGarVfzxY20ICaU4=
diff --git a/pkg/bot/api_handler.go b/pkg/bot/api_handler.go
index 28ccbe8..55de431 100644
--- a/pkg/bot/api_handler.go
+++ b/pkg/bot/api_handler.go
@@ -7,6 +7,7 @@ import (
_ "image/png"
"math"
"strconv"
+ "time"
_ "unsafe"
"github.com/ProtobufBot/Go-Mirai-Client/pkg/cache"
@@ -51,14 +52,11 @@ func preProcessPrivateSendingMessage(cli *client.QQClient, target int64, m *mess
continue
}
if i, ok := element.(*clz.LocalImageElement); ok {
- img, err := cli.UploadPrivateImage(target, i.Stream)
+ img, err := cli.UploadImage(message.Source{SourceType: message.SourcePrivate, PrimaryID: target}, i.Stream)
if err != nil {
log.Errorf("failed to upload private image, %+v", err)
continue
}
- if i.Tp == "flash" {
- img.Flash = true
- }
newElements = append(newElements, img)
continue
}
@@ -72,7 +70,7 @@ func preProcessPrivateSendingMessage(cli *client.QQClient, target int64, m *mess
continue
}
if i, ok := element.(*clz.MyVideoElement); ok {
- gm, err := cli.UploadShortVideo(message.Source{SourceType: message.SourcePrivate, PrimaryID: target}, i.UploadingVideo, i.UploadingCover, 1)
+ gm, err := cli.UploadShortVideo(message.Source{SourceType: message.SourcePrivate, PrimaryID: target}, i.UploadingVideo, i.UploadingCover)
if err != nil {
log.Errorf("failed to upload private video, %+v", err)
continue
@@ -109,9 +107,9 @@ func preProcessGroupSendingMessage(cli *client.QQClient, groupCode int64, m *mes
continue
}
if img, ok := img.(*message.GroupImageElement); ok {
- if i.Tp == "flash" {
+ if i.LocalImageType == "flash" {
img.Flash = true
- } else if i.Tp == "show" {
+ } else if i.LocalImageType == "show" {
img.EffectID = i.EffectId
}
}
@@ -142,8 +140,12 @@ func preProcessGroupSendingMessage(cli *client.QQClient, groupCode int64, m *mes
cli.SendGroupPoke(groupCode, i.Target)
continue
}
+ if _, ok := element.(*clz.SignInElement); ok {
+ cli.SendGroupSign(groupCode)
+ continue
+ }
if i, ok := element.(*clz.MyVideoElement); ok {
- gm, err := cli.UploadShortVideo(message.Source{SourceType: message.SourceGroup, PrimaryID: groupCode}, i.UploadingVideo, i.UploadingCover, 1)
+ gm, err := cli.UploadShortVideo(message.Source{SourceType: message.SourceGroup, PrimaryID: groupCode}, i.UploadingVideo, i.UploadingCover)
if err != nil {
log.Errorf("failed to upload group video, %+v", err)
continue
@@ -173,8 +175,11 @@ func HandleSendPrivateMsg(cli *client.QQClient, req *onebot.SendPrivateMsgReq) *
ret := cli.SendPrivateMessage(req.UserId, sendingMessage)
cache.PrivateMessageLru.Add(ret.Id, ret)
return &onebot.SendPrivateMsgResp{
- MessageId: &onebot.MessageReceipt{
- Seqs: []int32{ret.Id},
+ MessageId: ret.Id,
+ MessageReceipt: &onebot.MessageReceipt{
+ SenderId: req.UserId,
+ Time: time.Now().Unix(),
+ Seqs: []int32{ret.Id},
},
}
}
@@ -200,8 +205,11 @@ func HandleSendGroupMsg(cli *client.QQClient, req *onebot.SendGroupMsgReq) *oneb
}
cache.GroupMessageLru.Add(ret.Id, ret)
return &onebot.SendGroupMsgResp{
- MessageId: &onebot.MessageReceipt{
- Seqs: []int32{ret.Id},
+ MessageId: ret.Id,
+ MessageReceipt: &onebot.MessageReceipt{
+ Time: time.Now().Unix(),
+ Seqs: []int32{ret.Id},
+ GroupId: req.GroupId,
},
}
}
@@ -219,8 +227,12 @@ func HandleSendMsg(cli *client.QQClient, req *onebot.SendMsgReq) *onebot.SendMsg
ret := cli.SendGroupTempMessage(req.GroupId, req.UserId, sendingMessage)
cache.PrivateMessageLru.Add(ret.Id, ret)
return &onebot.SendMsgResp{
- MessageId: &onebot.MessageReceipt{
- Seqs: []int32{ret.Id},
+ MessageId: ret.Id,
+ MessageReceipt: &onebot.MessageReceipt{
+ SenderId: req.UserId,
+ Time: time.Now().Unix(),
+ Seqs: []int32{ret.Id},
+ GroupId: req.GroupId,
},
}
}
@@ -239,8 +251,11 @@ func HandleSendMsg(cli *client.QQClient, req *onebot.SendMsgReq) *onebot.SendMsg
}
cache.GroupMessageLru.Add(ret.Id, ret)
return &onebot.SendMsgResp{
- MessageId: &onebot.MessageReceipt{
- Seqs: []int32{ret.Id},
+ MessageId: ret.Id,
+ MessageReceipt: &onebot.MessageReceipt{
+ Time: time.Now().Unix(),
+ Seqs: []int32{ret.Id},
+ GroupId: req.GroupId,
},
}
}
@@ -250,8 +265,11 @@ func HandleSendMsg(cli *client.QQClient, req *onebot.SendMsgReq) *onebot.SendMsg
ret := cli.SendPrivateMessage(req.UserId, sendingMessage)
cache.PrivateMessageLru.Add(ret.Id, ret)
return &onebot.SendMsgResp{
- MessageId: &onebot.MessageReceipt{
- Seqs: []int32{ret.Id},
+ MessageId: ret.Id,
+ MessageReceipt: &onebot.MessageReceipt{
+ SenderId: req.UserId,
+ Time: time.Now().Unix(),
+ Seqs: []int32{ret.Id},
},
}
}
@@ -260,22 +278,41 @@ func HandleSendMsg(cli *client.QQClient, req *onebot.SendMsgReq) *onebot.SendMsg
}
func HandleDeleteMsg(cli *client.QQClient, req *onebot.DeleteMsgReq) *onebot.DeleteMsgResp {
- if eventInterface, ok := cache.PrivateMessageLru.Get(req.MessageId.Seqs[len(req.MessageId.Seqs)-1]); ok {
- if event, ok := eventInterface.(*message.PrivateMessage); ok {
- if err := cli.RecallPrivateMessage(event.Target, int64(event.Time), event.Id, event.InternalId); err == nil {
- return &onebot.DeleteMsgResp{}
+ if req.MessageId > 0 {
+ if eventInterface, ok := cache.PrivateMessageLru.Get(req.MessageId); ok {
+ if event, ok := eventInterface.(*message.PrivateMessage); ok {
+ if err := cli.RecallPrivateMessage(event.Target, int64(event.Time), event.Id, event.InternalId); err == nil {
+ return &onebot.DeleteMsgResp{}
+ }
+ }
+ }
+
+ if eventInterface, ok := cache.GroupMessageLru.Get(req.MessageId); ok {
+ if event, ok := eventInterface.(*message.GroupMessage); ok {
+ if err := cli.RecallGroupMessage(event.GroupCode, event.Id, event.InternalId); err != nil {
+ return &onebot.DeleteMsgResp{}
+ }
+ }
+ }
+ return nil
+ } else {
+ if eventInterface, ok := cache.PrivateMessageLru.Get(req.MessageReceipt.Seqs[len(req.MessageReceipt.Seqs)-1]); ok {
+ if event, ok := eventInterface.(*message.PrivateMessage); ok {
+ if err := cli.RecallPrivateMessage(event.Target, int64(event.Time), event.Id, event.InternalId); err == nil {
+ return &onebot.DeleteMsgResp{}
+ }
}
}
- }
- if eventInterface, ok := cache.GroupMessageLru.Get(req.MessageId.Seqs[len(req.MessageId.Seqs)-1]); ok {
- if event, ok := eventInterface.(*message.GroupMessage); ok {
- if err := cli.RecallGroupMessage(event.GroupCode, event.Id, event.InternalId); err != nil {
- return &onebot.DeleteMsgResp{}
+ if eventInterface, ok := cache.GroupMessageLru.Get(req.MessageReceipt.Seqs[len(req.MessageReceipt.Seqs)-1]); ok {
+ if event, ok := eventInterface.(*message.GroupMessage); ok {
+ if err := cli.RecallGroupMessage(event.GroupCode, event.Id, event.InternalId); err != nil {
+ return &onebot.DeleteMsgResp{}
+ }
}
}
+ return nil
}
- return nil
}
func HandleGetMsg(cli *client.QQClient, req *onebot.GetMsgReq) *onebot.GetMsgResp {
@@ -622,25 +659,78 @@ func HandleSendMusic(cli *client.QQClient, req *onebot.SendMusicReq) *onebot.Sen
}
func HandleSendGroupPoke(cli *client.QQClient, req *onebot.SendGroupPokeReq) *onebot.SendGroupPokeResp {
- group := cli.FindGroup(req.GroupId)
- if group == nil {
- return nil
- }
- member := group.FindMember(req.UserId)
- if member == nil {
- return nil
+ if group := cli.FindGroup(req.GroupId); group != nil {
+ if member := group.FindMember(req.ToUin); member != nil {
+ cli.SendGroupPoke(group.Code, member.Uin)
+ }
}
- cli.SendGroupPoke(group.Code, member.Uin)
- return &onebot.SendGroupPokeResp{}
+ return nil
}
func HandleSendFriendPoke(cli *client.QQClient, req *onebot.SendFriendPokeReq) *onebot.SendFriendPokeResp {
- if cli.FindFriend(req.UserId) == nil {
+ for _, friend := range cli.FriendList {
+ if friend.Uin == req.ToUin && friend.Uin != cli.Uin {
+ cli.SendFriendPoke(friend.Uin)
+ }
+ }
+ return nil
+}
+
+func preProcessChannelSendingMessage(cli *client.QQClient, guildid uint64, channelId uint64, m *message.SendingMessage) {
+ newElements := make([]message.IMessageElement, 0, len(m.Elements))
+ for _, element := range m.Elements {
+ if i, ok := element.(*message.TextElement); ok {
+ for _, text := range utils.ChunkString(i.Content, MAX_TEXT_LENGTH) {
+ if text != "" {
+ newElements = append(newElements, message.NewText(text))
+ }
+ }
+ continue
+ }
+ if i, ok := element.(*clz.LocalImageElement); ok {
+ img, err := cli.UploadImage(message.Source{SourceType: message.SourceGuildChannel, PrimaryID: int64(guildid), SecondaryID: int64(channelId)}, i.Stream)
+ if err != nil {
+ log.Errorf("failed to upload guild image, %+v", err)
+ continue
+ }
+ newElements = append(newElements, img)
+ continue
+ }
+ }
+ m.Elements = newElements
+}
+
+func HandleSendChannelMsg(cli *client.QQClient, req *onebot.SendChannelMsgReq) *onebot.SendChannelMsgResp {
+ if len(req.Message) == 0 {
+ log.Warnf("消息为空")
+ return nil
+ }
+ guildId := cli.GuildService.FindGuild(req.GuildId)
+ if guildId == nil {
+ log.Warnf("频道不存在")
return nil
}
- if cli.Uin == req.UserId {
+ channelId := guildId.FindChannel(req.ChannelId)
+ if channelId == nil {
+ log.Warnf("子频道不存在")
return nil
}
- cli.SendFriendPoke(req.UserId)
- return &onebot.SendFriendPokeResp{}
+ if channelId.ChannelType != client.ChannelTypeText {
+ log.Warnf("无法发送频道信息: 频道类型错误, 不接受文本信息")
+ }
+ miraiMsg := ProtoMsgToMiraiMsg(cli, req.Message, req.AutoEscape)
+ sendingMessage := &message.SendingMessage{Elements: miraiMsg}
+ log.Infof("Bot(%+v) GuildId(%+v) ChannelId(%+v) <- %+v\n", cli.Uin, req.GuildId, req.ChannelId, MiraiMsgToRawMsg(cli, miraiMsg))
+ preProcessChannelSendingMessage(cli, req.GuildId, req.ChannelId, sendingMessage)
+ if len(sendingMessage.Elements) == 0 {
+ log.Warnf("发送消息内容为空")
+ return nil
+ }
+ ret, _ := cli.GuildService.SendGuildChannelMessage(req.GuildId, req.ChannelId, sendingMessage)
+ if ret == nil {
+ return nil
+ }
+ return &onebot.SendChannelMsgResp{
+ MessageId: ret.Id,
+ }
}
diff --git a/pkg/bot/mirai2proto.go b/pkg/bot/mirai2proto.go
index 013baaa..a73b7ef 100644
--- a/pkg/bot/mirai2proto.go
+++ b/pkg/bot/mirai2proto.go
@@ -22,6 +22,8 @@ func MiraiMsgToProtoMsg(cli *client.QQClient, messageChain []message.IMessageEle
msgList = append(msgList, MiraiDiceToProtoDice(elem))
case *message.FingerGuessingElement:
msgList = append(msgList, MiraiFingerGuessingToProtoFingerGuessing(elem))
+ case *message.GuildImageElement:
+ msgList = append(msgList, MiraiGuildImageToProtoImage(elem))
case *message.FriendImageElement:
msgList = append(msgList, MiraiFriendImageToProtoImage(elem))
case *message.GroupImageElement:
@@ -40,6 +42,8 @@ func MiraiMsgToProtoMsg(cli *client.QQClient, messageChain []message.IMessageEle
msgList = append(msgList, MiraiVideoToProtoVideo(cli, elem))
case *message.ReplyElement:
msgList = append(msgList, MiraiReplyToProtoReply(cli, elem))
+ case *message.ForwardElement:
+ msgList = append(msgList, MiraiForwardToProtoForward(cli, elem))
}
}
return msgList
@@ -88,6 +92,19 @@ func MiraiGroupImageToProtoImage(elem *message.GroupImageElement) *onebot.Messag
return msg
}
+func MiraiGuildImageToProtoImage(elem *message.GuildImageElement) *onebot.Message {
+ msg := &onebot.Message{
+ Type: "guild_image",
+ Data: map[string]string{
+ "file_id": strconv.FormatInt(elem.FileId, 10),
+ "file": elem.FilePath,
+ "url": elem.Url,
+ "download_index": elem.DownloadIndex,
+ },
+ }
+ return msg
+}
+
func MiraiLocalImageToProtoImage(elem *clz.LocalImageElement) *onebot.Message {
return &onebot.Message{
Type: "image",
@@ -192,3 +209,14 @@ func MiraiReplyToProtoReply(cli *client.QQClient, elem *message.ReplyElement) *o
},
}
}
+
+func MiraiForwardToProtoForward(cli *client.QQClient, elem *message.ForwardElement) *onebot.Message {
+ return &onebot.Message{
+ Type: "forward",
+ Data: map[string]string{
+ "file_name": elem.FileName,
+ "content": elem.Content,
+ "res_id": elem.ResId,
+ },
+ }
+}
diff --git a/pkg/bot/mirai2raw.go b/pkg/bot/mirai2raw.go
index aaa3802..522adcd 100644
--- a/pkg/bot/mirai2raw.go
+++ b/pkg/bot/mirai2raw.go
@@ -3,7 +3,7 @@ package bot
import (
"fmt"
"html"
-
+ "strconv"
"github.com/ProtobufBot/Go-Mirai-Client/pkg/clz"
"github.com/Mrs4s/MiraiGo/client"
@@ -22,6 +22,8 @@ func MiraiMsgToRawMsg(cli *client.QQClient, messageChain []message.IMessageEleme
result += fmt.Sprintf(``, elem.Value)
case *message.FingerGuessingElement:
result += fmt.Sprintf(``, elem.Value, elem.Name)
+ case *message.GuildImageElement:
+ result += fmt.Sprintf(``, html.EscapeString(strconv.FormatInt(elem.FileId, 10)), html.EscapeString(elem.FilePath), html.EscapeString(elem.Url))
case *message.FriendImageElement:
result += fmt.Sprintf(``, html.EscapeString(elem.ImageId), html.EscapeString(elem.Url))
case *message.GroupImageElement:
@@ -30,6 +32,8 @@ func MiraiMsgToRawMsg(cli *client.QQClient, messageChain []message.IMessageEleme
result += fmt.Sprintf(``, html.EscapeString(elem.Url))
case *message.FaceElement:
result += fmt.Sprintf(``, elem.Index, html.EscapeString(elem.Name))
+ case *message.AnimatedSticker:
+ result += fmt.Sprintf(``, elem.ID, html.EscapeString(elem.Name))
case *message.VoiceElement:
result += fmt.Sprintf(``, html.EscapeString(elem.Url))
case *message.ServiceElement:
@@ -40,10 +44,11 @@ func MiraiMsgToRawMsg(cli *client.QQClient, messageChain []message.IMessageEleme
result += fmt.Sprintf(``, html.EscapeString(elem.Name), html.EscapeString(cli.GetShortVideoUrl(elem.Uuid, elem.Md5)))
case *message.ReplyElement:
result += fmt.Sprintf(``, elem.Time, elem.Sender, html.EscapeString(MiraiMsgToRawMsg(cli, elem.Elements)), elem.ReplySeq)
+ case *message.ForwardElement:
+ result += fmt.Sprintf(``, elem.FileName, elem.Content, elem.ResId)
case *clz.MyVideoElement:
result += fmt.Sprintf(``, html.EscapeString(elem.Url), html.EscapeString(elem.CoverUrl))
}
}
-
return result
}
diff --git a/pkg/bot/proto2mirai.go b/pkg/bot/proto2mirai.go
index 9fac0e6..a5d2992 100644
--- a/pkg/bot/proto2mirai.go
+++ b/pkg/bot/proto2mirai.go
@@ -53,6 +53,10 @@ func ProtoMsgToMiraiMsg(cli *client.QQClient, msgList []*onebot.Message, notConv
messageChain = append(messageChain, ProtoFingerGuessingToMiraiFingerGuessing(protoMsg.Data))
case "poke":
messageChain = append(messageChain, ProtoPokeToMiraiPoke(protoMsg.Data))
+ case "sign_in":
+ messageChain = append(messageChain, ProtoSignInToMiraiSignIn(protoMsg.Data))
+ case "guild_image":
+ messageChain = append(messageChain, ProtoGuildImageToMiraiGuildImage(protoMsg.Data))
case "image":
messageChain = append(messageChain, ProtoImageToMiraiImage(protoMsg.Data))
case "img":
@@ -126,8 +130,8 @@ func ProtoImageToMiraiImage(data map[string]string) message.IMessageElement {
elem.Stream = bytes.NewReader(imageBytes)
}
- elem.Tp = data["type"] // show或flash
- if elem.Tp == "show" {
+ elem.LocalImageType = data["type"] // show或flash
+ if elem.LocalImageType == "show" {
effectIdStr := data["effect_id"]
effectId, err := strconv.Atoi(effectIdStr)
if err != nil || effectId < 40000 || effectId > 40005 {
@@ -139,6 +143,38 @@ func ProtoImageToMiraiImage(data map[string]string) message.IMessageElement {
return elem
}
+func ProtoGuildImageToMiraiGuildImage(data map[string]string) message.IMessageElement {
+ elem := &clz.LocalImageElement{}
+ url, ok := data["url"]
+ if !ok {
+ url, ok = data["src"] // TODO 为了兼容我的旧代码偷偷加的
+ if !ok {
+ url, ok = data["file"]
+ }
+ }
+ if !ok {
+ log.Warnf("imageUrl不存在")
+ return EmptyText()
+ }
+ elem.Url = url
+ if strings.Contains(url, "http://") || strings.Contains(url, "https://") {
+ b, err := util.GetBytes(url)
+ if err != nil {
+ log.Errorf("failed to download image, %+v", err)
+ return EmptyText()
+ }
+ elem.Stream = bytes.NewReader(b)
+ } else {
+ imageBytes, err := ioutil.ReadFile(url)
+ if err != nil {
+ log.Errorf("failed to open local image, %+v", err)
+ return EmptyText()
+ }
+ elem.Stream = bytes.NewReader(imageBytes)
+ }
+ return elem
+}
+
func ProtoVoiceToMiraiVoice(data map[string]string) message.IMessageElement {
url, ok := data["url"]
if !ok {
@@ -215,6 +251,10 @@ func ProtoPokeToMiraiPoke(data map[string]string) message.IMessageElement {
return &clz.PokeElement{Target: userId}
}
+func ProtoSignInToMiraiSignIn(data map[string]string) message.IMessageElement {
+ return &clz.SignInElement{}
+}
+
func ProtoFaceToMiraiFace(data map[string]string) message.IMessageElement {
idStr, ok := data["id"]
if !ok {
@@ -537,4 +577,4 @@ func ProtoMusicToMiraiMusic(_ *client.QQClient, data map[string]string) (m messa
}
}
return EmptyText()
-}
+}
\ No newline at end of file
diff --git a/pkg/bot/raw2mirai.go b/pkg/bot/raw2mirai.go
index 74f7243..caa5d88 100644
--- a/pkg/bot/raw2mirai.go
+++ b/pkg/bot/raw2mirai.go
@@ -53,6 +53,8 @@ func RawMsgToMiraiMsg(cli *client.QQClient, str string) []message.IMessageElemen
elemList = append(elemList, ProtoFingerGuessingToMiraiFingerGuessing(attrMap))
case "poke":
elemList = append(elemList, ProtoPokeToMiraiPoke(attrMap))
+ case "guild_image":
+ elemList = append(elemList, ProtoGuildImageToMiraiGuildImage(attrMap))
case "img":
elemList = append(elemList, ProtoImageToMiraiImage(attrMap)) // TODO 为了兼容我的旧代码偷偷加的
case "image":
diff --git a/pkg/bot/remote.go b/pkg/bot/remote.go
index ad6033f..8219c15 100644
--- a/pkg/bot/remote.go
+++ b/pkg/bot/remote.go
@@ -374,12 +374,20 @@ func handleApiFrame(cli *client.QQClient, req *onebot.Frame, isApiAllow func(one
}
case *onebot.Frame_SetGroupSignInReq:
resp.FrameType = onebot.Frame_TSetGroupSignInResp
- if resp.Ok = isApiAllow(onebot.Frame_TSetGroupSignInReq); !resp.Ok {
+ if resp.Ok = isApiAllow(onebot.Frame_TSetGroupSignInReq); !resp.Ok{
return
}
resp.Data = &onebot.Frame_SetGroupSignInResp{
SetGroupSignInResp: HandleSetGroupSignIn(cli, data.SetGroupSignInReq),
}
+ case *onebot.Frame_SendGroupPokeReq:
+ resp.FrameType = onebot.Frame_TSendGroupPokeResp
+ if resp.Ok = isApiAllow(onebot.Frame_TSendGroupPokeReq); !resp.Ok{
+ return
+ }
+ resp.Data = &onebot.Frame_SendGroupPokeResp{
+ SendGroupPokeResp: HandleSendGroupPoke(cli, data.SendGroupPokeReq),
+ }
case *onebot.Frame_SendMusicReq:
resp.FrameType = onebot.Frame_TSendMusicResp
if resp.Ok = isApiAllow(onebot.Frame_TSendMusicReq); !resp.Ok {
@@ -388,22 +396,22 @@ func handleApiFrame(cli *client.QQClient, req *onebot.Frame, isApiAllow func(one
resp.Data = &onebot.Frame_SendMusicResp{
SendMusicResp: HandleSendMusic(cli, data.SendMusicReq),
}
- case *onebot.Frame_SendGroupPokeReq:
- resp.FrameType = onebot.Frame_TSendGroupPokeResp
- if resp.Ok = isApiAllow(onebot.Frame_TSendGroupPokeReq); !resp.Ok {
- return
- }
- resp.Data = &onebot.Frame_SendGroupPokeResp{
- SendGroupPokeResp: HandleSendGroupPoke(cli, data.SendGroupPokeReq),
- }
case *onebot.Frame_SendFriendPokeReq:
resp.FrameType = onebot.Frame_TSendFriendPokeResp
- if resp.Ok = isApiAllow(onebot.Frame_TSendFriendPokeReq); !resp.Ok {
+ if resp.Ok = isApiAllow(onebot.Frame_TSendFriendPokeReq); !resp.Ok{
return
}
resp.Data = &onebot.Frame_SendFriendPokeResp{
SendFriendPokeResp: HandleSendFriendPoke(cli, data.SendFriendPokeReq),
}
+ case *onebot.Frame_SendChannelMsgReq:
+ resp.FrameType = onebot.Frame_TSendChannelMsgResp
+ if resp.Ok = isApiAllow(onebot.Frame_TCanSendImageReq); !resp.Ok {
+ return
+ }
+ resp.Data = &onebot.Frame_SendChannelMsgResp{
+ SendChannelMsgResp: HandleSendChannelMsg(cli, data.SendChannelMsgReq),
+ }
default:
return resp
}
diff --git a/pkg/cache/cache.go b/pkg/cache/cache.go
index b061887..4018516 100644
--- a/pkg/cache/cache.go
+++ b/pkg/cache/cache.go
@@ -35,6 +35,9 @@ var PrivateMessageLru = NewLruCache(512)
// int:GroupMessage
var GroupMessageLru = NewLruCache(2048)
+// int:ChannelMessage
+var ChannelMessageLru = NewLruCache(2048)
+
// string:
var FriendRequestLru = NewLruCache(128)
@@ -43,3 +46,7 @@ var GroupRequestLru = NewLruCache(128)
// string:
var GroupInvitedRequestLru = NewLruCache(16)
+
+var GuildAdminLru = NewLruCache(2048)
+
+var GetGuildAdminTimeLru = NewLruCache(100)
diff --git a/pkg/clz/clz.go b/pkg/clz/clz.go
index ed7c242..eaf4665 100644
--- a/pkg/clz/clz.go
+++ b/pkg/clz/clz.go
@@ -16,10 +16,10 @@ type MyVideoElement struct {
}
type LocalImageElement struct {
- Url string
- Stream io.ReadSeeker
- Tp string // 类型 flash/show
- EffectId int32 // show的特效id,范围40000-40005
+ Url string
+ Stream io.ReadSeeker
+ LocalImageType string // 类型 flash/show
+ EffectId int32 // show的特效id,范围40000-40005
}
func (m *LocalImageElement) Type() message.ElementType {
@@ -30,6 +30,13 @@ type PokeElement struct {
Target int64
}
+type SignInElement struct {
+}
+
func (g *PokeElement) Type() message.ElementType {
return message.At
}
+
+func (s *SignInElement) Type() message.ElementType {
+ return message.Text
+}
diff --git a/pkg/gmc/handler/bot.go b/pkg/gmc/handler/bot.go
index 42db79d..91bdf5e 100644
--- a/pkg/gmc/handler/bot.go
+++ b/pkg/gmc/handler/bot.go
@@ -30,13 +30,14 @@ func init() {
//log.Infof("加载日志插件 Log")
plugin.AddPrivateMessagePlugin(plugins.LogPrivateMessage)
plugin.AddGroupMessagePlugin(plugins.LogGroupMessage)
-
+ plugin.AddChannelMessagePlugin(plugins.LogChannelMessage)
//log.Infof("加载测试插件 Hello")
plugin.AddPrivateMessagePlugin(plugins.HelloPrivateMessage)
-
//log.Infof("加载上报插件 Report")
plugin.AddPrivateMessagePlugin(plugins.ReportPrivateMessage)
plugin.AddGroupMessagePlugin(plugins.ReportGroupMessage)
+ plugin.AddGroupNotifyEventPlugin(plugins.ReportGroupNotify)
+ plugin.AddChannelMessagePlugin(plugins.ReportChannelMessage)
plugin.AddTempMessagePlugin(plugins.ReportTempMessage)
plugin.AddMemberPermissionChangedPlugin(plugins.ReportMemberPermissionChanged)
plugin.AddMemberJoinGroupPlugin(plugins.ReportMemberJoin)
@@ -153,7 +154,9 @@ func FetchQrCode(c *gin.Context) {
qrCodeBot.Release()
}
qrCodeBot = client.NewClientEmpty()
- deviceInfo := device.GetDevice(req.DeviceSeed, req.ClientProtocol)
+ //deviceInfo := device.GetDevice(req.DeviceSeed, req.ClientProtocol)
+ deviceInfo := device.GetDevice(req.DeviceSeed, 2)
+ fmt.Println(req.DeviceSeed, req.ClientProtocol)
qrCodeBot.UseDevice(deviceInfo)
log.Infof("初始化日志")
diff --git a/pkg/gmc/plugins/hello.go b/pkg/gmc/plugins/hello.go
index 421d6dd..4510010 100644
--- a/pkg/gmc/plugins/hello.go
+++ b/pkg/gmc/plugins/hello.go
@@ -1,10 +1,10 @@
package plugins
import (
- "github.com/ProtobufBot/Go-Mirai-Client/pkg/bot"
- "github.com/ProtobufBot/Go-Mirai-Client/pkg/plugin"
"github.com/Mrs4s/MiraiGo/client"
"github.com/Mrs4s/MiraiGo/message"
+ "github.com/ProtobufBot/Go-Mirai-Client/pkg/bot"
+ "github.com/ProtobufBot/Go-Mirai-Client/pkg/plugin"
)
func HelloPrivateMessage(cli *client.QQClient, event *message.PrivateMessage) int32 {
diff --git a/pkg/gmc/plugins/log.go b/pkg/gmc/plugins/log.go
index b768e41..5c357bd 100644
--- a/pkg/gmc/plugins/log.go
+++ b/pkg/gmc/plugins/log.go
@@ -10,12 +10,18 @@ import (
)
func LogPrivateMessage(cli *client.QQClient, event *message.PrivateMessage) int32 {
+ cli.MarkPrivateMessageReaded(event.Target, int64(event.Time)) // 标记为已读
log.Infof("Bot(%+v) Private(%+v) -> %+v\n", cli.Uin, event.Sender.Uin, bot.MiraiMsgToRawMsg(cli, event.Elements))
return plugin.MessageIgnore
}
func LogGroupMessage(cli *client.QQClient, event *message.GroupMessage) int32 {
cli.MarkGroupMessageReaded(event.GroupCode, int64(event.Id)) // 标记为已读,可能可以减少风控
- log.Infof("Bot(%+v) Group(%+v) -> %+v\n", cli.Uin, event.GroupCode, bot.MiraiMsgToRawMsg(cli, event.Elements))
+ log.Infof("Bot(%+v) Group(%+v) Sender(%+v) -> %+v\n", cli.Uin, event.GroupCode, event.Sender.Uin, bot.MiraiMsgToRawMsg(cli, event.Elements))
return plugin.MessageIgnore
}
+
+func LogChannelMessage(cli *client.QQClient, event *message.GuildChannelMessage) int32 {
+ log.Infof("Bot(%+v) Guild(%+v) Channel(%+v) Sender(%+v) -> %+v\n", cli.Uin, event.GuildId, event.ChannelId, event.Sender.TinyId, bot.MiraiMsgToRawMsg(cli, event.Elements))
+ return plugin.MessageIgnore
+}
\ No newline at end of file
diff --git a/pkg/gmc/plugins/report.go b/pkg/gmc/plugins/report.go
index b60d15a..8a7ee8c 100644
--- a/pkg/gmc/plugins/report.go
+++ b/pkg/gmc/plugins/report.go
@@ -28,8 +28,11 @@ func ReportPrivateMessage(cli *client.QQClient, event *message.PrivateMessage) i
PostType: "message",
MessageType: "private",
SubType: "normal",
- MessageId: &onebot.MessageReceipt{
- Seqs: []int32{event.Id},
+ MessageId: event.Id,
+ MessageReceipt: &onebot.MessageReceipt{
+ SenderId: event.Sender.Uin,
+ Time: time.Now().Unix(),
+ Seqs: []int32{event.Id},
},
UserId: event.Sender.Uin,
Message: bot.MiraiMsgToProtoMsg(cli, event.Elements),
@@ -58,8 +61,12 @@ func ReportGroupMessage(cli *client.QQClient, event *message.GroupMessage) int32
PostType: "message",
MessageType: "group",
SubType: "normal",
- MessageId: &onebot.MessageReceipt{
- Seqs: []int32{event.Id},
+ MessageId: event.Id,
+ MessageReceipt: &onebot.MessageReceipt{
+ SenderId: event.Sender.Uin,
+ Time: time.Now().Unix(),
+ Seqs: []int32{event.Id},
+ GroupId: event.GroupCode,
},
GroupId: event.GroupCode,
UserId: event.Sender.Uin,
@@ -109,6 +116,59 @@ func ReportGroupMessage(cli *client.QQClient, event *message.GroupMessage) int32
return plugin.MessageIgnore
}
+func ReportChannelMessage(cli *client.QQClient, event *message.GuildChannelMessage) int32 {
+ cache.ChannelMessageLru.Add(event.Id, event)
+ v, ok := cache.GetGuildAdminTimeLru.Get(event.GuildId)
+ gtime, _ := strconv.ParseInt(fmt.Sprintf("%v", v), 10, 64)
+ if !ok || time.Now().Unix() > gtime {
+ log.Println("缓存频道管理员更新")
+ cache.GetGuildAdminTimeLru.Remove(event.GuildId)
+ users, _ := cli.GuildService.FetchGuildMemberListWithRole(event.GuildId, event.ChannelId, 0, 2, "")
+ for _, v := range users.Members {
+ // log.Println(v.Nickname, v.Role, v.RoleName, v.TinyId, v.Title, v.LastSpeakTime)
+ if v.Role == 2 {
+ cache.GuildAdminLru.Remove(v.TinyId)
+ cache.GuildAdminLru.Add(v.TinyId, v)
+ } else {
+ break
+ }
+ }
+ cache.GetGuildAdminTimeLru.Add(event.GuildId, time.Now().Add(time.Minute*10).Unix())
+ }
+
+ role, _ := cache.GuildAdminLru.Get(event.Sender.TinyId)
+ eventProto := &onebot.Frame{
+ FrameType: onebot.Frame_TChannelMessageEvent,
+ }
+ channelMessageEvent := &onebot.ChannelMessageEvent{
+ Id: event.Id,
+ InternalId: event.InternalId,
+ GuildId: event.GuildId,
+ ChannelId: event.ChannelId,
+ Time: event.Time,
+ SelfId: int64(cli.GuildService.TinyId),
+ PostType: "message",
+ MessageType: "channel",
+ SubType: "normal",
+ Message: bot.MiraiMsgToProtoMsg(cli, event.Elements),
+ RawMessage: bot.MiraiMsgToRawMsg(cli, event.Elements),
+ Sender: &onebot.ChannelMessageEvent_Sender{
+ TinyId: event.Sender.TinyId,
+ Nickname: event.Sender.Nickname,
+ },
+ MessageId: event.Id,
+ }
+ if role != nil {
+ channelMessageEvent.Sender.Roles = append(channelMessageEvent.Sender.Roles, 2)
+ channelMessageEvent.Sender.RoleNames = append(channelMessageEvent.Sender.RoleNames, "管理员")
+ }
+ eventProto.Data = &onebot.Frame_ChannelMessageEvent{
+ ChannelMessageEvent: channelMessageEvent,
+ }
+ bot.HandleEventFrame(cli, eventProto)
+ return plugin.MessageIgnore
+}
+
func CheckGroupFile(cli *client.QQClient, event *message.GroupMessage) bool {
for _, elem := range event.Elements {
if file, ok := elem.(*message.GroupFileElement); ok {
@@ -126,7 +186,7 @@ func CheckGroupFile(cli *client.QQClient, event *message.GroupMessage) bool {
Id: file.Path,
Name: file.Name,
Busid: int64(file.Busid),
- Size_: file.Size,
+ Size: file.Size,
Url: cli.GetGroupFileUrl(event.GroupCode, file.Path, file.Busid),
},
}
@@ -141,6 +201,7 @@ func CheckGroupFile(cli *client.QQClient, event *message.GroupMessage) bool {
}
func ReportTempMessage(cli *client.QQClient, event *client.TempMessageEvent) int32 {
+ // TODO 撤回?
eventProto := &onebot.Frame{
FrameType: onebot.Frame_TGroupTempMessageEvent,
}
@@ -150,13 +211,19 @@ func ReportTempMessage(cli *client.QQClient, event *client.TempMessageEvent) int
SelfId: cli.Uin,
PostType: "message",
MessageType: "group_temp",
- MessageId: &onebot.MessageReceipt{
- Seqs: []int32{event.Message.Id},
+ MessageId: event.Message.Id,
+ MessageReceipt: &onebot.MessageReceipt{
+ SenderId: event.Message.Sender.Uin,
+ Time: time.Now().Unix(),
+ Seqs: []int32{event.Message.Id},
+ GroupId: event.Message.GroupCode,
},
- GroupId: event.Message.GroupCode,
UserId: event.Message.Sender.Uin,
Message: bot.MiraiMsgToProtoMsg(cli, event.Message.Elements),
RawMessage: bot.MiraiMsgToRawMsg(cli, event.Message.Elements),
+ Extra: map[string]string{
+ "group_id": strconv.FormatInt(event.Message.GroupCode, 10),
+ },
},
}
bot.HandleEventFrame(cli, eventProto)
@@ -335,15 +402,21 @@ func ReportUserJoinGroupRequest(cli *client.QQClient, event *client.UserJoinGrou
}
eventProto.Data = &onebot.Frame_GroupRequestEvent{
GroupRequestEvent: &onebot.GroupRequestEvent{
- Time: time.Now().Unix(),
- SelfId: cli.Uin,
- PostType: "request",
- RequestType: "group",
- SubType: "add",
- GroupId: event.GroupCode,
- UserId: event.RequesterUin,
- Comment: event.Message,
- Flag: flag,
+ Time: time.Now().Unix(),
+ SelfId: cli.Uin,
+ PostType: "request",
+ RequestType: "group",
+ SubType: "add",
+ GroupId: event.GroupCode,
+ UserId: event.RequesterUin,
+ Comment: event.Message,
+ Flag: flag,
+ RequestId: event.RequestId,
+ UserNick: event.RequesterNick,
+ ActionUinNick: event.ActionUinNick,
+ ActionUin: event.ActionUin,
+ Check: event.Checked,
+ Suspicious: event.Suspicious,
Extra: map[string]string{
"actor_id": strconv.FormatInt(event.Actor, 10),
},
@@ -380,6 +453,11 @@ func ReportGroupInvitedRequest(cli *client.QQClient, event *client.GroupInvitedR
}
func ReportGroupMessageRecalled(cli *client.QQClient, event *client.GroupMessageRecalledEvent) int32 {
+ if event.AuthorUin == event.OperatorUin {
+ log.Infof("群 %v 内 %v 撤回了一条消息, 消息Id为 %v", event.GroupCode, event.AuthorUin, event.MessageId)
+ } else {
+ log.Infof("群 %v 内 %v 撤回了 %v 的一条消息, 消息Id为 %v", event.GroupCode, event.OperatorUin, event.AuthorUin, event.MessageId)
+ }
eventProto := &onebot.Frame{
FrameType: onebot.Frame_TGroupRecallNoticeEvent,
}
@@ -392,8 +470,12 @@ func ReportGroupMessageRecalled(cli *client.QQClient, event *client.GroupMessage
GroupId: event.GroupCode,
UserId: event.AuthorUin,
OperatorId: event.OperatorUin,
- MessageId: &onebot.MessageReceipt{
- Seqs: []int32{event.MessageId},
+ MessageId: event.MessageId,
+ MessageReceipt: &onebot.MessageReceipt{
+ SenderId: event.AuthorUin,
+ Time: time.Now().Unix(),
+ Seqs: []int32{event.MessageId},
+ GroupId: event.GroupCode,
},
},
}
@@ -402,6 +484,7 @@ func ReportGroupMessageRecalled(cli *client.QQClient, event *client.GroupMessage
}
func ReportFriendMessageRecalled(cli *client.QQClient, event *client.FriendMessageRecalledEvent) int32 {
+ log.Infof("好友 %v 撤回了一条消息, 消息Id为 %v", event.FriendUin, event.MessageId)
eventProto := &onebot.Frame{
FrameType: onebot.Frame_TFriendRecallNoticeEvent,
}
@@ -412,8 +495,11 @@ func ReportFriendMessageRecalled(cli *client.QQClient, event *client.FriendMessa
PostType: "notice",
NoticeType: "friend_recall",
UserId: event.FriendUin,
- MessageId: &onebot.MessageReceipt{
- Seqs: []int32{event.MessageId},
+ MessageId: event.MessageId,
+ MessageReceipt: &onebot.MessageReceipt{
+ SenderId: event.FriendUin,
+ Time: time.Now().Unix(),
+ Seqs: []int32{event.MessageId},
},
},
}
@@ -450,8 +536,11 @@ func ReportOfflineFile(cli *client.QQClient, event *client.OfflineFileEvent) int
PostType: "message",
MessageType: "private",
SubType: "normal",
- MessageId: &onebot.MessageReceipt{
- Seqs: []int32{0},
+ MessageId: 0,
+ MessageReceipt: &onebot.MessageReceipt{
+ SenderId: event.Sender,
+ Time: time.Now().Unix(),
+ Seqs: []int32{0},
},
UserId: event.Sender,
Message: []*onebot.Message{
@@ -473,3 +562,95 @@ func ReportOfflineFile(cli *client.QQClient, event *client.OfflineFileEvent) int
bot.HandleEventFrame(cli, eventProto)
return plugin.MessageIgnore
}
+
+func ReportGroupNotify(cli *client.QQClient, event client.INotifyEvent) int32 {
+ group := cli.FindGroup(event.From())
+ switch notify := event.(type) {
+ case *client.GroupPokeNotifyEvent:
+ sender := group.FindMember(notify.Sender)
+ receiver := group.FindMember(notify.Receiver)
+ if sender == receiver {
+ log.Infof("群 %v(%v) 内 %v(%v) 戳了戳自己", group.Code, group.Name, sender.Uin, sender.Nickname)
+ } else {
+ log.Infof("群 %v(%v) 内 %v(%v) 戳了戳 %v(%v)", group.Code, group.Name, sender.Uin, sender.Nickname, receiver.Uin, receiver.Nickname)
+ }
+ eventProto := &onebot.Frame{
+ FrameType: onebot.Frame_TGroupNotifyEvent,
+ }
+ eventProto.Data = &onebot.Frame_GroupNotifyEvent{
+ GroupNotifyEvent: &onebot.GroupNotifyEvent{
+ Time: time.Now().Unix(),
+ SelfId: cli.Uin,
+ PostType: "notice",
+ NoticeType: "group_poke",
+ GroupId: group.Code,
+ GroupName: group.Name,
+ Sender: sender.Uin,
+ SenderCard: sender.Nickname,
+ TargetId: receiver.Uin,
+ TargetCard: receiver.Nickname,
+ },
+ }
+ bot.HandleEventFrame(cli, eventProto)
+ return plugin.MessageIgnore
+ case *client.GroupRedBagLuckyKingNotifyEvent:
+ sender := group.FindMember(notify.Sender)
+ luckyKing := group.FindMember(notify.LuckyKing)
+ log.Infof("群 %v(%v) 内 %v(%v) 的红包被抢完, %v(%v) 是运气王", group.Code, group.Name, sender.Uin, sender.Nickname, luckyKing.Uin, luckyKing.Nickname)
+ eventProto := &onebot.Frame{
+ FrameType: onebot.Frame_TGroupNotifyEvent,
+ }
+ eventProto.Data = &onebot.Frame_GroupNotifyEvent{
+ GroupNotifyEvent: &onebot.GroupNotifyEvent{
+ Time: time.Now().Unix(),
+ SelfId: cli.Uin,
+ PostType: "notice",
+ NoticeType: "group_red_bag_lucky_king",
+ GroupId: group.Code,
+ GroupName: group.Name,
+ Sender: sender.Uin,
+ SenderCard: sender.Nickname,
+ TargetId: luckyKing.Uin,
+ TargetCard: luckyKing.Nickname,
+ },
+ }
+ bot.HandleEventFrame(cli, eventProto)
+ return plugin.MessageIgnore
+ case *client.MemberHonorChangedNotifyEvent:
+ log.Info(notify.Content())
+ eventProto := &onebot.Frame{
+ FrameType: onebot.Frame_TGroupNotifyEvent,
+ }
+ eventProto.Data = &onebot.Frame_GroupNotifyEvent{
+ GroupNotifyEvent: &onebot.GroupNotifyEvent{
+ Time: time.Now().Unix(),
+ SelfId: cli.Uin,
+ PostType: "notice",
+ NoticeType: "member_honor_change",
+ GroupId: group.Code,
+ GroupName: group.Name,
+ TargetId: notify.Uin,
+ TargetCard: notify.Nick,
+ Honor: func() string {
+ switch notify.Honor {
+ case client.Talkative:
+ return "talkative"
+ case client.Performer:
+ return "performer"
+ case client.Emotion:
+ return "emotion"
+ case client.Legend:
+ return "legend"
+ case client.StrongNewbie:
+ return "strong_newbie"
+ default:
+ return "ERROR"
+ }
+ }(),
+ },
+ }
+ bot.HandleEventFrame(cli, eventProto)
+ return plugin.MessageIgnore
+ }
+ return plugin.MessageIgnore
+}
diff --git a/pkg/plugin/plugin.go b/pkg/plugin/plugin.go
index b9e047e..6c1351a 100644
--- a/pkg/plugin/plugin.go
+++ b/pkg/plugin/plugin.go
@@ -9,6 +9,8 @@ import (
type (
PrivateMessagePlugin = func(*client.QQClient, *message.PrivateMessage) int32
GroupMessagePlugin = func(*client.QQClient, *message.GroupMessage) int32
+ GroupNotifyEventPlugin = func(*client.QQClient, client.INotifyEvent) int32
+ ChannelMessagePlugin = func(*client.QQClient, *message.GuildChannelMessage) int32
TempMessagePlugin = func(*client.QQClient, *client.TempMessageEvent) int32
MemberJoinGroupPlugin = func(*client.QQClient, *client.MemberJoinGroupEvent) int32
MemberLeaveGroupPlugin = func(*client.QQClient, *client.MemberLeaveGroupEvent) int32
@@ -32,6 +34,8 @@ const (
var PrivateMessagePluginList = make([]PrivateMessagePlugin, 0)
var GroupMessagePluginList = make([]GroupMessagePlugin, 0)
+var GroupNotifyEventPluginList = make([]GroupNotifyEventPlugin, 0)
+var ChannelMessagePluginList = make([]ChannelMessagePlugin, 0)
var TempMessagePluginList = make([]TempMessagePlugin, 0)
var MemberJoinGroupPluginList = make([]MemberJoinGroupPlugin, 0)
var MemberLeaveGroupPluginList = make([]MemberLeaveGroupPlugin, 0)
@@ -50,6 +54,7 @@ var MemberPermissionChangedPluginList = make([]MemberPermissionChangedPlugin, 0)
func Serve(cli *client.QQClient) {
cli.PrivateMessageEvent.Subscribe(handlePrivateMessage)
cli.GroupMessageEvent.Subscribe(handleGroupMessage)
+ cli.GuildService.OnGuildChannelMessage(handleChannelMessage)
cli.TempMessageEvent.Subscribe(handleTempMessage)
cli.GroupMemberJoinEvent.Subscribe(handleMemberJoinGroup)
cli.GroupMemberLeaveEvent.Subscribe(handleMemberLeaveGroup)
@@ -64,6 +69,7 @@ func Serve(cli *client.QQClient) {
cli.OfflineFileEvent.Subscribe(handleOfflineFile)
cli.GroupMuteEvent.Subscribe(handleGroupMute)
cli.GroupMemberPermissionChangedEvent.Subscribe(handleMemberPermissionChanged)
+ cli.GroupNotifyEvent.Subscribe(handleGroupNotifyEvent)
}
// 添加私聊消息插件
@@ -76,6 +82,15 @@ func AddGroupMessagePlugin(plugin GroupMessagePlugin) {
GroupMessagePluginList = append(GroupMessagePluginList, plugin)
}
+func AddGroupNotifyEventPlugin(plugin GroupNotifyEventPlugin) {
+ GroupNotifyEventPluginList = append(GroupNotifyEventPluginList, plugin)
+}
+
+// 添加频道消息事件
+func AddChannelMessagePlugin(plugin ChannelMessagePlugin) {
+ ChannelMessagePluginList = append(ChannelMessagePluginList, plugin)
+}
+
// 添加临时消息插件
func AddTempMessagePlugin(plugin TempMessagePlugin) {
TempMessagePluginList = append(TempMessagePluginList, plugin)
@@ -166,6 +181,16 @@ func handleGroupMessage(cli *client.QQClient, event *message.GroupMessage) {
})
}
+func handleChannelMessage(cli *client.QQClient, event *message.GuildChannelMessage) {
+ util.SafeGo(func() {
+ for _, plugin := range ChannelMessagePluginList {
+ if result := plugin(cli, event); result == MessageBlock {
+ break
+ }
+ }
+ })
+}
+
func handleTempMessage(cli *client.QQClient, event *client.TempMessageEvent) {
util.SafeGo(func() {
for _, plugin := range TempMessagePluginList {
@@ -305,3 +330,13 @@ func handleMemberPermissionChanged(cli *client.QQClient, event *client.MemberPer
}
})
}
+
+func handleGroupNotifyEvent(cli *client.QQClient, event client.INotifyEvent) {
+ util.SafeGo(func() {
+ for _, plugin := range GroupNotifyEventPluginList {
+ if result := plugin(cli, event); result == MessageBlock {
+ break
+ }
+ }
+ })
+}
\ No newline at end of file
diff --git a/proto_gen/dto/http_dto.pb.go b/proto_gen/dto/http_dto.pb.go
index b6935b5..722a612 100644
--- a/proto_gen/dto/http_dto.pb.go
+++ b/proto_gen/dto/http_dto.pb.go
@@ -1,26 +1,24 @@
-// Code generated by protoc-gen-gogo. DO NOT EDIT.
+// Code generated by protoc-gen-go. DO NOT EDIT.
+// versions:
+// protoc-gen-go v1.29.0
+// protoc v4.22.2
// source: http_dto.proto
package dto
import (
- fmt "fmt"
- proto "github.com/golang/protobuf/proto"
- io "io"
- math "math"
- math_bits "math/bits"
+ protoreflect "google.golang.org/protobuf/reflect/protoreflect"
+ protoimpl "google.golang.org/protobuf/runtime/protoimpl"
+ reflect "reflect"
+ sync "sync"
)
-// 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
+const (
+ // Verify that this generated code is sufficiently up-to-date.
+ _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
+ // Verify that runtime/protoimpl is sufficiently up-to-date.
+ _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
+)
type Bot_Captcha_CaptchaType int32
@@ -31,26 +29,47 @@ const (
Bot_Captcha_SMS Bot_Captcha_CaptchaType = 4
)
-var Bot_Captcha_CaptchaType_name = map[int32]string{
- 0: "PIC_CAPTCHA",
- 1: "SLIDER_CAPTCHA",
- 2: "UNSAFE_DEVICE_LOGIN_VERIFY",
- 4: "SMS",
-}
+// Enum value maps for Bot_Captcha_CaptchaType.
+var (
+ Bot_Captcha_CaptchaType_name = map[int32]string{
+ 0: "PIC_CAPTCHA",
+ 1: "SLIDER_CAPTCHA",
+ 2: "UNSAFE_DEVICE_LOGIN_VERIFY",
+ 4: "SMS",
+ }
+ Bot_Captcha_CaptchaType_value = map[string]int32{
+ "PIC_CAPTCHA": 0,
+ "SLIDER_CAPTCHA": 1,
+ "UNSAFE_DEVICE_LOGIN_VERIFY": 2,
+ "SMS": 4,
+ }
+)
-var Bot_Captcha_CaptchaType_value = map[string]int32{
- "PIC_CAPTCHA": 0,
- "SLIDER_CAPTCHA": 1,
- "UNSAFE_DEVICE_LOGIN_VERIFY": 2,
- "SMS": 4,
+func (x Bot_Captcha_CaptchaType) Enum() *Bot_Captcha_CaptchaType {
+ p := new(Bot_Captcha_CaptchaType)
+ *p = x
+ return p
}
func (x Bot_Captcha_CaptchaType) String() string {
- return proto.EnumName(Bot_Captcha_CaptchaType_name, int32(x))
+ return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
+}
+
+func (Bot_Captcha_CaptchaType) Descriptor() protoreflect.EnumDescriptor {
+ return file_http_dto_proto_enumTypes[0].Descriptor()
+}
+
+func (Bot_Captcha_CaptchaType) Type() protoreflect.EnumType {
+ return &file_http_dto_proto_enumTypes[0]
+}
+
+func (x Bot_Captcha_CaptchaType) Number() protoreflect.EnumNumber {
+ return protoreflect.EnumNumber(x)
}
+// Deprecated: Use Bot_Captcha_CaptchaType.Descriptor instead.
func (Bot_Captcha_CaptchaType) EnumDescriptor() ([]byte, []int) {
- return fileDescriptor_3b5f7d4a2149a8d0, []int{0, 0, 0}
+ return file_http_dto_proto_rawDescGZIP(), []int{0, 0, 0}
}
type QRCodeLoginResp_QRCodeLoginState int32
@@ -58,4890 +77,1695 @@ type QRCodeLoginResp_QRCodeLoginState int32
const (
QRCodeLoginResp_Unknown QRCodeLoginResp_QRCodeLoginState = 0
QRCodeLoginResp_QRCodeImageFetch QRCodeLoginResp_QRCodeLoginState = 1
- QRCodeLoginResp_QRCodeWaitingForScan QRCodeLoginResp_QRCodeLoginState = 2
- QRCodeLoginResp_QRCodeWaitingForConfirm QRCodeLoginResp_QRCodeLoginState = 3
- QRCodeLoginResp_QRCodeTimeout QRCodeLoginResp_QRCodeLoginState = 4
- QRCodeLoginResp_QRCodeConfirmed QRCodeLoginResp_QRCodeLoginState = 5
- QRCodeLoginResp_QRCodeCanceled QRCodeLoginResp_QRCodeLoginState = 6
+ QRCodeLoginResp_QRCodeWaitingForScan QRCodeLoginResp_QRCodeLoginState = 2 // 等待扫描
+ QRCodeLoginResp_QRCodeWaitingForConfirm QRCodeLoginResp_QRCodeLoginState = 3 // 扫码成功,请确认登陆
+ QRCodeLoginResp_QRCodeTimeout QRCodeLoginResp_QRCodeLoginState = 4 // 二维码过期
+ QRCodeLoginResp_QRCodeConfirmed QRCodeLoginResp_QRCodeLoginState = 5 // 已确认登陆
+ QRCodeLoginResp_QRCodeCanceled QRCodeLoginResp_QRCodeLoginState = 6 // 扫码被用户取消
)
-var QRCodeLoginResp_QRCodeLoginState_name = map[int32]string{
- 0: "Unknown",
- 1: "QRCodeImageFetch",
- 2: "QRCodeWaitingForScan",
- 3: "QRCodeWaitingForConfirm",
- 4: "QRCodeTimeout",
- 5: "QRCodeConfirmed",
- 6: "QRCodeCanceled",
-}
+// Enum value maps for QRCodeLoginResp_QRCodeLoginState.
+var (
+ QRCodeLoginResp_QRCodeLoginState_name = map[int32]string{
+ 0: "Unknown",
+ 1: "QRCodeImageFetch",
+ 2: "QRCodeWaitingForScan",
+ 3: "QRCodeWaitingForConfirm",
+ 4: "QRCodeTimeout",
+ 5: "QRCodeConfirmed",
+ 6: "QRCodeCanceled",
+ }
+ QRCodeLoginResp_QRCodeLoginState_value = map[string]int32{
+ "Unknown": 0,
+ "QRCodeImageFetch": 1,
+ "QRCodeWaitingForScan": 2,
+ "QRCodeWaitingForConfirm": 3,
+ "QRCodeTimeout": 4,
+ "QRCodeConfirmed": 5,
+ "QRCodeCanceled": 6,
+ }
+)
-var QRCodeLoginResp_QRCodeLoginState_value = map[string]int32{
- "Unknown": 0,
- "QRCodeImageFetch": 1,
- "QRCodeWaitingForScan": 2,
- "QRCodeWaitingForConfirm": 3,
- "QRCodeTimeout": 4,
- "QRCodeConfirmed": 5,
- "QRCodeCanceled": 6,
+func (x QRCodeLoginResp_QRCodeLoginState) Enum() *QRCodeLoginResp_QRCodeLoginState {
+ p := new(QRCodeLoginResp_QRCodeLoginState)
+ *p = x
+ return p
}
func (x QRCodeLoginResp_QRCodeLoginState) String() string {
- return proto.EnumName(QRCodeLoginResp_QRCodeLoginState_name, int32(x))
+ return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
-func (QRCodeLoginResp_QRCodeLoginState) EnumDescriptor() ([]byte, []int) {
- return fileDescriptor_3b5f7d4a2149a8d0, []int{11, 0}
+func (QRCodeLoginResp_QRCodeLoginState) Descriptor() protoreflect.EnumDescriptor {
+ return file_http_dto_proto_enumTypes[1].Descriptor()
}
-type Bot struct {
- BotId int64 `protobuf:"varint,1,opt,name=bot_id,json=botId,proto3" json:"bot_id,omitempty"`
- IsOnline bool `protobuf:"varint,2,opt,name=is_online,json=isOnline,proto3" json:"is_online,omitempty"`
- Captcha *Bot_Captcha `protobuf:"bytes,3,opt,name=captcha,proto3" json:"captcha,omitempty"`
- XXX_NoUnkeyedLiteral struct{} `json:"-"`
- XXX_unrecognized []byte `json:"-"`
- XXX_sizecache int32 `json:"-"`
+func (QRCodeLoginResp_QRCodeLoginState) Type() protoreflect.EnumType {
+ return &file_http_dto_proto_enumTypes[1]
}
-func (m *Bot) Reset() { *m = Bot{} }
-func (m *Bot) String() string { return proto.CompactTextString(m) }
-func (*Bot) ProtoMessage() {}
-func (*Bot) Descriptor() ([]byte, []int) {
- return fileDescriptor_3b5f7d4a2149a8d0, []int{0}
-}
-func (m *Bot) XXX_Unmarshal(b []byte) error {
- return m.Unmarshal(b)
-}
-func (m *Bot) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- if deterministic {
- return xxx_messageInfo_Bot.Marshal(b, m, deterministic)
- } else {
- b = b[:cap(b)]
- n, err := m.MarshalToSizedBuffer(b)
- if err != nil {
- return nil, err
- }
- return b[:n], nil
- }
-}
-func (m *Bot) XXX_Merge(src proto.Message) {
- xxx_messageInfo_Bot.Merge(m, src)
-}
-func (m *Bot) XXX_Size() int {
- return m.Size()
+func (x QRCodeLoginResp_QRCodeLoginState) Number() protoreflect.EnumNumber {
+ return protoreflect.EnumNumber(x)
}
-func (m *Bot) XXX_DiscardUnknown() {
- xxx_messageInfo_Bot.DiscardUnknown(m)
+
+// Deprecated: Use QRCodeLoginResp_QRCodeLoginState.Descriptor instead.
+func (QRCodeLoginResp_QRCodeLoginState) EnumDescriptor() ([]byte, []int) {
+ return file_http_dto_proto_rawDescGZIP(), []int{11, 0}
}
-var xxx_messageInfo_Bot proto.InternalMessageInfo
+type Bot struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
-func (m *Bot) GetBotId() int64 {
- if m != nil {
- return m.BotId
- }
- return 0
+ BotId int64 `protobuf:"varint,1,opt,name=bot_id,json=botId,proto3" json:"bot_id,omitempty"`
+ IsOnline bool `protobuf:"varint,2,opt,name=is_online,json=isOnline,proto3" json:"is_online,omitempty"`
+ Captcha *Bot_Captcha `protobuf:"bytes,3,opt,name=captcha,proto3" json:"captcha,omitempty"`
}
-func (m *Bot) GetIsOnline() bool {
- if m != nil {
- return m.IsOnline
+func (x *Bot) Reset() {
+ *x = Bot{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_http_dto_proto_msgTypes[0]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
}
- return false
}
-func (m *Bot) GetCaptcha() *Bot_Captcha {
- if m != nil {
- return m.Captcha
- }
- return nil
+func (x *Bot) String() string {
+ return protoimpl.X.MessageStringOf(x)
}
-type Bot_Captcha struct {
- BotId int64 `protobuf:"varint,1,opt,name=bot_id,json=botId,proto3" json:"bot_id,omitempty"`
- CaptchaType Bot_Captcha_CaptchaType `protobuf:"varint,2,opt,name=captcha_type,json=captchaType,proto3,enum=dto.Bot_Captcha_CaptchaType" json:"captcha_type,omitempty"`
- // Types that are valid to be assigned to Data:
- // *Bot_Captcha_Url
- // *Bot_Captcha_Image
- Data isBot_Captcha_Data `protobuf_oneof:"data"`
- XXX_NoUnkeyedLiteral struct{} `json:"-"`
- XXX_unrecognized []byte `json:"-"`
- XXX_sizecache int32 `json:"-"`
-}
+func (*Bot) ProtoMessage() {}
-func (m *Bot_Captcha) Reset() { *m = Bot_Captcha{} }
-func (m *Bot_Captcha) String() string { return proto.CompactTextString(m) }
-func (*Bot_Captcha) ProtoMessage() {}
-func (*Bot_Captcha) Descriptor() ([]byte, []int) {
- return fileDescriptor_3b5f7d4a2149a8d0, []int{0, 0}
-}
-func (m *Bot_Captcha) XXX_Unmarshal(b []byte) error {
- return m.Unmarshal(b)
-}
-func (m *Bot_Captcha) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- if deterministic {
- return xxx_messageInfo_Bot_Captcha.Marshal(b, m, deterministic)
- } else {
- b = b[:cap(b)]
- n, err := m.MarshalToSizedBuffer(b)
- if err != nil {
- return nil, err
+func (x *Bot) ProtoReflect() protoreflect.Message {
+ mi := &file_http_dto_proto_msgTypes[0]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
}
- return b[:n], nil
+ return ms
}
-}
-func (m *Bot_Captcha) XXX_Merge(src proto.Message) {
- xxx_messageInfo_Bot_Captcha.Merge(m, src)
-}
-func (m *Bot_Captcha) XXX_Size() int {
- return m.Size()
-}
-func (m *Bot_Captcha) XXX_DiscardUnknown() {
- xxx_messageInfo_Bot_Captcha.DiscardUnknown(m)
-}
-
-var xxx_messageInfo_Bot_Captcha proto.InternalMessageInfo
-
-type isBot_Captcha_Data interface {
- isBot_Captcha_Data()
- MarshalTo([]byte) (int, error)
- Size() int
+ return mi.MessageOf(x)
}
-type Bot_Captcha_Url struct {
- Url string `protobuf:"bytes,3,opt,name=url,proto3,oneof" json:"url,omitempty"`
-}
-type Bot_Captcha_Image struct {
- Image []byte `protobuf:"bytes,4,opt,name=image,proto3,oneof" json:"image,omitempty"`
+// Deprecated: Use Bot.ProtoReflect.Descriptor instead.
+func (*Bot) Descriptor() ([]byte, []int) {
+ return file_http_dto_proto_rawDescGZIP(), []int{0}
}
-func (*Bot_Captcha_Url) isBot_Captcha_Data() {}
-func (*Bot_Captcha_Image) isBot_Captcha_Data() {}
-
-func (m *Bot_Captcha) GetData() isBot_Captcha_Data {
- if m != nil {
- return m.Data
+func (x *Bot) GetBotId() int64 {
+ if x != nil {
+ return x.BotId
}
- return nil
+ return 0
}
-func (m *Bot_Captcha) GetBotId() int64 {
- if m != nil {
- return m.BotId
+func (x *Bot) GetIsOnline() bool {
+ if x != nil {
+ return x.IsOnline
}
- return 0
+ return false
}
-func (m *Bot_Captcha) GetCaptchaType() Bot_Captcha_CaptchaType {
- if m != nil {
- return m.CaptchaType
+func (x *Bot) GetCaptcha() *Bot_Captcha {
+ if x != nil {
+ return x.Captcha
}
- return Bot_Captcha_PIC_CAPTCHA
+ return nil
}
-func (m *Bot_Captcha) GetUrl() string {
- if x, ok := m.GetData().(*Bot_Captcha_Url); ok {
- return x.Url
- }
- return ""
+// 创建机器人 /bot/create/v1/
+type CreateBotReq struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ BotId int64 `protobuf:"varint,1,opt,name=bot_id,json=botId,proto3" json:"bot_id,omitempty"`
+ Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"`
+ DeviceSeed int64 `protobuf:"varint,3,opt,name=device_seed,json=deviceSeed,proto3" json:"device_seed,omitempty"` // 设备信息随机种子
+ ClientProtocol int32 `protobuf:"varint,4,opt,name=client_protocol,json=clientProtocol,proto3" json:"client_protocol,omitempty"` // 协议类型
}
-func (m *Bot_Captcha) GetImage() []byte {
- if x, ok := m.GetData().(*Bot_Captcha_Image); ok {
- return x.Image
+func (x *CreateBotReq) Reset() {
+ *x = CreateBotReq{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_http_dto_proto_msgTypes[1]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
}
- return nil
}
-// XXX_OneofWrappers is for the internal use of the proto package.
-func (*Bot_Captcha) XXX_OneofWrappers() []interface{} {
- return []interface{}{
- (*Bot_Captcha_Url)(nil),
- (*Bot_Captcha_Image)(nil),
- }
+func (x *CreateBotReq) String() string {
+ return protoimpl.X.MessageStringOf(x)
}
-// 创建机器人 /bot/create/v1/
-type CreateBotReq struct {
- BotId int64 `protobuf:"varint,1,opt,name=bot_id,json=botId,proto3" json:"bot_id,omitempty"`
- Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"`
- DeviceSeed int64 `protobuf:"varint,3,opt,name=device_seed,json=deviceSeed,proto3" json:"device_seed,omitempty"`
- ClientProtocol int32 `protobuf:"varint,4,opt,name=client_protocol,json=clientProtocol,proto3" json:"client_protocol,omitempty"`
- XXX_NoUnkeyedLiteral struct{} `json:"-"`
- XXX_unrecognized []byte `json:"-"`
- XXX_sizecache int32 `json:"-"`
-}
-
-func (m *CreateBotReq) Reset() { *m = CreateBotReq{} }
-func (m *CreateBotReq) String() string { return proto.CompactTextString(m) }
-func (*CreateBotReq) ProtoMessage() {}
-func (*CreateBotReq) Descriptor() ([]byte, []int) {
- return fileDescriptor_3b5f7d4a2149a8d0, []int{1}
-}
-func (m *CreateBotReq) XXX_Unmarshal(b []byte) error {
- return m.Unmarshal(b)
-}
-func (m *CreateBotReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- if deterministic {
- return xxx_messageInfo_CreateBotReq.Marshal(b, m, deterministic)
- } else {
- b = b[:cap(b)]
- n, err := m.MarshalToSizedBuffer(b)
- if err != nil {
- return nil, err
+func (*CreateBotReq) ProtoMessage() {}
+
+func (x *CreateBotReq) ProtoReflect() protoreflect.Message {
+ mi := &file_http_dto_proto_msgTypes[1]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
}
- return b[:n], nil
+ return ms
}
-}
-func (m *CreateBotReq) XXX_Merge(src proto.Message) {
- xxx_messageInfo_CreateBotReq.Merge(m, src)
-}
-func (m *CreateBotReq) XXX_Size() int {
- return m.Size()
-}
-func (m *CreateBotReq) XXX_DiscardUnknown() {
- xxx_messageInfo_CreateBotReq.DiscardUnknown(m)
+ return mi.MessageOf(x)
}
-var xxx_messageInfo_CreateBotReq proto.InternalMessageInfo
+// Deprecated: Use CreateBotReq.ProtoReflect.Descriptor instead.
+func (*CreateBotReq) Descriptor() ([]byte, []int) {
+ return file_http_dto_proto_rawDescGZIP(), []int{1}
+}
-func (m *CreateBotReq) GetBotId() int64 {
- if m != nil {
- return m.BotId
+func (x *CreateBotReq) GetBotId() int64 {
+ if x != nil {
+ return x.BotId
}
return 0
}
-func (m *CreateBotReq) GetPassword() string {
- if m != nil {
- return m.Password
+func (x *CreateBotReq) GetPassword() string {
+ if x != nil {
+ return x.Password
}
return ""
}
-func (m *CreateBotReq) GetDeviceSeed() int64 {
- if m != nil {
- return m.DeviceSeed
+func (x *CreateBotReq) GetDeviceSeed() int64 {
+ if x != nil {
+ return x.DeviceSeed
}
return 0
}
-func (m *CreateBotReq) GetClientProtocol() int32 {
- if m != nil {
- return m.ClientProtocol
+func (x *CreateBotReq) GetClientProtocol() int32 {
+ if x != nil {
+ return x.ClientProtocol
}
return 0
}
type CreateBotResp struct {
- XXX_NoUnkeyedLiteral struct{} `json:"-"`
- XXX_unrecognized []byte `json:"-"`
- XXX_sizecache int32 `json:"-"`
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
}
-func (m *CreateBotResp) Reset() { *m = CreateBotResp{} }
-func (m *CreateBotResp) String() string { return proto.CompactTextString(m) }
-func (*CreateBotResp) ProtoMessage() {}
-func (*CreateBotResp) Descriptor() ([]byte, []int) {
- return fileDescriptor_3b5f7d4a2149a8d0, []int{2}
-}
-func (m *CreateBotResp) XXX_Unmarshal(b []byte) error {
- return m.Unmarshal(b)
-}
-func (m *CreateBotResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- if deterministic {
- return xxx_messageInfo_CreateBotResp.Marshal(b, m, deterministic)
- } else {
- b = b[:cap(b)]
- n, err := m.MarshalToSizedBuffer(b)
- if err != nil {
- return nil, err
- }
- return b[:n], nil
+func (x *CreateBotResp) Reset() {
+ *x = CreateBotResp{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_http_dto_proto_msgTypes[2]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
}
}
-func (m *CreateBotResp) XXX_Merge(src proto.Message) {
- xxx_messageInfo_CreateBotResp.Merge(m, src)
-}
-func (m *CreateBotResp) XXX_Size() int {
- return m.Size()
+
+func (x *CreateBotResp) String() string {
+ return protoimpl.X.MessageStringOf(x)
}
-func (m *CreateBotResp) XXX_DiscardUnknown() {
- xxx_messageInfo_CreateBotResp.DiscardUnknown(m)
+
+func (*CreateBotResp) ProtoMessage() {}
+
+func (x *CreateBotResp) ProtoReflect() protoreflect.Message {
+ mi := &file_http_dto_proto_msgTypes[2]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
}
-var xxx_messageInfo_CreateBotResp proto.InternalMessageInfo
+// Deprecated: Use CreateBotResp.ProtoReflect.Descriptor instead.
+func (*CreateBotResp) Descriptor() ([]byte, []int) {
+ return file_http_dto_proto_rawDescGZIP(), []int{2}
+}
// 删除机器人 /bot/delete/v1/
type DeleteBotReq struct {
- BotId int64 `protobuf:"varint,1,opt,name=bot_id,json=botId,proto3" json:"bot_id,omitempty"`
- XXX_NoUnkeyedLiteral struct{} `json:"-"`
- XXX_unrecognized []byte `json:"-"`
- XXX_sizecache int32 `json:"-"`
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ BotId int64 `protobuf:"varint,1,opt,name=bot_id,json=botId,proto3" json:"bot_id,omitempty"`
}
-func (m *DeleteBotReq) Reset() { *m = DeleteBotReq{} }
-func (m *DeleteBotReq) String() string { return proto.CompactTextString(m) }
-func (*DeleteBotReq) ProtoMessage() {}
-func (*DeleteBotReq) Descriptor() ([]byte, []int) {
- return fileDescriptor_3b5f7d4a2149a8d0, []int{3}
-}
-func (m *DeleteBotReq) XXX_Unmarshal(b []byte) error {
- return m.Unmarshal(b)
-}
-func (m *DeleteBotReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- if deterministic {
- return xxx_messageInfo_DeleteBotReq.Marshal(b, m, deterministic)
- } else {
- b = b[:cap(b)]
- n, err := m.MarshalToSizedBuffer(b)
- if err != nil {
- return nil, err
- }
- return b[:n], nil
+func (x *DeleteBotReq) Reset() {
+ *x = DeleteBotReq{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_http_dto_proto_msgTypes[3]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
}
}
-func (m *DeleteBotReq) XXX_Merge(src proto.Message) {
- xxx_messageInfo_DeleteBotReq.Merge(m, src)
-}
-func (m *DeleteBotReq) XXX_Size() int {
- return m.Size()
+
+func (x *DeleteBotReq) String() string {
+ return protoimpl.X.MessageStringOf(x)
}
-func (m *DeleteBotReq) XXX_DiscardUnknown() {
- xxx_messageInfo_DeleteBotReq.DiscardUnknown(m)
+
+func (*DeleteBotReq) ProtoMessage() {}
+
+func (x *DeleteBotReq) ProtoReflect() protoreflect.Message {
+ mi := &file_http_dto_proto_msgTypes[3]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
}
-var xxx_messageInfo_DeleteBotReq proto.InternalMessageInfo
+// Deprecated: Use DeleteBotReq.ProtoReflect.Descriptor instead.
+func (*DeleteBotReq) Descriptor() ([]byte, []int) {
+ return file_http_dto_proto_rawDescGZIP(), []int{3}
+}
-func (m *DeleteBotReq) GetBotId() int64 {
- if m != nil {
- return m.BotId
+func (x *DeleteBotReq) GetBotId() int64 {
+ if x != nil {
+ return x.BotId
}
return 0
}
type DeleteBotResp struct {
- XXX_NoUnkeyedLiteral struct{} `json:"-"`
- XXX_unrecognized []byte `json:"-"`
- XXX_sizecache int32 `json:"-"`
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
}
-func (m *DeleteBotResp) Reset() { *m = DeleteBotResp{} }
-func (m *DeleteBotResp) String() string { return proto.CompactTextString(m) }
-func (*DeleteBotResp) ProtoMessage() {}
-func (*DeleteBotResp) Descriptor() ([]byte, []int) {
- return fileDescriptor_3b5f7d4a2149a8d0, []int{4}
-}
-func (m *DeleteBotResp) XXX_Unmarshal(b []byte) error {
- return m.Unmarshal(b)
-}
-func (m *DeleteBotResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- if deterministic {
- return xxx_messageInfo_DeleteBotResp.Marshal(b, m, deterministic)
- } else {
- b = b[:cap(b)]
- n, err := m.MarshalToSizedBuffer(b)
- if err != nil {
- return nil, err
- }
- return b[:n], nil
+func (x *DeleteBotResp) Reset() {
+ *x = DeleteBotResp{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_http_dto_proto_msgTypes[4]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
}
}
-func (m *DeleteBotResp) XXX_Merge(src proto.Message) {
- xxx_messageInfo_DeleteBotResp.Merge(m, src)
-}
-func (m *DeleteBotResp) XXX_Size() int {
- return m.Size()
+
+func (x *DeleteBotResp) String() string {
+ return protoimpl.X.MessageStringOf(x)
}
-func (m *DeleteBotResp) XXX_DiscardUnknown() {
- xxx_messageInfo_DeleteBotResp.DiscardUnknown(m)
+
+func (*DeleteBotResp) ProtoMessage() {}
+
+func (x *DeleteBotResp) ProtoReflect() protoreflect.Message {
+ mi := &file_http_dto_proto_msgTypes[4]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
}
-var xxx_messageInfo_DeleteBotResp proto.InternalMessageInfo
+// Deprecated: Use DeleteBotResp.ProtoReflect.Descriptor instead.
+func (*DeleteBotResp) Descriptor() ([]byte, []int) {
+ return file_http_dto_proto_rawDescGZIP(), []int{4}
+}
// 查询机器人 /bot/list/v1/
type ListBotReq struct {
- XXX_NoUnkeyedLiteral struct{} `json:"-"`
- XXX_unrecognized []byte `json:"-"`
- XXX_sizecache int32 `json:"-"`
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
}
-func (m *ListBotReq) Reset() { *m = ListBotReq{} }
-func (m *ListBotReq) String() string { return proto.CompactTextString(m) }
-func (*ListBotReq) ProtoMessage() {}
-func (*ListBotReq) Descriptor() ([]byte, []int) {
- return fileDescriptor_3b5f7d4a2149a8d0, []int{5}
-}
-func (m *ListBotReq) XXX_Unmarshal(b []byte) error {
- return m.Unmarshal(b)
-}
-func (m *ListBotReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- if deterministic {
- return xxx_messageInfo_ListBotReq.Marshal(b, m, deterministic)
- } else {
- b = b[:cap(b)]
- n, err := m.MarshalToSizedBuffer(b)
- if err != nil {
- return nil, err
- }
- return b[:n], nil
+func (x *ListBotReq) Reset() {
+ *x = ListBotReq{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_http_dto_proto_msgTypes[5]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
}
}
-func (m *ListBotReq) XXX_Merge(src proto.Message) {
- xxx_messageInfo_ListBotReq.Merge(m, src)
-}
-func (m *ListBotReq) XXX_Size() int {
- return m.Size()
+
+func (x *ListBotReq) String() string {
+ return protoimpl.X.MessageStringOf(x)
}
-func (m *ListBotReq) XXX_DiscardUnknown() {
- xxx_messageInfo_ListBotReq.DiscardUnknown(m)
+
+func (*ListBotReq) ProtoMessage() {}
+
+func (x *ListBotReq) ProtoReflect() protoreflect.Message {
+ mi := &file_http_dto_proto_msgTypes[5]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
}
-var xxx_messageInfo_ListBotReq proto.InternalMessageInfo
+// Deprecated: Use ListBotReq.ProtoReflect.Descriptor instead.
+func (*ListBotReq) Descriptor() ([]byte, []int) {
+ return file_http_dto_proto_rawDescGZIP(), []int{5}
+}
type ListBotResp struct {
- BotList []*Bot `protobuf:"bytes,1,rep,name=bot_list,json=botList,proto3" json:"bot_list,omitempty"`
- XXX_NoUnkeyedLiteral struct{} `json:"-"`
- XXX_unrecognized []byte `json:"-"`
- XXX_sizecache int32 `json:"-"`
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ BotList []*Bot `protobuf:"bytes,1,rep,name=bot_list,json=botList,proto3" json:"bot_list,omitempty"`
}
-func (m *ListBotResp) Reset() { *m = ListBotResp{} }
-func (m *ListBotResp) String() string { return proto.CompactTextString(m) }
-func (*ListBotResp) ProtoMessage() {}
-func (*ListBotResp) Descriptor() ([]byte, []int) {
- return fileDescriptor_3b5f7d4a2149a8d0, []int{6}
-}
-func (m *ListBotResp) XXX_Unmarshal(b []byte) error {
- return m.Unmarshal(b)
-}
-func (m *ListBotResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- if deterministic {
- return xxx_messageInfo_ListBotResp.Marshal(b, m, deterministic)
- } else {
- b = b[:cap(b)]
- n, err := m.MarshalToSizedBuffer(b)
- if err != nil {
- return nil, err
- }
- return b[:n], nil
+func (x *ListBotResp) Reset() {
+ *x = ListBotResp{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_http_dto_proto_msgTypes[6]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
}
}
-func (m *ListBotResp) XXX_Merge(src proto.Message) {
- xxx_messageInfo_ListBotResp.Merge(m, src)
-}
-func (m *ListBotResp) XXX_Size() int {
- return m.Size()
+
+func (x *ListBotResp) String() string {
+ return protoimpl.X.MessageStringOf(x)
}
-func (m *ListBotResp) XXX_DiscardUnknown() {
- xxx_messageInfo_ListBotResp.DiscardUnknown(m)
+
+func (*ListBotResp) ProtoMessage() {}
+
+func (x *ListBotResp) ProtoReflect() protoreflect.Message {
+ mi := &file_http_dto_proto_msgTypes[6]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
}
-var xxx_messageInfo_ListBotResp proto.InternalMessageInfo
+// Deprecated: Use ListBotResp.ProtoReflect.Descriptor instead.
+func (*ListBotResp) Descriptor() ([]byte, []int) {
+ return file_http_dto_proto_rawDescGZIP(), []int{6}
+}
-func (m *ListBotResp) GetBotList() []*Bot {
- if m != nil {
- return m.BotList
+func (x *ListBotResp) GetBotList() []*Bot {
+ if x != nil {
+ return x.BotList
}
return nil
}
// 处理验证码 /captcha/solve/v1/
type SolveCaptchaReq struct {
- BotId int64 `protobuf:"varint,1,opt,name=bot_id,json=botId,proto3" json:"bot_id,omitempty"`
- Result string `protobuf:"bytes,2,opt,name=result,proto3" json:"result,omitempty"`
- XXX_NoUnkeyedLiteral struct{} `json:"-"`
- XXX_unrecognized []byte `json:"-"`
- XXX_sizecache int32 `json:"-"`
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ BotId int64 `protobuf:"varint,1,opt,name=bot_id,json=botId,proto3" json:"bot_id,omitempty"`
+ Result string `protobuf:"bytes,2,opt,name=result,proto3" json:"result,omitempty"`
}
-func (m *SolveCaptchaReq) Reset() { *m = SolveCaptchaReq{} }
-func (m *SolveCaptchaReq) String() string { return proto.CompactTextString(m) }
-func (*SolveCaptchaReq) ProtoMessage() {}
-func (*SolveCaptchaReq) Descriptor() ([]byte, []int) {
- return fileDescriptor_3b5f7d4a2149a8d0, []int{7}
-}
-func (m *SolveCaptchaReq) XXX_Unmarshal(b []byte) error {
- return m.Unmarshal(b)
-}
-func (m *SolveCaptchaReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- if deterministic {
- return xxx_messageInfo_SolveCaptchaReq.Marshal(b, m, deterministic)
- } else {
- b = b[:cap(b)]
- n, err := m.MarshalToSizedBuffer(b)
- if err != nil {
- return nil, err
- }
- return b[:n], nil
+func (x *SolveCaptchaReq) Reset() {
+ *x = SolveCaptchaReq{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_http_dto_proto_msgTypes[7]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
}
}
-func (m *SolveCaptchaReq) XXX_Merge(src proto.Message) {
- xxx_messageInfo_SolveCaptchaReq.Merge(m, src)
-}
-func (m *SolveCaptchaReq) XXX_Size() int {
- return m.Size()
+
+func (x *SolveCaptchaReq) String() string {
+ return protoimpl.X.MessageStringOf(x)
}
-func (m *SolveCaptchaReq) XXX_DiscardUnknown() {
- xxx_messageInfo_SolveCaptchaReq.DiscardUnknown(m)
+
+func (*SolveCaptchaReq) ProtoMessage() {}
+
+func (x *SolveCaptchaReq) ProtoReflect() protoreflect.Message {
+ mi := &file_http_dto_proto_msgTypes[7]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
}
-var xxx_messageInfo_SolveCaptchaReq proto.InternalMessageInfo
+// Deprecated: Use SolveCaptchaReq.ProtoReflect.Descriptor instead.
+func (*SolveCaptchaReq) Descriptor() ([]byte, []int) {
+ return file_http_dto_proto_rawDescGZIP(), []int{7}
+}
-func (m *SolveCaptchaReq) GetBotId() int64 {
- if m != nil {
- return m.BotId
+func (x *SolveCaptchaReq) GetBotId() int64 {
+ if x != nil {
+ return x.BotId
}
return 0
}
-func (m *SolveCaptchaReq) GetResult() string {
- if m != nil {
- return m.Result
+func (x *SolveCaptchaReq) GetResult() string {
+ if x != nil {
+ return x.Result
}
return ""
}
type SolveCaptchaResp struct {
- XXX_NoUnkeyedLiteral struct{} `json:"-"`
- XXX_unrecognized []byte `json:"-"`
- XXX_sizecache int32 `json:"-"`
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
}
-func (m *SolveCaptchaResp) Reset() { *m = SolveCaptchaResp{} }
-func (m *SolveCaptchaResp) String() string { return proto.CompactTextString(m) }
-func (*SolveCaptchaResp) ProtoMessage() {}
-func (*SolveCaptchaResp) Descriptor() ([]byte, []int) {
- return fileDescriptor_3b5f7d4a2149a8d0, []int{8}
-}
-func (m *SolveCaptchaResp) XXX_Unmarshal(b []byte) error {
- return m.Unmarshal(b)
-}
-func (m *SolveCaptchaResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- if deterministic {
- return xxx_messageInfo_SolveCaptchaResp.Marshal(b, m, deterministic)
- } else {
- b = b[:cap(b)]
- n, err := m.MarshalToSizedBuffer(b)
- if err != nil {
- return nil, err
- }
- return b[:n], nil
+func (x *SolveCaptchaResp) Reset() {
+ *x = SolveCaptchaResp{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_http_dto_proto_msgTypes[8]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
}
}
-func (m *SolveCaptchaResp) XXX_Merge(src proto.Message) {
- xxx_messageInfo_SolveCaptchaResp.Merge(m, src)
-}
-func (m *SolveCaptchaResp) XXX_Size() int {
- return m.Size()
+
+func (x *SolveCaptchaResp) String() string {
+ return protoimpl.X.MessageStringOf(x)
}
-func (m *SolveCaptchaResp) XXX_DiscardUnknown() {
- xxx_messageInfo_SolveCaptchaResp.DiscardUnknown(m)
+
+func (*SolveCaptchaResp) ProtoMessage() {}
+
+func (x *SolveCaptchaResp) ProtoReflect() protoreflect.Message {
+ mi := &file_http_dto_proto_msgTypes[8]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
}
-var xxx_messageInfo_SolveCaptchaResp proto.InternalMessageInfo
+// Deprecated: Use SolveCaptchaResp.ProtoReflect.Descriptor instead.
+func (*SolveCaptchaResp) Descriptor() ([]byte, []int) {
+ return file_http_dto_proto_rawDescGZIP(), []int{8}
+}
// 获取二维码 /qrcode/fetch/v1/
type FetchQRCodeReq struct {
- DeviceSeed int64 `protobuf:"varint,1,opt,name=device_seed,json=deviceSeed,proto3" json:"device_seed,omitempty"`
- ClientProtocol int32 `protobuf:"varint,2,opt,name=client_protocol,json=clientProtocol,proto3" json:"client_protocol,omitempty"`
- XXX_NoUnkeyedLiteral struct{} `json:"-"`
- XXX_unrecognized []byte `json:"-"`
- XXX_sizecache int32 `json:"-"`
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ DeviceSeed int64 `protobuf:"varint,1,opt,name=device_seed,json=deviceSeed,proto3" json:"device_seed,omitempty"`
+ ClientProtocol int32 `protobuf:"varint,2,opt,name=client_protocol,json=clientProtocol,proto3" json:"client_protocol,omitempty"` // 协议类型
}
-func (m *FetchQRCodeReq) Reset() { *m = FetchQRCodeReq{} }
-func (m *FetchQRCodeReq) String() string { return proto.CompactTextString(m) }
-func (*FetchQRCodeReq) ProtoMessage() {}
-func (*FetchQRCodeReq) Descriptor() ([]byte, []int) {
- return fileDescriptor_3b5f7d4a2149a8d0, []int{9}
-}
-func (m *FetchQRCodeReq) XXX_Unmarshal(b []byte) error {
- return m.Unmarshal(b)
-}
-func (m *FetchQRCodeReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- if deterministic {
- return xxx_messageInfo_FetchQRCodeReq.Marshal(b, m, deterministic)
- } else {
- b = b[:cap(b)]
- n, err := m.MarshalToSizedBuffer(b)
- if err != nil {
- return nil, err
- }
- return b[:n], nil
+func (x *FetchQRCodeReq) Reset() {
+ *x = FetchQRCodeReq{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_http_dto_proto_msgTypes[9]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
}
}
-func (m *FetchQRCodeReq) XXX_Merge(src proto.Message) {
- xxx_messageInfo_FetchQRCodeReq.Merge(m, src)
-}
-func (m *FetchQRCodeReq) XXX_Size() int {
- return m.Size()
+
+func (x *FetchQRCodeReq) String() string {
+ return protoimpl.X.MessageStringOf(x)
}
-func (m *FetchQRCodeReq) XXX_DiscardUnknown() {
- xxx_messageInfo_FetchQRCodeReq.DiscardUnknown(m)
+
+func (*FetchQRCodeReq) ProtoMessage() {}
+
+func (x *FetchQRCodeReq) ProtoReflect() protoreflect.Message {
+ mi := &file_http_dto_proto_msgTypes[9]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
}
-var xxx_messageInfo_FetchQRCodeReq proto.InternalMessageInfo
+// Deprecated: Use FetchQRCodeReq.ProtoReflect.Descriptor instead.
+func (*FetchQRCodeReq) Descriptor() ([]byte, []int) {
+ return file_http_dto_proto_rawDescGZIP(), []int{9}
+}
-func (m *FetchQRCodeReq) GetDeviceSeed() int64 {
- if m != nil {
- return m.DeviceSeed
+func (x *FetchQRCodeReq) GetDeviceSeed() int64 {
+ if x != nil {
+ return x.DeviceSeed
}
return 0
}
-func (m *FetchQRCodeReq) GetClientProtocol() int32 {
- if m != nil {
- return m.ClientProtocol
+func (x *FetchQRCodeReq) GetClientProtocol() int32 {
+ if x != nil {
+ return x.ClientProtocol
}
return 0
}
// 查询二维码状态 /qrcode/query/v1/
type QueryQRCodeStatusReq struct {
- Sig []byte `protobuf:"bytes,1,opt,name=sig,proto3" json:"sig,omitempty"`
- BotId int64 `protobuf:"varint,2,opt,name=bot_id,json=botId,proto3" json:"bot_id,omitempty"`
- XXX_NoUnkeyedLiteral struct{} `json:"-"`
- XXX_unrecognized []byte `json:"-"`
- XXX_sizecache int32 `json:"-"`
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ Sig []byte `protobuf:"bytes,1,opt,name=sig,proto3" json:"sig,omitempty"`
+ BotId int64 `protobuf:"varint,2,opt,name=bot_id,json=botId,proto3" json:"bot_id,omitempty"`
}
-func (m *QueryQRCodeStatusReq) Reset() { *m = QueryQRCodeStatusReq{} }
-func (m *QueryQRCodeStatusReq) String() string { return proto.CompactTextString(m) }
-func (*QueryQRCodeStatusReq) ProtoMessage() {}
-func (*QueryQRCodeStatusReq) Descriptor() ([]byte, []int) {
- return fileDescriptor_3b5f7d4a2149a8d0, []int{10}
-}
-func (m *QueryQRCodeStatusReq) XXX_Unmarshal(b []byte) error {
- return m.Unmarshal(b)
-}
-func (m *QueryQRCodeStatusReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- if deterministic {
- return xxx_messageInfo_QueryQRCodeStatusReq.Marshal(b, m, deterministic)
- } else {
- b = b[:cap(b)]
- n, err := m.MarshalToSizedBuffer(b)
- if err != nil {
- return nil, err
- }
- return b[:n], nil
+func (x *QueryQRCodeStatusReq) Reset() {
+ *x = QueryQRCodeStatusReq{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_http_dto_proto_msgTypes[10]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
}
}
-func (m *QueryQRCodeStatusReq) XXX_Merge(src proto.Message) {
- xxx_messageInfo_QueryQRCodeStatusReq.Merge(m, src)
-}
-func (m *QueryQRCodeStatusReq) XXX_Size() int {
- return m.Size()
+
+func (x *QueryQRCodeStatusReq) String() string {
+ return protoimpl.X.MessageStringOf(x)
}
-func (m *QueryQRCodeStatusReq) XXX_DiscardUnknown() {
- xxx_messageInfo_QueryQRCodeStatusReq.DiscardUnknown(m)
+
+func (*QueryQRCodeStatusReq) ProtoMessage() {}
+
+func (x *QueryQRCodeStatusReq) ProtoReflect() protoreflect.Message {
+ mi := &file_http_dto_proto_msgTypes[10]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
}
-var xxx_messageInfo_QueryQRCodeStatusReq proto.InternalMessageInfo
+// Deprecated: Use QueryQRCodeStatusReq.ProtoReflect.Descriptor instead.
+func (*QueryQRCodeStatusReq) Descriptor() ([]byte, []int) {
+ return file_http_dto_proto_rawDescGZIP(), []int{10}
+}
-func (m *QueryQRCodeStatusReq) GetSig() []byte {
- if m != nil {
- return m.Sig
+func (x *QueryQRCodeStatusReq) GetSig() []byte {
+ if x != nil {
+ return x.Sig
}
return nil
}
-func (m *QueryQRCodeStatusReq) GetBotId() int64 {
- if m != nil {
- return m.BotId
+func (x *QueryQRCodeStatusReq) GetBotId() int64 {
+ if x != nil {
+ return x.BotId
}
return 0
}
// 二维码登陆响应(获取和查询统一)
type QRCodeLoginResp struct {
- State QRCodeLoginResp_QRCodeLoginState `protobuf:"varint,1,opt,name=state,proto3,enum=dto.QRCodeLoginResp_QRCodeLoginState" json:"state,omitempty"`
- ImageData []byte `protobuf:"bytes,2,opt,name=image_data,json=imageData,proto3" json:"image_data,omitempty"`
- Sig []byte `protobuf:"bytes,3,opt,name=sig,proto3" json:"sig,omitempty"`
- XXX_NoUnkeyedLiteral struct{} `json:"-"`
- XXX_unrecognized []byte `json:"-"`
- XXX_sizecache int32 `json:"-"`
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ State QRCodeLoginResp_QRCodeLoginState `protobuf:"varint,1,opt,name=state,proto3,enum=dto.QRCodeLoginResp_QRCodeLoginState" json:"state,omitempty"`
+ ImageData []byte `protobuf:"bytes,2,opt,name=image_data,json=imageData,proto3" json:"image_data,omitempty"`
+ Sig []byte `protobuf:"bytes,3,opt,name=sig,proto3" json:"sig,omitempty"`
}
-func (m *QRCodeLoginResp) Reset() { *m = QRCodeLoginResp{} }
-func (m *QRCodeLoginResp) String() string { return proto.CompactTextString(m) }
-func (*QRCodeLoginResp) ProtoMessage() {}
-func (*QRCodeLoginResp) Descriptor() ([]byte, []int) {
- return fileDescriptor_3b5f7d4a2149a8d0, []int{11}
-}
-func (m *QRCodeLoginResp) XXX_Unmarshal(b []byte) error {
- return m.Unmarshal(b)
-}
-func (m *QRCodeLoginResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- if deterministic {
- return xxx_messageInfo_QRCodeLoginResp.Marshal(b, m, deterministic)
- } else {
- b = b[:cap(b)]
- n, err := m.MarshalToSizedBuffer(b)
- if err != nil {
- return nil, err
- }
- return b[:n], nil
+func (x *QRCodeLoginResp) Reset() {
+ *x = QRCodeLoginResp{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_http_dto_proto_msgTypes[11]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
}
}
-func (m *QRCodeLoginResp) XXX_Merge(src proto.Message) {
- xxx_messageInfo_QRCodeLoginResp.Merge(m, src)
-}
-func (m *QRCodeLoginResp) XXX_Size() int {
- return m.Size()
+
+func (x *QRCodeLoginResp) String() string {
+ return protoimpl.X.MessageStringOf(x)
}
-func (m *QRCodeLoginResp) XXX_DiscardUnknown() {
- xxx_messageInfo_QRCodeLoginResp.DiscardUnknown(m)
+
+func (*QRCodeLoginResp) ProtoMessage() {}
+
+func (x *QRCodeLoginResp) ProtoReflect() protoreflect.Message {
+ mi := &file_http_dto_proto_msgTypes[11]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
}
-var xxx_messageInfo_QRCodeLoginResp proto.InternalMessageInfo
+// Deprecated: Use QRCodeLoginResp.ProtoReflect.Descriptor instead.
+func (*QRCodeLoginResp) Descriptor() ([]byte, []int) {
+ return file_http_dto_proto_rawDescGZIP(), []int{11}
+}
-func (m *QRCodeLoginResp) GetState() QRCodeLoginResp_QRCodeLoginState {
- if m != nil {
- return m.State
+func (x *QRCodeLoginResp) GetState() QRCodeLoginResp_QRCodeLoginState {
+ if x != nil {
+ return x.State
}
return QRCodeLoginResp_Unknown
}
-func (m *QRCodeLoginResp) GetImageData() []byte {
- if m != nil {
- return m.ImageData
+func (x *QRCodeLoginResp) GetImageData() []byte {
+ if x != nil {
+ return x.ImageData
}
return nil
}
-func (m *QRCodeLoginResp) GetSig() []byte {
- if m != nil {
- return m.Sig
+func (x *QRCodeLoginResp) GetSig() []byte {
+ if x != nil {
+ return x.Sig
}
return nil
}
type Plugin struct {
- Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
- Disabled bool `protobuf:"varint,2,opt,name=disabled,proto3" json:"disabled,omitempty"`
- Json bool `protobuf:"varint,3,opt,name=json,proto3" json:"json,omitempty"`
- Urls []string `protobuf:"bytes,4,rep,name=urls,proto3" json:"urls,omitempty"`
- EventFilter []int32 `protobuf:"varint,5,rep,packed,name=event_filter,json=eventFilter,proto3" json:"event_filter,omitempty"`
- ApiFilter []int32 `protobuf:"varint,6,rep,packed,name=api_filter,json=apiFilter,proto3" json:"api_filter,omitempty"`
- RegexFilter string `protobuf:"bytes,7,opt,name=regex_filter,json=regexFilter,proto3" json:"regex_filter,omitempty"`
- RegexReplace string `protobuf:"bytes,8,opt,name=regex_replace,json=regexReplace,proto3" json:"regex_replace,omitempty"`
- ExtraHeader []*Plugin_Header `protobuf:"bytes,9,rep,name=extra_header,json=extraHeader,proto3" json:"extra_header,omitempty"`
- XXX_NoUnkeyedLiteral struct{} `json:"-"`
- XXX_unrecognized []byte `json:"-"`
- XXX_sizecache int32 `json:"-"`
-}
-
-func (m *Plugin) Reset() { *m = Plugin{} }
-func (m *Plugin) String() string { return proto.CompactTextString(m) }
-func (*Plugin) ProtoMessage() {}
-func (*Plugin) Descriptor() ([]byte, []int) {
- return fileDescriptor_3b5f7d4a2149a8d0, []int{12}
-}
-func (m *Plugin) XXX_Unmarshal(b []byte) error {
- return m.Unmarshal(b)
-}
-func (m *Plugin) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- if deterministic {
- return xxx_messageInfo_Plugin.Marshal(b, m, deterministic)
- } else {
- b = b[:cap(b)]
- n, err := m.MarshalToSizedBuffer(b)
- if err != nil {
- return nil, err
- }
- return b[:n], nil
- }
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
+ Disabled bool `protobuf:"varint,2,opt,name=disabled,proto3" json:"disabled,omitempty"`
+ Json bool `protobuf:"varint,3,opt,name=json,proto3" json:"json,omitempty"`
+ Urls []string `protobuf:"bytes,4,rep,name=urls,proto3" json:"urls,omitempty"`
+ EventFilter []int32 `protobuf:"varint,5,rep,packed,name=event_filter,json=eventFilter,proto3" json:"event_filter,omitempty"`
+ ApiFilter []int32 `protobuf:"varint,6,rep,packed,name=api_filter,json=apiFilter,proto3" json:"api_filter,omitempty"`
+ RegexFilter string `protobuf:"bytes,7,opt,name=regex_filter,json=regexFilter,proto3" json:"regex_filter,omitempty"`
+ RegexReplace string `protobuf:"bytes,8,opt,name=regex_replace,json=regexReplace,proto3" json:"regex_replace,omitempty"`
+ ExtraHeader []*Plugin_Header `protobuf:"bytes,9,rep,name=extra_header,json=extraHeader,proto3" json:"extra_header,omitempty"`
}
-func (m *Plugin) XXX_Merge(src proto.Message) {
- xxx_messageInfo_Plugin.Merge(m, src)
+
+func (x *Plugin) Reset() {
+ *x = Plugin{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_http_dto_proto_msgTypes[12]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
}
-func (m *Plugin) XXX_Size() int {
- return m.Size()
+
+func (x *Plugin) String() string {
+ return protoimpl.X.MessageStringOf(x)
}
-func (m *Plugin) XXX_DiscardUnknown() {
- xxx_messageInfo_Plugin.DiscardUnknown(m)
+
+func (*Plugin) ProtoMessage() {}
+
+func (x *Plugin) ProtoReflect() protoreflect.Message {
+ mi := &file_http_dto_proto_msgTypes[12]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
}
-var xxx_messageInfo_Plugin proto.InternalMessageInfo
+// Deprecated: Use Plugin.ProtoReflect.Descriptor instead.
+func (*Plugin) Descriptor() ([]byte, []int) {
+ return file_http_dto_proto_rawDescGZIP(), []int{12}
+}
-func (m *Plugin) GetName() string {
- if m != nil {
- return m.Name
+func (x *Plugin) GetName() string {
+ if x != nil {
+ return x.Name
}
return ""
}
-func (m *Plugin) GetDisabled() bool {
- if m != nil {
- return m.Disabled
+func (x *Plugin) GetDisabled() bool {
+ if x != nil {
+ return x.Disabled
}
return false
}
-func (m *Plugin) GetJson() bool {
- if m != nil {
- return m.Json
+func (x *Plugin) GetJson() bool {
+ if x != nil {
+ return x.Json
}
return false
}
-func (m *Plugin) GetUrls() []string {
- if m != nil {
- return m.Urls
+func (x *Plugin) GetUrls() []string {
+ if x != nil {
+ return x.Urls
}
return nil
}
-func (m *Plugin) GetEventFilter() []int32 {
- if m != nil {
- return m.EventFilter
+func (x *Plugin) GetEventFilter() []int32 {
+ if x != nil {
+ return x.EventFilter
}
return nil
}
-func (m *Plugin) GetApiFilter() []int32 {
- if m != nil {
- return m.ApiFilter
+func (x *Plugin) GetApiFilter() []int32 {
+ if x != nil {
+ return x.ApiFilter
}
return nil
}
-func (m *Plugin) GetRegexFilter() string {
- if m != nil {
- return m.RegexFilter
+func (x *Plugin) GetRegexFilter() string {
+ if x != nil {
+ return x.RegexFilter
}
return ""
}
-func (m *Plugin) GetRegexReplace() string {
- if m != nil {
- return m.RegexReplace
+func (x *Plugin) GetRegexReplace() string {
+ if x != nil {
+ return x.RegexReplace
}
return ""
}
-func (m *Plugin) GetExtraHeader() []*Plugin_Header {
- if m != nil {
- return m.ExtraHeader
+func (x *Plugin) GetExtraHeader() []*Plugin_Header {
+ if x != nil {
+ return x.ExtraHeader
}
return nil
}
-type Plugin_Header struct {
- Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
- Value []string `protobuf:"bytes,2,rep,name=value,proto3" json:"value,omitempty"`
- XXX_NoUnkeyedLiteral struct{} `json:"-"`
- XXX_unrecognized []byte `json:"-"`
- XXX_sizecache int32 `json:"-"`
+type ListPluginReq struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
}
-func (m *Plugin_Header) Reset() { *m = Plugin_Header{} }
-func (m *Plugin_Header) String() string { return proto.CompactTextString(m) }
-func (*Plugin_Header) ProtoMessage() {}
-func (*Plugin_Header) Descriptor() ([]byte, []int) {
- return fileDescriptor_3b5f7d4a2149a8d0, []int{12, 0}
-}
-func (m *Plugin_Header) XXX_Unmarshal(b []byte) error {
- return m.Unmarshal(b)
-}
-func (m *Plugin_Header) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- if deterministic {
- return xxx_messageInfo_Plugin_Header.Marshal(b, m, deterministic)
- } else {
- b = b[:cap(b)]
- n, err := m.MarshalToSizedBuffer(b)
- if err != nil {
- return nil, err
- }
- return b[:n], nil
+func (x *ListPluginReq) Reset() {
+ *x = ListPluginReq{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_http_dto_proto_msgTypes[13]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
}
}
-func (m *Plugin_Header) XXX_Merge(src proto.Message) {
- xxx_messageInfo_Plugin_Header.Merge(m, src)
-}
-func (m *Plugin_Header) XXX_Size() int {
- return m.Size()
-}
-func (m *Plugin_Header) XXX_DiscardUnknown() {
- xxx_messageInfo_Plugin_Header.DiscardUnknown(m)
+
+func (x *ListPluginReq) String() string {
+ return protoimpl.X.MessageStringOf(x)
}
-var xxx_messageInfo_Plugin_Header proto.InternalMessageInfo
+func (*ListPluginReq) ProtoMessage() {}
-func (m *Plugin_Header) GetKey() string {
- if m != nil {
- return m.Key
+func (x *ListPluginReq) ProtoReflect() protoreflect.Message {
+ mi := &file_http_dto_proto_msgTypes[13]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
}
- return ""
+ return mi.MessageOf(x)
}
-func (m *Plugin_Header) GetValue() []string {
- if m != nil {
- return m.Value
- }
- return nil
+// Deprecated: Use ListPluginReq.ProtoReflect.Descriptor instead.
+func (*ListPluginReq) Descriptor() ([]byte, []int) {
+ return file_http_dto_proto_rawDescGZIP(), []int{13}
}
-type ListPluginReq struct {
- XXX_NoUnkeyedLiteral struct{} `json:"-"`
- XXX_unrecognized []byte `json:"-"`
- XXX_sizecache int32 `json:"-"`
+type ListPluginResp struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ Plugins []*Plugin `protobuf:"bytes,1,rep,name=plugins,proto3" json:"plugins,omitempty"`
}
-func (m *ListPluginReq) Reset() { *m = ListPluginReq{} }
-func (m *ListPluginReq) String() string { return proto.CompactTextString(m) }
-func (*ListPluginReq) ProtoMessage() {}
-func (*ListPluginReq) Descriptor() ([]byte, []int) {
- return fileDescriptor_3b5f7d4a2149a8d0, []int{13}
-}
-func (m *ListPluginReq) XXX_Unmarshal(b []byte) error {
- return m.Unmarshal(b)
-}
-func (m *ListPluginReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- if deterministic {
- return xxx_messageInfo_ListPluginReq.Marshal(b, m, deterministic)
- } else {
- b = b[:cap(b)]
- n, err := m.MarshalToSizedBuffer(b)
- if err != nil {
- return nil, err
- }
- return b[:n], nil
+func (x *ListPluginResp) Reset() {
+ *x = ListPluginResp{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_http_dto_proto_msgTypes[14]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
}
}
-func (m *ListPluginReq) XXX_Merge(src proto.Message) {
- xxx_messageInfo_ListPluginReq.Merge(m, src)
-}
-func (m *ListPluginReq) XXX_Size() int {
- return m.Size()
-}
-func (m *ListPluginReq) XXX_DiscardUnknown() {
- xxx_messageInfo_ListPluginReq.DiscardUnknown(m)
-}
-var xxx_messageInfo_ListPluginReq proto.InternalMessageInfo
-
-type ListPluginResp struct {
- Plugins []*Plugin `protobuf:"bytes,1,rep,name=plugins,proto3" json:"plugins,omitempty"`
- XXX_NoUnkeyedLiteral struct{} `json:"-"`
- XXX_unrecognized []byte `json:"-"`
- XXX_sizecache int32 `json:"-"`
+func (x *ListPluginResp) String() string {
+ return protoimpl.X.MessageStringOf(x)
}
-func (m *ListPluginResp) Reset() { *m = ListPluginResp{} }
-func (m *ListPluginResp) String() string { return proto.CompactTextString(m) }
-func (*ListPluginResp) ProtoMessage() {}
-func (*ListPluginResp) Descriptor() ([]byte, []int) {
- return fileDescriptor_3b5f7d4a2149a8d0, []int{14}
-}
-func (m *ListPluginResp) XXX_Unmarshal(b []byte) error {
- return m.Unmarshal(b)
-}
-func (m *ListPluginResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- if deterministic {
- return xxx_messageInfo_ListPluginResp.Marshal(b, m, deterministic)
- } else {
- b = b[:cap(b)]
- n, err := m.MarshalToSizedBuffer(b)
- if err != nil {
- return nil, err
+func (*ListPluginResp) ProtoMessage() {}
+
+func (x *ListPluginResp) ProtoReflect() protoreflect.Message {
+ mi := &file_http_dto_proto_msgTypes[14]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
}
- return b[:n], nil
+ return ms
}
-}
-func (m *ListPluginResp) XXX_Merge(src proto.Message) {
- xxx_messageInfo_ListPluginResp.Merge(m, src)
-}
-func (m *ListPluginResp) XXX_Size() int {
- return m.Size()
-}
-func (m *ListPluginResp) XXX_DiscardUnknown() {
- xxx_messageInfo_ListPluginResp.DiscardUnknown(m)
+ return mi.MessageOf(x)
}
-var xxx_messageInfo_ListPluginResp proto.InternalMessageInfo
+// Deprecated: Use ListPluginResp.ProtoReflect.Descriptor instead.
+func (*ListPluginResp) Descriptor() ([]byte, []int) {
+ return file_http_dto_proto_rawDescGZIP(), []int{14}
+}
-func (m *ListPluginResp) GetPlugins() []*Plugin {
- if m != nil {
- return m.Plugins
+func (x *ListPluginResp) GetPlugins() []*Plugin {
+ if x != nil {
+ return x.Plugins
}
return nil
}
type SavePluginReq struct {
- Plugin *Plugin `protobuf:"bytes,1,opt,name=plugin,proto3" json:"plugin,omitempty"`
- XXX_NoUnkeyedLiteral struct{} `json:"-"`
- XXX_unrecognized []byte `json:"-"`
- XXX_sizecache int32 `json:"-"`
-}
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
-func (m *SavePluginReq) Reset() { *m = SavePluginReq{} }
-func (m *SavePluginReq) String() string { return proto.CompactTextString(m) }
-func (*SavePluginReq) ProtoMessage() {}
-func (*SavePluginReq) Descriptor() ([]byte, []int) {
- return fileDescriptor_3b5f7d4a2149a8d0, []int{15}
-}
-func (m *SavePluginReq) XXX_Unmarshal(b []byte) error {
- return m.Unmarshal(b)
-}
-func (m *SavePluginReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- if deterministic {
- return xxx_messageInfo_SavePluginReq.Marshal(b, m, deterministic)
- } else {
- b = b[:cap(b)]
- n, err := m.MarshalToSizedBuffer(b)
- if err != nil {
- return nil, err
- }
- return b[:n], nil
- }
-}
-func (m *SavePluginReq) XXX_Merge(src proto.Message) {
- xxx_messageInfo_SavePluginReq.Merge(m, src)
-}
-func (m *SavePluginReq) XXX_Size() int {
- return m.Size()
+ Plugin *Plugin `protobuf:"bytes,1,opt,name=plugin,proto3" json:"plugin,omitempty"`
}
-func (m *SavePluginReq) XXX_DiscardUnknown() {
- xxx_messageInfo_SavePluginReq.DiscardUnknown(m)
-}
-
-var xxx_messageInfo_SavePluginReq proto.InternalMessageInfo
-func (m *SavePluginReq) GetPlugin() *Plugin {
- if m != nil {
- return m.Plugin
+func (x *SavePluginReq) Reset() {
+ *x = SavePluginReq{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_http_dto_proto_msgTypes[15]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
}
- return nil
}
-type SavePluginResp struct {
- XXX_NoUnkeyedLiteral struct{} `json:"-"`
- XXX_unrecognized []byte `json:"-"`
- XXX_sizecache int32 `json:"-"`
-}
-
-func (m *SavePluginResp) Reset() { *m = SavePluginResp{} }
-func (m *SavePluginResp) String() string { return proto.CompactTextString(m) }
-func (*SavePluginResp) ProtoMessage() {}
-func (*SavePluginResp) Descriptor() ([]byte, []int) {
- return fileDescriptor_3b5f7d4a2149a8d0, []int{16}
-}
-func (m *SavePluginResp) XXX_Unmarshal(b []byte) error {
- return m.Unmarshal(b)
-}
-func (m *SavePluginResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- if deterministic {
- return xxx_messageInfo_SavePluginResp.Marshal(b, m, deterministic)
- } else {
- b = b[:cap(b)]
- n, err := m.MarshalToSizedBuffer(b)
- if err != nil {
- return nil, err
- }
- return b[:n], nil
- }
-}
-func (m *SavePluginResp) XXX_Merge(src proto.Message) {
- xxx_messageInfo_SavePluginResp.Merge(m, src)
-}
-func (m *SavePluginResp) XXX_Size() int {
- return m.Size()
+func (x *SavePluginReq) String() string {
+ return protoimpl.X.MessageStringOf(x)
}
-func (m *SavePluginResp) XXX_DiscardUnknown() {
- xxx_messageInfo_SavePluginResp.DiscardUnknown(m)
-}
-
-var xxx_messageInfo_SavePluginResp proto.InternalMessageInfo
-type DeletePluginReq 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 (*SavePluginReq) ProtoMessage() {}
-func (m *DeletePluginReq) Reset() { *m = DeletePluginReq{} }
-func (m *DeletePluginReq) String() string { return proto.CompactTextString(m) }
-func (*DeletePluginReq) ProtoMessage() {}
-func (*DeletePluginReq) Descriptor() ([]byte, []int) {
- return fileDescriptor_3b5f7d4a2149a8d0, []int{17}
-}
-func (m *DeletePluginReq) XXX_Unmarshal(b []byte) error {
- return m.Unmarshal(b)
-}
-func (m *DeletePluginReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- if deterministic {
- return xxx_messageInfo_DeletePluginReq.Marshal(b, m, deterministic)
- } else {
- b = b[:cap(b)]
- n, err := m.MarshalToSizedBuffer(b)
- if err != nil {
- return nil, err
+func (x *SavePluginReq) ProtoReflect() protoreflect.Message {
+ mi := &file_http_dto_proto_msgTypes[15]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
}
- return b[:n], nil
- }
-}
-func (m *DeletePluginReq) XXX_Merge(src proto.Message) {
- xxx_messageInfo_DeletePluginReq.Merge(m, src)
-}
-func (m *DeletePluginReq) XXX_Size() int {
- return m.Size()
-}
-func (m *DeletePluginReq) XXX_DiscardUnknown() {
- xxx_messageInfo_DeletePluginReq.DiscardUnknown(m)
-}
-
-var xxx_messageInfo_DeletePluginReq proto.InternalMessageInfo
-
-func (m *DeletePluginReq) GetName() string {
- if m != nil {
- return m.Name
+ return ms
}
- return ""
+ return mi.MessageOf(x)
}
-type DeletePluginResp struct {
- XXX_NoUnkeyedLiteral struct{} `json:"-"`
- XXX_unrecognized []byte `json:"-"`
- XXX_sizecache int32 `json:"-"`
+// Deprecated: Use SavePluginReq.ProtoReflect.Descriptor instead.
+func (*SavePluginReq) Descriptor() ([]byte, []int) {
+ return file_http_dto_proto_rawDescGZIP(), []int{15}
}
-func (m *DeletePluginResp) Reset() { *m = DeletePluginResp{} }
-func (m *DeletePluginResp) String() string { return proto.CompactTextString(m) }
-func (*DeletePluginResp) ProtoMessage() {}
-func (*DeletePluginResp) Descriptor() ([]byte, []int) {
- return fileDescriptor_3b5f7d4a2149a8d0, []int{18}
-}
-func (m *DeletePluginResp) XXX_Unmarshal(b []byte) error {
- return m.Unmarshal(b)
-}
-func (m *DeletePluginResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- if deterministic {
- return xxx_messageInfo_DeletePluginResp.Marshal(b, m, deterministic)
- } else {
- b = b[:cap(b)]
- n, err := m.MarshalToSizedBuffer(b)
- if err != nil {
- return nil, err
- }
- return b[:n], nil
- }
-}
-func (m *DeletePluginResp) XXX_Merge(src proto.Message) {
- xxx_messageInfo_DeletePluginResp.Merge(m, src)
-}
-func (m *DeletePluginResp) XXX_Size() int {
- return m.Size()
-}
-func (m *DeletePluginResp) XXX_DiscardUnknown() {
- xxx_messageInfo_DeletePluginResp.DiscardUnknown(m)
-}
-
-var xxx_messageInfo_DeletePluginResp proto.InternalMessageInfo
-
-func init() {
- proto.RegisterEnum("dto.Bot_Captcha_CaptchaType", Bot_Captcha_CaptchaType_name, Bot_Captcha_CaptchaType_value)
- proto.RegisterEnum("dto.QRCodeLoginResp_QRCodeLoginState", QRCodeLoginResp_QRCodeLoginState_name, QRCodeLoginResp_QRCodeLoginState_value)
- proto.RegisterType((*Bot)(nil), "dto.Bot")
- proto.RegisterType((*Bot_Captcha)(nil), "dto.Bot.Captcha")
- proto.RegisterType((*CreateBotReq)(nil), "dto.CreateBotReq")
- proto.RegisterType((*CreateBotResp)(nil), "dto.CreateBotResp")
- proto.RegisterType((*DeleteBotReq)(nil), "dto.DeleteBotReq")
- proto.RegisterType((*DeleteBotResp)(nil), "dto.DeleteBotResp")
- proto.RegisterType((*ListBotReq)(nil), "dto.ListBotReq")
- proto.RegisterType((*ListBotResp)(nil), "dto.ListBotResp")
- proto.RegisterType((*SolveCaptchaReq)(nil), "dto.SolveCaptchaReq")
- proto.RegisterType((*SolveCaptchaResp)(nil), "dto.SolveCaptchaResp")
- proto.RegisterType((*FetchQRCodeReq)(nil), "dto.FetchQRCodeReq")
- proto.RegisterType((*QueryQRCodeStatusReq)(nil), "dto.QueryQRCodeStatusReq")
- proto.RegisterType((*QRCodeLoginResp)(nil), "dto.QRCodeLoginResp")
- proto.RegisterType((*Plugin)(nil), "dto.Plugin")
- proto.RegisterType((*Plugin_Header)(nil), "dto.Plugin.Header")
- proto.RegisterType((*ListPluginReq)(nil), "dto.ListPluginReq")
- proto.RegisterType((*ListPluginResp)(nil), "dto.ListPluginResp")
- proto.RegisterType((*SavePluginReq)(nil), "dto.SavePluginReq")
- proto.RegisterType((*SavePluginResp)(nil), "dto.SavePluginResp")
- proto.RegisterType((*DeletePluginReq)(nil), "dto.DeletePluginReq")
- proto.RegisterType((*DeletePluginResp)(nil), "dto.DeletePluginResp")
-}
-
-func init() { proto.RegisterFile("http_dto.proto", fileDescriptor_3b5f7d4a2149a8d0) }
-
-var fileDescriptor_3b5f7d4a2149a8d0 = []byte{
- // 1069 bytes of a gzipped FileDescriptorProto
- 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x54, 0xdd, 0x6e, 0xe3, 0x44,
- 0x14, 0xae, 0xe3, 0xfc, 0x1e, 0xbb, 0x89, 0xf7, 0x34, 0xbb, 0x84, 0x2c, 0x94, 0xac, 0xab, 0x8a,
- 0x08, 0xa1, 0x0a, 0x05, 0x56, 0x20, 0x71, 0xb1, 0xb4, 0x69, 0x4b, 0x23, 0x95, 0xdd, 0xee, 0xa4,
- 0xbb, 0x08, 0xb8, 0xb0, 0xa6, 0xf1, 0x6c, 0x6a, 0xd6, 0xb5, 0x8d, 0x67, 0xd2, 0xdd, 0x3e, 0xc3,
- 0xbe, 0x00, 0x8f, 0x80, 0x78, 0x12, 0x2e, 0x91, 0xb8, 0xe3, 0x0a, 0x95, 0x37, 0xe0, 0x09, 0xd0,
- 0xcc, 0xd8, 0xa9, 0x93, 0x4d, 0x05, 0x57, 0xf6, 0xf9, 0xe6, 0x3b, 0x67, 0x66, 0xbe, 0x39, 0xe7,
- 0x83, 0xe6, 0xb9, 0x10, 0x89, 0xe7, 0x8b, 0x78, 0x27, 0x49, 0x63, 0x11, 0xa3, 0xe9, 0x8b, 0xd8,
- 0xfd, 0xb3, 0x04, 0xe6, 0x5e, 0x2c, 0xf0, 0x2e, 0x54, 0xcf, 0x62, 0xe1, 0x05, 0x7e, 0xc7, 0xe8,
- 0x19, 0x7d, 0x93, 0x54, 0xce, 0x62, 0x31, 0xf2, 0xf1, 0x3e, 0x34, 0x02, 0xee, 0xc5, 0x51, 0x18,
- 0x44, 0xac, 0x53, 0xea, 0x19, 0xfd, 0x3a, 0xa9, 0x07, 0xfc, 0x89, 0x8a, 0xf1, 0x23, 0xa8, 0x4d,
- 0x68, 0x22, 0x26, 0xe7, 0xb4, 0x63, 0xf6, 0x8c, 0xbe, 0x35, 0x70, 0x76, 0x64, 0xf5, 0xbd, 0x58,
- 0xec, 0x0c, 0x35, 0x4e, 0x72, 0x42, 0xf7, 0x1f, 0x03, 0x6a, 0x19, 0x78, 0xdb, 0x5e, 0x8f, 0xc0,
- 0xce, 0xd8, 0x9e, 0xb8, 0x4a, 0xf4, 0x76, 0xcd, 0xc1, 0x7b, 0xcb, 0x35, 0xf3, 0xef, 0xe9, 0x55,
- 0xc2, 0x88, 0x35, 0xb9, 0x09, 0x10, 0xc1, 0x9c, 0xa5, 0xa1, 0x3a, 0x4b, 0xe3, 0x68, 0x8d, 0xc8,
- 0x00, 0xef, 0x41, 0x25, 0xb8, 0xa0, 0x53, 0xd6, 0x29, 0xf7, 0x8c, 0xbe, 0x7d, 0xb4, 0x46, 0x74,
- 0xe8, 0xfe, 0x00, 0x56, 0xa1, 0x0e, 0xb6, 0xc0, 0x3a, 0x19, 0x0d, 0xbd, 0xe1, 0xee, 0xc9, 0xe9,
- 0xf0, 0x68, 0xd7, 0x59, 0x43, 0x84, 0xe6, 0xf8, 0x78, 0xb4, 0x7f, 0x40, 0xe6, 0x98, 0x81, 0x9b,
- 0xd0, 0x7d, 0xf6, 0x78, 0xbc, 0x7b, 0x78, 0xe0, 0xed, 0x1f, 0x3c, 0x1f, 0x0d, 0x0f, 0xbc, 0xe3,
- 0x27, 0x5f, 0x8f, 0x1e, 0x7b, 0xcf, 0x0f, 0xc8, 0xe8, 0xf0, 0x3b, 0xa7, 0x84, 0x35, 0x30, 0xc7,
- 0xdf, 0x8c, 0x9d, 0xf2, 0x5e, 0x15, 0xca, 0x3e, 0x15, 0xd4, 0x7d, 0x63, 0x80, 0x3d, 0x4c, 0x19,
- 0x15, 0x6c, 0x2f, 0x16, 0x84, 0xfd, 0x74, 0xdb, 0xcd, 0xbb, 0x50, 0x4f, 0x28, 0xe7, 0xaf, 0xe2,
- 0xd4, 0x57, 0xb7, 0x6e, 0x90, 0x79, 0x8c, 0x1f, 0x80, 0xe5, 0xb3, 0xcb, 0x60, 0xc2, 0x3c, 0xce,
- 0x98, 0xaf, 0x2e, 0x67, 0x12, 0xd0, 0xd0, 0x98, 0x31, 0x1f, 0x3f, 0x84, 0xd6, 0x24, 0x0c, 0x58,
- 0x24, 0x3c, 0xf5, 0xac, 0x93, 0x38, 0x54, 0x77, 0xad, 0x90, 0xa6, 0x86, 0x4f, 0x32, 0xd4, 0x6d,
- 0xc1, 0x7a, 0xe1, 0x30, 0x3c, 0x71, 0xb7, 0xc1, 0xde, 0x67, 0x21, 0xfb, 0x8f, 0xd3, 0xc9, 0xbc,
- 0x02, 0x8d, 0x27, 0xae, 0x0d, 0x70, 0x1c, 0x70, 0xa1, 0xb3, 0xdc, 0x01, 0x58, 0xf3, 0x88, 0x27,
- 0xb8, 0x05, 0x75, 0x59, 0x24, 0x0c, 0xb8, 0xe8, 0x18, 0x3d, 0xb3, 0x6f, 0x0d, 0xea, 0xf9, 0x0b,
- 0x92, 0xda, 0x59, 0x2c, 0x24, 0xd7, 0xfd, 0x0a, 0x5a, 0xe3, 0x38, 0xbc, 0x64, 0x79, 0x9b, 0xdc,
- 0x2e, 0xcd, 0x3d, 0xa8, 0xa6, 0x8c, 0xcf, 0x42, 0x91, 0x09, 0x93, 0x45, 0x2e, 0x82, 0xb3, 0x58,
- 0x81, 0x27, 0xee, 0xf7, 0xd0, 0x3c, 0x64, 0x62, 0x72, 0xfe, 0x94, 0x0c, 0x63, 0x9f, 0xc9, 0xa2,
- 0x4b, 0xe2, 0x19, 0xff, 0x47, 0xbc, 0xd2, 0x4a, 0xf1, 0x1e, 0x41, 0xfb, 0xe9, 0x8c, 0xa5, 0x57,
- 0xba, 0xf6, 0x58, 0x50, 0x31, 0xe3, 0x72, 0x07, 0x07, 0x4c, 0x1e, 0x4c, 0x55, 0x65, 0x9b, 0xc8,
- 0xdf, 0xc2, 0x45, 0x4a, 0x45, 0x15, 0x7f, 0x2d, 0x41, 0x4b, 0x27, 0x1f, 0xc7, 0xd3, 0x20, 0x52,
- 0x5a, 0x7d, 0x09, 0x15, 0x2e, 0xa8, 0x60, 0x2a, 0xbd, 0x39, 0xd8, 0x56, 0x42, 0x2d, 0x91, 0x8a,
- 0xb1, 0xdc, 0x96, 0x11, 0x9d, 0x83, 0xef, 0x03, 0xa8, 0x56, 0xf6, 0x64, 0xab, 0xa9, 0xbd, 0x6c,
- 0xd2, 0x50, 0xc8, 0x3e, 0x15, 0x34, 0x3f, 0x98, 0x39, 0x3f, 0x98, 0xfb, 0x8b, 0x01, 0xce, 0x72,
- 0x31, 0xb4, 0xa0, 0xf6, 0x2c, 0x7a, 0x19, 0xc5, 0xaf, 0x22, 0x67, 0x0d, 0xdb, 0x39, 0x61, 0x24,
- 0xcb, 0x28, 0x2d, 0x1d, 0x03, 0x3b, 0xd0, 0xd6, 0xe8, 0xb7, 0x34, 0x10, 0x41, 0x34, 0x3d, 0x8c,
- 0xd3, 0xf1, 0x84, 0x46, 0x4e, 0x09, 0xef, 0xc3, 0x3b, 0xcb, 0x2b, 0xc3, 0x38, 0x7a, 0x11, 0xa4,
- 0x17, 0x8e, 0x89, 0x77, 0x60, 0x5d, 0x2f, 0x9e, 0x06, 0x17, 0x2c, 0x9e, 0x09, 0xa7, 0x8c, 0x1b,
- 0xb9, 0x04, 0x19, 0x8b, 0xf9, 0x4e, 0x45, 0x4e, 0x5a, 0x06, 0xd2, 0x68, 0xc2, 0x42, 0xe6, 0x3b,
- 0x55, 0xf7, 0x8f, 0x12, 0x54, 0x4f, 0xc2, 0xd9, 0x34, 0x88, 0x10, 0xa1, 0x1c, 0xd1, 0x0b, 0x2d,
- 0x51, 0x83, 0xa8, 0x7f, 0x39, 0x2f, 0x7e, 0xc0, 0xe9, 0x59, 0xc8, 0xfc, 0xdc, 0x94, 0xf2, 0x58,
- 0xf2, 0x7f, 0xe4, 0x71, 0xa4, 0x2e, 0x5e, 0x27, 0xea, 0x5f, 0x62, 0xb3, 0x34, 0xe4, 0x9d, 0x72,
- 0xcf, 0x94, 0x35, 0xe4, 0x3f, 0x3e, 0x00, 0x9b, 0x5d, 0xca, 0x87, 0x7f, 0x11, 0x84, 0x82, 0xa5,
- 0x9d, 0x4a, 0xcf, 0xec, 0x57, 0x88, 0xa5, 0xb0, 0x43, 0x05, 0x49, 0x85, 0x69, 0x12, 0xe4, 0x84,
- 0xaa, 0x22, 0x34, 0x68, 0x12, 0x64, 0xcb, 0x0f, 0xc0, 0x4e, 0xd9, 0x94, 0xbd, 0xce, 0x09, 0x35,
- 0x75, 0x42, 0x4b, 0x61, 0x19, 0x65, 0x0b, 0xd6, 0x35, 0x25, 0x65, 0x49, 0x48, 0x27, 0xac, 0x53,
- 0x57, 0x1c, 0x9d, 0x47, 0x34, 0x86, 0x0f, 0xc1, 0x66, 0xaf, 0x45, 0x4a, 0xbd, 0x73, 0x46, 0x7d,
- 0x96, 0x76, 0x1a, 0x6a, 0x6a, 0x50, 0x35, 0x83, 0x16, 0x61, 0xe7, 0x48, 0xad, 0x10, 0x4b, 0xf1,
- 0x74, 0xd0, 0xfd, 0x04, 0xaa, 0xfa, 0x4f, 0x3e, 0xf5, 0x4b, 0x76, 0x95, 0x29, 0x24, 0x7f, 0xb1,
- 0x0d, 0x95, 0x4b, 0x1a, 0xce, 0xa4, 0x87, 0xca, 0x1b, 0xeb, 0x40, 0x0e, 0xb2, 0x9c, 0x3e, 0x5d,
- 0x53, 0x8e, 0xee, 0xe7, 0xd0, 0x2c, 0x02, 0x3c, 0xc1, 0x6d, 0xa8, 0x25, 0x2a, 0xe2, 0xd9, 0xf0,
- 0x5a, 0x85, 0x63, 0x90, 0x7c, 0xcd, 0xfd, 0x0c, 0xd6, 0xc7, 0xf4, 0x92, 0xcd, 0x2b, 0xe1, 0x16,
- 0x54, 0xf5, 0x9a, 0x3a, 0xc5, 0x52, 0x5a, 0xb6, 0xe4, 0x3a, 0xd0, 0x2c, 0x66, 0x29, 0x07, 0x6a,
- 0x69, 0x6b, 0xb9, 0xa9, 0xb4, 0xe2, 0xbd, 0xe5, 0xb0, 0x2f, 0xd2, 0x78, 0x32, 0x78, 0x53, 0x06,
- 0xeb, 0x48, 0x88, 0x64, 0xcc, 0x52, 0x39, 0xcd, 0x38, 0x80, 0xc6, 0xdc, 0xdd, 0xf0, 0x8e, 0xda,
- 0xbe, 0x68, 0xbd, 0x5d, 0x5c, 0x86, 0x78, 0x22, 0x73, 0xe6, 0xce, 0x96, 0xe5, 0x14, 0x0d, 0x31,
- 0xcb, 0x59, 0x30, 0x3f, 0xfc, 0x18, 0x6a, 0x99, 0xdd, 0x61, 0x4b, 0x2d, 0xdf, 0x58, 0x61, 0xd7,
- 0x59, 0x04, 0xd4, 0x84, 0xdb, 0x45, 0x9b, 0xc2, 0xb6, 0x62, 0x2c, 0x79, 0x5f, 0xf7, 0xee, 0x0a,
- 0x94, 0x27, 0xf8, 0x05, 0x58, 0x05, 0x3f, 0xc3, 0x0d, 0xc5, 0x5a, 0x74, 0xb8, 0x6e, 0x7b, 0x95,
- 0x67, 0xe0, 0x3e, 0xdc, 0x79, 0xcb, 0xad, 0xf0, 0x5d, 0x4d, 0x5d, 0xe1, 0x62, 0xb7, 0x54, 0x79,
- 0xa8, 0x7d, 0x3e, 0x1f, 0xc4, 0xf9, 0xe5, 0xe6, 0x8f, 0xd5, 0xdd, 0x78, 0x0b, 0xd3, 0x69, 0x37,
- 0xcf, 0x9c, 0xa5, 0x2d, 0x74, 0x4b, 0x96, 0xb6, 0xd8, 0x0b, 0x52, 0xaa, 0xe2, 0x23, 0x67, 0x52,
- 0x2d, 0xb5, 0x47, 0x26, 0xd5, 0x72, 0x37, 0xec, 0x39, 0xbf, 0x5d, 0x6f, 0x1a, 0xbf, 0x5f, 0x6f,
- 0x1a, 0x7f, 0x5d, 0x6f, 0x1a, 0x3f, 0xff, 0xbd, 0xb9, 0x76, 0x56, 0x55, 0x86, 0xfe, 0xe9, 0xbf,
- 0x01, 0x00, 0x00, 0xff, 0xff, 0xff, 0xa2, 0xb5, 0x05, 0xf6, 0x08, 0x00, 0x00,
-}
-
-func (m *Bot) Marshal() (dAtA []byte, err error) {
- size := m.Size()
- dAtA = make([]byte, size)
- n, err := m.MarshalToSizedBuffer(dAtA[:size])
- if err != nil {
- return nil, err
+func (x *SavePluginReq) GetPlugin() *Plugin {
+ if x != nil {
+ return x.Plugin
}
- return dAtA[:n], nil
+ return nil
}
-func (m *Bot) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
+type SavePluginResp struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
}
-func (m *Bot) MarshalToSizedBuffer(dAtA []byte) (int, error) {
- i := len(dAtA)
- _ = i
- var l int
- _ = l
- if m.XXX_unrecognized != nil {
- i -= len(m.XXX_unrecognized)
- copy(dAtA[i:], m.XXX_unrecognized)
- }
- if m.Captcha != nil {
- {
- size, err := m.Captcha.MarshalToSizedBuffer(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- i = encodeVarintHttpDto(dAtA, i, uint64(size))
- }
- i--
- dAtA[i] = 0x1a
- }
- if m.IsOnline {
- i--
- if m.IsOnline {
- dAtA[i] = 1
- } else {
- dAtA[i] = 0
- }
- i--
- dAtA[i] = 0x10
- }
- if m.BotId != 0 {
- i = encodeVarintHttpDto(dAtA, i, uint64(m.BotId))
- i--
- dAtA[i] = 0x8
+func (x *SavePluginResp) Reset() {
+ *x = SavePluginResp{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_http_dto_proto_msgTypes[16]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
}
- return len(dAtA) - i, nil
}
-func (m *Bot_Captcha) Marshal() (dAtA []byte, err error) {
- size := m.Size()
- dAtA = make([]byte, size)
- n, err := m.MarshalToSizedBuffer(dAtA[:size])
- if err != nil {
- return nil, err
- }
- return dAtA[:n], nil
+func (x *SavePluginResp) String() string {
+ return protoimpl.X.MessageStringOf(x)
}
-func (m *Bot_Captcha) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
-}
+func (*SavePluginResp) ProtoMessage() {}
-func (m *Bot_Captcha) MarshalToSizedBuffer(dAtA []byte) (int, error) {
- i := len(dAtA)
- _ = i
- var l int
- _ = l
- if m.XXX_unrecognized != nil {
- i -= len(m.XXX_unrecognized)
- copy(dAtA[i:], m.XXX_unrecognized)
- }
- if m.Data != nil {
- {
- size := m.Data.Size()
- i -= size
- if _, err := m.Data.MarshalTo(dAtA[i:]); err != nil {
- return 0, err
- }
+func (x *SavePluginResp) ProtoReflect() protoreflect.Message {
+ mi := &file_http_dto_proto_msgTypes[16]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
}
+ return ms
}
- if m.CaptchaType != 0 {
- i = encodeVarintHttpDto(dAtA, i, uint64(m.CaptchaType))
- i--
- dAtA[i] = 0x10
- }
- if m.BotId != 0 {
- i = encodeVarintHttpDto(dAtA, i, uint64(m.BotId))
- i--
- dAtA[i] = 0x8
- }
- return len(dAtA) - i, nil
-}
-
-func (m *Bot_Captcha_Url) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
-}
-
-func (m *Bot_Captcha_Url) MarshalToSizedBuffer(dAtA []byte) (int, error) {
- i := len(dAtA)
- i -= len(m.Url)
- copy(dAtA[i:], m.Url)
- i = encodeVarintHttpDto(dAtA, i, uint64(len(m.Url)))
- i--
- dAtA[i] = 0x1a
- return len(dAtA) - i, nil
-}
-func (m *Bot_Captcha_Image) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
-}
-
-func (m *Bot_Captcha_Image) MarshalToSizedBuffer(dAtA []byte) (int, error) {
- i := len(dAtA)
- if m.Image != nil {
- i -= len(m.Image)
- copy(dAtA[i:], m.Image)
- i = encodeVarintHttpDto(dAtA, i, uint64(len(m.Image)))
- i--
- dAtA[i] = 0x22
- }
- return len(dAtA) - i, nil
-}
-func (m *CreateBotReq) Marshal() (dAtA []byte, err error) {
- size := m.Size()
- dAtA = make([]byte, size)
- n, err := m.MarshalToSizedBuffer(dAtA[:size])
- if err != nil {
- return nil, err
- }
- return dAtA[:n], nil
-}
-
-func (m *CreateBotReq) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
-}
-
-func (m *CreateBotReq) MarshalToSizedBuffer(dAtA []byte) (int, error) {
- i := len(dAtA)
- _ = i
- var l int
- _ = l
- if m.XXX_unrecognized != nil {
- i -= len(m.XXX_unrecognized)
- copy(dAtA[i:], m.XXX_unrecognized)
- }
- if m.ClientProtocol != 0 {
- i = encodeVarintHttpDto(dAtA, i, uint64(m.ClientProtocol))
- i--
- dAtA[i] = 0x20
- }
- if m.DeviceSeed != 0 {
- i = encodeVarintHttpDto(dAtA, i, uint64(m.DeviceSeed))
- i--
- dAtA[i] = 0x18
- }
- if len(m.Password) > 0 {
- i -= len(m.Password)
- copy(dAtA[i:], m.Password)
- i = encodeVarintHttpDto(dAtA, i, uint64(len(m.Password)))
- i--
- dAtA[i] = 0x12
- }
- if m.BotId != 0 {
- i = encodeVarintHttpDto(dAtA, i, uint64(m.BotId))
- i--
- dAtA[i] = 0x8
- }
- return len(dAtA) - i, nil
-}
-
-func (m *CreateBotResp) Marshal() (dAtA []byte, err error) {
- size := m.Size()
- dAtA = make([]byte, size)
- n, err := m.MarshalToSizedBuffer(dAtA[:size])
- if err != nil {
- return nil, err
- }
- return dAtA[:n], nil
-}
-
-func (m *CreateBotResp) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
-}
-
-func (m *CreateBotResp) MarshalToSizedBuffer(dAtA []byte) (int, error) {
- i := len(dAtA)
- _ = i
- var l int
- _ = l
- if m.XXX_unrecognized != nil {
- i -= len(m.XXX_unrecognized)
- copy(dAtA[i:], m.XXX_unrecognized)
- }
- return len(dAtA) - i, nil
-}
-
-func (m *DeleteBotReq) Marshal() (dAtA []byte, err error) {
- size := m.Size()
- dAtA = make([]byte, size)
- n, err := m.MarshalToSizedBuffer(dAtA[:size])
- if err != nil {
- return nil, err
- }
- return dAtA[:n], nil
-}
-
-func (m *DeleteBotReq) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
-}
-
-func (m *DeleteBotReq) MarshalToSizedBuffer(dAtA []byte) (int, error) {
- i := len(dAtA)
- _ = i
- var l int
- _ = l
- if m.XXX_unrecognized != nil {
- i -= len(m.XXX_unrecognized)
- copy(dAtA[i:], m.XXX_unrecognized)
- }
- if m.BotId != 0 {
- i = encodeVarintHttpDto(dAtA, i, uint64(m.BotId))
- i--
- dAtA[i] = 0x8
- }
- return len(dAtA) - i, nil
-}
-
-func (m *DeleteBotResp) Marshal() (dAtA []byte, err error) {
- size := m.Size()
- dAtA = make([]byte, size)
- n, err := m.MarshalToSizedBuffer(dAtA[:size])
- if err != nil {
- return nil, err
- }
- return dAtA[:n], nil
+ return mi.MessageOf(x)
}
-func (m *DeleteBotResp) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
-}
-
-func (m *DeleteBotResp) MarshalToSizedBuffer(dAtA []byte) (int, error) {
- i := len(dAtA)
- _ = i
- var l int
- _ = l
- if m.XXX_unrecognized != nil {
- i -= len(m.XXX_unrecognized)
- copy(dAtA[i:], m.XXX_unrecognized)
- }
- return len(dAtA) - i, nil
+// Deprecated: Use SavePluginResp.ProtoReflect.Descriptor instead.
+func (*SavePluginResp) Descriptor() ([]byte, []int) {
+ return file_http_dto_proto_rawDescGZIP(), []int{16}
}
-func (m *ListBotReq) Marshal() (dAtA []byte, err error) {
- size := m.Size()
- dAtA = make([]byte, size)
- n, err := m.MarshalToSizedBuffer(dAtA[:size])
- if err != nil {
- return nil, err
- }
- return dAtA[:n], nil
-}
+type DeletePluginReq struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
-func (m *ListBotReq) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
+ Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
}
-func (m *ListBotReq) MarshalToSizedBuffer(dAtA []byte) (int, error) {
- i := len(dAtA)
- _ = i
- var l int
- _ = l
- if m.XXX_unrecognized != nil {
- i -= len(m.XXX_unrecognized)
- copy(dAtA[i:], m.XXX_unrecognized)
+func (x *DeletePluginReq) Reset() {
+ *x = DeletePluginReq{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_http_dto_proto_msgTypes[17]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
}
- return len(dAtA) - i, nil
}
-func (m *ListBotResp) Marshal() (dAtA []byte, err error) {
- size := m.Size()
- dAtA = make([]byte, size)
- n, err := m.MarshalToSizedBuffer(dAtA[:size])
- if err != nil {
- return nil, err
- }
- return dAtA[:n], nil
+func (x *DeletePluginReq) String() string {
+ return protoimpl.X.MessageStringOf(x)
}
-func (m *ListBotResp) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
-}
+func (*DeletePluginReq) ProtoMessage() {}
-func (m *ListBotResp) MarshalToSizedBuffer(dAtA []byte) (int, error) {
- i := len(dAtA)
- _ = i
- var l int
- _ = l
- if m.XXX_unrecognized != nil {
- i -= len(m.XXX_unrecognized)
- copy(dAtA[i:], m.XXX_unrecognized)
- }
- if len(m.BotList) > 0 {
- for iNdEx := len(m.BotList) - 1; iNdEx >= 0; iNdEx-- {
- {
- size, err := m.BotList[iNdEx].MarshalToSizedBuffer(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- i = encodeVarintHttpDto(dAtA, i, uint64(size))
- }
- i--
- dAtA[i] = 0xa
+func (x *DeletePluginReq) ProtoReflect() protoreflect.Message {
+ mi := &file_http_dto_proto_msgTypes[17]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
}
+ return ms
}
- return len(dAtA) - i, nil
-}
-
-func (m *SolveCaptchaReq) Marshal() (dAtA []byte, err error) {
- size := m.Size()
- dAtA = make([]byte, size)
- n, err := m.MarshalToSizedBuffer(dAtA[:size])
- if err != nil {
- return nil, err
- }
- return dAtA[:n], nil
-}
-
-func (m *SolveCaptchaReq) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
+ return mi.MessageOf(x)
}
-func (m *SolveCaptchaReq) MarshalToSizedBuffer(dAtA []byte) (int, error) {
- i := len(dAtA)
- _ = i
- var l int
- _ = l
- if m.XXX_unrecognized != nil {
- i -= len(m.XXX_unrecognized)
- copy(dAtA[i:], m.XXX_unrecognized)
- }
- if len(m.Result) > 0 {
- i -= len(m.Result)
- copy(dAtA[i:], m.Result)
- i = encodeVarintHttpDto(dAtA, i, uint64(len(m.Result)))
- i--
- dAtA[i] = 0x12
- }
- if m.BotId != 0 {
- i = encodeVarintHttpDto(dAtA, i, uint64(m.BotId))
- i--
- dAtA[i] = 0x8
- }
- return len(dAtA) - i, nil
+// Deprecated: Use DeletePluginReq.ProtoReflect.Descriptor instead.
+func (*DeletePluginReq) Descriptor() ([]byte, []int) {
+ return file_http_dto_proto_rawDescGZIP(), []int{17}
}
-func (m *SolveCaptchaResp) Marshal() (dAtA []byte, err error) {
- size := m.Size()
- dAtA = make([]byte, size)
- n, err := m.MarshalToSizedBuffer(dAtA[:size])
- if err != nil {
- return nil, err
+func (x *DeletePluginReq) GetName() string {
+ if x != nil {
+ return x.Name
}
- return dAtA[:n], nil
-}
-
-func (m *SolveCaptchaResp) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
+ return ""
}
-func (m *SolveCaptchaResp) MarshalToSizedBuffer(dAtA []byte) (int, error) {
- i := len(dAtA)
- _ = i
- var l int
- _ = l
- if m.XXX_unrecognized != nil {
- i -= len(m.XXX_unrecognized)
- copy(dAtA[i:], m.XXX_unrecognized)
- }
- return len(dAtA) - i, nil
+type DeletePluginResp struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
}
-func (m *FetchQRCodeReq) Marshal() (dAtA []byte, err error) {
- size := m.Size()
- dAtA = make([]byte, size)
- n, err := m.MarshalToSizedBuffer(dAtA[:size])
- if err != nil {
- return nil, err
+func (x *DeletePluginResp) Reset() {
+ *x = DeletePluginResp{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_http_dto_proto_msgTypes[18]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
}
- return dAtA[:n], nil
}
-func (m *FetchQRCodeReq) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
+func (x *DeletePluginResp) String() string {
+ return protoimpl.X.MessageStringOf(x)
}
-func (m *FetchQRCodeReq) MarshalToSizedBuffer(dAtA []byte) (int, error) {
- i := len(dAtA)
- _ = i
- var l int
- _ = l
- if m.XXX_unrecognized != nil {
- i -= len(m.XXX_unrecognized)
- copy(dAtA[i:], m.XXX_unrecognized)
- }
- if m.ClientProtocol != 0 {
- i = encodeVarintHttpDto(dAtA, i, uint64(m.ClientProtocol))
- i--
- dAtA[i] = 0x10
- }
- if m.DeviceSeed != 0 {
- i = encodeVarintHttpDto(dAtA, i, uint64(m.DeviceSeed))
- i--
- dAtA[i] = 0x8
- }
- return len(dAtA) - i, nil
-}
+func (*DeletePluginResp) ProtoMessage() {}
-func (m *QueryQRCodeStatusReq) Marshal() (dAtA []byte, err error) {
- size := m.Size()
- dAtA = make([]byte, size)
- n, err := m.MarshalToSizedBuffer(dAtA[:size])
- if err != nil {
- return nil, err
+func (x *DeletePluginResp) ProtoReflect() protoreflect.Message {
+ mi := &file_http_dto_proto_msgTypes[18]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
}
- return dAtA[:n], nil
-}
-
-func (m *QueryQRCodeStatusReq) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
+ return mi.MessageOf(x)
}
-func (m *QueryQRCodeStatusReq) MarshalToSizedBuffer(dAtA []byte) (int, error) {
- i := len(dAtA)
- _ = i
- var l int
- _ = l
- if m.XXX_unrecognized != nil {
- i -= len(m.XXX_unrecognized)
- copy(dAtA[i:], m.XXX_unrecognized)
- }
- if m.BotId != 0 {
- i = encodeVarintHttpDto(dAtA, i, uint64(m.BotId))
- i--
- dAtA[i] = 0x10
- }
- if len(m.Sig) > 0 {
- i -= len(m.Sig)
- copy(dAtA[i:], m.Sig)
- i = encodeVarintHttpDto(dAtA, i, uint64(len(m.Sig)))
- i--
- dAtA[i] = 0xa
- }
- return len(dAtA) - i, nil
+// Deprecated: Use DeletePluginResp.ProtoReflect.Descriptor instead.
+func (*DeletePluginResp) Descriptor() ([]byte, []int) {
+ return file_http_dto_proto_rawDescGZIP(), []int{18}
}
-func (m *QRCodeLoginResp) Marshal() (dAtA []byte, err error) {
- size := m.Size()
- dAtA = make([]byte, size)
- n, err := m.MarshalToSizedBuffer(dAtA[:size])
- if err != nil {
- return nil, err
- }
- return dAtA[:n], nil
-}
+type Bot_Captcha struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
-func (m *QRCodeLoginResp) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
+ BotId int64 `protobuf:"varint,1,opt,name=bot_id,json=botId,proto3" json:"bot_id,omitempty"`
+ CaptchaType Bot_Captcha_CaptchaType `protobuf:"varint,2,opt,name=captcha_type,json=captchaType,proto3,enum=dto.Bot_Captcha_CaptchaType" json:"captcha_type,omitempty"`
+ // Types that are assignable to Data:
+ //
+ // *Bot_Captcha_Url
+ // *Bot_Captcha_Image
+ Data isBot_Captcha_Data `protobuf_oneof:"data"`
}
-func (m *QRCodeLoginResp) MarshalToSizedBuffer(dAtA []byte) (int, error) {
- i := len(dAtA)
- _ = i
- var l int
- _ = l
- if m.XXX_unrecognized != nil {
- i -= len(m.XXX_unrecognized)
- copy(dAtA[i:], m.XXX_unrecognized)
- }
- if len(m.Sig) > 0 {
- i -= len(m.Sig)
- copy(dAtA[i:], m.Sig)
- i = encodeVarintHttpDto(dAtA, i, uint64(len(m.Sig)))
- i--
- dAtA[i] = 0x1a
+func (x *Bot_Captcha) Reset() {
+ *x = Bot_Captcha{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_http_dto_proto_msgTypes[19]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
}
- if len(m.ImageData) > 0 {
- i -= len(m.ImageData)
- copy(dAtA[i:], m.ImageData)
- i = encodeVarintHttpDto(dAtA, i, uint64(len(m.ImageData)))
- i--
- dAtA[i] = 0x12
- }
- if m.State != 0 {
- i = encodeVarintHttpDto(dAtA, i, uint64(m.State))
- i--
- dAtA[i] = 0x8
- }
- return len(dAtA) - i, nil
}
-func (m *Plugin) Marshal() (dAtA []byte, err error) {
- size := m.Size()
- dAtA = make([]byte, size)
- n, err := m.MarshalToSizedBuffer(dAtA[:size])
- if err != nil {
- return nil, err
- }
- return dAtA[:n], nil
+func (x *Bot_Captcha) String() string {
+ return protoimpl.X.MessageStringOf(x)
}
-func (m *Plugin) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
-}
+func (*Bot_Captcha) ProtoMessage() {}
-func (m *Plugin) MarshalToSizedBuffer(dAtA []byte) (int, error) {
- i := len(dAtA)
- _ = i
- var l int
- _ = l
- if m.XXX_unrecognized != nil {
- i -= len(m.XXX_unrecognized)
- copy(dAtA[i:], m.XXX_unrecognized)
- }
- if len(m.ExtraHeader) > 0 {
- for iNdEx := len(m.ExtraHeader) - 1; iNdEx >= 0; iNdEx-- {
- {
- size, err := m.ExtraHeader[iNdEx].MarshalToSizedBuffer(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- i = encodeVarintHttpDto(dAtA, i, uint64(size))
- }
- i--
- dAtA[i] = 0x4a
- }
- }
- if len(m.RegexReplace) > 0 {
- i -= len(m.RegexReplace)
- copy(dAtA[i:], m.RegexReplace)
- i = encodeVarintHttpDto(dAtA, i, uint64(len(m.RegexReplace)))
- i--
- dAtA[i] = 0x42
- }
- if len(m.RegexFilter) > 0 {
- i -= len(m.RegexFilter)
- copy(dAtA[i:], m.RegexFilter)
- i = encodeVarintHttpDto(dAtA, i, uint64(len(m.RegexFilter)))
- i--
- dAtA[i] = 0x3a
- }
- if len(m.ApiFilter) > 0 {
- dAtA3 := make([]byte, len(m.ApiFilter)*10)
- var j2 int
- for _, num1 := range m.ApiFilter {
- num := uint64(num1)
- for num >= 1<<7 {
- dAtA3[j2] = uint8(uint64(num)&0x7f | 0x80)
- num >>= 7
- j2++
- }
- dAtA3[j2] = uint8(num)
- j2++
- }
- i -= j2
- copy(dAtA[i:], dAtA3[:j2])
- i = encodeVarintHttpDto(dAtA, i, uint64(j2))
- i--
- dAtA[i] = 0x32
- }
- if len(m.EventFilter) > 0 {
- dAtA5 := make([]byte, len(m.EventFilter)*10)
- var j4 int
- for _, num1 := range m.EventFilter {
- num := uint64(num1)
- for num >= 1<<7 {
- dAtA5[j4] = uint8(uint64(num)&0x7f | 0x80)
- num >>= 7
- j4++
- }
- dAtA5[j4] = uint8(num)
- j4++
- }
- i -= j4
- copy(dAtA[i:], dAtA5[:j4])
- i = encodeVarintHttpDto(dAtA, i, uint64(j4))
- i--
- dAtA[i] = 0x2a
- }
- if len(m.Urls) > 0 {
- for iNdEx := len(m.Urls) - 1; iNdEx >= 0; iNdEx-- {
- i -= len(m.Urls[iNdEx])
- copy(dAtA[i:], m.Urls[iNdEx])
- i = encodeVarintHttpDto(dAtA, i, uint64(len(m.Urls[iNdEx])))
- i--
- dAtA[i] = 0x22
- }
- }
- if m.Json {
- i--
- if m.Json {
- dAtA[i] = 1
- } else {
- dAtA[i] = 0
- }
- i--
- dAtA[i] = 0x18
- }
- if m.Disabled {
- i--
- if m.Disabled {
- dAtA[i] = 1
- } else {
- dAtA[i] = 0
+func (x *Bot_Captcha) ProtoReflect() protoreflect.Message {
+ mi := &file_http_dto_proto_msgTypes[19]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
}
- i--
- dAtA[i] = 0x10
+ return ms
}
- if len(m.Name) > 0 {
- i -= len(m.Name)
- copy(dAtA[i:], m.Name)
- i = encodeVarintHttpDto(dAtA, i, uint64(len(m.Name)))
- i--
- dAtA[i] = 0xa
- }
- return len(dAtA) - i, nil
-}
-
-func (m *Plugin_Header) Marshal() (dAtA []byte, err error) {
- size := m.Size()
- dAtA = make([]byte, size)
- n, err := m.MarshalToSizedBuffer(dAtA[:size])
- if err != nil {
- return nil, err
- }
- return dAtA[:n], nil
+ return mi.MessageOf(x)
}
-func (m *Plugin_Header) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
-}
-
-func (m *Plugin_Header) MarshalToSizedBuffer(dAtA []byte) (int, error) {
- i := len(dAtA)
- _ = i
- var l int
- _ = l
- if m.XXX_unrecognized != nil {
- i -= len(m.XXX_unrecognized)
- copy(dAtA[i:], m.XXX_unrecognized)
- }
- if len(m.Value) > 0 {
- for iNdEx := len(m.Value) - 1; iNdEx >= 0; iNdEx-- {
- i -= len(m.Value[iNdEx])
- copy(dAtA[i:], m.Value[iNdEx])
- i = encodeVarintHttpDto(dAtA, i, uint64(len(m.Value[iNdEx])))
- i--
- dAtA[i] = 0x12
- }
- }
- if len(m.Key) > 0 {
- i -= len(m.Key)
- copy(dAtA[i:], m.Key)
- i = encodeVarintHttpDto(dAtA, i, uint64(len(m.Key)))
- i--
- dAtA[i] = 0xa
- }
- return len(dAtA) - i, nil
+// Deprecated: Use Bot_Captcha.ProtoReflect.Descriptor instead.
+func (*Bot_Captcha) Descriptor() ([]byte, []int) {
+ return file_http_dto_proto_rawDescGZIP(), []int{0, 0}
}
-func (m *ListPluginReq) Marshal() (dAtA []byte, err error) {
- size := m.Size()
- dAtA = make([]byte, size)
- n, err := m.MarshalToSizedBuffer(dAtA[:size])
- if err != nil {
- return nil, err
+func (x *Bot_Captcha) GetBotId() int64 {
+ if x != nil {
+ return x.BotId
}
- return dAtA[:n], nil
-}
-
-func (m *ListPluginReq) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
+ return 0
}
-func (m *ListPluginReq) MarshalToSizedBuffer(dAtA []byte) (int, error) {
- i := len(dAtA)
- _ = i
- var l int
- _ = l
- if m.XXX_unrecognized != nil {
- i -= len(m.XXX_unrecognized)
- copy(dAtA[i:], m.XXX_unrecognized)
+func (x *Bot_Captcha) GetCaptchaType() Bot_Captcha_CaptchaType {
+ if x != nil {
+ return x.CaptchaType
}
- return len(dAtA) - i, nil
+ return Bot_Captcha_PIC_CAPTCHA
}
-func (m *ListPluginResp) Marshal() (dAtA []byte, err error) {
- size := m.Size()
- dAtA = make([]byte, size)
- n, err := m.MarshalToSizedBuffer(dAtA[:size])
- if err != nil {
- return nil, err
+func (m *Bot_Captcha) GetData() isBot_Captcha_Data {
+ if m != nil {
+ return m.Data
}
- return dAtA[:n], nil
-}
-
-func (m *ListPluginResp) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
+ return nil
}
-func (m *ListPluginResp) MarshalToSizedBuffer(dAtA []byte) (int, error) {
- i := len(dAtA)
- _ = i
- var l int
- _ = l
- if m.XXX_unrecognized != nil {
- i -= len(m.XXX_unrecognized)
- copy(dAtA[i:], m.XXX_unrecognized)
- }
- if len(m.Plugins) > 0 {
- for iNdEx := len(m.Plugins) - 1; iNdEx >= 0; iNdEx-- {
- {
- size, err := m.Plugins[iNdEx].MarshalToSizedBuffer(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- i = encodeVarintHttpDto(dAtA, i, uint64(size))
- }
- i--
- dAtA[i] = 0xa
- }
+func (x *Bot_Captcha) GetUrl() string {
+ if x, ok := x.GetData().(*Bot_Captcha_Url); ok {
+ return x.Url
}
- return len(dAtA) - i, nil
+ return ""
}
-func (m *SavePluginReq) Marshal() (dAtA []byte, err error) {
- size := m.Size()
- dAtA = make([]byte, size)
- n, err := m.MarshalToSizedBuffer(dAtA[:size])
- if err != nil {
- return nil, err
+func (x *Bot_Captcha) GetImage() []byte {
+ if x, ok := x.GetData().(*Bot_Captcha_Image); ok {
+ return x.Image
}
- return dAtA[:n], nil
-}
-
-func (m *SavePluginReq) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
+ return nil
}
-func (m *SavePluginReq) MarshalToSizedBuffer(dAtA []byte) (int, error) {
- i := len(dAtA)
- _ = i
- var l int
- _ = l
- if m.XXX_unrecognized != nil {
- i -= len(m.XXX_unrecognized)
- copy(dAtA[i:], m.XXX_unrecognized)
- }
- if m.Plugin != nil {
- {
- size, err := m.Plugin.MarshalToSizedBuffer(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- i = encodeVarintHttpDto(dAtA, i, uint64(size))
- }
- i--
- dAtA[i] = 0xa
- }
- return len(dAtA) - i, nil
+type isBot_Captcha_Data interface {
+ isBot_Captcha_Data()
}
-func (m *SavePluginResp) Marshal() (dAtA []byte, err error) {
- size := m.Size()
- dAtA = make([]byte, size)
- n, err := m.MarshalToSizedBuffer(dAtA[:size])
- if err != nil {
- return nil, err
- }
- return dAtA[:n], nil
+type Bot_Captcha_Url struct {
+ Url string `protobuf:"bytes,3,opt,name=url,proto3,oneof"`
}
-func (m *SavePluginResp) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
+type Bot_Captcha_Image struct {
+ Image []byte `protobuf:"bytes,4,opt,name=image,proto3,oneof"`
}
-func (m *SavePluginResp) MarshalToSizedBuffer(dAtA []byte) (int, error) {
- i := len(dAtA)
- _ = i
- var l int
- _ = l
- if m.XXX_unrecognized != nil {
- i -= len(m.XXX_unrecognized)
- copy(dAtA[i:], m.XXX_unrecognized)
- }
- return len(dAtA) - i, nil
-}
+func (*Bot_Captcha_Url) isBot_Captcha_Data() {}
-func (m *DeletePluginReq) Marshal() (dAtA []byte, err error) {
- size := m.Size()
- dAtA = make([]byte, size)
- n, err := m.MarshalToSizedBuffer(dAtA[:size])
- if err != nil {
- return nil, err
- }
- return dAtA[:n], nil
-}
+func (*Bot_Captcha_Image) isBot_Captcha_Data() {}
-func (m *DeletePluginReq) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
-}
+type Plugin_Header struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
-func (m *DeletePluginReq) MarshalToSizedBuffer(dAtA []byte) (int, error) {
- i := len(dAtA)
- _ = i
- var l int
- _ = l
- if m.XXX_unrecognized != nil {
- i -= len(m.XXX_unrecognized)
- copy(dAtA[i:], m.XXX_unrecognized)
- }
- if len(m.Name) > 0 {
- i -= len(m.Name)
- copy(dAtA[i:], m.Name)
- i = encodeVarintHttpDto(dAtA, i, uint64(len(m.Name)))
- i--
- dAtA[i] = 0xa
- }
- return len(dAtA) - i, nil
+ Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
+ Value []string `protobuf:"bytes,2,rep,name=value,proto3" json:"value,omitempty"`
}
-func (m *DeletePluginResp) Marshal() (dAtA []byte, err error) {
- size := m.Size()
- dAtA = make([]byte, size)
- n, err := m.MarshalToSizedBuffer(dAtA[:size])
- if err != nil {
- return nil, err
+func (x *Plugin_Header) Reset() {
+ *x = Plugin_Header{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_http_dto_proto_msgTypes[20]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
}
- return dAtA[:n], nil
}
-func (m *DeletePluginResp) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
+func (x *Plugin_Header) String() string {
+ return protoimpl.X.MessageStringOf(x)
}
-func (m *DeletePluginResp) MarshalToSizedBuffer(dAtA []byte) (int, error) {
- i := len(dAtA)
- _ = i
- var l int
- _ = l
- if m.XXX_unrecognized != nil {
- i -= len(m.XXX_unrecognized)
- copy(dAtA[i:], m.XXX_unrecognized)
- }
- return len(dAtA) - i, nil
-}
-
-func encodeVarintHttpDto(dAtA []byte, offset int, v uint64) int {
- offset -= sovHttpDto(v)
- base := offset
- for v >= 1<<7 {
- dAtA[offset] = uint8(v&0x7f | 0x80)
- v >>= 7
- offset++
- }
- dAtA[offset] = uint8(v)
- return base
-}
-func (m *Bot) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- if m.BotId != 0 {
- n += 1 + sovHttpDto(uint64(m.BotId))
- }
- if m.IsOnline {
- n += 2
- }
- if m.Captcha != nil {
- l = m.Captcha.Size()
- n += 1 + l + sovHttpDto(uint64(l))
- }
- if m.XXX_unrecognized != nil {
- n += len(m.XXX_unrecognized)
- }
- return n
-}
+func (*Plugin_Header) ProtoMessage() {}
-func (m *Bot_Captcha) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- if m.BotId != 0 {
- n += 1 + sovHttpDto(uint64(m.BotId))
- }
- if m.CaptchaType != 0 {
- n += 1 + sovHttpDto(uint64(m.CaptchaType))
- }
- if m.Data != nil {
- n += m.Data.Size()
- }
- if m.XXX_unrecognized != nil {
- n += len(m.XXX_unrecognized)
+func (x *Plugin_Header) ProtoReflect() protoreflect.Message {
+ mi := &file_http_dto_proto_msgTypes[20]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
}
- return n
+ return mi.MessageOf(x)
}
-func (m *Bot_Captcha_Url) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- l = len(m.Url)
- n += 1 + l + sovHttpDto(uint64(l))
- return n
-}
-func (m *Bot_Captcha_Image) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- if m.Image != nil {
- l = len(m.Image)
- n += 1 + l + sovHttpDto(uint64(l))
- }
- return n
-}
-func (m *CreateBotReq) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- if m.BotId != 0 {
- n += 1 + sovHttpDto(uint64(m.BotId))
- }
- l = len(m.Password)
- if l > 0 {
- n += 1 + l + sovHttpDto(uint64(l))
- }
- if m.DeviceSeed != 0 {
- n += 1 + sovHttpDto(uint64(m.DeviceSeed))
- }
- if m.ClientProtocol != 0 {
- n += 1 + sovHttpDto(uint64(m.ClientProtocol))
- }
- if m.XXX_unrecognized != nil {
- n += len(m.XXX_unrecognized)
- }
- return n
+// Deprecated: Use Plugin_Header.ProtoReflect.Descriptor instead.
+func (*Plugin_Header) Descriptor() ([]byte, []int) {
+ return file_http_dto_proto_rawDescGZIP(), []int{12, 0}
}
-func (m *CreateBotResp) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- if m.XXX_unrecognized != nil {
- n += len(m.XXX_unrecognized)
+func (x *Plugin_Header) GetKey() string {
+ if x != nil {
+ return x.Key
}
- return n
+ return ""
}
-func (m *DeleteBotReq) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- if m.BotId != 0 {
- n += 1 + sovHttpDto(uint64(m.BotId))
+func (x *Plugin_Header) GetValue() []string {
+ if x != nil {
+ return x.Value
}
- if m.XXX_unrecognized != nil {
- n += len(m.XXX_unrecognized)
- }
- return n
+ return nil
}
-func (m *DeleteBotResp) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- if m.XXX_unrecognized != nil {
- n += len(m.XXX_unrecognized)
- }
- return n
+var File_http_dto_proto protoreflect.FileDescriptor
+
+var file_http_dto_proto_rawDesc = []byte{
+ 0x0a, 0x0e, 0x68, 0x74, 0x74, 0x70, 0x5f, 0x64, 0x74, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
+ 0x12, 0x03, 0x64, 0x74, 0x6f, 0x22, 0xda, 0x02, 0x0a, 0x03, 0x42, 0x6f, 0x74, 0x12, 0x15, 0x0a,
+ 0x06, 0x62, 0x6f, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x62,
+ 0x6f, 0x74, 0x49, 0x64, 0x12, 0x1b, 0x0a, 0x09, 0x69, 0x73, 0x5f, 0x6f, 0x6e, 0x6c, 0x69, 0x6e,
+ 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x08, 0x69, 0x73, 0x4f, 0x6e, 0x6c, 0x69, 0x6e,
+ 0x65, 0x12, 0x2a, 0x0a, 0x07, 0x63, 0x61, 0x70, 0x74, 0x63, 0x68, 0x61, 0x18, 0x03, 0x20, 0x01,
+ 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x64, 0x74, 0x6f, 0x2e, 0x42, 0x6f, 0x74, 0x2e, 0x43, 0x61, 0x70,
+ 0x74, 0x63, 0x68, 0x61, 0x52, 0x07, 0x63, 0x61, 0x70, 0x74, 0x63, 0x68, 0x61, 0x1a, 0xf2, 0x01,
+ 0x0a, 0x07, 0x43, 0x61, 0x70, 0x74, 0x63, 0x68, 0x61, 0x12, 0x15, 0x0a, 0x06, 0x62, 0x6f, 0x74,
+ 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x62, 0x6f, 0x74, 0x49, 0x64,
+ 0x12, 0x3f, 0x0a, 0x0c, 0x63, 0x61, 0x70, 0x74, 0x63, 0x68, 0x61, 0x5f, 0x74, 0x79, 0x70, 0x65,
+ 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1c, 0x2e, 0x64, 0x74, 0x6f, 0x2e, 0x42, 0x6f, 0x74,
+ 0x2e, 0x43, 0x61, 0x70, 0x74, 0x63, 0x68, 0x61, 0x2e, 0x43, 0x61, 0x70, 0x74, 0x63, 0x68, 0x61,
+ 0x54, 0x79, 0x70, 0x65, 0x52, 0x0b, 0x63, 0x61, 0x70, 0x74, 0x63, 0x68, 0x61, 0x54, 0x79, 0x70,
+ 0x65, 0x12, 0x12, 0x0a, 0x03, 0x75, 0x72, 0x6c, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00,
+ 0x52, 0x03, 0x75, 0x72, 0x6c, 0x12, 0x16, 0x0a, 0x05, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x18, 0x04,
+ 0x20, 0x01, 0x28, 0x0c, 0x48, 0x00, 0x52, 0x05, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x22, 0x5b, 0x0a,
+ 0x0b, 0x43, 0x61, 0x70, 0x74, 0x63, 0x68, 0x61, 0x54, 0x79, 0x70, 0x65, 0x12, 0x0f, 0x0a, 0x0b,
+ 0x50, 0x49, 0x43, 0x5f, 0x43, 0x41, 0x50, 0x54, 0x43, 0x48, 0x41, 0x10, 0x00, 0x12, 0x12, 0x0a,
+ 0x0e, 0x53, 0x4c, 0x49, 0x44, 0x45, 0x52, 0x5f, 0x43, 0x41, 0x50, 0x54, 0x43, 0x48, 0x41, 0x10,
+ 0x01, 0x12, 0x1e, 0x0a, 0x1a, 0x55, 0x4e, 0x53, 0x41, 0x46, 0x45, 0x5f, 0x44, 0x45, 0x56, 0x49,
+ 0x43, 0x45, 0x5f, 0x4c, 0x4f, 0x47, 0x49, 0x4e, 0x5f, 0x56, 0x45, 0x52, 0x49, 0x46, 0x59, 0x10,
+ 0x02, 0x12, 0x07, 0x0a, 0x03, 0x53, 0x4d, 0x53, 0x10, 0x04, 0x42, 0x06, 0x0a, 0x04, 0x64, 0x61,
+ 0x74, 0x61, 0x22, 0x8b, 0x01, 0x0a, 0x0c, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x42, 0x6f, 0x74,
+ 0x52, 0x65, 0x71, 0x12, 0x15, 0x0a, 0x06, 0x62, 0x6f, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20,
+ 0x01, 0x28, 0x03, 0x52, 0x05, 0x62, 0x6f, 0x74, 0x49, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x61,
+ 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x70, 0x61,
+ 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x12, 0x1f, 0x0a, 0x0b, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65,
+ 0x5f, 0x73, 0x65, 0x65, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0a, 0x64, 0x65, 0x76,
+ 0x69, 0x63, 0x65, 0x53, 0x65, 0x65, 0x64, 0x12, 0x27, 0x0a, 0x0f, 0x63, 0x6c, 0x69, 0x65, 0x6e,
+ 0x74, 0x5f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05,
+ 0x52, 0x0e, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c,
+ 0x22, 0x0f, 0x0a, 0x0d, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x42, 0x6f, 0x74, 0x52, 0x65, 0x73,
+ 0x70, 0x22, 0x25, 0x0a, 0x0c, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x42, 0x6f, 0x74, 0x52, 0x65,
+ 0x71, 0x12, 0x15, 0x0a, 0x06, 0x62, 0x6f, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28,
+ 0x03, 0x52, 0x05, 0x62, 0x6f, 0x74, 0x49, 0x64, 0x22, 0x0f, 0x0a, 0x0d, 0x44, 0x65, 0x6c, 0x65,
+ 0x74, 0x65, 0x42, 0x6f, 0x74, 0x52, 0x65, 0x73, 0x70, 0x22, 0x0c, 0x0a, 0x0a, 0x4c, 0x69, 0x73,
+ 0x74, 0x42, 0x6f, 0x74, 0x52, 0x65, 0x71, 0x22, 0x32, 0x0a, 0x0b, 0x4c, 0x69, 0x73, 0x74, 0x42,
+ 0x6f, 0x74, 0x52, 0x65, 0x73, 0x70, 0x12, 0x23, 0x0a, 0x08, 0x62, 0x6f, 0x74, 0x5f, 0x6c, 0x69,
+ 0x73, 0x74, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x08, 0x2e, 0x64, 0x74, 0x6f, 0x2e, 0x42,
+ 0x6f, 0x74, 0x52, 0x07, 0x62, 0x6f, 0x74, 0x4c, 0x69, 0x73, 0x74, 0x22, 0x40, 0x0a, 0x0f, 0x53,
+ 0x6f, 0x6c, 0x76, 0x65, 0x43, 0x61, 0x70, 0x74, 0x63, 0x68, 0x61, 0x52, 0x65, 0x71, 0x12, 0x15,
+ 0x0a, 0x06, 0x62, 0x6f, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05,
+ 0x62, 0x6f, 0x74, 0x49, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x18,
+ 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x22, 0x12, 0x0a,
+ 0x10, 0x53, 0x6f, 0x6c, 0x76, 0x65, 0x43, 0x61, 0x70, 0x74, 0x63, 0x68, 0x61, 0x52, 0x65, 0x73,
+ 0x70, 0x22, 0x5a, 0x0a, 0x0e, 0x46, 0x65, 0x74, 0x63, 0x68, 0x51, 0x52, 0x43, 0x6f, 0x64, 0x65,
+ 0x52, 0x65, 0x71, 0x12, 0x1f, 0x0a, 0x0b, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x73, 0x65,
+ 0x65, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0a, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65,
+ 0x53, 0x65, 0x65, 0x64, 0x12, 0x27, 0x0a, 0x0f, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x5f, 0x70,
+ 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0e, 0x63,
+ 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x22, 0x3f, 0x0a,
+ 0x14, 0x51, 0x75, 0x65, 0x72, 0x79, 0x51, 0x52, 0x43, 0x6f, 0x64, 0x65, 0x53, 0x74, 0x61, 0x74,
+ 0x75, 0x73, 0x52, 0x65, 0x71, 0x12, 0x10, 0x0a, 0x03, 0x73, 0x69, 0x67, 0x18, 0x01, 0x20, 0x01,
+ 0x28, 0x0c, 0x52, 0x03, 0x73, 0x69, 0x67, 0x12, 0x15, 0x0a, 0x06, 0x62, 0x6f, 0x74, 0x5f, 0x69,
+ 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x62, 0x6f, 0x74, 0x49, 0x64, 0x22, 0xaa,
+ 0x02, 0x0a, 0x0f, 0x51, 0x52, 0x43, 0x6f, 0x64, 0x65, 0x4c, 0x6f, 0x67, 0x69, 0x6e, 0x52, 0x65,
+ 0x73, 0x70, 0x12, 0x3b, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28,
+ 0x0e, 0x32, 0x25, 0x2e, 0x64, 0x74, 0x6f, 0x2e, 0x51, 0x52, 0x43, 0x6f, 0x64, 0x65, 0x4c, 0x6f,
+ 0x67, 0x69, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x2e, 0x51, 0x52, 0x43, 0x6f, 0x64, 0x65, 0x4c, 0x6f,
+ 0x67, 0x69, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x12,
+ 0x1d, 0x0a, 0x0a, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x18, 0x02, 0x20,
+ 0x01, 0x28, 0x0c, 0x52, 0x09, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x44, 0x61, 0x74, 0x61, 0x12, 0x10,
+ 0x0a, 0x03, 0x73, 0x69, 0x67, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x03, 0x73, 0x69, 0x67,
+ 0x22, 0xa8, 0x01, 0x0a, 0x10, 0x51, 0x52, 0x43, 0x6f, 0x64, 0x65, 0x4c, 0x6f, 0x67, 0x69, 0x6e,
+ 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x0b, 0x0a, 0x07, 0x55, 0x6e, 0x6b, 0x6e, 0x6f, 0x77, 0x6e,
+ 0x10, 0x00, 0x12, 0x14, 0x0a, 0x10, 0x51, 0x52, 0x43, 0x6f, 0x64, 0x65, 0x49, 0x6d, 0x61, 0x67,
+ 0x65, 0x46, 0x65, 0x74, 0x63, 0x68, 0x10, 0x01, 0x12, 0x18, 0x0a, 0x14, 0x51, 0x52, 0x43, 0x6f,
+ 0x64, 0x65, 0x57, 0x61, 0x69, 0x74, 0x69, 0x6e, 0x67, 0x46, 0x6f, 0x72, 0x53, 0x63, 0x61, 0x6e,
+ 0x10, 0x02, 0x12, 0x1b, 0x0a, 0x17, 0x51, 0x52, 0x43, 0x6f, 0x64, 0x65, 0x57, 0x61, 0x69, 0x74,
+ 0x69, 0x6e, 0x67, 0x46, 0x6f, 0x72, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x72, 0x6d, 0x10, 0x03, 0x12,
+ 0x11, 0x0a, 0x0d, 0x51, 0x52, 0x43, 0x6f, 0x64, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74,
+ 0x10, 0x04, 0x12, 0x13, 0x0a, 0x0f, 0x51, 0x52, 0x43, 0x6f, 0x64, 0x65, 0x43, 0x6f, 0x6e, 0x66,
+ 0x69, 0x72, 0x6d, 0x65, 0x64, 0x10, 0x05, 0x12, 0x12, 0x0a, 0x0e, 0x51, 0x52, 0x43, 0x6f, 0x64,
+ 0x65, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x65, 0x64, 0x10, 0x06, 0x22, 0xd3, 0x02, 0x0a, 0x06,
+ 0x50, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01,
+ 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x64, 0x69,
+ 0x73, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x08, 0x64, 0x69,
+ 0x73, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6a, 0x73, 0x6f, 0x6e, 0x18, 0x03,
+ 0x20, 0x01, 0x28, 0x08, 0x52, 0x04, 0x6a, 0x73, 0x6f, 0x6e, 0x12, 0x12, 0x0a, 0x04, 0x75, 0x72,
+ 0x6c, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x09, 0x52, 0x04, 0x75, 0x72, 0x6c, 0x73, 0x12, 0x21,
+ 0x0a, 0x0c, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x5f, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x18, 0x05,
+ 0x20, 0x03, 0x28, 0x05, 0x52, 0x0b, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x46, 0x69, 0x6c, 0x74, 0x65,
+ 0x72, 0x12, 0x1d, 0x0a, 0x0a, 0x61, 0x70, 0x69, 0x5f, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x18,
+ 0x06, 0x20, 0x03, 0x28, 0x05, 0x52, 0x09, 0x61, 0x70, 0x69, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72,
+ 0x12, 0x21, 0x0a, 0x0c, 0x72, 0x65, 0x67, 0x65, 0x78, 0x5f, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72,
+ 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x72, 0x65, 0x67, 0x65, 0x78, 0x46, 0x69, 0x6c,
+ 0x74, 0x65, 0x72, 0x12, 0x23, 0x0a, 0x0d, 0x72, 0x65, 0x67, 0x65, 0x78, 0x5f, 0x72, 0x65, 0x70,
+ 0x6c, 0x61, 0x63, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x72, 0x65, 0x67, 0x65,
+ 0x78, 0x52, 0x65, 0x70, 0x6c, 0x61, 0x63, 0x65, 0x12, 0x35, 0x0a, 0x0c, 0x65, 0x78, 0x74, 0x72,
+ 0x61, 0x5f, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x18, 0x09, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x12,
+ 0x2e, 0x64, 0x74, 0x6f, 0x2e, 0x50, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x2e, 0x48, 0x65, 0x61, 0x64,
+ 0x65, 0x72, 0x52, 0x0b, 0x65, 0x78, 0x74, 0x72, 0x61, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x1a,
+ 0x30, 0x0a, 0x06, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79,
+ 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76,
+ 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75,
+ 0x65, 0x22, 0x0f, 0x0a, 0x0d, 0x4c, 0x69, 0x73, 0x74, 0x50, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x52,
+ 0x65, 0x71, 0x22, 0x37, 0x0a, 0x0e, 0x4c, 0x69, 0x73, 0x74, 0x50, 0x6c, 0x75, 0x67, 0x69, 0x6e,
+ 0x52, 0x65, 0x73, 0x70, 0x12, 0x25, 0x0a, 0x07, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x73, 0x18,
+ 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0b, 0x2e, 0x64, 0x74, 0x6f, 0x2e, 0x50, 0x6c, 0x75, 0x67,
+ 0x69, 0x6e, 0x52, 0x07, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x73, 0x22, 0x34, 0x0a, 0x0d, 0x53,
+ 0x61, 0x76, 0x65, 0x50, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x52, 0x65, 0x71, 0x12, 0x23, 0x0a, 0x06,
+ 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0b, 0x2e, 0x64,
+ 0x74, 0x6f, 0x2e, 0x50, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x52, 0x06, 0x70, 0x6c, 0x75, 0x67, 0x69,
+ 0x6e, 0x22, 0x10, 0x0a, 0x0e, 0x53, 0x61, 0x76, 0x65, 0x50, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x52,
+ 0x65, 0x73, 0x70, 0x22, 0x25, 0x0a, 0x0f, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x50, 0x6c, 0x75,
+ 0x67, 0x69, 0x6e, 0x52, 0x65, 0x71, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01,
+ 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x12, 0x0a, 0x10, 0x44, 0x65,
+ 0x6c, 0x65, 0x74, 0x65, 0x50, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x32, 0x8b,
+ 0x04, 0x0a, 0x0b, 0x48, 0x74, 0x74, 0x70, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x32,
+ 0x0a, 0x09, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x42, 0x6f, 0x74, 0x12, 0x11, 0x2e, 0x64, 0x74,
+ 0x6f, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x42, 0x6f, 0x74, 0x52, 0x65, 0x71, 0x1a, 0x12,
+ 0x2e, 0x64, 0x74, 0x6f, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x42, 0x6f, 0x74, 0x52, 0x65,
+ 0x73, 0x70, 0x12, 0x32, 0x0a, 0x09, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x42, 0x6f, 0x74, 0x12,
+ 0x11, 0x2e, 0x64, 0x74, 0x6f, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x42, 0x6f, 0x74, 0x52,
+ 0x65, 0x71, 0x1a, 0x12, 0x2e, 0x64, 0x74, 0x6f, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x42,
+ 0x6f, 0x74, 0x52, 0x65, 0x73, 0x70, 0x12, 0x2c, 0x0a, 0x07, 0x4c, 0x69, 0x73, 0x74, 0x42, 0x6f,
+ 0x74, 0x12, 0x0f, 0x2e, 0x64, 0x74, 0x6f, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x42, 0x6f, 0x74, 0x52,
+ 0x65, 0x71, 0x1a, 0x10, 0x2e, 0x64, 0x74, 0x6f, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x42, 0x6f, 0x74,
+ 0x52, 0x65, 0x73, 0x70, 0x12, 0x3b, 0x0a, 0x0c, 0x53, 0x6f, 0x6c, 0x76, 0x65, 0x43, 0x61, 0x70,
+ 0x74, 0x63, 0x68, 0x61, 0x12, 0x14, 0x2e, 0x64, 0x74, 0x6f, 0x2e, 0x53, 0x6f, 0x6c, 0x76, 0x65,
+ 0x43, 0x61, 0x70, 0x74, 0x63, 0x68, 0x61, 0x52, 0x65, 0x71, 0x1a, 0x15, 0x2e, 0x64, 0x74, 0x6f,
+ 0x2e, 0x53, 0x6f, 0x6c, 0x76, 0x65, 0x43, 0x61, 0x70, 0x74, 0x63, 0x68, 0x61, 0x52, 0x65, 0x73,
+ 0x70, 0x12, 0x38, 0x0a, 0x0b, 0x46, 0x65, 0x74, 0x63, 0x68, 0x51, 0x52, 0x43, 0x6f, 0x64, 0x65,
+ 0x12, 0x13, 0x2e, 0x64, 0x74, 0x6f, 0x2e, 0x46, 0x65, 0x74, 0x63, 0x68, 0x51, 0x52, 0x43, 0x6f,
+ 0x64, 0x65, 0x52, 0x65, 0x71, 0x1a, 0x14, 0x2e, 0x64, 0x74, 0x6f, 0x2e, 0x51, 0x52, 0x43, 0x6f,
+ 0x64, 0x65, 0x4c, 0x6f, 0x67, 0x69, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x12, 0x44, 0x0a, 0x11, 0x51,
+ 0x75, 0x65, 0x72, 0x79, 0x51, 0x52, 0x43, 0x6f, 0x64, 0x65, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73,
+ 0x12, 0x19, 0x2e, 0x64, 0x74, 0x6f, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x51, 0x52, 0x43, 0x6f,
+ 0x64, 0x65, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x71, 0x1a, 0x14, 0x2e, 0x64, 0x74,
+ 0x6f, 0x2e, 0x51, 0x52, 0x43, 0x6f, 0x64, 0x65, 0x4c, 0x6f, 0x67, 0x69, 0x6e, 0x52, 0x65, 0x73,
+ 0x70, 0x12, 0x35, 0x0a, 0x0a, 0x4c, 0x69, 0x73, 0x74, 0x50, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x12,
+ 0x12, 0x2e, 0x64, 0x74, 0x6f, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x50, 0x6c, 0x75, 0x67, 0x69, 0x6e,
+ 0x52, 0x65, 0x71, 0x1a, 0x13, 0x2e, 0x64, 0x74, 0x6f, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x50, 0x6c,
+ 0x75, 0x67, 0x69, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x12, 0x35, 0x0a, 0x0a, 0x53, 0x61, 0x76, 0x65,
+ 0x50, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x12, 0x12, 0x2e, 0x64, 0x74, 0x6f, 0x2e, 0x53, 0x61, 0x76,
+ 0x65, 0x50, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x52, 0x65, 0x71, 0x1a, 0x13, 0x2e, 0x64, 0x74, 0x6f,
+ 0x2e, 0x53, 0x61, 0x76, 0x65, 0x50, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x12,
+ 0x3b, 0x0a, 0x0c, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x50, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x12,
+ 0x14, 0x2e, 0x64, 0x74, 0x6f, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x50, 0x6c, 0x75, 0x67,
+ 0x69, 0x6e, 0x52, 0x65, 0x71, 0x1a, 0x15, 0x2e, 0x64, 0x74, 0x6f, 0x2e, 0x44, 0x65, 0x6c, 0x65,
+ 0x74, 0x65, 0x50, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x42, 0x0a, 0x5a, 0x08,
+ 0x2e, 0x2f, 0x6f, 0x6e, 0x65, 0x62, 0x6f, 0x74, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
}
-func (m *ListBotReq) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- if m.XXX_unrecognized != nil {
- n += len(m.XXX_unrecognized)
- }
- return n
-}
+var (
+ file_http_dto_proto_rawDescOnce sync.Once
+ file_http_dto_proto_rawDescData = file_http_dto_proto_rawDesc
+)
-func (m *ListBotResp) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- if len(m.BotList) > 0 {
- for _, e := range m.BotList {
- l = e.Size()
- n += 1 + l + sovHttpDto(uint64(l))
- }
- }
- if m.XXX_unrecognized != nil {
- n += len(m.XXX_unrecognized)
+func file_http_dto_proto_rawDescGZIP() []byte {
+ file_http_dto_proto_rawDescOnce.Do(func() {
+ file_http_dto_proto_rawDescData = protoimpl.X.CompressGZIP(file_http_dto_proto_rawDescData)
+ })
+ return file_http_dto_proto_rawDescData
+}
+
+var file_http_dto_proto_enumTypes = make([]protoimpl.EnumInfo, 2)
+var file_http_dto_proto_msgTypes = make([]protoimpl.MessageInfo, 21)
+var file_http_dto_proto_goTypes = []interface{}{
+ (Bot_Captcha_CaptchaType)(0), // 0: dto.Bot.Captcha.CaptchaType
+ (QRCodeLoginResp_QRCodeLoginState)(0), // 1: dto.QRCodeLoginResp.QRCodeLoginState
+ (*Bot)(nil), // 2: dto.Bot
+ (*CreateBotReq)(nil), // 3: dto.CreateBotReq
+ (*CreateBotResp)(nil), // 4: dto.CreateBotResp
+ (*DeleteBotReq)(nil), // 5: dto.DeleteBotReq
+ (*DeleteBotResp)(nil), // 6: dto.DeleteBotResp
+ (*ListBotReq)(nil), // 7: dto.ListBotReq
+ (*ListBotResp)(nil), // 8: dto.ListBotResp
+ (*SolveCaptchaReq)(nil), // 9: dto.SolveCaptchaReq
+ (*SolveCaptchaResp)(nil), // 10: dto.SolveCaptchaResp
+ (*FetchQRCodeReq)(nil), // 11: dto.FetchQRCodeReq
+ (*QueryQRCodeStatusReq)(nil), // 12: dto.QueryQRCodeStatusReq
+ (*QRCodeLoginResp)(nil), // 13: dto.QRCodeLoginResp
+ (*Plugin)(nil), // 14: dto.Plugin
+ (*ListPluginReq)(nil), // 15: dto.ListPluginReq
+ (*ListPluginResp)(nil), // 16: dto.ListPluginResp
+ (*SavePluginReq)(nil), // 17: dto.SavePluginReq
+ (*SavePluginResp)(nil), // 18: dto.SavePluginResp
+ (*DeletePluginReq)(nil), // 19: dto.DeletePluginReq
+ (*DeletePluginResp)(nil), // 20: dto.DeletePluginResp
+ (*Bot_Captcha)(nil), // 21: dto.Bot.Captcha
+ (*Plugin_Header)(nil), // 22: dto.Plugin.Header
+}
+var file_http_dto_proto_depIdxs = []int32{
+ 21, // 0: dto.Bot.captcha:type_name -> dto.Bot.Captcha
+ 2, // 1: dto.ListBotResp.bot_list:type_name -> dto.Bot
+ 1, // 2: dto.QRCodeLoginResp.state:type_name -> dto.QRCodeLoginResp.QRCodeLoginState
+ 22, // 3: dto.Plugin.extra_header:type_name -> dto.Plugin.Header
+ 14, // 4: dto.ListPluginResp.plugins:type_name -> dto.Plugin
+ 14, // 5: dto.SavePluginReq.plugin:type_name -> dto.Plugin
+ 0, // 6: dto.Bot.Captcha.captcha_type:type_name -> dto.Bot.Captcha.CaptchaType
+ 3, // 7: dto.HttpService.CreateBot:input_type -> dto.CreateBotReq
+ 5, // 8: dto.HttpService.DeleteBot:input_type -> dto.DeleteBotReq
+ 7, // 9: dto.HttpService.ListBot:input_type -> dto.ListBotReq
+ 9, // 10: dto.HttpService.SolveCaptcha:input_type -> dto.SolveCaptchaReq
+ 11, // 11: dto.HttpService.FetchQRCode:input_type -> dto.FetchQRCodeReq
+ 12, // 12: dto.HttpService.QueryQRCodeStatus:input_type -> dto.QueryQRCodeStatusReq
+ 15, // 13: dto.HttpService.ListPlugin:input_type -> dto.ListPluginReq
+ 17, // 14: dto.HttpService.SavePlugin:input_type -> dto.SavePluginReq
+ 19, // 15: dto.HttpService.DeletePlugin:input_type -> dto.DeletePluginReq
+ 4, // 16: dto.HttpService.CreateBot:output_type -> dto.CreateBotResp
+ 6, // 17: dto.HttpService.DeleteBot:output_type -> dto.DeleteBotResp
+ 8, // 18: dto.HttpService.ListBot:output_type -> dto.ListBotResp
+ 10, // 19: dto.HttpService.SolveCaptcha:output_type -> dto.SolveCaptchaResp
+ 13, // 20: dto.HttpService.FetchQRCode:output_type -> dto.QRCodeLoginResp
+ 13, // 21: dto.HttpService.QueryQRCodeStatus:output_type -> dto.QRCodeLoginResp
+ 16, // 22: dto.HttpService.ListPlugin:output_type -> dto.ListPluginResp
+ 18, // 23: dto.HttpService.SavePlugin:output_type -> dto.SavePluginResp
+ 20, // 24: dto.HttpService.DeletePlugin:output_type -> dto.DeletePluginResp
+ 16, // [16:25] is the sub-list for method output_type
+ 7, // [7:16] is the sub-list for method input_type
+ 7, // [7:7] is the sub-list for extension type_name
+ 7, // [7:7] is the sub-list for extension extendee
+ 0, // [0:7] is the sub-list for field type_name
+}
+
+func init() { file_http_dto_proto_init() }
+func file_http_dto_proto_init() {
+ if File_http_dto_proto != nil {
+ return
+ }
+ if !protoimpl.UnsafeEnabled {
+ file_http_dto_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*Bot); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_http_dto_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*CreateBotReq); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_http_dto_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*CreateBotResp); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_http_dto_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*DeleteBotReq); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_http_dto_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*DeleteBotResp); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_http_dto_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*ListBotReq); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_http_dto_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*ListBotResp); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_http_dto_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*SolveCaptchaReq); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_http_dto_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*SolveCaptchaResp); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_http_dto_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*FetchQRCodeReq); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_http_dto_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*QueryQRCodeStatusReq); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_http_dto_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*QRCodeLoginResp); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_http_dto_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*Plugin); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_http_dto_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*ListPluginReq); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_http_dto_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*ListPluginResp); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_http_dto_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*SavePluginReq); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_http_dto_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*SavePluginResp); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_http_dto_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*DeletePluginReq); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_http_dto_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*DeletePluginResp); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_http_dto_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*Bot_Captcha); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_http_dto_proto_msgTypes[20].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*Plugin_Header); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ }
+ file_http_dto_proto_msgTypes[19].OneofWrappers = []interface{}{
+ (*Bot_Captcha_Url)(nil),
+ (*Bot_Captcha_Image)(nil),
}
- return n
+ type x struct{}
+ out := protoimpl.TypeBuilder{
+ File: protoimpl.DescBuilder{
+ GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
+ RawDescriptor: file_http_dto_proto_rawDesc,
+ NumEnums: 2,
+ NumMessages: 21,
+ NumExtensions: 0,
+ NumServices: 1,
+ },
+ GoTypes: file_http_dto_proto_goTypes,
+ DependencyIndexes: file_http_dto_proto_depIdxs,
+ EnumInfos: file_http_dto_proto_enumTypes,
+ MessageInfos: file_http_dto_proto_msgTypes,
+ }.Build()
+ File_http_dto_proto = out.File
+ file_http_dto_proto_rawDesc = nil
+ file_http_dto_proto_goTypes = nil
+ file_http_dto_proto_depIdxs = nil
}
-
-func (m *SolveCaptchaReq) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- if m.BotId != 0 {
- n += 1 + sovHttpDto(uint64(m.BotId))
- }
- l = len(m.Result)
- if l > 0 {
- n += 1 + l + sovHttpDto(uint64(l))
- }
- if m.XXX_unrecognized != nil {
- n += len(m.XXX_unrecognized)
- }
- return n
-}
-
-func (m *SolveCaptchaResp) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- if m.XXX_unrecognized != nil {
- n += len(m.XXX_unrecognized)
- }
- return n
-}
-
-func (m *FetchQRCodeReq) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- if m.DeviceSeed != 0 {
- n += 1 + sovHttpDto(uint64(m.DeviceSeed))
- }
- if m.ClientProtocol != 0 {
- n += 1 + sovHttpDto(uint64(m.ClientProtocol))
- }
- if m.XXX_unrecognized != nil {
- n += len(m.XXX_unrecognized)
- }
- return n
-}
-
-func (m *QueryQRCodeStatusReq) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- l = len(m.Sig)
- if l > 0 {
- n += 1 + l + sovHttpDto(uint64(l))
- }
- if m.BotId != 0 {
- n += 1 + sovHttpDto(uint64(m.BotId))
- }
- if m.XXX_unrecognized != nil {
- n += len(m.XXX_unrecognized)
- }
- return n
-}
-
-func (m *QRCodeLoginResp) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- if m.State != 0 {
- n += 1 + sovHttpDto(uint64(m.State))
- }
- l = len(m.ImageData)
- if l > 0 {
- n += 1 + l + sovHttpDto(uint64(l))
- }
- l = len(m.Sig)
- if l > 0 {
- n += 1 + l + sovHttpDto(uint64(l))
- }
- if m.XXX_unrecognized != nil {
- n += len(m.XXX_unrecognized)
- }
- return n
-}
-
-func (m *Plugin) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- l = len(m.Name)
- if l > 0 {
- n += 1 + l + sovHttpDto(uint64(l))
- }
- if m.Disabled {
- n += 2
- }
- if m.Json {
- n += 2
- }
- if len(m.Urls) > 0 {
- for _, s := range m.Urls {
- l = len(s)
- n += 1 + l + sovHttpDto(uint64(l))
- }
- }
- if len(m.EventFilter) > 0 {
- l = 0
- for _, e := range m.EventFilter {
- l += sovHttpDto(uint64(e))
- }
- n += 1 + sovHttpDto(uint64(l)) + l
- }
- if len(m.ApiFilter) > 0 {
- l = 0
- for _, e := range m.ApiFilter {
- l += sovHttpDto(uint64(e))
- }
- n += 1 + sovHttpDto(uint64(l)) + l
- }
- l = len(m.RegexFilter)
- if l > 0 {
- n += 1 + l + sovHttpDto(uint64(l))
- }
- l = len(m.RegexReplace)
- if l > 0 {
- n += 1 + l + sovHttpDto(uint64(l))
- }
- if len(m.ExtraHeader) > 0 {
- for _, e := range m.ExtraHeader {
- l = e.Size()
- n += 1 + l + sovHttpDto(uint64(l))
- }
- }
- if m.XXX_unrecognized != nil {
- n += len(m.XXX_unrecognized)
- }
- return n
-}
-
-func (m *Plugin_Header) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- l = len(m.Key)
- if l > 0 {
- n += 1 + l + sovHttpDto(uint64(l))
- }
- if len(m.Value) > 0 {
- for _, s := range m.Value {
- l = len(s)
- n += 1 + l + sovHttpDto(uint64(l))
- }
- }
- if m.XXX_unrecognized != nil {
- n += len(m.XXX_unrecognized)
- }
- return n
-}
-
-func (m *ListPluginReq) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- if m.XXX_unrecognized != nil {
- n += len(m.XXX_unrecognized)
- }
- return n
-}
-
-func (m *ListPluginResp) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- if len(m.Plugins) > 0 {
- for _, e := range m.Plugins {
- l = e.Size()
- n += 1 + l + sovHttpDto(uint64(l))
- }
- }
- if m.XXX_unrecognized != nil {
- n += len(m.XXX_unrecognized)
- }
- return n
-}
-
-func (m *SavePluginReq) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- if m.Plugin != nil {
- l = m.Plugin.Size()
- n += 1 + l + sovHttpDto(uint64(l))
- }
- if m.XXX_unrecognized != nil {
- n += len(m.XXX_unrecognized)
- }
- return n
-}
-
-func (m *SavePluginResp) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- if m.XXX_unrecognized != nil {
- n += len(m.XXX_unrecognized)
- }
- return n
-}
-
-func (m *DeletePluginReq) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- l = len(m.Name)
- if l > 0 {
- n += 1 + l + sovHttpDto(uint64(l))
- }
- if m.XXX_unrecognized != nil {
- n += len(m.XXX_unrecognized)
- }
- return n
-}
-
-func (m *DeletePluginResp) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- if m.XXX_unrecognized != nil {
- n += len(m.XXX_unrecognized)
- }
- return n
-}
-
-func sovHttpDto(x uint64) (n int) {
- return (math_bits.Len64(x|1) + 6) / 7
-}
-func sozHttpDto(x uint64) (n int) {
- return sovHttpDto(uint64((x << 1) ^ uint64((int64(x) >> 63))))
-}
-func (m *Bot) Unmarshal(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowHttpDto
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: Bot: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: Bot: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- case 1:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field BotId", wireType)
- }
- m.BotId = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowHttpDto
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.BotId |= int64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 2:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field IsOnline", wireType)
- }
- var v int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowHttpDto
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- v |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- m.IsOnline = bool(v != 0)
- case 3:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Captcha", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowHttpDto
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return ErrInvalidLengthHttpDto
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return ErrInvalidLengthHttpDto
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- if m.Captcha == nil {
- m.Captcha = &Bot_Captcha{}
- }
- if err := m.Captcha.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- iNdEx = postIndex
- default:
- iNdEx = preIndex
- skippy, err := skipHttpDto(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if skippy < 0 {
- return ErrInvalidLengthHttpDto
- }
- if (iNdEx + skippy) < 0 {
- return ErrInvalidLengthHttpDto
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
- iNdEx += skippy
- }
- }
-
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
-}
-func (m *Bot_Captcha) Unmarshal(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowHttpDto
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: Captcha: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: Captcha: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- case 1:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field BotId", wireType)
- }
- m.BotId = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowHttpDto
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.BotId |= int64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 2:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field CaptchaType", wireType)
- }
- m.CaptchaType = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowHttpDto
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.CaptchaType |= Bot_Captcha_CaptchaType(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 3:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Url", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowHttpDto
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthHttpDto
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthHttpDto
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.Data = &Bot_Captcha_Url{string(dAtA[iNdEx:postIndex])}
- iNdEx = postIndex
- case 4:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Image", wireType)
- }
- var byteLen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowHttpDto
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- byteLen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if byteLen < 0 {
- return ErrInvalidLengthHttpDto
- }
- postIndex := iNdEx + byteLen
- if postIndex < 0 {
- return ErrInvalidLengthHttpDto
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- v := make([]byte, postIndex-iNdEx)
- copy(v, dAtA[iNdEx:postIndex])
- m.Data = &Bot_Captcha_Image{v}
- iNdEx = postIndex
- default:
- iNdEx = preIndex
- skippy, err := skipHttpDto(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if skippy < 0 {
- return ErrInvalidLengthHttpDto
- }
- if (iNdEx + skippy) < 0 {
- return ErrInvalidLengthHttpDto
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
- iNdEx += skippy
- }
- }
-
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
-}
-func (m *CreateBotReq) Unmarshal(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowHttpDto
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: CreateBotReq: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: CreateBotReq: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- case 1:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field BotId", wireType)
- }
- m.BotId = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowHttpDto
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.BotId |= int64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 2:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Password", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowHttpDto
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthHttpDto
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthHttpDto
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.Password = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- case 3:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field DeviceSeed", wireType)
- }
- m.DeviceSeed = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowHttpDto
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.DeviceSeed |= int64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 4:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field ClientProtocol", wireType)
- }
- m.ClientProtocol = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowHttpDto
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.ClientProtocol |= int32(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- default:
- iNdEx = preIndex
- skippy, err := skipHttpDto(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if skippy < 0 {
- return ErrInvalidLengthHttpDto
- }
- if (iNdEx + skippy) < 0 {
- return ErrInvalidLengthHttpDto
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
- iNdEx += skippy
- }
- }
-
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
-}
-func (m *CreateBotResp) Unmarshal(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowHttpDto
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: CreateBotResp: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: CreateBotResp: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- default:
- iNdEx = preIndex
- skippy, err := skipHttpDto(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if skippy < 0 {
- return ErrInvalidLengthHttpDto
- }
- if (iNdEx + skippy) < 0 {
- return ErrInvalidLengthHttpDto
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
- iNdEx += skippy
- }
- }
-
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
-}
-func (m *DeleteBotReq) Unmarshal(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowHttpDto
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: DeleteBotReq: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: DeleteBotReq: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- case 1:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field BotId", wireType)
- }
- m.BotId = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowHttpDto
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.BotId |= int64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- default:
- iNdEx = preIndex
- skippy, err := skipHttpDto(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if skippy < 0 {
- return ErrInvalidLengthHttpDto
- }
- if (iNdEx + skippy) < 0 {
- return ErrInvalidLengthHttpDto
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
- iNdEx += skippy
- }
- }
-
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
-}
-func (m *DeleteBotResp) Unmarshal(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowHttpDto
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: DeleteBotResp: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: DeleteBotResp: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- default:
- iNdEx = preIndex
- skippy, err := skipHttpDto(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if skippy < 0 {
- return ErrInvalidLengthHttpDto
- }
- if (iNdEx + skippy) < 0 {
- return ErrInvalidLengthHttpDto
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
- iNdEx += skippy
- }
- }
-
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
-}
-func (m *ListBotReq) Unmarshal(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowHttpDto
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: ListBotReq: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: ListBotReq: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- default:
- iNdEx = preIndex
- skippy, err := skipHttpDto(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if skippy < 0 {
- return ErrInvalidLengthHttpDto
- }
- if (iNdEx + skippy) < 0 {
- return ErrInvalidLengthHttpDto
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
- iNdEx += skippy
- }
- }
-
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
-}
-func (m *ListBotResp) Unmarshal(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowHttpDto
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: ListBotResp: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: ListBotResp: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- case 1:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field BotList", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowHttpDto
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return ErrInvalidLengthHttpDto
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return ErrInvalidLengthHttpDto
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.BotList = append(m.BotList, &Bot{})
- if err := m.BotList[len(m.BotList)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- iNdEx = postIndex
- default:
- iNdEx = preIndex
- skippy, err := skipHttpDto(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if skippy < 0 {
- return ErrInvalidLengthHttpDto
- }
- if (iNdEx + skippy) < 0 {
- return ErrInvalidLengthHttpDto
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
- iNdEx += skippy
- }
- }
-
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
-}
-func (m *SolveCaptchaReq) Unmarshal(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowHttpDto
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: SolveCaptchaReq: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: SolveCaptchaReq: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- case 1:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field BotId", wireType)
- }
- m.BotId = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowHttpDto
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.BotId |= int64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 2:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Result", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowHttpDto
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthHttpDto
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthHttpDto
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.Result = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- default:
- iNdEx = preIndex
- skippy, err := skipHttpDto(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if skippy < 0 {
- return ErrInvalidLengthHttpDto
- }
- if (iNdEx + skippy) < 0 {
- return ErrInvalidLengthHttpDto
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
- iNdEx += skippy
- }
- }
-
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
-}
-func (m *SolveCaptchaResp) Unmarshal(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowHttpDto
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: SolveCaptchaResp: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: SolveCaptchaResp: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- default:
- iNdEx = preIndex
- skippy, err := skipHttpDto(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if skippy < 0 {
- return ErrInvalidLengthHttpDto
- }
- if (iNdEx + skippy) < 0 {
- return ErrInvalidLengthHttpDto
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
- iNdEx += skippy
- }
- }
-
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
-}
-func (m *FetchQRCodeReq) Unmarshal(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowHttpDto
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: FetchQRCodeReq: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: FetchQRCodeReq: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- case 1:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field DeviceSeed", wireType)
- }
- m.DeviceSeed = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowHttpDto
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.DeviceSeed |= int64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 2:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field ClientProtocol", wireType)
- }
- m.ClientProtocol = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowHttpDto
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.ClientProtocol |= int32(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- default:
- iNdEx = preIndex
- skippy, err := skipHttpDto(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if skippy < 0 {
- return ErrInvalidLengthHttpDto
- }
- if (iNdEx + skippy) < 0 {
- return ErrInvalidLengthHttpDto
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
- iNdEx += skippy
- }
- }
-
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
-}
-func (m *QueryQRCodeStatusReq) Unmarshal(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowHttpDto
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: QueryQRCodeStatusReq: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: QueryQRCodeStatusReq: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- case 1:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Sig", wireType)
- }
- var byteLen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowHttpDto
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- byteLen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if byteLen < 0 {
- return ErrInvalidLengthHttpDto
- }
- postIndex := iNdEx + byteLen
- if postIndex < 0 {
- return ErrInvalidLengthHttpDto
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.Sig = append(m.Sig[:0], dAtA[iNdEx:postIndex]...)
- if m.Sig == nil {
- m.Sig = []byte{}
- }
- iNdEx = postIndex
- case 2:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field BotId", wireType)
- }
- m.BotId = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowHttpDto
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.BotId |= int64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- default:
- iNdEx = preIndex
- skippy, err := skipHttpDto(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if skippy < 0 {
- return ErrInvalidLengthHttpDto
- }
- if (iNdEx + skippy) < 0 {
- return ErrInvalidLengthHttpDto
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
- iNdEx += skippy
- }
- }
-
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
-}
-func (m *QRCodeLoginResp) Unmarshal(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowHttpDto
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: QRCodeLoginResp: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: QRCodeLoginResp: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- case 1:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field State", wireType)
- }
- m.State = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowHttpDto
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.State |= QRCodeLoginResp_QRCodeLoginState(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 2:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field ImageData", wireType)
- }
- var byteLen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowHttpDto
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- byteLen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if byteLen < 0 {
- return ErrInvalidLengthHttpDto
- }
- postIndex := iNdEx + byteLen
- if postIndex < 0 {
- return ErrInvalidLengthHttpDto
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.ImageData = append(m.ImageData[:0], dAtA[iNdEx:postIndex]...)
- if m.ImageData == nil {
- m.ImageData = []byte{}
- }
- iNdEx = postIndex
- case 3:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Sig", wireType)
- }
- var byteLen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowHttpDto
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- byteLen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if byteLen < 0 {
- return ErrInvalidLengthHttpDto
- }
- postIndex := iNdEx + byteLen
- if postIndex < 0 {
- return ErrInvalidLengthHttpDto
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.Sig = append(m.Sig[:0], dAtA[iNdEx:postIndex]...)
- if m.Sig == nil {
- m.Sig = []byte{}
- }
- iNdEx = postIndex
- default:
- iNdEx = preIndex
- skippy, err := skipHttpDto(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if skippy < 0 {
- return ErrInvalidLengthHttpDto
- }
- if (iNdEx + skippy) < 0 {
- return ErrInvalidLengthHttpDto
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
- iNdEx += skippy
- }
- }
-
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
-}
-func (m *Plugin) Unmarshal(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowHttpDto
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: Plugin: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: Plugin: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- case 1:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowHttpDto
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthHttpDto
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthHttpDto
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.Name = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- case 2:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field Disabled", wireType)
- }
- var v int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowHttpDto
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- v |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- m.Disabled = bool(v != 0)
- case 3:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field Json", wireType)
- }
- var v int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowHttpDto
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- v |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- m.Json = bool(v != 0)
- case 4:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Urls", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowHttpDto
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthHttpDto
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthHttpDto
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.Urls = append(m.Urls, string(dAtA[iNdEx:postIndex]))
- iNdEx = postIndex
- case 5:
- if wireType == 0 {
- var v int32
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowHttpDto
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- v |= int32(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- m.EventFilter = append(m.EventFilter, v)
- } else if wireType == 2 {
- var packedLen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowHttpDto
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- packedLen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if packedLen < 0 {
- return ErrInvalidLengthHttpDto
- }
- postIndex := iNdEx + packedLen
- if postIndex < 0 {
- return ErrInvalidLengthHttpDto
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- var elementCount int
- var count int
- for _, integer := range dAtA[iNdEx:postIndex] {
- if integer < 128 {
- count++
- }
- }
- elementCount = count
- if elementCount != 0 && len(m.EventFilter) == 0 {
- m.EventFilter = make([]int32, 0, elementCount)
- }
- for iNdEx < postIndex {
- var v int32
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowHttpDto
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- v |= int32(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- m.EventFilter = append(m.EventFilter, v)
- }
- } else {
- return fmt.Errorf("proto: wrong wireType = %d for field EventFilter", wireType)
- }
- case 6:
- if wireType == 0 {
- var v int32
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowHttpDto
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- v |= int32(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- m.ApiFilter = append(m.ApiFilter, v)
- } else if wireType == 2 {
- var packedLen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowHttpDto
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- packedLen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if packedLen < 0 {
- return ErrInvalidLengthHttpDto
- }
- postIndex := iNdEx + packedLen
- if postIndex < 0 {
- return ErrInvalidLengthHttpDto
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- var elementCount int
- var count int
- for _, integer := range dAtA[iNdEx:postIndex] {
- if integer < 128 {
- count++
- }
- }
- elementCount = count
- if elementCount != 0 && len(m.ApiFilter) == 0 {
- m.ApiFilter = make([]int32, 0, elementCount)
- }
- for iNdEx < postIndex {
- var v int32
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowHttpDto
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- v |= int32(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- m.ApiFilter = append(m.ApiFilter, v)
- }
- } else {
- return fmt.Errorf("proto: wrong wireType = %d for field ApiFilter", wireType)
- }
- case 7:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field RegexFilter", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowHttpDto
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthHttpDto
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthHttpDto
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.RegexFilter = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- case 8:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field RegexReplace", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowHttpDto
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthHttpDto
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthHttpDto
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.RegexReplace = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- case 9:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field ExtraHeader", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowHttpDto
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return ErrInvalidLengthHttpDto
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return ErrInvalidLengthHttpDto
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.ExtraHeader = append(m.ExtraHeader, &Plugin_Header{})
- if err := m.ExtraHeader[len(m.ExtraHeader)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- iNdEx = postIndex
- default:
- iNdEx = preIndex
- skippy, err := skipHttpDto(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if skippy < 0 {
- return ErrInvalidLengthHttpDto
- }
- if (iNdEx + skippy) < 0 {
- return ErrInvalidLengthHttpDto
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
- iNdEx += skippy
- }
- }
-
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
-}
-func (m *Plugin_Header) Unmarshal(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowHttpDto
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: Header: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: Header: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- case 1:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Key", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowHttpDto
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthHttpDto
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthHttpDto
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.Key = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- case 2:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowHttpDto
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthHttpDto
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthHttpDto
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.Value = append(m.Value, string(dAtA[iNdEx:postIndex]))
- iNdEx = postIndex
- default:
- iNdEx = preIndex
- skippy, err := skipHttpDto(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if skippy < 0 {
- return ErrInvalidLengthHttpDto
- }
- if (iNdEx + skippy) < 0 {
- return ErrInvalidLengthHttpDto
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
- iNdEx += skippy
- }
- }
-
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
-}
-func (m *ListPluginReq) Unmarshal(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowHttpDto
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: ListPluginReq: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: ListPluginReq: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- default:
- iNdEx = preIndex
- skippy, err := skipHttpDto(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if skippy < 0 {
- return ErrInvalidLengthHttpDto
- }
- if (iNdEx + skippy) < 0 {
- return ErrInvalidLengthHttpDto
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
- iNdEx += skippy
- }
- }
-
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
-}
-func (m *ListPluginResp) Unmarshal(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowHttpDto
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: ListPluginResp: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: ListPluginResp: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- case 1:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Plugins", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowHttpDto
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return ErrInvalidLengthHttpDto
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return ErrInvalidLengthHttpDto
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.Plugins = append(m.Plugins, &Plugin{})
- if err := m.Plugins[len(m.Plugins)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- iNdEx = postIndex
- default:
- iNdEx = preIndex
- skippy, err := skipHttpDto(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if skippy < 0 {
- return ErrInvalidLengthHttpDto
- }
- if (iNdEx + skippy) < 0 {
- return ErrInvalidLengthHttpDto
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
- iNdEx += skippy
- }
- }
-
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
-}
-func (m *SavePluginReq) Unmarshal(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowHttpDto
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: SavePluginReq: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: SavePluginReq: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- case 1:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Plugin", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowHttpDto
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return ErrInvalidLengthHttpDto
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return ErrInvalidLengthHttpDto
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- if m.Plugin == nil {
- m.Plugin = &Plugin{}
- }
- if err := m.Plugin.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- iNdEx = postIndex
- default:
- iNdEx = preIndex
- skippy, err := skipHttpDto(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if skippy < 0 {
- return ErrInvalidLengthHttpDto
- }
- if (iNdEx + skippy) < 0 {
- return ErrInvalidLengthHttpDto
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
- iNdEx += skippy
- }
- }
-
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
-}
-func (m *SavePluginResp) Unmarshal(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowHttpDto
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: SavePluginResp: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: SavePluginResp: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- default:
- iNdEx = preIndex
- skippy, err := skipHttpDto(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if skippy < 0 {
- return ErrInvalidLengthHttpDto
- }
- if (iNdEx + skippy) < 0 {
- return ErrInvalidLengthHttpDto
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
- iNdEx += skippy
- }
- }
-
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
-}
-func (m *DeletePluginReq) Unmarshal(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowHttpDto
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: DeletePluginReq: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: DeletePluginReq: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- case 1:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowHttpDto
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthHttpDto
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthHttpDto
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.Name = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- default:
- iNdEx = preIndex
- skippy, err := skipHttpDto(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if skippy < 0 {
- return ErrInvalidLengthHttpDto
- }
- if (iNdEx + skippy) < 0 {
- return ErrInvalidLengthHttpDto
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
- iNdEx += skippy
- }
- }
-
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
-}
-func (m *DeletePluginResp) Unmarshal(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowHttpDto
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: DeletePluginResp: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: DeletePluginResp: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- default:
- iNdEx = preIndex
- skippy, err := skipHttpDto(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if skippy < 0 {
- return ErrInvalidLengthHttpDto
- }
- if (iNdEx + skippy) < 0 {
- return ErrInvalidLengthHttpDto
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
- iNdEx += skippy
- }
- }
-
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
-}
-func skipHttpDto(dAtA []byte) (n int, err error) {
- l := len(dAtA)
- iNdEx := 0
- depth := 0
- for iNdEx < l {
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return 0, ErrIntOverflowHttpDto
- }
- if iNdEx >= l {
- return 0, io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= (uint64(b) & 0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- wireType := int(wire & 0x7)
- switch wireType {
- case 0:
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return 0, ErrIntOverflowHttpDto
- }
- if iNdEx >= l {
- return 0, io.ErrUnexpectedEOF
- }
- iNdEx++
- if dAtA[iNdEx-1] < 0x80 {
- break
- }
- }
- case 1:
- iNdEx += 8
- case 2:
- var length int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return 0, ErrIntOverflowHttpDto
- }
- if iNdEx >= l {
- return 0, io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- length |= (int(b) & 0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if length < 0 {
- return 0, ErrInvalidLengthHttpDto
- }
- iNdEx += length
- case 3:
- depth++
- case 4:
- if depth == 0 {
- return 0, ErrUnexpectedEndOfGroupHttpDto
- }
- depth--
- case 5:
- iNdEx += 4
- default:
- return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
- }
- if iNdEx < 0 {
- return 0, ErrInvalidLengthHttpDto
- }
- if depth == 0 {
- return iNdEx, nil
- }
- }
- return 0, io.ErrUnexpectedEOF
-}
-
-var (
- ErrInvalidLengthHttpDto = fmt.Errorf("proto: negative length found during unmarshaling")
- ErrIntOverflowHttpDto = fmt.Errorf("proto: integer overflow")
- ErrUnexpectedEndOfGroupHttpDto = fmt.Errorf("proto: unexpected end of group")
-)
diff --git a/proto_gen/dto/http_dto_grpc.pb.go b/proto_gen/dto/http_dto_grpc.pb.go
new file mode 100644
index 0000000..8852364
--- /dev/null
+++ b/proto_gen/dto/http_dto_grpc.pb.go
@@ -0,0 +1,405 @@
+// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
+// versions:
+// - protoc-gen-go-grpc v1.3.0
+// - protoc v4.22.2
+// source: http_dto.proto
+
+package dto
+
+import (
+ context "context"
+ grpc "google.golang.org/grpc"
+ codes "google.golang.org/grpc/codes"
+ status "google.golang.org/grpc/status"
+)
+
+// This is a compile-time assertion to ensure that this generated file
+// is compatible with the grpc package it is being compiled against.
+// Requires gRPC-Go v1.32.0 or later.
+const _ = grpc.SupportPackageIsVersion7
+
+const (
+ HttpService_CreateBot_FullMethodName = "/dto.HttpService/CreateBot"
+ HttpService_DeleteBot_FullMethodName = "/dto.HttpService/DeleteBot"
+ HttpService_ListBot_FullMethodName = "/dto.HttpService/ListBot"
+ HttpService_SolveCaptcha_FullMethodName = "/dto.HttpService/SolveCaptcha"
+ HttpService_FetchQRCode_FullMethodName = "/dto.HttpService/FetchQRCode"
+ HttpService_QueryQRCodeStatus_FullMethodName = "/dto.HttpService/QueryQRCodeStatus"
+ HttpService_ListPlugin_FullMethodName = "/dto.HttpService/ListPlugin"
+ HttpService_SavePlugin_FullMethodName = "/dto.HttpService/SavePlugin"
+ HttpService_DeletePlugin_FullMethodName = "/dto.HttpService/DeletePlugin"
+)
+
+// HttpServiceClient is the client API for HttpService service.
+//
+// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
+type HttpServiceClient interface {
+ CreateBot(ctx context.Context, in *CreateBotReq, opts ...grpc.CallOption) (*CreateBotResp, error)
+ DeleteBot(ctx context.Context, in *DeleteBotReq, opts ...grpc.CallOption) (*DeleteBotResp, error)
+ ListBot(ctx context.Context, in *ListBotReq, opts ...grpc.CallOption) (*ListBotResp, error)
+ SolveCaptcha(ctx context.Context, in *SolveCaptchaReq, opts ...grpc.CallOption) (*SolveCaptchaResp, error)
+ FetchQRCode(ctx context.Context, in *FetchQRCodeReq, opts ...grpc.CallOption) (*QRCodeLoginResp, error)
+ QueryQRCodeStatus(ctx context.Context, in *QueryQRCodeStatusReq, opts ...grpc.CallOption) (*QRCodeLoginResp, error)
+ ListPlugin(ctx context.Context, in *ListPluginReq, opts ...grpc.CallOption) (*ListPluginResp, error)
+ SavePlugin(ctx context.Context, in *SavePluginReq, opts ...grpc.CallOption) (*SavePluginResp, error)
+ DeletePlugin(ctx context.Context, in *DeletePluginReq, opts ...grpc.CallOption) (*DeletePluginResp, error)
+}
+
+type httpServiceClient struct {
+ cc grpc.ClientConnInterface
+}
+
+func NewHttpServiceClient(cc grpc.ClientConnInterface) HttpServiceClient {
+ return &httpServiceClient{cc}
+}
+
+func (c *httpServiceClient) CreateBot(ctx context.Context, in *CreateBotReq, opts ...grpc.CallOption) (*CreateBotResp, error) {
+ out := new(CreateBotResp)
+ err := c.cc.Invoke(ctx, HttpService_CreateBot_FullMethodName, in, out, opts...)
+ if err != nil {
+ return nil, err
+ }
+ return out, nil
+}
+
+func (c *httpServiceClient) DeleteBot(ctx context.Context, in *DeleteBotReq, opts ...grpc.CallOption) (*DeleteBotResp, error) {
+ out := new(DeleteBotResp)
+ err := c.cc.Invoke(ctx, HttpService_DeleteBot_FullMethodName, in, out, opts...)
+ if err != nil {
+ return nil, err
+ }
+ return out, nil
+}
+
+func (c *httpServiceClient) ListBot(ctx context.Context, in *ListBotReq, opts ...grpc.CallOption) (*ListBotResp, error) {
+ out := new(ListBotResp)
+ err := c.cc.Invoke(ctx, HttpService_ListBot_FullMethodName, in, out, opts...)
+ if err != nil {
+ return nil, err
+ }
+ return out, nil
+}
+
+func (c *httpServiceClient) SolveCaptcha(ctx context.Context, in *SolveCaptchaReq, opts ...grpc.CallOption) (*SolveCaptchaResp, error) {
+ out := new(SolveCaptchaResp)
+ err := c.cc.Invoke(ctx, HttpService_SolveCaptcha_FullMethodName, in, out, opts...)
+ if err != nil {
+ return nil, err
+ }
+ return out, nil
+}
+
+func (c *httpServiceClient) FetchQRCode(ctx context.Context, in *FetchQRCodeReq, opts ...grpc.CallOption) (*QRCodeLoginResp, error) {
+ out := new(QRCodeLoginResp)
+ err := c.cc.Invoke(ctx, HttpService_FetchQRCode_FullMethodName, in, out, opts...)
+ if err != nil {
+ return nil, err
+ }
+ return out, nil
+}
+
+func (c *httpServiceClient) QueryQRCodeStatus(ctx context.Context, in *QueryQRCodeStatusReq, opts ...grpc.CallOption) (*QRCodeLoginResp, error) {
+ out := new(QRCodeLoginResp)
+ err := c.cc.Invoke(ctx, HttpService_QueryQRCodeStatus_FullMethodName, in, out, opts...)
+ if err != nil {
+ return nil, err
+ }
+ return out, nil
+}
+
+func (c *httpServiceClient) ListPlugin(ctx context.Context, in *ListPluginReq, opts ...grpc.CallOption) (*ListPluginResp, error) {
+ out := new(ListPluginResp)
+ err := c.cc.Invoke(ctx, HttpService_ListPlugin_FullMethodName, in, out, opts...)
+ if err != nil {
+ return nil, err
+ }
+ return out, nil
+}
+
+func (c *httpServiceClient) SavePlugin(ctx context.Context, in *SavePluginReq, opts ...grpc.CallOption) (*SavePluginResp, error) {
+ out := new(SavePluginResp)
+ err := c.cc.Invoke(ctx, HttpService_SavePlugin_FullMethodName, in, out, opts...)
+ if err != nil {
+ return nil, err
+ }
+ return out, nil
+}
+
+func (c *httpServiceClient) DeletePlugin(ctx context.Context, in *DeletePluginReq, opts ...grpc.CallOption) (*DeletePluginResp, error) {
+ out := new(DeletePluginResp)
+ err := c.cc.Invoke(ctx, HttpService_DeletePlugin_FullMethodName, in, out, opts...)
+ if err != nil {
+ return nil, err
+ }
+ return out, nil
+}
+
+// HttpServiceServer is the server API for HttpService service.
+// All implementations must embed UnimplementedHttpServiceServer
+// for forward compatibility
+type HttpServiceServer interface {
+ CreateBot(context.Context, *CreateBotReq) (*CreateBotResp, error)
+ DeleteBot(context.Context, *DeleteBotReq) (*DeleteBotResp, error)
+ ListBot(context.Context, *ListBotReq) (*ListBotResp, error)
+ SolveCaptcha(context.Context, *SolveCaptchaReq) (*SolveCaptchaResp, error)
+ FetchQRCode(context.Context, *FetchQRCodeReq) (*QRCodeLoginResp, error)
+ QueryQRCodeStatus(context.Context, *QueryQRCodeStatusReq) (*QRCodeLoginResp, error)
+ ListPlugin(context.Context, *ListPluginReq) (*ListPluginResp, error)
+ SavePlugin(context.Context, *SavePluginReq) (*SavePluginResp, error)
+ DeletePlugin(context.Context, *DeletePluginReq) (*DeletePluginResp, error)
+ mustEmbedUnimplementedHttpServiceServer()
+}
+
+// UnimplementedHttpServiceServer must be embedded to have forward compatible implementations.
+type UnimplementedHttpServiceServer struct {
+}
+
+func (UnimplementedHttpServiceServer) CreateBot(context.Context, *CreateBotReq) (*CreateBotResp, error) {
+ return nil, status.Errorf(codes.Unimplemented, "method CreateBot not implemented")
+}
+func (UnimplementedHttpServiceServer) DeleteBot(context.Context, *DeleteBotReq) (*DeleteBotResp, error) {
+ return nil, status.Errorf(codes.Unimplemented, "method DeleteBot not implemented")
+}
+func (UnimplementedHttpServiceServer) ListBot(context.Context, *ListBotReq) (*ListBotResp, error) {
+ return nil, status.Errorf(codes.Unimplemented, "method ListBot not implemented")
+}
+func (UnimplementedHttpServiceServer) SolveCaptcha(context.Context, *SolveCaptchaReq) (*SolveCaptchaResp, error) {
+ return nil, status.Errorf(codes.Unimplemented, "method SolveCaptcha not implemented")
+}
+func (UnimplementedHttpServiceServer) FetchQRCode(context.Context, *FetchQRCodeReq) (*QRCodeLoginResp, error) {
+ return nil, status.Errorf(codes.Unimplemented, "method FetchQRCode not implemented")
+}
+func (UnimplementedHttpServiceServer) QueryQRCodeStatus(context.Context, *QueryQRCodeStatusReq) (*QRCodeLoginResp, error) {
+ return nil, status.Errorf(codes.Unimplemented, "method QueryQRCodeStatus not implemented")
+}
+func (UnimplementedHttpServiceServer) ListPlugin(context.Context, *ListPluginReq) (*ListPluginResp, error) {
+ return nil, status.Errorf(codes.Unimplemented, "method ListPlugin not implemented")
+}
+func (UnimplementedHttpServiceServer) SavePlugin(context.Context, *SavePluginReq) (*SavePluginResp, error) {
+ return nil, status.Errorf(codes.Unimplemented, "method SavePlugin not implemented")
+}
+func (UnimplementedHttpServiceServer) DeletePlugin(context.Context, *DeletePluginReq) (*DeletePluginResp, error) {
+ return nil, status.Errorf(codes.Unimplemented, "method DeletePlugin not implemented")
+}
+func (UnimplementedHttpServiceServer) mustEmbedUnimplementedHttpServiceServer() {}
+
+// UnsafeHttpServiceServer may be embedded to opt out of forward compatibility for this service.
+// Use of this interface is not recommended, as added methods to HttpServiceServer will
+// result in compilation errors.
+type UnsafeHttpServiceServer interface {
+ mustEmbedUnimplementedHttpServiceServer()
+}
+
+func RegisterHttpServiceServer(s grpc.ServiceRegistrar, srv HttpServiceServer) {
+ s.RegisterService(&HttpService_ServiceDesc, srv)
+}
+
+func _HttpService_CreateBot_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
+ in := new(CreateBotReq)
+ if err := dec(in); err != nil {
+ return nil, err
+ }
+ if interceptor == nil {
+ return srv.(HttpServiceServer).CreateBot(ctx, in)
+ }
+ info := &grpc.UnaryServerInfo{
+ Server: srv,
+ FullMethod: HttpService_CreateBot_FullMethodName,
+ }
+ handler := func(ctx context.Context, req interface{}) (interface{}, error) {
+ return srv.(HttpServiceServer).CreateBot(ctx, req.(*CreateBotReq))
+ }
+ return interceptor(ctx, in, info, handler)
+}
+
+func _HttpService_DeleteBot_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
+ in := new(DeleteBotReq)
+ if err := dec(in); err != nil {
+ return nil, err
+ }
+ if interceptor == nil {
+ return srv.(HttpServiceServer).DeleteBot(ctx, in)
+ }
+ info := &grpc.UnaryServerInfo{
+ Server: srv,
+ FullMethod: HttpService_DeleteBot_FullMethodName,
+ }
+ handler := func(ctx context.Context, req interface{}) (interface{}, error) {
+ return srv.(HttpServiceServer).DeleteBot(ctx, req.(*DeleteBotReq))
+ }
+ return interceptor(ctx, in, info, handler)
+}
+
+func _HttpService_ListBot_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
+ in := new(ListBotReq)
+ if err := dec(in); err != nil {
+ return nil, err
+ }
+ if interceptor == nil {
+ return srv.(HttpServiceServer).ListBot(ctx, in)
+ }
+ info := &grpc.UnaryServerInfo{
+ Server: srv,
+ FullMethod: HttpService_ListBot_FullMethodName,
+ }
+ handler := func(ctx context.Context, req interface{}) (interface{}, error) {
+ return srv.(HttpServiceServer).ListBot(ctx, req.(*ListBotReq))
+ }
+ return interceptor(ctx, in, info, handler)
+}
+
+func _HttpService_SolveCaptcha_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
+ in := new(SolveCaptchaReq)
+ if err := dec(in); err != nil {
+ return nil, err
+ }
+ if interceptor == nil {
+ return srv.(HttpServiceServer).SolveCaptcha(ctx, in)
+ }
+ info := &grpc.UnaryServerInfo{
+ Server: srv,
+ FullMethod: HttpService_SolveCaptcha_FullMethodName,
+ }
+ handler := func(ctx context.Context, req interface{}) (interface{}, error) {
+ return srv.(HttpServiceServer).SolveCaptcha(ctx, req.(*SolveCaptchaReq))
+ }
+ return interceptor(ctx, in, info, handler)
+}
+
+func _HttpService_FetchQRCode_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
+ in := new(FetchQRCodeReq)
+ if err := dec(in); err != nil {
+ return nil, err
+ }
+ if interceptor == nil {
+ return srv.(HttpServiceServer).FetchQRCode(ctx, in)
+ }
+ info := &grpc.UnaryServerInfo{
+ Server: srv,
+ FullMethod: HttpService_FetchQRCode_FullMethodName,
+ }
+ handler := func(ctx context.Context, req interface{}) (interface{}, error) {
+ return srv.(HttpServiceServer).FetchQRCode(ctx, req.(*FetchQRCodeReq))
+ }
+ return interceptor(ctx, in, info, handler)
+}
+
+func _HttpService_QueryQRCodeStatus_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
+ in := new(QueryQRCodeStatusReq)
+ if err := dec(in); err != nil {
+ return nil, err
+ }
+ if interceptor == nil {
+ return srv.(HttpServiceServer).QueryQRCodeStatus(ctx, in)
+ }
+ info := &grpc.UnaryServerInfo{
+ Server: srv,
+ FullMethod: HttpService_QueryQRCodeStatus_FullMethodName,
+ }
+ handler := func(ctx context.Context, req interface{}) (interface{}, error) {
+ return srv.(HttpServiceServer).QueryQRCodeStatus(ctx, req.(*QueryQRCodeStatusReq))
+ }
+ return interceptor(ctx, in, info, handler)
+}
+
+func _HttpService_ListPlugin_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
+ in := new(ListPluginReq)
+ if err := dec(in); err != nil {
+ return nil, err
+ }
+ if interceptor == nil {
+ return srv.(HttpServiceServer).ListPlugin(ctx, in)
+ }
+ info := &grpc.UnaryServerInfo{
+ Server: srv,
+ FullMethod: HttpService_ListPlugin_FullMethodName,
+ }
+ handler := func(ctx context.Context, req interface{}) (interface{}, error) {
+ return srv.(HttpServiceServer).ListPlugin(ctx, req.(*ListPluginReq))
+ }
+ return interceptor(ctx, in, info, handler)
+}
+
+func _HttpService_SavePlugin_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
+ in := new(SavePluginReq)
+ if err := dec(in); err != nil {
+ return nil, err
+ }
+ if interceptor == nil {
+ return srv.(HttpServiceServer).SavePlugin(ctx, in)
+ }
+ info := &grpc.UnaryServerInfo{
+ Server: srv,
+ FullMethod: HttpService_SavePlugin_FullMethodName,
+ }
+ handler := func(ctx context.Context, req interface{}) (interface{}, error) {
+ return srv.(HttpServiceServer).SavePlugin(ctx, req.(*SavePluginReq))
+ }
+ return interceptor(ctx, in, info, handler)
+}
+
+func _HttpService_DeletePlugin_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
+ in := new(DeletePluginReq)
+ if err := dec(in); err != nil {
+ return nil, err
+ }
+ if interceptor == nil {
+ return srv.(HttpServiceServer).DeletePlugin(ctx, in)
+ }
+ info := &grpc.UnaryServerInfo{
+ Server: srv,
+ FullMethod: HttpService_DeletePlugin_FullMethodName,
+ }
+ handler := func(ctx context.Context, req interface{}) (interface{}, error) {
+ return srv.(HttpServiceServer).DeletePlugin(ctx, req.(*DeletePluginReq))
+ }
+ return interceptor(ctx, in, info, handler)
+}
+
+// HttpService_ServiceDesc is the grpc.ServiceDesc for HttpService service.
+// It's only intended for direct use with grpc.RegisterService,
+// and not to be introspected or modified (even as a copy)
+var HttpService_ServiceDesc = grpc.ServiceDesc{
+ ServiceName: "dto.HttpService",
+ HandlerType: (*HttpServiceServer)(nil),
+ Methods: []grpc.MethodDesc{
+ {
+ MethodName: "CreateBot",
+ Handler: _HttpService_CreateBot_Handler,
+ },
+ {
+ MethodName: "DeleteBot",
+ Handler: _HttpService_DeleteBot_Handler,
+ },
+ {
+ MethodName: "ListBot",
+ Handler: _HttpService_ListBot_Handler,
+ },
+ {
+ MethodName: "SolveCaptcha",
+ Handler: _HttpService_SolveCaptcha_Handler,
+ },
+ {
+ MethodName: "FetchQRCode",
+ Handler: _HttpService_FetchQRCode_Handler,
+ },
+ {
+ MethodName: "QueryQRCodeStatus",
+ Handler: _HttpService_QueryQRCodeStatus_Handler,
+ },
+ {
+ MethodName: "ListPlugin",
+ Handler: _HttpService_ListPlugin_Handler,
+ },
+ {
+ MethodName: "SavePlugin",
+ Handler: _HttpService_SavePlugin_Handler,
+ },
+ {
+ MethodName: "DeletePlugin",
+ Handler: _HttpService_DeletePlugin_Handler,
+ },
+ },
+ Streams: []grpc.StreamDesc{},
+ Metadata: "http_dto.proto",
+}
diff --git a/proto_gen/onebot/onebot_api.pb.go b/proto_gen/onebot/onebot_api.pb.go
index d0cf569..a377478 100644
--- a/proto_gen/onebot/onebot_api.pb.go
+++ b/proto_gen/onebot/onebot_api.pb.go
@@ -1,20841 +1,6969 @@
-// Code generated by protoc-gen-gogo. DO NOT EDIT.
+// Code generated by protoc-gen-go. DO NOT EDIT.
+// versions:
+// protoc-gen-go v1.29.0
+// protoc v4.22.2
// source: onebot_api.proto
package onebot
import (
- fmt "fmt"
- proto "github.com/golang/protobuf/proto"
- io "io"
- math "math"
- math_bits "math/bits"
+ protoreflect "google.golang.org/protobuf/reflect/protoreflect"
+ protoimpl "google.golang.org/protobuf/runtime/protoimpl"
+ reflect "reflect"
+ sync "sync"
)
-// 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
+const (
+ // Verify that this generated code is sufficiently up-to-date.
+ _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
+ // Verify that runtime/protoimpl is sufficiently up-to-date.
+ _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
+)
type SendPrivateMsgReq struct {
- UserId int64 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
- Message []*Message `protobuf:"bytes,2,rep,name=message,proto3" json:"message,omitempty"`
- AutoEscape bool `protobuf:"varint,3,opt,name=auto_escape,json=autoEscape,proto3" json:"auto_escape,omitempty"`
- XXX_NoUnkeyedLiteral struct{} `json:"-"`
- XXX_unrecognized []byte `json:"-"`
- XXX_sizecache int32 `json:"-"`
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ UserId int64 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
+ Message []*Message `protobuf:"bytes,2,rep,name=message,proto3" json:"message,omitempty"`
+ AutoEscape bool `protobuf:"varint,3,opt,name=auto_escape,json=autoEscape,proto3" json:"auto_escape,omitempty"`
}
-func (m *SendPrivateMsgReq) Reset() { *m = SendPrivateMsgReq{} }
-func (m *SendPrivateMsgReq) String() string { return proto.CompactTextString(m) }
-func (*SendPrivateMsgReq) ProtoMessage() {}
-func (*SendPrivateMsgReq) Descriptor() ([]byte, []int) {
- return fileDescriptor_ed9cadf202f12b1d, []int{0}
-}
-func (m *SendPrivateMsgReq) XXX_Unmarshal(b []byte) error {
- return m.Unmarshal(b)
-}
-func (m *SendPrivateMsgReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- if deterministic {
- return xxx_messageInfo_SendPrivateMsgReq.Marshal(b, m, deterministic)
- } else {
- b = b[:cap(b)]
- n, err := m.MarshalToSizedBuffer(b)
- if err != nil {
- return nil, err
- }
- return b[:n], nil
+func (x *SendPrivateMsgReq) Reset() {
+ *x = SendPrivateMsgReq{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_onebot_api_proto_msgTypes[0]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
}
}
-func (m *SendPrivateMsgReq) XXX_Merge(src proto.Message) {
- xxx_messageInfo_SendPrivateMsgReq.Merge(m, src)
-}
-func (m *SendPrivateMsgReq) XXX_Size() int {
- return m.Size()
+
+func (x *SendPrivateMsgReq) String() string {
+ return protoimpl.X.MessageStringOf(x)
}
-func (m *SendPrivateMsgReq) XXX_DiscardUnknown() {
- xxx_messageInfo_SendPrivateMsgReq.DiscardUnknown(m)
+
+func (*SendPrivateMsgReq) ProtoMessage() {}
+
+func (x *SendPrivateMsgReq) ProtoReflect() protoreflect.Message {
+ mi := &file_onebot_api_proto_msgTypes[0]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
}
-var xxx_messageInfo_SendPrivateMsgReq proto.InternalMessageInfo
+// Deprecated: Use SendPrivateMsgReq.ProtoReflect.Descriptor instead.
+func (*SendPrivateMsgReq) Descriptor() ([]byte, []int) {
+ return file_onebot_api_proto_rawDescGZIP(), []int{0}
+}
-func (m *SendPrivateMsgReq) GetUserId() int64 {
- if m != nil {
- return m.UserId
+func (x *SendPrivateMsgReq) GetUserId() int64 {
+ if x != nil {
+ return x.UserId
}
return 0
}
-func (m *SendPrivateMsgReq) GetMessage() []*Message {
- if m != nil {
- return m.Message
+func (x *SendPrivateMsgReq) GetMessage() []*Message {
+ if x != nil {
+ return x.Message
}
return nil
}
-func (m *SendPrivateMsgReq) GetAutoEscape() bool {
- if m != nil {
- return m.AutoEscape
+func (x *SendPrivateMsgReq) GetAutoEscape() bool {
+ if x != nil {
+ return x.AutoEscape
}
return false
}
type SendPrivateMsgResp struct {
- // int32 message_id = 1; // 废弃
- MessageId *MessageReceipt `protobuf:"bytes,2,opt,name=message_id,json=messageId,proto3" json:"message_id,omitempty"`
- XXX_NoUnkeyedLiteral struct{} `json:"-"`
- XXX_unrecognized []byte `json:"-"`
- XXX_sizecache int32 `json:"-"`
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ MessageId int32 `protobuf:"varint,1,opt,name=message_id,json=messageId,proto3" json:"message_id,omitempty"`
+ MessageReceipt *MessageReceipt `protobuf:"bytes,2,opt,name=message_receipt,json=messageReceipt,proto3" json:"message_receipt,omitempty"`
}
-func (m *SendPrivateMsgResp) Reset() { *m = SendPrivateMsgResp{} }
-func (m *SendPrivateMsgResp) String() string { return proto.CompactTextString(m) }
-func (*SendPrivateMsgResp) ProtoMessage() {}
-func (*SendPrivateMsgResp) Descriptor() ([]byte, []int) {
- return fileDescriptor_ed9cadf202f12b1d, []int{1}
-}
-func (m *SendPrivateMsgResp) XXX_Unmarshal(b []byte) error {
- return m.Unmarshal(b)
-}
-func (m *SendPrivateMsgResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- if deterministic {
- return xxx_messageInfo_SendPrivateMsgResp.Marshal(b, m, deterministic)
- } else {
- b = b[:cap(b)]
- n, err := m.MarshalToSizedBuffer(b)
- if err != nil {
- return nil, err
- }
- return b[:n], nil
+func (x *SendPrivateMsgResp) Reset() {
+ *x = SendPrivateMsgResp{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_onebot_api_proto_msgTypes[1]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
}
}
-func (m *SendPrivateMsgResp) XXX_Merge(src proto.Message) {
- xxx_messageInfo_SendPrivateMsgResp.Merge(m, src)
+
+func (x *SendPrivateMsgResp) String() string {
+ return protoimpl.X.MessageStringOf(x)
}
-func (m *SendPrivateMsgResp) XXX_Size() int {
- return m.Size()
+
+func (*SendPrivateMsgResp) ProtoMessage() {}
+
+func (x *SendPrivateMsgResp) ProtoReflect() protoreflect.Message {
+ mi := &file_onebot_api_proto_msgTypes[1]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
}
-func (m *SendPrivateMsgResp) XXX_DiscardUnknown() {
- xxx_messageInfo_SendPrivateMsgResp.DiscardUnknown(m)
+
+// Deprecated: Use SendPrivateMsgResp.ProtoReflect.Descriptor instead.
+func (*SendPrivateMsgResp) Descriptor() ([]byte, []int) {
+ return file_onebot_api_proto_rawDescGZIP(), []int{1}
}
-var xxx_messageInfo_SendPrivateMsgResp proto.InternalMessageInfo
+func (x *SendPrivateMsgResp) GetMessageId() int32 {
+ if x != nil {
+ return x.MessageId
+ }
+ return 0
+}
-func (m *SendPrivateMsgResp) GetMessageId() *MessageReceipt {
- if m != nil {
- return m.MessageId
+func (x *SendPrivateMsgResp) GetMessageReceipt() *MessageReceipt {
+ if x != nil {
+ return x.MessageReceipt
}
return nil
}
type SendGroupMsgReq struct {
- GroupId int64 `protobuf:"varint,1,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty"`
- Message []*Message `protobuf:"bytes,2,rep,name=message,proto3" json:"message,omitempty"`
- AutoEscape bool `protobuf:"varint,3,opt,name=auto_escape,json=autoEscape,proto3" json:"auto_escape,omitempty"`
- XXX_NoUnkeyedLiteral struct{} `json:"-"`
- XXX_unrecognized []byte `json:"-"`
- XXX_sizecache int32 `json:"-"`
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ GroupId int64 `protobuf:"varint,1,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty"`
+ Message []*Message `protobuf:"bytes,2,rep,name=message,proto3" json:"message,omitempty"`
+ AutoEscape bool `protobuf:"varint,3,opt,name=auto_escape,json=autoEscape,proto3" json:"auto_escape,omitempty"`
}
-func (m *SendGroupMsgReq) Reset() { *m = SendGroupMsgReq{} }
-func (m *SendGroupMsgReq) String() string { return proto.CompactTextString(m) }
-func (*SendGroupMsgReq) ProtoMessage() {}
-func (*SendGroupMsgReq) Descriptor() ([]byte, []int) {
- return fileDescriptor_ed9cadf202f12b1d, []int{2}
-}
-func (m *SendGroupMsgReq) XXX_Unmarshal(b []byte) error {
- return m.Unmarshal(b)
-}
-func (m *SendGroupMsgReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- if deterministic {
- return xxx_messageInfo_SendGroupMsgReq.Marshal(b, m, deterministic)
- } else {
- b = b[:cap(b)]
- n, err := m.MarshalToSizedBuffer(b)
- if err != nil {
- return nil, err
- }
- return b[:n], nil
+func (x *SendGroupMsgReq) Reset() {
+ *x = SendGroupMsgReq{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_onebot_api_proto_msgTypes[2]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
}
}
-func (m *SendGroupMsgReq) XXX_Merge(src proto.Message) {
- xxx_messageInfo_SendGroupMsgReq.Merge(m, src)
-}
-func (m *SendGroupMsgReq) XXX_Size() int {
- return m.Size()
+
+func (x *SendGroupMsgReq) String() string {
+ return protoimpl.X.MessageStringOf(x)
}
-func (m *SendGroupMsgReq) XXX_DiscardUnknown() {
- xxx_messageInfo_SendGroupMsgReq.DiscardUnknown(m)
+
+func (*SendGroupMsgReq) ProtoMessage() {}
+
+func (x *SendGroupMsgReq) ProtoReflect() protoreflect.Message {
+ mi := &file_onebot_api_proto_msgTypes[2]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
}
-var xxx_messageInfo_SendGroupMsgReq proto.InternalMessageInfo
+// Deprecated: Use SendGroupMsgReq.ProtoReflect.Descriptor instead.
+func (*SendGroupMsgReq) Descriptor() ([]byte, []int) {
+ return file_onebot_api_proto_rawDescGZIP(), []int{2}
+}
-func (m *SendGroupMsgReq) GetGroupId() int64 {
- if m != nil {
- return m.GroupId
+func (x *SendGroupMsgReq) GetGroupId() int64 {
+ if x != nil {
+ return x.GroupId
}
return 0
}
-func (m *SendGroupMsgReq) GetMessage() []*Message {
- if m != nil {
- return m.Message
+func (x *SendGroupMsgReq) GetMessage() []*Message {
+ if x != nil {
+ return x.Message
}
return nil
}
-func (m *SendGroupMsgReq) GetAutoEscape() bool {
- if m != nil {
- return m.AutoEscape
+func (x *SendGroupMsgReq) GetAutoEscape() bool {
+ if x != nil {
+ return x.AutoEscape
}
return false
}
type SendGroupMsgResp struct {
- // int32 message_id = 1; // 废弃
- MessageId *MessageReceipt `protobuf:"bytes,2,opt,name=message_id,json=messageId,proto3" json:"message_id,omitempty"`
- XXX_NoUnkeyedLiteral struct{} `json:"-"`
- XXX_unrecognized []byte `json:"-"`
- XXX_sizecache int32 `json:"-"`
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ MessageId int32 `protobuf:"varint,1,opt,name=message_id,json=messageId,proto3" json:"message_id,omitempty"`
+ MessageReceipt *MessageReceipt `protobuf:"bytes,2,opt,name=message_receipt,json=messageReceipt,proto3" json:"message_receipt,omitempty"`
}
-func (m *SendGroupMsgResp) Reset() { *m = SendGroupMsgResp{} }
-func (m *SendGroupMsgResp) String() string { return proto.CompactTextString(m) }
-func (*SendGroupMsgResp) ProtoMessage() {}
-func (*SendGroupMsgResp) Descriptor() ([]byte, []int) {
- return fileDescriptor_ed9cadf202f12b1d, []int{3}
-}
-func (m *SendGroupMsgResp) XXX_Unmarshal(b []byte) error {
- return m.Unmarshal(b)
-}
-func (m *SendGroupMsgResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- if deterministic {
- return xxx_messageInfo_SendGroupMsgResp.Marshal(b, m, deterministic)
- } else {
- b = b[:cap(b)]
- n, err := m.MarshalToSizedBuffer(b)
- if err != nil {
- return nil, err
- }
- return b[:n], nil
+func (x *SendGroupMsgResp) Reset() {
+ *x = SendGroupMsgResp{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_onebot_api_proto_msgTypes[3]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
}
}
-func (m *SendGroupMsgResp) XXX_Merge(src proto.Message) {
- xxx_messageInfo_SendGroupMsgResp.Merge(m, src)
-}
-func (m *SendGroupMsgResp) XXX_Size() int {
- return m.Size()
+
+func (x *SendGroupMsgResp) String() string {
+ return protoimpl.X.MessageStringOf(x)
}
-func (m *SendGroupMsgResp) XXX_DiscardUnknown() {
- xxx_messageInfo_SendGroupMsgResp.DiscardUnknown(m)
+
+func (*SendGroupMsgResp) ProtoMessage() {}
+
+func (x *SendGroupMsgResp) ProtoReflect() protoreflect.Message {
+ mi := &file_onebot_api_proto_msgTypes[3]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
}
-var xxx_messageInfo_SendGroupMsgResp proto.InternalMessageInfo
+// Deprecated: Use SendGroupMsgResp.ProtoReflect.Descriptor instead.
+func (*SendGroupMsgResp) Descriptor() ([]byte, []int) {
+ return file_onebot_api_proto_rawDescGZIP(), []int{3}
+}
-func (m *SendGroupMsgResp) GetMessageId() *MessageReceipt {
- if m != nil {
- return m.MessageId
+func (x *SendGroupMsgResp) GetMessageId() int32 {
+ if x != nil {
+ return x.MessageId
}
- return nil
+ return 0
}
-type SendMsgReq struct {
- MessageType string `protobuf:"bytes,1,opt,name=message_type,json=messageType,proto3" json:"message_type,omitempty"`
- UserId int64 `protobuf:"varint,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
- GroupId int64 `protobuf:"varint,3,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty"`
- Message []*Message `protobuf:"bytes,4,rep,name=message,proto3" json:"message,omitempty"`
- AutoEscape bool `protobuf:"varint,5,opt,name=auto_escape,json=autoEscape,proto3" json:"auto_escape,omitempty"`
- XXX_NoUnkeyedLiteral struct{} `json:"-"`
- XXX_unrecognized []byte `json:"-"`
- XXX_sizecache int32 `json:"-"`
-}
-
-func (m *SendMsgReq) Reset() { *m = SendMsgReq{} }
-func (m *SendMsgReq) String() string { return proto.CompactTextString(m) }
-func (*SendMsgReq) ProtoMessage() {}
-func (*SendMsgReq) Descriptor() ([]byte, []int) {
- return fileDescriptor_ed9cadf202f12b1d, []int{4}
-}
-func (m *SendMsgReq) XXX_Unmarshal(b []byte) error {
- return m.Unmarshal(b)
-}
-func (m *SendMsgReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- if deterministic {
- return xxx_messageInfo_SendMsgReq.Marshal(b, m, deterministic)
- } else {
- b = b[:cap(b)]
- n, err := m.MarshalToSizedBuffer(b)
- if err != nil {
- return nil, err
- }
- return b[:n], nil
+func (x *SendGroupMsgResp) GetMessageReceipt() *MessageReceipt {
+ if x != nil {
+ return x.MessageReceipt
}
+ return nil
}
-func (m *SendMsgReq) XXX_Merge(src proto.Message) {
- xxx_messageInfo_SendMsgReq.Merge(m, src)
+
+type SendChannelMsgReq struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ GuildId uint64 `protobuf:"varint,1,opt,name=guild_id,json=guildId,proto3" json:"guild_id,omitempty"`
+ ChannelId uint64 `protobuf:"varint,2,opt,name=channel_id,json=channelId,proto3" json:"channel_id,omitempty"`
+ Message []*Message `protobuf:"bytes,3,rep,name=message,proto3" json:"message,omitempty"`
+ AutoEscape bool `protobuf:"varint,4,opt,name=auto_escape,json=autoEscape,proto3" json:"auto_escape,omitempty"`
}
-func (m *SendMsgReq) XXX_Size() int {
- return m.Size()
+
+func (x *SendChannelMsgReq) Reset() {
+ *x = SendChannelMsgReq{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_onebot_api_proto_msgTypes[4]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
}
-func (m *SendMsgReq) XXX_DiscardUnknown() {
- xxx_messageInfo_SendMsgReq.DiscardUnknown(m)
+
+func (x *SendChannelMsgReq) String() string {
+ return protoimpl.X.MessageStringOf(x)
}
-var xxx_messageInfo_SendMsgReq proto.InternalMessageInfo
+func (*SendChannelMsgReq) ProtoMessage() {}
-func (m *SendMsgReq) GetMessageType() string {
- if m != nil {
- return m.MessageType
+func (x *SendChannelMsgReq) ProtoReflect() protoreflect.Message {
+ mi := &file_onebot_api_proto_msgTypes[4]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
}
- return ""
+ return mi.MessageOf(x)
+}
+
+// Deprecated: Use SendChannelMsgReq.ProtoReflect.Descriptor instead.
+func (*SendChannelMsgReq) Descriptor() ([]byte, []int) {
+ return file_onebot_api_proto_rawDescGZIP(), []int{4}
}
-func (m *SendMsgReq) GetUserId() int64 {
- if m != nil {
- return m.UserId
+func (x *SendChannelMsgReq) GetGuildId() uint64 {
+ if x != nil {
+ return x.GuildId
}
return 0
}
-func (m *SendMsgReq) GetGroupId() int64 {
- if m != nil {
- return m.GroupId
+func (x *SendChannelMsgReq) GetChannelId() uint64 {
+ if x != nil {
+ return x.ChannelId
}
return 0
}
-func (m *SendMsgReq) GetMessage() []*Message {
- if m != nil {
- return m.Message
+func (x *SendChannelMsgReq) GetMessage() []*Message {
+ if x != nil {
+ return x.Message
}
return nil
}
-func (m *SendMsgReq) GetAutoEscape() bool {
- if m != nil {
- return m.AutoEscape
+func (x *SendChannelMsgReq) GetAutoEscape() bool {
+ if x != nil {
+ return x.AutoEscape
}
return false
}
-type SendMsgResp struct {
- // int32 message_id = 1; // 废弃
- MessageId *MessageReceipt `protobuf:"bytes,2,opt,name=message_id,json=messageId,proto3" json:"message_id,omitempty"`
- XXX_NoUnkeyedLiteral struct{} `json:"-"`
- XXX_unrecognized []byte `json:"-"`
- XXX_sizecache int32 `json:"-"`
+type SendChannelMsgResp struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ MessageId uint64 `protobuf:"varint,1,opt,name=message_id,json=messageId,proto3" json:"message_id,omitempty"`
}
-func (m *SendMsgResp) Reset() { *m = SendMsgResp{} }
-func (m *SendMsgResp) String() string { return proto.CompactTextString(m) }
-func (*SendMsgResp) ProtoMessage() {}
-func (*SendMsgResp) Descriptor() ([]byte, []int) {
- return fileDescriptor_ed9cadf202f12b1d, []int{5}
-}
-func (m *SendMsgResp) XXX_Unmarshal(b []byte) error {
- return m.Unmarshal(b)
-}
-func (m *SendMsgResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- if deterministic {
- return xxx_messageInfo_SendMsgResp.Marshal(b, m, deterministic)
- } else {
- b = b[:cap(b)]
- n, err := m.MarshalToSizedBuffer(b)
- if err != nil {
- return nil, err
- }
- return b[:n], nil
+func (x *SendChannelMsgResp) Reset() {
+ *x = SendChannelMsgResp{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_onebot_api_proto_msgTypes[5]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
}
}
-func (m *SendMsgResp) XXX_Merge(src proto.Message) {
- xxx_messageInfo_SendMsgResp.Merge(m, src)
-}
-func (m *SendMsgResp) XXX_Size() int {
- return m.Size()
-}
-func (m *SendMsgResp) XXX_DiscardUnknown() {
- xxx_messageInfo_SendMsgResp.DiscardUnknown(m)
+
+func (x *SendChannelMsgResp) String() string {
+ return protoimpl.X.MessageStringOf(x)
}
-var xxx_messageInfo_SendMsgResp proto.InternalMessageInfo
+func (*SendChannelMsgResp) ProtoMessage() {}
-func (m *SendMsgResp) GetMessageId() *MessageReceipt {
- if m != nil {
- return m.MessageId
+func (x *SendChannelMsgResp) ProtoReflect() protoreflect.Message {
+ mi := &file_onebot_api_proto_msgTypes[5]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
}
- return nil
+ return mi.MessageOf(x)
}
-type DeleteMsgReq struct {
- // int32 message_id = 1; // 废弃
- MessageId *MessageReceipt `protobuf:"bytes,2,opt,name=message_id,json=messageId,proto3" json:"message_id,omitempty"`
- XXX_NoUnkeyedLiteral struct{} `json:"-"`
- XXX_unrecognized []byte `json:"-"`
- XXX_sizecache int32 `json:"-"`
+// Deprecated: Use SendChannelMsgResp.ProtoReflect.Descriptor instead.
+func (*SendChannelMsgResp) Descriptor() ([]byte, []int) {
+ return file_onebot_api_proto_rawDescGZIP(), []int{5}
}
-func (m *DeleteMsgReq) Reset() { *m = DeleteMsgReq{} }
-func (m *DeleteMsgReq) String() string { return proto.CompactTextString(m) }
-func (*DeleteMsgReq) ProtoMessage() {}
-func (*DeleteMsgReq) Descriptor() ([]byte, []int) {
- return fileDescriptor_ed9cadf202f12b1d, []int{6}
-}
-func (m *DeleteMsgReq) XXX_Unmarshal(b []byte) error {
- return m.Unmarshal(b)
-}
-func (m *DeleteMsgReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- if deterministic {
- return xxx_messageInfo_DeleteMsgReq.Marshal(b, m, deterministic)
- } else {
- b = b[:cap(b)]
- n, err := m.MarshalToSizedBuffer(b)
- if err != nil {
- return nil, err
- }
- return b[:n], nil
+func (x *SendChannelMsgResp) GetMessageId() uint64 {
+ if x != nil {
+ return x.MessageId
}
+ return 0
}
-func (m *DeleteMsgReq) XXX_Merge(src proto.Message) {
- xxx_messageInfo_DeleteMsgReq.Merge(m, src)
+
+type SendMsgReq struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ MessageType string `protobuf:"bytes,1,opt,name=message_type,json=messageType,proto3" json:"message_type,omitempty"`
+ UserId int64 `protobuf:"varint,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
+ GroupId int64 `protobuf:"varint,3,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty"`
+ Message []*Message `protobuf:"bytes,4,rep,name=message,proto3" json:"message,omitempty"`
+ AutoEscape bool `protobuf:"varint,5,opt,name=auto_escape,json=autoEscape,proto3" json:"auto_escape,omitempty"`
}
-func (m *DeleteMsgReq) XXX_Size() int {
- return m.Size()
+
+func (x *SendMsgReq) Reset() {
+ *x = SendMsgReq{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_onebot_api_proto_msgTypes[6]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
}
-func (m *DeleteMsgReq) XXX_DiscardUnknown() {
- xxx_messageInfo_DeleteMsgReq.DiscardUnknown(m)
+
+func (x *SendMsgReq) String() string {
+ return protoimpl.X.MessageStringOf(x)
}
-var xxx_messageInfo_DeleteMsgReq proto.InternalMessageInfo
+func (*SendMsgReq) ProtoMessage() {}
-func (m *DeleteMsgReq) GetMessageId() *MessageReceipt {
- if m != nil {
- return m.MessageId
+func (x *SendMsgReq) ProtoReflect() protoreflect.Message {
+ mi := &file_onebot_api_proto_msgTypes[6]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
}
- return nil
+ return mi.MessageOf(x)
}
-type DeleteMsgResp struct {
- XXX_NoUnkeyedLiteral struct{} `json:"-"`
- XXX_unrecognized []byte `json:"-"`
- XXX_sizecache int32 `json:"-"`
+// Deprecated: Use SendMsgReq.ProtoReflect.Descriptor instead.
+func (*SendMsgReq) Descriptor() ([]byte, []int) {
+ return file_onebot_api_proto_rawDescGZIP(), []int{6}
}
-func (m *DeleteMsgResp) Reset() { *m = DeleteMsgResp{} }
-func (m *DeleteMsgResp) String() string { return proto.CompactTextString(m) }
-func (*DeleteMsgResp) ProtoMessage() {}
-func (*DeleteMsgResp) Descriptor() ([]byte, []int) {
- return fileDescriptor_ed9cadf202f12b1d, []int{7}
-}
-func (m *DeleteMsgResp) XXX_Unmarshal(b []byte) error {
- return m.Unmarshal(b)
-}
-func (m *DeleteMsgResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- if deterministic {
- return xxx_messageInfo_DeleteMsgResp.Marshal(b, m, deterministic)
- } else {
- b = b[:cap(b)]
- n, err := m.MarshalToSizedBuffer(b)
- if err != nil {
- return nil, err
- }
- return b[:n], nil
+func (x *SendMsgReq) GetMessageType() string {
+ if x != nil {
+ return x.MessageType
}
+ return ""
+}
+
+func (x *SendMsgReq) GetUserId() int64 {
+ if x != nil {
+ return x.UserId
+ }
+ return 0
}
-func (m *DeleteMsgResp) XXX_Merge(src proto.Message) {
- xxx_messageInfo_DeleteMsgResp.Merge(m, src)
+
+func (x *SendMsgReq) GetGroupId() int64 {
+ if x != nil {
+ return x.GroupId
+ }
+ return 0
}
-func (m *DeleteMsgResp) XXX_Size() int {
- return m.Size()
+
+func (x *SendMsgReq) GetMessage() []*Message {
+ if x != nil {
+ return x.Message
+ }
+ return nil
}
-func (m *DeleteMsgResp) XXX_DiscardUnknown() {
- xxx_messageInfo_DeleteMsgResp.DiscardUnknown(m)
+
+func (x *SendMsgReq) GetAutoEscape() bool {
+ if x != nil {
+ return x.AutoEscape
+ }
+ return false
}
-var xxx_messageInfo_DeleteMsgResp proto.InternalMessageInfo
+type SendMsgResp struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
-type GetMsgReq struct {
- MessageId int32 `protobuf:"varint,1,opt,name=message_id,json=messageId,proto3" json:"message_id,omitempty"`
- XXX_NoUnkeyedLiteral struct{} `json:"-"`
- XXX_unrecognized []byte `json:"-"`
- XXX_sizecache int32 `json:"-"`
+ MessageId int32 `protobuf:"varint,1,opt,name=message_id,json=messageId,proto3" json:"message_id,omitempty"`
+ MessageReceipt *MessageReceipt `protobuf:"bytes,2,opt,name=message_receipt,json=messageReceipt,proto3" json:"message_receipt,omitempty"`
}
-func (m *GetMsgReq) Reset() { *m = GetMsgReq{} }
-func (m *GetMsgReq) String() string { return proto.CompactTextString(m) }
-func (*GetMsgReq) ProtoMessage() {}
-func (*GetMsgReq) Descriptor() ([]byte, []int) {
- return fileDescriptor_ed9cadf202f12b1d, []int{8}
-}
-func (m *GetMsgReq) XXX_Unmarshal(b []byte) error {
- return m.Unmarshal(b)
-}
-func (m *GetMsgReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- if deterministic {
- return xxx_messageInfo_GetMsgReq.Marshal(b, m, deterministic)
- } else {
- b = b[:cap(b)]
- n, err := m.MarshalToSizedBuffer(b)
- if err != nil {
- return nil, err
- }
- return b[:n], nil
+func (x *SendMsgResp) Reset() {
+ *x = SendMsgResp{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_onebot_api_proto_msgTypes[7]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
}
}
-func (m *GetMsgReq) XXX_Merge(src proto.Message) {
- xxx_messageInfo_GetMsgReq.Merge(m, src)
-}
-func (m *GetMsgReq) XXX_Size() int {
- return m.Size()
+
+func (x *SendMsgResp) String() string {
+ return protoimpl.X.MessageStringOf(x)
}
-func (m *GetMsgReq) XXX_DiscardUnknown() {
- xxx_messageInfo_GetMsgReq.DiscardUnknown(m)
+
+func (*SendMsgResp) ProtoMessage() {}
+
+func (x *SendMsgResp) ProtoReflect() protoreflect.Message {
+ mi := &file_onebot_api_proto_msgTypes[7]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
}
-var xxx_messageInfo_GetMsgReq proto.InternalMessageInfo
+// Deprecated: Use SendMsgResp.ProtoReflect.Descriptor instead.
+func (*SendMsgResp) Descriptor() ([]byte, []int) {
+ return file_onebot_api_proto_rawDescGZIP(), []int{7}
+}
-func (m *GetMsgReq) GetMessageId() int32 {
- if m != nil {
- return m.MessageId
+func (x *SendMsgResp) GetMessageId() int32 {
+ if x != nil {
+ return x.MessageId
}
return 0
}
-type GetMsgResp struct {
- Time int32 `protobuf:"varint,1,opt,name=time,proto3" json:"time,omitempty"`
- MessageType string `protobuf:"bytes,2,opt,name=message_type,json=messageType,proto3" json:"message_type,omitempty"`
- MessageId int32 `protobuf:"varint,3,opt,name=message_id,json=messageId,proto3" json:"message_id,omitempty"`
- RealId int32 `protobuf:"varint,4,opt,name=real_id,json=realId,proto3" json:"real_id,omitempty"`
- Sender *GetMsgResp_Sender `protobuf:"bytes,5,opt,name=sender,proto3" json:"sender,omitempty"`
- Message []*Message `protobuf:"bytes,6,rep,name=message,proto3" json:"message,omitempty"`
- RawMessage string `protobuf:"bytes,7,opt,name=raw_message,json=rawMessage,proto3" json:"raw_message,omitempty"`
- XXX_NoUnkeyedLiteral struct{} `json:"-"`
- XXX_unrecognized []byte `json:"-"`
- XXX_sizecache int32 `json:"-"`
-}
-
-func (m *GetMsgResp) Reset() { *m = GetMsgResp{} }
-func (m *GetMsgResp) String() string { return proto.CompactTextString(m) }
-func (*GetMsgResp) ProtoMessage() {}
-func (*GetMsgResp) Descriptor() ([]byte, []int) {
- return fileDescriptor_ed9cadf202f12b1d, []int{9}
-}
-func (m *GetMsgResp) XXX_Unmarshal(b []byte) error {
- return m.Unmarshal(b)
-}
-func (m *GetMsgResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- if deterministic {
- return xxx_messageInfo_GetMsgResp.Marshal(b, m, deterministic)
- } else {
- b = b[:cap(b)]
- n, err := m.MarshalToSizedBuffer(b)
- if err != nil {
- return nil, err
- }
- return b[:n], nil
+func (x *SendMsgResp) GetMessageReceipt() *MessageReceipt {
+ if x != nil {
+ return x.MessageReceipt
}
+ return nil
}
-func (m *GetMsgResp) XXX_Merge(src proto.Message) {
- xxx_messageInfo_GetMsgResp.Merge(m, src)
+
+type DeleteMsgReq struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ MessageId int32 `protobuf:"varint,1,opt,name=message_id,json=messageId,proto3" json:"message_id,omitempty"`
+ MessageReceipt *MessageReceipt `protobuf:"bytes,2,opt,name=message_receipt,json=messageReceipt,proto3" json:"message_receipt,omitempty"`
}
-func (m *GetMsgResp) XXX_Size() int {
- return m.Size()
+
+func (x *DeleteMsgReq) Reset() {
+ *x = DeleteMsgReq{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_onebot_api_proto_msgTypes[8]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
}
-func (m *GetMsgResp) XXX_DiscardUnknown() {
- xxx_messageInfo_GetMsgResp.DiscardUnknown(m)
+
+func (x *DeleteMsgReq) String() string {
+ return protoimpl.X.MessageStringOf(x)
}
-var xxx_messageInfo_GetMsgResp proto.InternalMessageInfo
+func (*DeleteMsgReq) ProtoMessage() {}
-func (m *GetMsgResp) GetTime() int32 {
- if m != nil {
- return m.Time
+func (x *DeleteMsgReq) ProtoReflect() protoreflect.Message {
+ mi := &file_onebot_api_proto_msgTypes[8]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
}
- return 0
+ return mi.MessageOf(x)
}
-func (m *GetMsgResp) GetMessageType() string {
- if m != nil {
- return m.MessageType
- }
- return ""
+// Deprecated: Use DeleteMsgReq.ProtoReflect.Descriptor instead.
+func (*DeleteMsgReq) Descriptor() ([]byte, []int) {
+ return file_onebot_api_proto_rawDescGZIP(), []int{8}
}
-func (m *GetMsgResp) GetMessageId() int32 {
- if m != nil {
- return m.MessageId
+func (x *DeleteMsgReq) GetMessageId() int32 {
+ if x != nil {
+ return x.MessageId
}
return 0
}
-func (m *GetMsgResp) GetRealId() int32 {
- if m != nil {
- return m.RealId
+func (x *DeleteMsgReq) GetMessageReceipt() *MessageReceipt {
+ if x != nil {
+ return x.MessageReceipt
}
- return 0
+ return nil
}
-func (m *GetMsgResp) GetSender() *GetMsgResp_Sender {
- if m != nil {
- return m.Sender
- }
- return nil
+type DeleteMsgResp struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
}
-func (m *GetMsgResp) GetMessage() []*Message {
- if m != nil {
- return m.Message
+func (x *DeleteMsgResp) Reset() {
+ *x = DeleteMsgResp{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_onebot_api_proto_msgTypes[9]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
}
- return nil
}
-func (m *GetMsgResp) GetRawMessage() string {
- if m != nil {
- return m.RawMessage
- }
- return ""
+func (x *DeleteMsgResp) String() string {
+ return protoimpl.X.MessageStringOf(x)
}
-type GetMsgResp_Sender struct {
- UserId int64 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
- Nickname string `protobuf:"bytes,2,opt,name=nickname,proto3" json:"nickname,omitempty"`
- Card string `protobuf:"bytes,3,opt,name=card,proto3" json:"card,omitempty"`
- Sex string `protobuf:"bytes,4,opt,name=sex,proto3" json:"sex,omitempty"`
- Age int32 `protobuf:"varint,5,opt,name=age,proto3" json:"age,omitempty"`
- Area string `protobuf:"bytes,6,opt,name=area,proto3" json:"area,omitempty"`
- Level string `protobuf:"bytes,7,opt,name=level,proto3" json:"level,omitempty"`
- Role string `protobuf:"bytes,8,opt,name=role,proto3" json:"role,omitempty"`
- Title string `protobuf:"bytes,9,opt,name=title,proto3" json:"title,omitempty"`
- XXX_NoUnkeyedLiteral struct{} `json:"-"`
- XXX_unrecognized []byte `json:"-"`
- XXX_sizecache int32 `json:"-"`
-}
-
-func (m *GetMsgResp_Sender) Reset() { *m = GetMsgResp_Sender{} }
-func (m *GetMsgResp_Sender) String() string { return proto.CompactTextString(m) }
-func (*GetMsgResp_Sender) ProtoMessage() {}
-func (*GetMsgResp_Sender) Descriptor() ([]byte, []int) {
- return fileDescriptor_ed9cadf202f12b1d, []int{9, 0}
-}
-func (m *GetMsgResp_Sender) XXX_Unmarshal(b []byte) error {
- return m.Unmarshal(b)
-}
-func (m *GetMsgResp_Sender) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- if deterministic {
- return xxx_messageInfo_GetMsgResp_Sender.Marshal(b, m, deterministic)
- } else {
- b = b[:cap(b)]
- n, err := m.MarshalToSizedBuffer(b)
- if err != nil {
- return nil, err
+func (*DeleteMsgResp) ProtoMessage() {}
+
+func (x *DeleteMsgResp) ProtoReflect() protoreflect.Message {
+ mi := &file_onebot_api_proto_msgTypes[9]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
}
- return b[:n], nil
+ return ms
}
+ return mi.MessageOf(x)
+}
+
+// Deprecated: Use DeleteMsgResp.ProtoReflect.Descriptor instead.
+func (*DeleteMsgResp) Descriptor() ([]byte, []int) {
+ return file_onebot_api_proto_rawDescGZIP(), []int{9}
+}
+
+type GetMsgReq struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ MessageId int32 `protobuf:"varint,1,opt,name=message_id,json=messageId,proto3" json:"message_id,omitempty"`
}
-func (m *GetMsgResp_Sender) XXX_Merge(src proto.Message) {
- xxx_messageInfo_GetMsgResp_Sender.Merge(m, src)
+
+func (x *GetMsgReq) Reset() {
+ *x = GetMsgReq{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_onebot_api_proto_msgTypes[10]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
}
-func (m *GetMsgResp_Sender) XXX_Size() int {
- return m.Size()
+
+func (x *GetMsgReq) String() string {
+ return protoimpl.X.MessageStringOf(x)
}
-func (m *GetMsgResp_Sender) XXX_DiscardUnknown() {
- xxx_messageInfo_GetMsgResp_Sender.DiscardUnknown(m)
+
+func (*GetMsgReq) ProtoMessage() {}
+
+func (x *GetMsgReq) ProtoReflect() protoreflect.Message {
+ mi := &file_onebot_api_proto_msgTypes[10]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
}
-var xxx_messageInfo_GetMsgResp_Sender proto.InternalMessageInfo
+// Deprecated: Use GetMsgReq.ProtoReflect.Descriptor instead.
+func (*GetMsgReq) Descriptor() ([]byte, []int) {
+ return file_onebot_api_proto_rawDescGZIP(), []int{10}
+}
-func (m *GetMsgResp_Sender) GetUserId() int64 {
- if m != nil {
- return m.UserId
+func (x *GetMsgReq) GetMessageId() int32 {
+ if x != nil {
+ return x.MessageId
}
return 0
}
-func (m *GetMsgResp_Sender) GetNickname() string {
- if m != nil {
- return m.Nickname
+type GetMsgResp struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ Time int32 `protobuf:"varint,1,opt,name=time,proto3" json:"time,omitempty"`
+ MessageType string `protobuf:"bytes,2,opt,name=message_type,json=messageType,proto3" json:"message_type,omitempty"`
+ MessageId int32 `protobuf:"varint,3,opt,name=message_id,json=messageId,proto3" json:"message_id,omitempty"`
+ RealId int32 `protobuf:"varint,4,opt,name=real_id,json=realId,proto3" json:"real_id,omitempty"`
+ Sender *GetMsgResp_Sender `protobuf:"bytes,5,opt,name=sender,proto3" json:"sender,omitempty"`
+ Message []*Message `protobuf:"bytes,6,rep,name=message,proto3" json:"message,omitempty"`
+ RawMessage string `protobuf:"bytes,7,opt,name=raw_message,json=rawMessage,proto3" json:"raw_message,omitempty"`
+}
+
+func (x *GetMsgResp) Reset() {
+ *x = GetMsgResp{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_onebot_api_proto_msgTypes[11]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
}
- return ""
}
-func (m *GetMsgResp_Sender) GetCard() string {
- if m != nil {
- return m.Card
+func (x *GetMsgResp) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*GetMsgResp) ProtoMessage() {}
+
+func (x *GetMsgResp) ProtoReflect() protoreflect.Message {
+ mi := &file_onebot_api_proto_msgTypes[11]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
}
- return ""
+ return mi.MessageOf(x)
+}
+
+// Deprecated: Use GetMsgResp.ProtoReflect.Descriptor instead.
+func (*GetMsgResp) Descriptor() ([]byte, []int) {
+ return file_onebot_api_proto_rawDescGZIP(), []int{11}
+}
+
+func (x *GetMsgResp) GetTime() int32 {
+ if x != nil {
+ return x.Time
+ }
+ return 0
}
-func (m *GetMsgResp_Sender) GetSex() string {
- if m != nil {
- return m.Sex
+func (x *GetMsgResp) GetMessageType() string {
+ if x != nil {
+ return x.MessageType
}
return ""
}
-func (m *GetMsgResp_Sender) GetAge() int32 {
- if m != nil {
- return m.Age
+func (x *GetMsgResp) GetMessageId() int32 {
+ if x != nil {
+ return x.MessageId
}
return 0
}
-func (m *GetMsgResp_Sender) GetArea() string {
- if m != nil {
- return m.Area
+func (x *GetMsgResp) GetRealId() int32 {
+ if x != nil {
+ return x.RealId
}
- return ""
+ return 0
}
-func (m *GetMsgResp_Sender) GetLevel() string {
- if m != nil {
- return m.Level
+func (x *GetMsgResp) GetSender() *GetMsgResp_Sender {
+ if x != nil {
+ return x.Sender
}
- return ""
+ return nil
}
-func (m *GetMsgResp_Sender) GetRole() string {
- if m != nil {
- return m.Role
+func (x *GetMsgResp) GetMessage() []*Message {
+ if x != nil {
+ return x.Message
}
- return ""
+ return nil
}
-func (m *GetMsgResp_Sender) GetTitle() string {
- if m != nil {
- return m.Title
+func (x *GetMsgResp) GetRawMessage() string {
+ if x != nil {
+ return x.RawMessage
}
return ""
}
// TODO 暂时不支持
type GetForwardMsgReq 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:"-"`
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
}
-func (m *GetForwardMsgReq) Reset() { *m = GetForwardMsgReq{} }
-func (m *GetForwardMsgReq) String() string { return proto.CompactTextString(m) }
-func (*GetForwardMsgReq) ProtoMessage() {}
-func (*GetForwardMsgReq) Descriptor() ([]byte, []int) {
- return fileDescriptor_ed9cadf202f12b1d, []int{10}
-}
-func (m *GetForwardMsgReq) XXX_Unmarshal(b []byte) error {
- return m.Unmarshal(b)
-}
-func (m *GetForwardMsgReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- if deterministic {
- return xxx_messageInfo_GetForwardMsgReq.Marshal(b, m, deterministic)
- } else {
- b = b[:cap(b)]
- n, err := m.MarshalToSizedBuffer(b)
- if err != nil {
- return nil, err
- }
- return b[:n], nil
+func (x *GetForwardMsgReq) Reset() {
+ *x = GetForwardMsgReq{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_onebot_api_proto_msgTypes[12]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
}
}
-func (m *GetForwardMsgReq) XXX_Merge(src proto.Message) {
- xxx_messageInfo_GetForwardMsgReq.Merge(m, src)
-}
-func (m *GetForwardMsgReq) XXX_Size() int {
- return m.Size()
+
+func (x *GetForwardMsgReq) String() string {
+ return protoimpl.X.MessageStringOf(x)
}
-func (m *GetForwardMsgReq) XXX_DiscardUnknown() {
- xxx_messageInfo_GetForwardMsgReq.DiscardUnknown(m)
+
+func (*GetForwardMsgReq) ProtoMessage() {}
+
+func (x *GetForwardMsgReq) ProtoReflect() protoreflect.Message {
+ mi := &file_onebot_api_proto_msgTypes[12]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
}
-var xxx_messageInfo_GetForwardMsgReq proto.InternalMessageInfo
+// Deprecated: Use GetForwardMsgReq.ProtoReflect.Descriptor instead.
+func (*GetForwardMsgReq) Descriptor() ([]byte, []int) {
+ return file_onebot_api_proto_rawDescGZIP(), []int{12}
+}
-func (m *GetForwardMsgReq) GetId() string {
- if m != nil {
- return m.Id
+func (x *GetForwardMsgReq) GetId() string {
+ if x != nil {
+ return x.Id
}
return ""
}
type GetForwardMsgResp struct {
- XXX_NoUnkeyedLiteral struct{} `json:"-"`
- XXX_unrecognized []byte `json:"-"`
- XXX_sizecache int32 `json:"-"`
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
}
-func (m *GetForwardMsgResp) Reset() { *m = GetForwardMsgResp{} }
-func (m *GetForwardMsgResp) String() string { return proto.CompactTextString(m) }
-func (*GetForwardMsgResp) ProtoMessage() {}
-func (*GetForwardMsgResp) Descriptor() ([]byte, []int) {
- return fileDescriptor_ed9cadf202f12b1d, []int{11}
-}
-func (m *GetForwardMsgResp) XXX_Unmarshal(b []byte) error {
- return m.Unmarshal(b)
-}
-func (m *GetForwardMsgResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- if deterministic {
- return xxx_messageInfo_GetForwardMsgResp.Marshal(b, m, deterministic)
- } else {
- b = b[:cap(b)]
- n, err := m.MarshalToSizedBuffer(b)
- if err != nil {
- return nil, err
- }
- return b[:n], nil
+func (x *GetForwardMsgResp) Reset() {
+ *x = GetForwardMsgResp{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_onebot_api_proto_msgTypes[13]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
}
}
-func (m *GetForwardMsgResp) XXX_Merge(src proto.Message) {
- xxx_messageInfo_GetForwardMsgResp.Merge(m, src)
-}
-func (m *GetForwardMsgResp) XXX_Size() int {
- return m.Size()
+
+func (x *GetForwardMsgResp) String() string {
+ return protoimpl.X.MessageStringOf(x)
}
-func (m *GetForwardMsgResp) XXX_DiscardUnknown() {
- xxx_messageInfo_GetForwardMsgResp.DiscardUnknown(m)
+
+func (*GetForwardMsgResp) ProtoMessage() {}
+
+func (x *GetForwardMsgResp) ProtoReflect() protoreflect.Message {
+ mi := &file_onebot_api_proto_msgTypes[13]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
}
-var xxx_messageInfo_GetForwardMsgResp proto.InternalMessageInfo
+// Deprecated: Use GetForwardMsgResp.ProtoReflect.Descriptor instead.
+func (*GetForwardMsgResp) Descriptor() ([]byte, []int) {
+ return file_onebot_api_proto_rawDescGZIP(), []int{13}
+}
type SendLikeReq struct {
- UserId int64 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
- Times int32 `protobuf:"varint,2,opt,name=times,proto3" json:"times,omitempty"`
- XXX_NoUnkeyedLiteral struct{} `json:"-"`
- XXX_unrecognized []byte `json:"-"`
- XXX_sizecache int32 `json:"-"`
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ UserId int64 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
+ Times int32 `protobuf:"varint,2,opt,name=times,proto3" json:"times,omitempty"`
}
-func (m *SendLikeReq) Reset() { *m = SendLikeReq{} }
-func (m *SendLikeReq) String() string { return proto.CompactTextString(m) }
-func (*SendLikeReq) ProtoMessage() {}
-func (*SendLikeReq) Descriptor() ([]byte, []int) {
- return fileDescriptor_ed9cadf202f12b1d, []int{12}
-}
-func (m *SendLikeReq) XXX_Unmarshal(b []byte) error {
- return m.Unmarshal(b)
-}
-func (m *SendLikeReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- if deterministic {
- return xxx_messageInfo_SendLikeReq.Marshal(b, m, deterministic)
- } else {
- b = b[:cap(b)]
- n, err := m.MarshalToSizedBuffer(b)
- if err != nil {
- return nil, err
- }
- return b[:n], nil
+func (x *SendLikeReq) Reset() {
+ *x = SendLikeReq{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_onebot_api_proto_msgTypes[14]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
}
}
-func (m *SendLikeReq) XXX_Merge(src proto.Message) {
- xxx_messageInfo_SendLikeReq.Merge(m, src)
-}
-func (m *SendLikeReq) XXX_Size() int {
- return m.Size()
+
+func (x *SendLikeReq) String() string {
+ return protoimpl.X.MessageStringOf(x)
}
-func (m *SendLikeReq) XXX_DiscardUnknown() {
- xxx_messageInfo_SendLikeReq.DiscardUnknown(m)
+
+func (*SendLikeReq) ProtoMessage() {}
+
+func (x *SendLikeReq) ProtoReflect() protoreflect.Message {
+ mi := &file_onebot_api_proto_msgTypes[14]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
}
-var xxx_messageInfo_SendLikeReq proto.InternalMessageInfo
+// Deprecated: Use SendLikeReq.ProtoReflect.Descriptor instead.
+func (*SendLikeReq) Descriptor() ([]byte, []int) {
+ return file_onebot_api_proto_rawDescGZIP(), []int{14}
+}
-func (m *SendLikeReq) GetUserId() int64 {
- if m != nil {
- return m.UserId
+func (x *SendLikeReq) GetUserId() int64 {
+ if x != nil {
+ return x.UserId
}
return 0
}
-func (m *SendLikeReq) GetTimes() int32 {
- if m != nil {
- return m.Times
+func (x *SendLikeReq) GetTimes() int32 {
+ if x != nil {
+ return x.Times
}
return 0
}
type SendLikeResp struct {
- XXX_NoUnkeyedLiteral struct{} `json:"-"`
- XXX_unrecognized []byte `json:"-"`
- XXX_sizecache int32 `json:"-"`
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
}
-func (m *SendLikeResp) Reset() { *m = SendLikeResp{} }
-func (m *SendLikeResp) String() string { return proto.CompactTextString(m) }
-func (*SendLikeResp) ProtoMessage() {}
-func (*SendLikeResp) Descriptor() ([]byte, []int) {
- return fileDescriptor_ed9cadf202f12b1d, []int{13}
-}
-func (m *SendLikeResp) XXX_Unmarshal(b []byte) error {
- return m.Unmarshal(b)
-}
-func (m *SendLikeResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- if deterministic {
- return xxx_messageInfo_SendLikeResp.Marshal(b, m, deterministic)
- } else {
- b = b[:cap(b)]
- n, err := m.MarshalToSizedBuffer(b)
- if err != nil {
- return nil, err
- }
- return b[:n], nil
+func (x *SendLikeResp) Reset() {
+ *x = SendLikeResp{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_onebot_api_proto_msgTypes[15]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
}
}
-func (m *SendLikeResp) XXX_Merge(src proto.Message) {
- xxx_messageInfo_SendLikeResp.Merge(m, src)
-}
-func (m *SendLikeResp) XXX_Size() int {
- return m.Size()
-}
-func (m *SendLikeResp) XXX_DiscardUnknown() {
- xxx_messageInfo_SendLikeResp.DiscardUnknown(m)
+
+func (x *SendLikeResp) String() string {
+ return protoimpl.X.MessageStringOf(x)
}
-var xxx_messageInfo_SendLikeResp proto.InternalMessageInfo
+func (*SendLikeResp) ProtoMessage() {}
-type SetGroupKickReq struct {
- GroupId int64 `protobuf:"varint,1,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty"`
- UserId int64 `protobuf:"varint,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
- RejectAddRequest bool `protobuf:"varint,3,opt,name=reject_add_request,json=rejectAddRequest,proto3" json:"reject_add_request,omitempty"`
- UserIds []int64 `protobuf:"varint,4,rep,packed,name=user_ids,json=userIds,proto3" json:"user_ids,omitempty"`
- XXX_NoUnkeyedLiteral struct{} `json:"-"`
- XXX_unrecognized []byte `json:"-"`
- XXX_sizecache int32 `json:"-"`
-}
-
-func (m *SetGroupKickReq) Reset() { *m = SetGroupKickReq{} }
-func (m *SetGroupKickReq) String() string { return proto.CompactTextString(m) }
-func (*SetGroupKickReq) ProtoMessage() {}
-func (*SetGroupKickReq) Descriptor() ([]byte, []int) {
- return fileDescriptor_ed9cadf202f12b1d, []int{14}
-}
-func (m *SetGroupKickReq) XXX_Unmarshal(b []byte) error {
- return m.Unmarshal(b)
-}
-func (m *SetGroupKickReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- if deterministic {
- return xxx_messageInfo_SetGroupKickReq.Marshal(b, m, deterministic)
- } else {
- b = b[:cap(b)]
- n, err := m.MarshalToSizedBuffer(b)
- if err != nil {
- return nil, err
+func (x *SendLikeResp) ProtoReflect() protoreflect.Message {
+ mi := &file_onebot_api_proto_msgTypes[15]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
}
- return b[:n], nil
+ return ms
}
+ return mi.MessageOf(x)
+}
+
+// Deprecated: Use SendLikeResp.ProtoReflect.Descriptor instead.
+func (*SendLikeResp) Descriptor() ([]byte, []int) {
+ return file_onebot_api_proto_rawDescGZIP(), []int{15}
+}
+
+type SetGroupKickReq struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ GroupId int64 `protobuf:"varint,1,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty"`
+ UserId int64 `protobuf:"varint,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
+ RejectAddRequest bool `protobuf:"varint,3,opt,name=reject_add_request,json=rejectAddRequest,proto3" json:"reject_add_request,omitempty"`
+ UserIds []int64 `protobuf:"varint,4,rep,packed,name=user_ids,json=userIds,proto3" json:"user_ids,omitempty"`
}
-func (m *SetGroupKickReq) XXX_Merge(src proto.Message) {
- xxx_messageInfo_SetGroupKickReq.Merge(m, src)
+
+func (x *SetGroupKickReq) Reset() {
+ *x = SetGroupKickReq{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_onebot_api_proto_msgTypes[16]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
}
-func (m *SetGroupKickReq) XXX_Size() int {
- return m.Size()
+
+func (x *SetGroupKickReq) String() string {
+ return protoimpl.X.MessageStringOf(x)
}
-func (m *SetGroupKickReq) XXX_DiscardUnknown() {
- xxx_messageInfo_SetGroupKickReq.DiscardUnknown(m)
+
+func (*SetGroupKickReq) ProtoMessage() {}
+
+func (x *SetGroupKickReq) ProtoReflect() protoreflect.Message {
+ mi := &file_onebot_api_proto_msgTypes[16]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
}
-var xxx_messageInfo_SetGroupKickReq proto.InternalMessageInfo
+// Deprecated: Use SetGroupKickReq.ProtoReflect.Descriptor instead.
+func (*SetGroupKickReq) Descriptor() ([]byte, []int) {
+ return file_onebot_api_proto_rawDescGZIP(), []int{16}
+}
-func (m *SetGroupKickReq) GetGroupId() int64 {
- if m != nil {
- return m.GroupId
+func (x *SetGroupKickReq) GetGroupId() int64 {
+ if x != nil {
+ return x.GroupId
}
return 0
}
-func (m *SetGroupKickReq) GetUserId() int64 {
- if m != nil {
- return m.UserId
+func (x *SetGroupKickReq) GetUserId() int64 {
+ if x != nil {
+ return x.UserId
}
return 0
}
-func (m *SetGroupKickReq) GetRejectAddRequest() bool {
- if m != nil {
- return m.RejectAddRequest
+func (x *SetGroupKickReq) GetRejectAddRequest() bool {
+ if x != nil {
+ return x.RejectAddRequest
}
return false
}
-func (m *SetGroupKickReq) GetUserIds() []int64 {
- if m != nil {
- return m.UserIds
+func (x *SetGroupKickReq) GetUserIds() []int64 {
+ if x != nil {
+ return x.UserIds
}
return nil
}
type SetGroupKickResp struct {
- XXX_NoUnkeyedLiteral struct{} `json:"-"`
- XXX_unrecognized []byte `json:"-"`
- XXX_sizecache int32 `json:"-"`
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
}
-func (m *SetGroupKickResp) Reset() { *m = SetGroupKickResp{} }
-func (m *SetGroupKickResp) String() string { return proto.CompactTextString(m) }
-func (*SetGroupKickResp) ProtoMessage() {}
-func (*SetGroupKickResp) Descriptor() ([]byte, []int) {
- return fileDescriptor_ed9cadf202f12b1d, []int{15}
-}
-func (m *SetGroupKickResp) XXX_Unmarshal(b []byte) error {
- return m.Unmarshal(b)
-}
-func (m *SetGroupKickResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- if deterministic {
- return xxx_messageInfo_SetGroupKickResp.Marshal(b, m, deterministic)
- } else {
- b = b[:cap(b)]
- n, err := m.MarshalToSizedBuffer(b)
- if err != nil {
- return nil, err
- }
- return b[:n], nil
+func (x *SetGroupKickResp) Reset() {
+ *x = SetGroupKickResp{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_onebot_api_proto_msgTypes[17]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
}
}
-func (m *SetGroupKickResp) XXX_Merge(src proto.Message) {
- xxx_messageInfo_SetGroupKickResp.Merge(m, src)
-}
-func (m *SetGroupKickResp) XXX_Size() int {
- return m.Size()
+
+func (x *SetGroupKickResp) String() string {
+ return protoimpl.X.MessageStringOf(x)
}
-func (m *SetGroupKickResp) XXX_DiscardUnknown() {
- xxx_messageInfo_SetGroupKickResp.DiscardUnknown(m)
+
+func (*SetGroupKickResp) ProtoMessage() {}
+
+func (x *SetGroupKickResp) ProtoReflect() protoreflect.Message {
+ mi := &file_onebot_api_proto_msgTypes[17]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
}
-var xxx_messageInfo_SetGroupKickResp proto.InternalMessageInfo
+// Deprecated: Use SetGroupKickResp.ProtoReflect.Descriptor instead.
+func (*SetGroupKickResp) Descriptor() ([]byte, []int) {
+ return file_onebot_api_proto_rawDescGZIP(), []int{17}
+}
type SetGroupBanReq struct {
- GroupId int64 `protobuf:"varint,1,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty"`
- UserId int64 `protobuf:"varint,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
- Duration int32 `protobuf:"varint,3,opt,name=duration,proto3" json:"duration,omitempty"`
- XXX_NoUnkeyedLiteral struct{} `json:"-"`
- XXX_unrecognized []byte `json:"-"`
- XXX_sizecache int32 `json:"-"`
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ GroupId int64 `protobuf:"varint,1,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty"`
+ UserId int64 `protobuf:"varint,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
+ Duration int32 `protobuf:"varint,3,opt,name=duration,proto3" json:"duration,omitempty"`
}
-func (m *SetGroupBanReq) Reset() { *m = SetGroupBanReq{} }
-func (m *SetGroupBanReq) String() string { return proto.CompactTextString(m) }
-func (*SetGroupBanReq) ProtoMessage() {}
-func (*SetGroupBanReq) Descriptor() ([]byte, []int) {
- return fileDescriptor_ed9cadf202f12b1d, []int{16}
-}
-func (m *SetGroupBanReq) XXX_Unmarshal(b []byte) error {
- return m.Unmarshal(b)
-}
-func (m *SetGroupBanReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- if deterministic {
- return xxx_messageInfo_SetGroupBanReq.Marshal(b, m, deterministic)
- } else {
- b = b[:cap(b)]
- n, err := m.MarshalToSizedBuffer(b)
- if err != nil {
- return nil, err
- }
- return b[:n], nil
+func (x *SetGroupBanReq) Reset() {
+ *x = SetGroupBanReq{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_onebot_api_proto_msgTypes[18]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
}
}
-func (m *SetGroupBanReq) XXX_Merge(src proto.Message) {
- xxx_messageInfo_SetGroupBanReq.Merge(m, src)
-}
-func (m *SetGroupBanReq) XXX_Size() int {
- return m.Size()
+
+func (x *SetGroupBanReq) String() string {
+ return protoimpl.X.MessageStringOf(x)
}
-func (m *SetGroupBanReq) XXX_DiscardUnknown() {
- xxx_messageInfo_SetGroupBanReq.DiscardUnknown(m)
+
+func (*SetGroupBanReq) ProtoMessage() {}
+
+func (x *SetGroupBanReq) ProtoReflect() protoreflect.Message {
+ mi := &file_onebot_api_proto_msgTypes[18]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
}
-var xxx_messageInfo_SetGroupBanReq proto.InternalMessageInfo
+// Deprecated: Use SetGroupBanReq.ProtoReflect.Descriptor instead.
+func (*SetGroupBanReq) Descriptor() ([]byte, []int) {
+ return file_onebot_api_proto_rawDescGZIP(), []int{18}
+}
-func (m *SetGroupBanReq) GetGroupId() int64 {
- if m != nil {
- return m.GroupId
+func (x *SetGroupBanReq) GetGroupId() int64 {
+ if x != nil {
+ return x.GroupId
}
return 0
}
-func (m *SetGroupBanReq) GetUserId() int64 {
- if m != nil {
- return m.UserId
+func (x *SetGroupBanReq) GetUserId() int64 {
+ if x != nil {
+ return x.UserId
}
return 0
}
-func (m *SetGroupBanReq) GetDuration() int32 {
- if m != nil {
- return m.Duration
+func (x *SetGroupBanReq) GetDuration() int32 {
+ if x != nil {
+ return x.Duration
}
return 0
}
type SetGroupBanResp struct {
- XXX_NoUnkeyedLiteral struct{} `json:"-"`
- XXX_unrecognized []byte `json:"-"`
- XXX_sizecache int32 `json:"-"`
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
}
-func (m *SetGroupBanResp) Reset() { *m = SetGroupBanResp{} }
-func (m *SetGroupBanResp) String() string { return proto.CompactTextString(m) }
-func (*SetGroupBanResp) ProtoMessage() {}
-func (*SetGroupBanResp) Descriptor() ([]byte, []int) {
- return fileDescriptor_ed9cadf202f12b1d, []int{17}
-}
-func (m *SetGroupBanResp) XXX_Unmarshal(b []byte) error {
- return m.Unmarshal(b)
-}
-func (m *SetGroupBanResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- if deterministic {
- return xxx_messageInfo_SetGroupBanResp.Marshal(b, m, deterministic)
- } else {
- b = b[:cap(b)]
- n, err := m.MarshalToSizedBuffer(b)
- if err != nil {
- return nil, err
- }
- return b[:n], nil
+func (x *SetGroupBanResp) Reset() {
+ *x = SetGroupBanResp{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_onebot_api_proto_msgTypes[19]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
}
}
-func (m *SetGroupBanResp) XXX_Merge(src proto.Message) {
- xxx_messageInfo_SetGroupBanResp.Merge(m, src)
-}
-func (m *SetGroupBanResp) XXX_Size() int {
- return m.Size()
-}
-func (m *SetGroupBanResp) XXX_DiscardUnknown() {
- xxx_messageInfo_SetGroupBanResp.DiscardUnknown(m)
+
+func (x *SetGroupBanResp) String() string {
+ return protoimpl.X.MessageStringOf(x)
}
-var xxx_messageInfo_SetGroupBanResp proto.InternalMessageInfo
+func (*SetGroupBanResp) ProtoMessage() {}
-type SetGroupAnonymousBanReq struct {
- GroupId int64 `protobuf:"varint,1,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty"`
- Anonymous *SetGroupAnonymousBanReq_Anonymous `protobuf:"bytes,2,opt,name=anonymous,proto3" json:"anonymous,omitempty"`
- AnonymousFlag string `protobuf:"bytes,3,opt,name=anonymous_flag,json=anonymousFlag,proto3" json:"anonymous_flag,omitempty"`
- Flag string `protobuf:"bytes,4,opt,name=flag,proto3" json:"flag,omitempty"`
- Duration int64 `protobuf:"varint,5,opt,name=duration,proto3" json:"duration,omitempty"`
- XXX_NoUnkeyedLiteral struct{} `json:"-"`
- XXX_unrecognized []byte `json:"-"`
- XXX_sizecache int32 `json:"-"`
-}
-
-func (m *SetGroupAnonymousBanReq) Reset() { *m = SetGroupAnonymousBanReq{} }
-func (m *SetGroupAnonymousBanReq) String() string { return proto.CompactTextString(m) }
-func (*SetGroupAnonymousBanReq) ProtoMessage() {}
-func (*SetGroupAnonymousBanReq) Descriptor() ([]byte, []int) {
- return fileDescriptor_ed9cadf202f12b1d, []int{18}
-}
-func (m *SetGroupAnonymousBanReq) XXX_Unmarshal(b []byte) error {
- return m.Unmarshal(b)
-}
-func (m *SetGroupAnonymousBanReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- if deterministic {
- return xxx_messageInfo_SetGroupAnonymousBanReq.Marshal(b, m, deterministic)
- } else {
- b = b[:cap(b)]
- n, err := m.MarshalToSizedBuffer(b)
- if err != nil {
- return nil, err
+func (x *SetGroupBanResp) ProtoReflect() protoreflect.Message {
+ mi := &file_onebot_api_proto_msgTypes[19]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
}
- return b[:n], nil
+ return ms
}
+ return mi.MessageOf(x)
+}
+
+// Deprecated: Use SetGroupBanResp.ProtoReflect.Descriptor instead.
+func (*SetGroupBanResp) Descriptor() ([]byte, []int) {
+ return file_onebot_api_proto_rawDescGZIP(), []int{19}
+}
+
+type SetGroupAnonymousBanReq struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ GroupId int64 `protobuf:"varint,1,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty"`
+ Anonymous *SetGroupAnonymousBanReq_Anonymous `protobuf:"bytes,2,opt,name=anonymous,proto3" json:"anonymous,omitempty"`
+ AnonymousFlag string `protobuf:"bytes,3,opt,name=anonymous_flag,json=anonymousFlag,proto3" json:"anonymous_flag,omitempty"`
+ Flag string `protobuf:"bytes,4,opt,name=flag,proto3" json:"flag,omitempty"`
+ Duration int64 `protobuf:"varint,5,opt,name=duration,proto3" json:"duration,omitempty"`
}
-func (m *SetGroupAnonymousBanReq) XXX_Merge(src proto.Message) {
- xxx_messageInfo_SetGroupAnonymousBanReq.Merge(m, src)
+
+func (x *SetGroupAnonymousBanReq) Reset() {
+ *x = SetGroupAnonymousBanReq{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_onebot_api_proto_msgTypes[20]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
}
-func (m *SetGroupAnonymousBanReq) XXX_Size() int {
- return m.Size()
+
+func (x *SetGroupAnonymousBanReq) String() string {
+ return protoimpl.X.MessageStringOf(x)
}
-func (m *SetGroupAnonymousBanReq) XXX_DiscardUnknown() {
- xxx_messageInfo_SetGroupAnonymousBanReq.DiscardUnknown(m)
+
+func (*SetGroupAnonymousBanReq) ProtoMessage() {}
+
+func (x *SetGroupAnonymousBanReq) ProtoReflect() protoreflect.Message {
+ mi := &file_onebot_api_proto_msgTypes[20]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
}
-var xxx_messageInfo_SetGroupAnonymousBanReq proto.InternalMessageInfo
+// Deprecated: Use SetGroupAnonymousBanReq.ProtoReflect.Descriptor instead.
+func (*SetGroupAnonymousBanReq) Descriptor() ([]byte, []int) {
+ return file_onebot_api_proto_rawDescGZIP(), []int{20}
+}
-func (m *SetGroupAnonymousBanReq) GetGroupId() int64 {
- if m != nil {
- return m.GroupId
+func (x *SetGroupAnonymousBanReq) GetGroupId() int64 {
+ if x != nil {
+ return x.GroupId
}
return 0
}
-func (m *SetGroupAnonymousBanReq) GetAnonymous() *SetGroupAnonymousBanReq_Anonymous {
- if m != nil {
- return m.Anonymous
+func (x *SetGroupAnonymousBanReq) GetAnonymous() *SetGroupAnonymousBanReq_Anonymous {
+ if x != nil {
+ return x.Anonymous
}
return nil
}
-func (m *SetGroupAnonymousBanReq) GetAnonymousFlag() string {
- if m != nil {
- return m.AnonymousFlag
+func (x *SetGroupAnonymousBanReq) GetAnonymousFlag() string {
+ if x != nil {
+ return x.AnonymousFlag
}
return ""
}
-func (m *SetGroupAnonymousBanReq) GetFlag() string {
- if m != nil {
- return m.Flag
+func (x *SetGroupAnonymousBanReq) GetFlag() string {
+ if x != nil {
+ return x.Flag
}
return ""
}
-func (m *SetGroupAnonymousBanReq) GetDuration() int64 {
- if m != nil {
- return m.Duration
+func (x *SetGroupAnonymousBanReq) GetDuration() int64 {
+ if x != nil {
+ return x.Duration
}
return 0
}
-type SetGroupAnonymousBanReq_Anonymous struct {
- Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
- Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
- Flag string `protobuf:"bytes,3,opt,name=flag,proto3" json:"flag,omitempty"`
- XXX_NoUnkeyedLiteral struct{} `json:"-"`
- XXX_unrecognized []byte `json:"-"`
- XXX_sizecache int32 `json:"-"`
+type SetGroupAnonymousBanResp struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
}
-func (m *SetGroupAnonymousBanReq_Anonymous) Reset() { *m = SetGroupAnonymousBanReq_Anonymous{} }
-func (m *SetGroupAnonymousBanReq_Anonymous) String() string { return proto.CompactTextString(m) }
-func (*SetGroupAnonymousBanReq_Anonymous) ProtoMessage() {}
-func (*SetGroupAnonymousBanReq_Anonymous) Descriptor() ([]byte, []int) {
- return fileDescriptor_ed9cadf202f12b1d, []int{18, 0}
-}
-func (m *SetGroupAnonymousBanReq_Anonymous) XXX_Unmarshal(b []byte) error {
- return m.Unmarshal(b)
-}
-func (m *SetGroupAnonymousBanReq_Anonymous) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- if deterministic {
- return xxx_messageInfo_SetGroupAnonymousBanReq_Anonymous.Marshal(b, m, deterministic)
- } else {
- b = b[:cap(b)]
- n, err := m.MarshalToSizedBuffer(b)
- if err != nil {
- return nil, err
- }
- return b[:n], nil
+func (x *SetGroupAnonymousBanResp) Reset() {
+ *x = SetGroupAnonymousBanResp{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_onebot_api_proto_msgTypes[21]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
}
}
-func (m *SetGroupAnonymousBanReq_Anonymous) XXX_Merge(src proto.Message) {
- xxx_messageInfo_SetGroupAnonymousBanReq_Anonymous.Merge(m, src)
-}
-func (m *SetGroupAnonymousBanReq_Anonymous) XXX_Size() int {
- return m.Size()
-}
-func (m *SetGroupAnonymousBanReq_Anonymous) XXX_DiscardUnknown() {
- xxx_messageInfo_SetGroupAnonymousBanReq_Anonymous.DiscardUnknown(m)
+
+func (x *SetGroupAnonymousBanResp) String() string {
+ return protoimpl.X.MessageStringOf(x)
}
-var xxx_messageInfo_SetGroupAnonymousBanReq_Anonymous proto.InternalMessageInfo
+func (*SetGroupAnonymousBanResp) ProtoMessage() {}
-func (m *SetGroupAnonymousBanReq_Anonymous) GetId() int64 {
- if m != nil {
- return m.Id
+func (x *SetGroupAnonymousBanResp) ProtoReflect() protoreflect.Message {
+ mi := &file_onebot_api_proto_msgTypes[21]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
}
- return 0
+ return mi.MessageOf(x)
}
-func (m *SetGroupAnonymousBanReq_Anonymous) GetName() string {
- if m != nil {
- return m.Name
- }
- return ""
+// Deprecated: Use SetGroupAnonymousBanResp.ProtoReflect.Descriptor instead.
+func (*SetGroupAnonymousBanResp) Descriptor() ([]byte, []int) {
+ return file_onebot_api_proto_rawDescGZIP(), []int{21}
}
-func (m *SetGroupAnonymousBanReq_Anonymous) GetFlag() string {
- if m != nil {
- return m.Flag
- }
- return ""
-}
+type SetGroupWholeBanReq struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
-type SetGroupAnonymousBanResp struct {
- XXX_NoUnkeyedLiteral struct{} `json:"-"`
- XXX_unrecognized []byte `json:"-"`
- XXX_sizecache int32 `json:"-"`
+ GroupId int64 `protobuf:"varint,1,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty"`
+ Enable bool `protobuf:"varint,2,opt,name=enable,proto3" json:"enable,omitempty"`
}
-func (m *SetGroupAnonymousBanResp) Reset() { *m = SetGroupAnonymousBanResp{} }
-func (m *SetGroupAnonymousBanResp) String() string { return proto.CompactTextString(m) }
-func (*SetGroupAnonymousBanResp) ProtoMessage() {}
-func (*SetGroupAnonymousBanResp) Descriptor() ([]byte, []int) {
- return fileDescriptor_ed9cadf202f12b1d, []int{19}
-}
-func (m *SetGroupAnonymousBanResp) XXX_Unmarshal(b []byte) error {
- return m.Unmarshal(b)
-}
-func (m *SetGroupAnonymousBanResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- if deterministic {
- return xxx_messageInfo_SetGroupAnonymousBanResp.Marshal(b, m, deterministic)
- } else {
- b = b[:cap(b)]
- n, err := m.MarshalToSizedBuffer(b)
- if err != nil {
- return nil, err
- }
- return b[:n], nil
+func (x *SetGroupWholeBanReq) Reset() {
+ *x = SetGroupWholeBanReq{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_onebot_api_proto_msgTypes[22]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
}
}
-func (m *SetGroupAnonymousBanResp) XXX_Merge(src proto.Message) {
- xxx_messageInfo_SetGroupAnonymousBanResp.Merge(m, src)
-}
-func (m *SetGroupAnonymousBanResp) XXX_Size() int {
- return m.Size()
-}
-func (m *SetGroupAnonymousBanResp) XXX_DiscardUnknown() {
- xxx_messageInfo_SetGroupAnonymousBanResp.DiscardUnknown(m)
-}
-var xxx_messageInfo_SetGroupAnonymousBanResp proto.InternalMessageInfo
-
-type SetGroupWholeBanReq struct {
- GroupId int64 `protobuf:"varint,1,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty"`
- Enable bool `protobuf:"varint,2,opt,name=enable,proto3" json:"enable,omitempty"`
- XXX_NoUnkeyedLiteral struct{} `json:"-"`
- XXX_unrecognized []byte `json:"-"`
- XXX_sizecache int32 `json:"-"`
+func (x *SetGroupWholeBanReq) String() string {
+ return protoimpl.X.MessageStringOf(x)
}
-func (m *SetGroupWholeBanReq) Reset() { *m = SetGroupWholeBanReq{} }
-func (m *SetGroupWholeBanReq) String() string { return proto.CompactTextString(m) }
-func (*SetGroupWholeBanReq) ProtoMessage() {}
-func (*SetGroupWholeBanReq) Descriptor() ([]byte, []int) {
- return fileDescriptor_ed9cadf202f12b1d, []int{20}
-}
-func (m *SetGroupWholeBanReq) XXX_Unmarshal(b []byte) error {
- return m.Unmarshal(b)
-}
-func (m *SetGroupWholeBanReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- if deterministic {
- return xxx_messageInfo_SetGroupWholeBanReq.Marshal(b, m, deterministic)
- } else {
- b = b[:cap(b)]
- n, err := m.MarshalToSizedBuffer(b)
- if err != nil {
- return nil, err
+func (*SetGroupWholeBanReq) ProtoMessage() {}
+
+func (x *SetGroupWholeBanReq) ProtoReflect() protoreflect.Message {
+ mi := &file_onebot_api_proto_msgTypes[22]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
}
- return b[:n], nil
+ return ms
}
-}
-func (m *SetGroupWholeBanReq) XXX_Merge(src proto.Message) {
- xxx_messageInfo_SetGroupWholeBanReq.Merge(m, src)
-}
-func (m *SetGroupWholeBanReq) XXX_Size() int {
- return m.Size()
-}
-func (m *SetGroupWholeBanReq) XXX_DiscardUnknown() {
- xxx_messageInfo_SetGroupWholeBanReq.DiscardUnknown(m)
+ return mi.MessageOf(x)
}
-var xxx_messageInfo_SetGroupWholeBanReq proto.InternalMessageInfo
+// Deprecated: Use SetGroupWholeBanReq.ProtoReflect.Descriptor instead.
+func (*SetGroupWholeBanReq) Descriptor() ([]byte, []int) {
+ return file_onebot_api_proto_rawDescGZIP(), []int{22}
+}
-func (m *SetGroupWholeBanReq) GetGroupId() int64 {
- if m != nil {
- return m.GroupId
+func (x *SetGroupWholeBanReq) GetGroupId() int64 {
+ if x != nil {
+ return x.GroupId
}
return 0
}
-func (m *SetGroupWholeBanReq) GetEnable() bool {
- if m != nil {
- return m.Enable
+func (x *SetGroupWholeBanReq) GetEnable() bool {
+ if x != nil {
+ return x.Enable
}
return false
}
type SetGroupWholeBanResp struct {
- XXX_NoUnkeyedLiteral struct{} `json:"-"`
- XXX_unrecognized []byte `json:"-"`
- XXX_sizecache int32 `json:"-"`
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
}
-func (m *SetGroupWholeBanResp) Reset() { *m = SetGroupWholeBanResp{} }
-func (m *SetGroupWholeBanResp) String() string { return proto.CompactTextString(m) }
-func (*SetGroupWholeBanResp) ProtoMessage() {}
-func (*SetGroupWholeBanResp) Descriptor() ([]byte, []int) {
- return fileDescriptor_ed9cadf202f12b1d, []int{21}
-}
-func (m *SetGroupWholeBanResp) XXX_Unmarshal(b []byte) error {
- return m.Unmarshal(b)
-}
-func (m *SetGroupWholeBanResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- if deterministic {
- return xxx_messageInfo_SetGroupWholeBanResp.Marshal(b, m, deterministic)
- } else {
- b = b[:cap(b)]
- n, err := m.MarshalToSizedBuffer(b)
- if err != nil {
- return nil, err
- }
- return b[:n], nil
+func (x *SetGroupWholeBanResp) Reset() {
+ *x = SetGroupWholeBanResp{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_onebot_api_proto_msgTypes[23]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
}
}
-func (m *SetGroupWholeBanResp) XXX_Merge(src proto.Message) {
- xxx_messageInfo_SetGroupWholeBanResp.Merge(m, src)
-}
-func (m *SetGroupWholeBanResp) XXX_Size() int {
- return m.Size()
+
+func (x *SetGroupWholeBanResp) String() string {
+ return protoimpl.X.MessageStringOf(x)
}
-func (m *SetGroupWholeBanResp) XXX_DiscardUnknown() {
- xxx_messageInfo_SetGroupWholeBanResp.DiscardUnknown(m)
+
+func (*SetGroupWholeBanResp) ProtoMessage() {}
+
+func (x *SetGroupWholeBanResp) ProtoReflect() protoreflect.Message {
+ mi := &file_onebot_api_proto_msgTypes[23]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
}
-var xxx_messageInfo_SetGroupWholeBanResp proto.InternalMessageInfo
+// Deprecated: Use SetGroupWholeBanResp.ProtoReflect.Descriptor instead.
+func (*SetGroupWholeBanResp) Descriptor() ([]byte, []int) {
+ return file_onebot_api_proto_rawDescGZIP(), []int{23}
+}
type SetGroupAdminReq struct {
- GroupId int64 `protobuf:"varint,1,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty"`
- UserId int64 `protobuf:"varint,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
- Enable bool `protobuf:"varint,3,opt,name=enable,proto3" json:"enable,omitempty"`
- XXX_NoUnkeyedLiteral struct{} `json:"-"`
- XXX_unrecognized []byte `json:"-"`
- XXX_sizecache int32 `json:"-"`
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ GroupId int64 `protobuf:"varint,1,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty"`
+ UserId int64 `protobuf:"varint,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
+ Enable bool `protobuf:"varint,3,opt,name=enable,proto3" json:"enable,omitempty"`
}
-func (m *SetGroupAdminReq) Reset() { *m = SetGroupAdminReq{} }
-func (m *SetGroupAdminReq) String() string { return proto.CompactTextString(m) }
-func (*SetGroupAdminReq) ProtoMessage() {}
-func (*SetGroupAdminReq) Descriptor() ([]byte, []int) {
- return fileDescriptor_ed9cadf202f12b1d, []int{22}
-}
-func (m *SetGroupAdminReq) XXX_Unmarshal(b []byte) error {
- return m.Unmarshal(b)
-}
-func (m *SetGroupAdminReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- if deterministic {
- return xxx_messageInfo_SetGroupAdminReq.Marshal(b, m, deterministic)
- } else {
- b = b[:cap(b)]
- n, err := m.MarshalToSizedBuffer(b)
- if err != nil {
- return nil, err
- }
- return b[:n], nil
+func (x *SetGroupAdminReq) Reset() {
+ *x = SetGroupAdminReq{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_onebot_api_proto_msgTypes[24]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
}
}
-func (m *SetGroupAdminReq) XXX_Merge(src proto.Message) {
- xxx_messageInfo_SetGroupAdminReq.Merge(m, src)
-}
-func (m *SetGroupAdminReq) XXX_Size() int {
- return m.Size()
+
+func (x *SetGroupAdminReq) String() string {
+ return protoimpl.X.MessageStringOf(x)
}
-func (m *SetGroupAdminReq) XXX_DiscardUnknown() {
- xxx_messageInfo_SetGroupAdminReq.DiscardUnknown(m)
+
+func (*SetGroupAdminReq) ProtoMessage() {}
+
+func (x *SetGroupAdminReq) ProtoReflect() protoreflect.Message {
+ mi := &file_onebot_api_proto_msgTypes[24]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
}
-var xxx_messageInfo_SetGroupAdminReq proto.InternalMessageInfo
+// Deprecated: Use SetGroupAdminReq.ProtoReflect.Descriptor instead.
+func (*SetGroupAdminReq) Descriptor() ([]byte, []int) {
+ return file_onebot_api_proto_rawDescGZIP(), []int{24}
+}
-func (m *SetGroupAdminReq) GetGroupId() int64 {
- if m != nil {
- return m.GroupId
+func (x *SetGroupAdminReq) GetGroupId() int64 {
+ if x != nil {
+ return x.GroupId
}
return 0
}
-func (m *SetGroupAdminReq) GetUserId() int64 {
- if m != nil {
- return m.UserId
+func (x *SetGroupAdminReq) GetUserId() int64 {
+ if x != nil {
+ return x.UserId
}
return 0
}
-func (m *SetGroupAdminReq) GetEnable() bool {
- if m != nil {
- return m.Enable
+func (x *SetGroupAdminReq) GetEnable() bool {
+ if x != nil {
+ return x.Enable
}
return false
}
type SetGroupAdminResp struct {
- XXX_NoUnkeyedLiteral struct{} `json:"-"`
- XXX_unrecognized []byte `json:"-"`
- XXX_sizecache int32 `json:"-"`
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
}
-func (m *SetGroupAdminResp) Reset() { *m = SetGroupAdminResp{} }
-func (m *SetGroupAdminResp) String() string { return proto.CompactTextString(m) }
-func (*SetGroupAdminResp) ProtoMessage() {}
-func (*SetGroupAdminResp) Descriptor() ([]byte, []int) {
- return fileDescriptor_ed9cadf202f12b1d, []int{23}
-}
-func (m *SetGroupAdminResp) XXX_Unmarshal(b []byte) error {
- return m.Unmarshal(b)
-}
-func (m *SetGroupAdminResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- if deterministic {
- return xxx_messageInfo_SetGroupAdminResp.Marshal(b, m, deterministic)
- } else {
- b = b[:cap(b)]
- n, err := m.MarshalToSizedBuffer(b)
- if err != nil {
- return nil, err
- }
- return b[:n], nil
+func (x *SetGroupAdminResp) Reset() {
+ *x = SetGroupAdminResp{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_onebot_api_proto_msgTypes[25]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
}
}
-func (m *SetGroupAdminResp) XXX_Merge(src proto.Message) {
- xxx_messageInfo_SetGroupAdminResp.Merge(m, src)
-}
-func (m *SetGroupAdminResp) XXX_Size() int {
- return m.Size()
+
+func (x *SetGroupAdminResp) String() string {
+ return protoimpl.X.MessageStringOf(x)
}
-func (m *SetGroupAdminResp) XXX_DiscardUnknown() {
- xxx_messageInfo_SetGroupAdminResp.DiscardUnknown(m)
+
+func (*SetGroupAdminResp) ProtoMessage() {}
+
+func (x *SetGroupAdminResp) ProtoReflect() protoreflect.Message {
+ mi := &file_onebot_api_proto_msgTypes[25]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
}
-var xxx_messageInfo_SetGroupAdminResp proto.InternalMessageInfo
+// Deprecated: Use SetGroupAdminResp.ProtoReflect.Descriptor instead.
+func (*SetGroupAdminResp) Descriptor() ([]byte, []int) {
+ return file_onebot_api_proto_rawDescGZIP(), []int{25}
+}
type SetGroupAnonymousReq struct {
- GroupId int64 `protobuf:"varint,1,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty"`
- Enable bool `protobuf:"varint,2,opt,name=enable,proto3" json:"enable,omitempty"`
- XXX_NoUnkeyedLiteral struct{} `json:"-"`
- XXX_unrecognized []byte `json:"-"`
- XXX_sizecache int32 `json:"-"`
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ GroupId int64 `protobuf:"varint,1,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty"`
+ Enable bool `protobuf:"varint,2,opt,name=enable,proto3" json:"enable,omitempty"`
}
-func (m *SetGroupAnonymousReq) Reset() { *m = SetGroupAnonymousReq{} }
-func (m *SetGroupAnonymousReq) String() string { return proto.CompactTextString(m) }
-func (*SetGroupAnonymousReq) ProtoMessage() {}
-func (*SetGroupAnonymousReq) Descriptor() ([]byte, []int) {
- return fileDescriptor_ed9cadf202f12b1d, []int{24}
-}
-func (m *SetGroupAnonymousReq) XXX_Unmarshal(b []byte) error {
- return m.Unmarshal(b)
-}
-func (m *SetGroupAnonymousReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- if deterministic {
- return xxx_messageInfo_SetGroupAnonymousReq.Marshal(b, m, deterministic)
- } else {
- b = b[:cap(b)]
- n, err := m.MarshalToSizedBuffer(b)
- if err != nil {
- return nil, err
- }
- return b[:n], nil
+func (x *SetGroupAnonymousReq) Reset() {
+ *x = SetGroupAnonymousReq{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_onebot_api_proto_msgTypes[26]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
}
}
-func (m *SetGroupAnonymousReq) XXX_Merge(src proto.Message) {
- xxx_messageInfo_SetGroupAnonymousReq.Merge(m, src)
-}
-func (m *SetGroupAnonymousReq) XXX_Size() int {
- return m.Size()
+
+func (x *SetGroupAnonymousReq) String() string {
+ return protoimpl.X.MessageStringOf(x)
}
-func (m *SetGroupAnonymousReq) XXX_DiscardUnknown() {
- xxx_messageInfo_SetGroupAnonymousReq.DiscardUnknown(m)
+
+func (*SetGroupAnonymousReq) ProtoMessage() {}
+
+func (x *SetGroupAnonymousReq) ProtoReflect() protoreflect.Message {
+ mi := &file_onebot_api_proto_msgTypes[26]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
}
-var xxx_messageInfo_SetGroupAnonymousReq proto.InternalMessageInfo
+// Deprecated: Use SetGroupAnonymousReq.ProtoReflect.Descriptor instead.
+func (*SetGroupAnonymousReq) Descriptor() ([]byte, []int) {
+ return file_onebot_api_proto_rawDescGZIP(), []int{26}
+}
-func (m *SetGroupAnonymousReq) GetGroupId() int64 {
- if m != nil {
- return m.GroupId
+func (x *SetGroupAnonymousReq) GetGroupId() int64 {
+ if x != nil {
+ return x.GroupId
}
return 0
}
-func (m *SetGroupAnonymousReq) GetEnable() bool {
- if m != nil {
- return m.Enable
+func (x *SetGroupAnonymousReq) GetEnable() bool {
+ if x != nil {
+ return x.Enable
}
return false
}
type SetGroupAnonymousResp struct {
- XXX_NoUnkeyedLiteral struct{} `json:"-"`
- XXX_unrecognized []byte `json:"-"`
- XXX_sizecache int32 `json:"-"`
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
}
-func (m *SetGroupAnonymousResp) Reset() { *m = SetGroupAnonymousResp{} }
-func (m *SetGroupAnonymousResp) String() string { return proto.CompactTextString(m) }
-func (*SetGroupAnonymousResp) ProtoMessage() {}
-func (*SetGroupAnonymousResp) Descriptor() ([]byte, []int) {
- return fileDescriptor_ed9cadf202f12b1d, []int{25}
-}
-func (m *SetGroupAnonymousResp) XXX_Unmarshal(b []byte) error {
- return m.Unmarshal(b)
-}
-func (m *SetGroupAnonymousResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- if deterministic {
- return xxx_messageInfo_SetGroupAnonymousResp.Marshal(b, m, deterministic)
- } else {
- b = b[:cap(b)]
- n, err := m.MarshalToSizedBuffer(b)
- if err != nil {
- return nil, err
- }
- return b[:n], nil
+func (x *SetGroupAnonymousResp) Reset() {
+ *x = SetGroupAnonymousResp{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_onebot_api_proto_msgTypes[27]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
}
}
-func (m *SetGroupAnonymousResp) XXX_Merge(src proto.Message) {
- xxx_messageInfo_SetGroupAnonymousResp.Merge(m, src)
-}
-func (m *SetGroupAnonymousResp) XXX_Size() int {
- return m.Size()
+
+func (x *SetGroupAnonymousResp) String() string {
+ return protoimpl.X.MessageStringOf(x)
}
-func (m *SetGroupAnonymousResp) XXX_DiscardUnknown() {
- xxx_messageInfo_SetGroupAnonymousResp.DiscardUnknown(m)
+
+func (*SetGroupAnonymousResp) ProtoMessage() {}
+
+func (x *SetGroupAnonymousResp) ProtoReflect() protoreflect.Message {
+ mi := &file_onebot_api_proto_msgTypes[27]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
}
-var xxx_messageInfo_SetGroupAnonymousResp proto.InternalMessageInfo
+// Deprecated: Use SetGroupAnonymousResp.ProtoReflect.Descriptor instead.
+func (*SetGroupAnonymousResp) Descriptor() ([]byte, []int) {
+ return file_onebot_api_proto_rawDescGZIP(), []int{27}
+}
type SetGroupCardReq struct {
- GroupId int64 `protobuf:"varint,1,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty"`
- UserId int64 `protobuf:"varint,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
- Card string `protobuf:"bytes,3,opt,name=card,proto3" json:"card,omitempty"`
- XXX_NoUnkeyedLiteral struct{} `json:"-"`
- XXX_unrecognized []byte `json:"-"`
- XXX_sizecache int32 `json:"-"`
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ GroupId int64 `protobuf:"varint,1,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty"`
+ UserId int64 `protobuf:"varint,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
+ Card string `protobuf:"bytes,3,opt,name=card,proto3" json:"card,omitempty"`
}
-func (m *SetGroupCardReq) Reset() { *m = SetGroupCardReq{} }
-func (m *SetGroupCardReq) String() string { return proto.CompactTextString(m) }
-func (*SetGroupCardReq) ProtoMessage() {}
-func (*SetGroupCardReq) Descriptor() ([]byte, []int) {
- return fileDescriptor_ed9cadf202f12b1d, []int{26}
-}
-func (m *SetGroupCardReq) XXX_Unmarshal(b []byte) error {
- return m.Unmarshal(b)
-}
-func (m *SetGroupCardReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- if deterministic {
- return xxx_messageInfo_SetGroupCardReq.Marshal(b, m, deterministic)
- } else {
- b = b[:cap(b)]
- n, err := m.MarshalToSizedBuffer(b)
- if err != nil {
- return nil, err
- }
- return b[:n], nil
+func (x *SetGroupCardReq) Reset() {
+ *x = SetGroupCardReq{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_onebot_api_proto_msgTypes[28]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
}
}
-func (m *SetGroupCardReq) XXX_Merge(src proto.Message) {
- xxx_messageInfo_SetGroupCardReq.Merge(m, src)
-}
-func (m *SetGroupCardReq) XXX_Size() int {
- return m.Size()
+
+func (x *SetGroupCardReq) String() string {
+ return protoimpl.X.MessageStringOf(x)
}
-func (m *SetGroupCardReq) XXX_DiscardUnknown() {
- xxx_messageInfo_SetGroupCardReq.DiscardUnknown(m)
+
+func (*SetGroupCardReq) ProtoMessage() {}
+
+func (x *SetGroupCardReq) ProtoReflect() protoreflect.Message {
+ mi := &file_onebot_api_proto_msgTypes[28]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
}
-var xxx_messageInfo_SetGroupCardReq proto.InternalMessageInfo
+// Deprecated: Use SetGroupCardReq.ProtoReflect.Descriptor instead.
+func (*SetGroupCardReq) Descriptor() ([]byte, []int) {
+ return file_onebot_api_proto_rawDescGZIP(), []int{28}
+}
-func (m *SetGroupCardReq) GetGroupId() int64 {
- if m != nil {
- return m.GroupId
+func (x *SetGroupCardReq) GetGroupId() int64 {
+ if x != nil {
+ return x.GroupId
}
return 0
}
-func (m *SetGroupCardReq) GetUserId() int64 {
- if m != nil {
- return m.UserId
+func (x *SetGroupCardReq) GetUserId() int64 {
+ if x != nil {
+ return x.UserId
}
return 0
}
-func (m *SetGroupCardReq) GetCard() string {
- if m != nil {
- return m.Card
+func (x *SetGroupCardReq) GetCard() string {
+ if x != nil {
+ return x.Card
}
return ""
}
type SetGroupCardResp struct {
- XXX_NoUnkeyedLiteral struct{} `json:"-"`
- XXX_unrecognized []byte `json:"-"`
- XXX_sizecache int32 `json:"-"`
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
}
-func (m *SetGroupCardResp) Reset() { *m = SetGroupCardResp{} }
-func (m *SetGroupCardResp) String() string { return proto.CompactTextString(m) }
-func (*SetGroupCardResp) ProtoMessage() {}
-func (*SetGroupCardResp) Descriptor() ([]byte, []int) {
- return fileDescriptor_ed9cadf202f12b1d, []int{27}
-}
-func (m *SetGroupCardResp) XXX_Unmarshal(b []byte) error {
- return m.Unmarshal(b)
-}
-func (m *SetGroupCardResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- if deterministic {
- return xxx_messageInfo_SetGroupCardResp.Marshal(b, m, deterministic)
- } else {
- b = b[:cap(b)]
- n, err := m.MarshalToSizedBuffer(b)
- if err != nil {
- return nil, err
- }
- return b[:n], nil
+func (x *SetGroupCardResp) Reset() {
+ *x = SetGroupCardResp{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_onebot_api_proto_msgTypes[29]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
}
}
-func (m *SetGroupCardResp) XXX_Merge(src proto.Message) {
- xxx_messageInfo_SetGroupCardResp.Merge(m, src)
-}
-func (m *SetGroupCardResp) XXX_Size() int {
- return m.Size()
+
+func (x *SetGroupCardResp) String() string {
+ return protoimpl.X.MessageStringOf(x)
}
-func (m *SetGroupCardResp) XXX_DiscardUnknown() {
- xxx_messageInfo_SetGroupCardResp.DiscardUnknown(m)
+
+func (*SetGroupCardResp) ProtoMessage() {}
+
+func (x *SetGroupCardResp) ProtoReflect() protoreflect.Message {
+ mi := &file_onebot_api_proto_msgTypes[29]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
}
-var xxx_messageInfo_SetGroupCardResp proto.InternalMessageInfo
+// Deprecated: Use SetGroupCardResp.ProtoReflect.Descriptor instead.
+func (*SetGroupCardResp) Descriptor() ([]byte, []int) {
+ return file_onebot_api_proto_rawDescGZIP(), []int{29}
+}
type SetGroupNameReq struct {
- GroupId int64 `protobuf:"varint,1,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty"`
- GroupName string `protobuf:"bytes,2,opt,name=group_name,json=groupName,proto3" json:"group_name,omitempty"`
- XXX_NoUnkeyedLiteral struct{} `json:"-"`
- XXX_unrecognized []byte `json:"-"`
- XXX_sizecache int32 `json:"-"`
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ GroupId int64 `protobuf:"varint,1,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty"`
+ GroupName string `protobuf:"bytes,2,opt,name=group_name,json=groupName,proto3" json:"group_name,omitempty"`
}
-func (m *SetGroupNameReq) Reset() { *m = SetGroupNameReq{} }
-func (m *SetGroupNameReq) String() string { return proto.CompactTextString(m) }
-func (*SetGroupNameReq) ProtoMessage() {}
-func (*SetGroupNameReq) Descriptor() ([]byte, []int) {
- return fileDescriptor_ed9cadf202f12b1d, []int{28}
-}
-func (m *SetGroupNameReq) XXX_Unmarshal(b []byte) error {
- return m.Unmarshal(b)
-}
-func (m *SetGroupNameReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- if deterministic {
- return xxx_messageInfo_SetGroupNameReq.Marshal(b, m, deterministic)
- } else {
- b = b[:cap(b)]
- n, err := m.MarshalToSizedBuffer(b)
- if err != nil {
- return nil, err
- }
- return b[:n], nil
+func (x *SetGroupNameReq) Reset() {
+ *x = SetGroupNameReq{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_onebot_api_proto_msgTypes[30]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
}
}
-func (m *SetGroupNameReq) XXX_Merge(src proto.Message) {
- xxx_messageInfo_SetGroupNameReq.Merge(m, src)
-}
-func (m *SetGroupNameReq) XXX_Size() int {
- return m.Size()
+
+func (x *SetGroupNameReq) String() string {
+ return protoimpl.X.MessageStringOf(x)
}
-func (m *SetGroupNameReq) XXX_DiscardUnknown() {
- xxx_messageInfo_SetGroupNameReq.DiscardUnknown(m)
+
+func (*SetGroupNameReq) ProtoMessage() {}
+
+func (x *SetGroupNameReq) ProtoReflect() protoreflect.Message {
+ mi := &file_onebot_api_proto_msgTypes[30]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
}
-var xxx_messageInfo_SetGroupNameReq proto.InternalMessageInfo
+// Deprecated: Use SetGroupNameReq.ProtoReflect.Descriptor instead.
+func (*SetGroupNameReq) Descriptor() ([]byte, []int) {
+ return file_onebot_api_proto_rawDescGZIP(), []int{30}
+}
-func (m *SetGroupNameReq) GetGroupId() int64 {
- if m != nil {
- return m.GroupId
+func (x *SetGroupNameReq) GetGroupId() int64 {
+ if x != nil {
+ return x.GroupId
}
return 0
}
-func (m *SetGroupNameReq) GetGroupName() string {
- if m != nil {
- return m.GroupName
+func (x *SetGroupNameReq) GetGroupName() string {
+ if x != nil {
+ return x.GroupName
}
return ""
}
type SetGroupNameResp struct {
- XXX_NoUnkeyedLiteral struct{} `json:"-"`
- XXX_unrecognized []byte `json:"-"`
- XXX_sizecache int32 `json:"-"`
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
}
-func (m *SetGroupNameResp) Reset() { *m = SetGroupNameResp{} }
-func (m *SetGroupNameResp) String() string { return proto.CompactTextString(m) }
-func (*SetGroupNameResp) ProtoMessage() {}
-func (*SetGroupNameResp) Descriptor() ([]byte, []int) {
- return fileDescriptor_ed9cadf202f12b1d, []int{29}
-}
-func (m *SetGroupNameResp) XXX_Unmarshal(b []byte) error {
- return m.Unmarshal(b)
-}
-func (m *SetGroupNameResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- if deterministic {
- return xxx_messageInfo_SetGroupNameResp.Marshal(b, m, deterministic)
- } else {
- b = b[:cap(b)]
- n, err := m.MarshalToSizedBuffer(b)
- if err != nil {
- return nil, err
- }
- return b[:n], nil
+func (x *SetGroupNameResp) Reset() {
+ *x = SetGroupNameResp{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_onebot_api_proto_msgTypes[31]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
}
}
-func (m *SetGroupNameResp) XXX_Merge(src proto.Message) {
- xxx_messageInfo_SetGroupNameResp.Merge(m, src)
-}
-func (m *SetGroupNameResp) XXX_Size() int {
- return m.Size()
+
+func (x *SetGroupNameResp) String() string {
+ return protoimpl.X.MessageStringOf(x)
}
-func (m *SetGroupNameResp) XXX_DiscardUnknown() {
- xxx_messageInfo_SetGroupNameResp.DiscardUnknown(m)
+
+func (*SetGroupNameResp) ProtoMessage() {}
+
+func (x *SetGroupNameResp) ProtoReflect() protoreflect.Message {
+ mi := &file_onebot_api_proto_msgTypes[31]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
}
-var xxx_messageInfo_SetGroupNameResp proto.InternalMessageInfo
+// Deprecated: Use SetGroupNameResp.ProtoReflect.Descriptor instead.
+func (*SetGroupNameResp) Descriptor() ([]byte, []int) {
+ return file_onebot_api_proto_rawDescGZIP(), []int{31}
+}
type SetGroupLeaveReq struct {
- GroupId int64 `protobuf:"varint,1,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty"`
- IsDismiss bool `protobuf:"varint,2,opt,name=is_dismiss,json=isDismiss,proto3" json:"is_dismiss,omitempty"`
- XXX_NoUnkeyedLiteral struct{} `json:"-"`
- XXX_unrecognized []byte `json:"-"`
- XXX_sizecache int32 `json:"-"`
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ GroupId int64 `protobuf:"varint,1,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty"`
+ IsDismiss bool `protobuf:"varint,2,opt,name=is_dismiss,json=isDismiss,proto3" json:"is_dismiss,omitempty"`
}
-func (m *SetGroupLeaveReq) Reset() { *m = SetGroupLeaveReq{} }
-func (m *SetGroupLeaveReq) String() string { return proto.CompactTextString(m) }
-func (*SetGroupLeaveReq) ProtoMessage() {}
-func (*SetGroupLeaveReq) Descriptor() ([]byte, []int) {
- return fileDescriptor_ed9cadf202f12b1d, []int{30}
-}
-func (m *SetGroupLeaveReq) XXX_Unmarshal(b []byte) error {
- return m.Unmarshal(b)
-}
-func (m *SetGroupLeaveReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- if deterministic {
- return xxx_messageInfo_SetGroupLeaveReq.Marshal(b, m, deterministic)
- } else {
- b = b[:cap(b)]
- n, err := m.MarshalToSizedBuffer(b)
- if err != nil {
- return nil, err
- }
- return b[:n], nil
+func (x *SetGroupLeaveReq) Reset() {
+ *x = SetGroupLeaveReq{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_onebot_api_proto_msgTypes[32]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
}
}
-func (m *SetGroupLeaveReq) XXX_Merge(src proto.Message) {
- xxx_messageInfo_SetGroupLeaveReq.Merge(m, src)
-}
-func (m *SetGroupLeaveReq) XXX_Size() int {
- return m.Size()
+
+func (x *SetGroupLeaveReq) String() string {
+ return protoimpl.X.MessageStringOf(x)
}
-func (m *SetGroupLeaveReq) XXX_DiscardUnknown() {
- xxx_messageInfo_SetGroupLeaveReq.DiscardUnknown(m)
+
+func (*SetGroupLeaveReq) ProtoMessage() {}
+
+func (x *SetGroupLeaveReq) ProtoReflect() protoreflect.Message {
+ mi := &file_onebot_api_proto_msgTypes[32]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
}
-var xxx_messageInfo_SetGroupLeaveReq proto.InternalMessageInfo
+// Deprecated: Use SetGroupLeaveReq.ProtoReflect.Descriptor instead.
+func (*SetGroupLeaveReq) Descriptor() ([]byte, []int) {
+ return file_onebot_api_proto_rawDescGZIP(), []int{32}
+}
-func (m *SetGroupLeaveReq) GetGroupId() int64 {
- if m != nil {
- return m.GroupId
+func (x *SetGroupLeaveReq) GetGroupId() int64 {
+ if x != nil {
+ return x.GroupId
}
return 0
}
-func (m *SetGroupLeaveReq) GetIsDismiss() bool {
- if m != nil {
- return m.IsDismiss
+func (x *SetGroupLeaveReq) GetIsDismiss() bool {
+ if x != nil {
+ return x.IsDismiss
}
return false
}
type SetGroupLeaveResp struct {
- XXX_NoUnkeyedLiteral struct{} `json:"-"`
- XXX_unrecognized []byte `json:"-"`
- XXX_sizecache int32 `json:"-"`
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
}
-func (m *SetGroupLeaveResp) Reset() { *m = SetGroupLeaveResp{} }
-func (m *SetGroupLeaveResp) String() string { return proto.CompactTextString(m) }
-func (*SetGroupLeaveResp) ProtoMessage() {}
-func (*SetGroupLeaveResp) Descriptor() ([]byte, []int) {
- return fileDescriptor_ed9cadf202f12b1d, []int{31}
-}
-func (m *SetGroupLeaveResp) XXX_Unmarshal(b []byte) error {
- return m.Unmarshal(b)
-}
-func (m *SetGroupLeaveResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- if deterministic {
- return xxx_messageInfo_SetGroupLeaveResp.Marshal(b, m, deterministic)
- } else {
- b = b[:cap(b)]
- n, err := m.MarshalToSizedBuffer(b)
- if err != nil {
- return nil, err
- }
- return b[:n], nil
+func (x *SetGroupLeaveResp) Reset() {
+ *x = SetGroupLeaveResp{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_onebot_api_proto_msgTypes[33]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
}
}
-func (m *SetGroupLeaveResp) XXX_Merge(src proto.Message) {
- xxx_messageInfo_SetGroupLeaveResp.Merge(m, src)
-}
-func (m *SetGroupLeaveResp) XXX_Size() int {
- return m.Size()
-}
-func (m *SetGroupLeaveResp) XXX_DiscardUnknown() {
- xxx_messageInfo_SetGroupLeaveResp.DiscardUnknown(m)
+
+func (x *SetGroupLeaveResp) String() string {
+ return protoimpl.X.MessageStringOf(x)
}
-var xxx_messageInfo_SetGroupLeaveResp proto.InternalMessageInfo
+func (*SetGroupLeaveResp) ProtoMessage() {}
-type SetGroupSpecialTitleReq struct {
- GroupId int64 `protobuf:"varint,1,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty"`
- UserId int64 `protobuf:"varint,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
- SpecialTitle string `protobuf:"bytes,3,opt,name=special_title,json=specialTitle,proto3" json:"special_title,omitempty"`
- Duration int64 `protobuf:"varint,4,opt,name=duration,proto3" json:"duration,omitempty"`
- XXX_NoUnkeyedLiteral struct{} `json:"-"`
- XXX_unrecognized []byte `json:"-"`
- XXX_sizecache int32 `json:"-"`
-}
-
-func (m *SetGroupSpecialTitleReq) Reset() { *m = SetGroupSpecialTitleReq{} }
-func (m *SetGroupSpecialTitleReq) String() string { return proto.CompactTextString(m) }
-func (*SetGroupSpecialTitleReq) ProtoMessage() {}
-func (*SetGroupSpecialTitleReq) Descriptor() ([]byte, []int) {
- return fileDescriptor_ed9cadf202f12b1d, []int{32}
-}
-func (m *SetGroupSpecialTitleReq) XXX_Unmarshal(b []byte) error {
- return m.Unmarshal(b)
-}
-func (m *SetGroupSpecialTitleReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- if deterministic {
- return xxx_messageInfo_SetGroupSpecialTitleReq.Marshal(b, m, deterministic)
- } else {
- b = b[:cap(b)]
- n, err := m.MarshalToSizedBuffer(b)
- if err != nil {
- return nil, err
+func (x *SetGroupLeaveResp) ProtoReflect() protoreflect.Message {
+ mi := &file_onebot_api_proto_msgTypes[33]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
}
- return b[:n], nil
+ return ms
}
+ return mi.MessageOf(x)
+}
+
+// Deprecated: Use SetGroupLeaveResp.ProtoReflect.Descriptor instead.
+func (*SetGroupLeaveResp) Descriptor() ([]byte, []int) {
+ return file_onebot_api_proto_rawDescGZIP(), []int{33}
}
-func (m *SetGroupSpecialTitleReq) XXX_Merge(src proto.Message) {
- xxx_messageInfo_SetGroupSpecialTitleReq.Merge(m, src)
+
+type SetGroupSpecialTitleReq struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ GroupId int64 `protobuf:"varint,1,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty"`
+ UserId int64 `protobuf:"varint,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
+ SpecialTitle string `protobuf:"bytes,3,opt,name=special_title,json=specialTitle,proto3" json:"special_title,omitempty"`
+ Duration int64 `protobuf:"varint,4,opt,name=duration,proto3" json:"duration,omitempty"`
+}
+
+func (x *SetGroupSpecialTitleReq) Reset() {
+ *x = SetGroupSpecialTitleReq{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_onebot_api_proto_msgTypes[34]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
}
-func (m *SetGroupSpecialTitleReq) XXX_Size() int {
- return m.Size()
+
+func (x *SetGroupSpecialTitleReq) String() string {
+ return protoimpl.X.MessageStringOf(x)
}
-func (m *SetGroupSpecialTitleReq) XXX_DiscardUnknown() {
- xxx_messageInfo_SetGroupSpecialTitleReq.DiscardUnknown(m)
+
+func (*SetGroupSpecialTitleReq) ProtoMessage() {}
+
+func (x *SetGroupSpecialTitleReq) ProtoReflect() protoreflect.Message {
+ mi := &file_onebot_api_proto_msgTypes[34]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
}
-var xxx_messageInfo_SetGroupSpecialTitleReq proto.InternalMessageInfo
+// Deprecated: Use SetGroupSpecialTitleReq.ProtoReflect.Descriptor instead.
+func (*SetGroupSpecialTitleReq) Descriptor() ([]byte, []int) {
+ return file_onebot_api_proto_rawDescGZIP(), []int{34}
+}
-func (m *SetGroupSpecialTitleReq) GetGroupId() int64 {
- if m != nil {
- return m.GroupId
+func (x *SetGroupSpecialTitleReq) GetGroupId() int64 {
+ if x != nil {
+ return x.GroupId
}
return 0
}
-func (m *SetGroupSpecialTitleReq) GetUserId() int64 {
- if m != nil {
- return m.UserId
+func (x *SetGroupSpecialTitleReq) GetUserId() int64 {
+ if x != nil {
+ return x.UserId
}
return 0
}
-func (m *SetGroupSpecialTitleReq) GetSpecialTitle() string {
- if m != nil {
- return m.SpecialTitle
+func (x *SetGroupSpecialTitleReq) GetSpecialTitle() string {
+ if x != nil {
+ return x.SpecialTitle
}
return ""
}
-func (m *SetGroupSpecialTitleReq) GetDuration() int64 {
- if m != nil {
- return m.Duration
+func (x *SetGroupSpecialTitleReq) GetDuration() int64 {
+ if x != nil {
+ return x.Duration
}
return 0
}
type SetGroupSpecialTitleResp struct {
- XXX_NoUnkeyedLiteral struct{} `json:"-"`
- XXX_unrecognized []byte `json:"-"`
- XXX_sizecache int32 `json:"-"`
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
}
-func (m *SetGroupSpecialTitleResp) Reset() { *m = SetGroupSpecialTitleResp{} }
-func (m *SetGroupSpecialTitleResp) String() string { return proto.CompactTextString(m) }
-func (*SetGroupSpecialTitleResp) ProtoMessage() {}
-func (*SetGroupSpecialTitleResp) Descriptor() ([]byte, []int) {
- return fileDescriptor_ed9cadf202f12b1d, []int{33}
-}
-func (m *SetGroupSpecialTitleResp) XXX_Unmarshal(b []byte) error {
- return m.Unmarshal(b)
-}
-func (m *SetGroupSpecialTitleResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- if deterministic {
- return xxx_messageInfo_SetGroupSpecialTitleResp.Marshal(b, m, deterministic)
- } else {
- b = b[:cap(b)]
- n, err := m.MarshalToSizedBuffer(b)
- if err != nil {
- return nil, err
- }
- return b[:n], nil
+func (x *SetGroupSpecialTitleResp) Reset() {
+ *x = SetGroupSpecialTitleResp{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_onebot_api_proto_msgTypes[35]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
}
}
-func (m *SetGroupSpecialTitleResp) XXX_Merge(src proto.Message) {
- xxx_messageInfo_SetGroupSpecialTitleResp.Merge(m, src)
-}
-func (m *SetGroupSpecialTitleResp) XXX_Size() int {
- return m.Size()
+
+func (x *SetGroupSpecialTitleResp) String() string {
+ return protoimpl.X.MessageStringOf(x)
}
-func (m *SetGroupSpecialTitleResp) XXX_DiscardUnknown() {
- xxx_messageInfo_SetGroupSpecialTitleResp.DiscardUnknown(m)
+
+func (*SetGroupSpecialTitleResp) ProtoMessage() {}
+
+func (x *SetGroupSpecialTitleResp) ProtoReflect() protoreflect.Message {
+ mi := &file_onebot_api_proto_msgTypes[35]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
}
-var xxx_messageInfo_SetGroupSpecialTitleResp proto.InternalMessageInfo
+// Deprecated: Use SetGroupSpecialTitleResp.ProtoReflect.Descriptor instead.
+func (*SetGroupSpecialTitleResp) Descriptor() ([]byte, []int) {
+ return file_onebot_api_proto_rawDescGZIP(), []int{35}
+}
type SetFriendAddRequestReq struct {
- Flag string `protobuf:"bytes,1,opt,name=flag,proto3" json:"flag,omitempty"`
- Approve bool `protobuf:"varint,2,opt,name=approve,proto3" json:"approve,omitempty"`
- Remark string `protobuf:"bytes,3,opt,name=remark,proto3" json:"remark,omitempty"`
- XXX_NoUnkeyedLiteral struct{} `json:"-"`
- XXX_unrecognized []byte `json:"-"`
- XXX_sizecache int32 `json:"-"`
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ Flag string `protobuf:"bytes,1,opt,name=flag,proto3" json:"flag,omitempty"`
+ Approve bool `protobuf:"varint,2,opt,name=approve,proto3" json:"approve,omitempty"`
+ Remark string `protobuf:"bytes,3,opt,name=remark,proto3" json:"remark,omitempty"`
}
-func (m *SetFriendAddRequestReq) Reset() { *m = SetFriendAddRequestReq{} }
-func (m *SetFriendAddRequestReq) String() string { return proto.CompactTextString(m) }
-func (*SetFriendAddRequestReq) ProtoMessage() {}
-func (*SetFriendAddRequestReq) Descriptor() ([]byte, []int) {
- return fileDescriptor_ed9cadf202f12b1d, []int{34}
-}
-func (m *SetFriendAddRequestReq) XXX_Unmarshal(b []byte) error {
- return m.Unmarshal(b)
-}
-func (m *SetFriendAddRequestReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- if deterministic {
- return xxx_messageInfo_SetFriendAddRequestReq.Marshal(b, m, deterministic)
- } else {
- b = b[:cap(b)]
- n, err := m.MarshalToSizedBuffer(b)
- if err != nil {
- return nil, err
- }
- return b[:n], nil
+func (x *SetFriendAddRequestReq) Reset() {
+ *x = SetFriendAddRequestReq{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_onebot_api_proto_msgTypes[36]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
}
}
-func (m *SetFriendAddRequestReq) XXX_Merge(src proto.Message) {
- xxx_messageInfo_SetFriendAddRequestReq.Merge(m, src)
-}
-func (m *SetFriendAddRequestReq) XXX_Size() int {
- return m.Size()
+
+func (x *SetFriendAddRequestReq) String() string {
+ return protoimpl.X.MessageStringOf(x)
}
-func (m *SetFriendAddRequestReq) XXX_DiscardUnknown() {
- xxx_messageInfo_SetFriendAddRequestReq.DiscardUnknown(m)
+
+func (*SetFriendAddRequestReq) ProtoMessage() {}
+
+func (x *SetFriendAddRequestReq) ProtoReflect() protoreflect.Message {
+ mi := &file_onebot_api_proto_msgTypes[36]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
}
-var xxx_messageInfo_SetFriendAddRequestReq proto.InternalMessageInfo
+// Deprecated: Use SetFriendAddRequestReq.ProtoReflect.Descriptor instead.
+func (*SetFriendAddRequestReq) Descriptor() ([]byte, []int) {
+ return file_onebot_api_proto_rawDescGZIP(), []int{36}
+}
-func (m *SetFriendAddRequestReq) GetFlag() string {
- if m != nil {
- return m.Flag
+func (x *SetFriendAddRequestReq) GetFlag() string {
+ if x != nil {
+ return x.Flag
}
return ""
}
-func (m *SetFriendAddRequestReq) GetApprove() bool {
- if m != nil {
- return m.Approve
+func (x *SetFriendAddRequestReq) GetApprove() bool {
+ if x != nil {
+ return x.Approve
}
return false
}
-func (m *SetFriendAddRequestReq) GetRemark() string {
- if m != nil {
- return m.Remark
+func (x *SetFriendAddRequestReq) GetRemark() string {
+ if x != nil {
+ return x.Remark
}
return ""
}
type SetFriendAddRequestResp struct {
- XXX_NoUnkeyedLiteral struct{} `json:"-"`
- XXX_unrecognized []byte `json:"-"`
- XXX_sizecache int32 `json:"-"`
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
}
-func (m *SetFriendAddRequestResp) Reset() { *m = SetFriendAddRequestResp{} }
-func (m *SetFriendAddRequestResp) String() string { return proto.CompactTextString(m) }
-func (*SetFriendAddRequestResp) ProtoMessage() {}
-func (*SetFriendAddRequestResp) Descriptor() ([]byte, []int) {
- return fileDescriptor_ed9cadf202f12b1d, []int{35}
-}
-func (m *SetFriendAddRequestResp) XXX_Unmarshal(b []byte) error {
- return m.Unmarshal(b)
-}
-func (m *SetFriendAddRequestResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- if deterministic {
- return xxx_messageInfo_SetFriendAddRequestResp.Marshal(b, m, deterministic)
- } else {
- b = b[:cap(b)]
- n, err := m.MarshalToSizedBuffer(b)
- if err != nil {
- return nil, err
- }
- return b[:n], nil
+func (x *SetFriendAddRequestResp) Reset() {
+ *x = SetFriendAddRequestResp{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_onebot_api_proto_msgTypes[37]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
}
}
-func (m *SetFriendAddRequestResp) XXX_Merge(src proto.Message) {
- xxx_messageInfo_SetFriendAddRequestResp.Merge(m, src)
-}
-func (m *SetFriendAddRequestResp) XXX_Size() int {
- return m.Size()
-}
-func (m *SetFriendAddRequestResp) XXX_DiscardUnknown() {
- xxx_messageInfo_SetFriendAddRequestResp.DiscardUnknown(m)
+
+func (x *SetFriendAddRequestResp) String() string {
+ return protoimpl.X.MessageStringOf(x)
}
-var xxx_messageInfo_SetFriendAddRequestResp proto.InternalMessageInfo
+func (*SetFriendAddRequestResp) ProtoMessage() {}
-type SetGroupAddRequestReq struct {
- Flag string `protobuf:"bytes,1,opt,name=flag,proto3" json:"flag,omitempty"`
- SubType string `protobuf:"bytes,2,opt,name=sub_type,json=subType,proto3" json:"sub_type,omitempty"`
- Type string `protobuf:"bytes,3,opt,name=type,proto3" json:"type,omitempty"`
- Approve bool `protobuf:"varint,4,opt,name=approve,proto3" json:"approve,omitempty"`
- Reason string `protobuf:"bytes,5,opt,name=reason,proto3" json:"reason,omitempty"`
- XXX_NoUnkeyedLiteral struct{} `json:"-"`
- XXX_unrecognized []byte `json:"-"`
- XXX_sizecache int32 `json:"-"`
-}
-
-func (m *SetGroupAddRequestReq) Reset() { *m = SetGroupAddRequestReq{} }
-func (m *SetGroupAddRequestReq) String() string { return proto.CompactTextString(m) }
-func (*SetGroupAddRequestReq) ProtoMessage() {}
-func (*SetGroupAddRequestReq) Descriptor() ([]byte, []int) {
- return fileDescriptor_ed9cadf202f12b1d, []int{36}
-}
-func (m *SetGroupAddRequestReq) XXX_Unmarshal(b []byte) error {
- return m.Unmarshal(b)
-}
-func (m *SetGroupAddRequestReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- if deterministic {
- return xxx_messageInfo_SetGroupAddRequestReq.Marshal(b, m, deterministic)
- } else {
- b = b[:cap(b)]
- n, err := m.MarshalToSizedBuffer(b)
- if err != nil {
- return nil, err
+func (x *SetFriendAddRequestResp) ProtoReflect() protoreflect.Message {
+ mi := &file_onebot_api_proto_msgTypes[37]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
}
- return b[:n], nil
+ return ms
}
+ return mi.MessageOf(x)
+}
+
+// Deprecated: Use SetFriendAddRequestResp.ProtoReflect.Descriptor instead.
+func (*SetFriendAddRequestResp) Descriptor() ([]byte, []int) {
+ return file_onebot_api_proto_rawDescGZIP(), []int{37}
+}
+
+type SetGroupAddRequestReq struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ Flag string `protobuf:"bytes,1,opt,name=flag,proto3" json:"flag,omitempty"`
+ SubType string `protobuf:"bytes,2,opt,name=sub_type,json=subType,proto3" json:"sub_type,omitempty"`
+ Type string `protobuf:"bytes,3,opt,name=type,proto3" json:"type,omitempty"`
+ Approve bool `protobuf:"varint,4,opt,name=approve,proto3" json:"approve,omitempty"`
+ Reason string `protobuf:"bytes,5,opt,name=reason,proto3" json:"reason,omitempty"`
}
-func (m *SetGroupAddRequestReq) XXX_Merge(src proto.Message) {
- xxx_messageInfo_SetGroupAddRequestReq.Merge(m, src)
+
+func (x *SetGroupAddRequestReq) Reset() {
+ *x = SetGroupAddRequestReq{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_onebot_api_proto_msgTypes[38]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
}
-func (m *SetGroupAddRequestReq) XXX_Size() int {
- return m.Size()
+
+func (x *SetGroupAddRequestReq) String() string {
+ return protoimpl.X.MessageStringOf(x)
}
-func (m *SetGroupAddRequestReq) XXX_DiscardUnknown() {
- xxx_messageInfo_SetGroupAddRequestReq.DiscardUnknown(m)
+
+func (*SetGroupAddRequestReq) ProtoMessage() {}
+
+func (x *SetGroupAddRequestReq) ProtoReflect() protoreflect.Message {
+ mi := &file_onebot_api_proto_msgTypes[38]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
}
-var xxx_messageInfo_SetGroupAddRequestReq proto.InternalMessageInfo
+// Deprecated: Use SetGroupAddRequestReq.ProtoReflect.Descriptor instead.
+func (*SetGroupAddRequestReq) Descriptor() ([]byte, []int) {
+ return file_onebot_api_proto_rawDescGZIP(), []int{38}
+}
-func (m *SetGroupAddRequestReq) GetFlag() string {
- if m != nil {
- return m.Flag
+func (x *SetGroupAddRequestReq) GetFlag() string {
+ if x != nil {
+ return x.Flag
}
return ""
}
-func (m *SetGroupAddRequestReq) GetSubType() string {
- if m != nil {
- return m.SubType
+func (x *SetGroupAddRequestReq) GetSubType() string {
+ if x != nil {
+ return x.SubType
}
return ""
}
-func (m *SetGroupAddRequestReq) GetType() string {
- if m != nil {
- return m.Type
+func (x *SetGroupAddRequestReq) GetType() string {
+ if x != nil {
+ return x.Type
}
return ""
}
-func (m *SetGroupAddRequestReq) GetApprove() bool {
- if m != nil {
- return m.Approve
+func (x *SetGroupAddRequestReq) GetApprove() bool {
+ if x != nil {
+ return x.Approve
}
return false
}
-func (m *SetGroupAddRequestReq) GetReason() string {
- if m != nil {
- return m.Reason
+func (x *SetGroupAddRequestReq) GetReason() string {
+ if x != nil {
+ return x.Reason
}
return ""
}
type SetGroupAddRequestResp struct {
- XXX_NoUnkeyedLiteral struct{} `json:"-"`
- XXX_unrecognized []byte `json:"-"`
- XXX_sizecache int32 `json:"-"`
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
}
-func (m *SetGroupAddRequestResp) Reset() { *m = SetGroupAddRequestResp{} }
-func (m *SetGroupAddRequestResp) String() string { return proto.CompactTextString(m) }
-func (*SetGroupAddRequestResp) ProtoMessage() {}
-func (*SetGroupAddRequestResp) Descriptor() ([]byte, []int) {
- return fileDescriptor_ed9cadf202f12b1d, []int{37}
-}
-func (m *SetGroupAddRequestResp) XXX_Unmarshal(b []byte) error {
- return m.Unmarshal(b)
-}
-func (m *SetGroupAddRequestResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- if deterministic {
- return xxx_messageInfo_SetGroupAddRequestResp.Marshal(b, m, deterministic)
- } else {
- b = b[:cap(b)]
- n, err := m.MarshalToSizedBuffer(b)
- if err != nil {
- return nil, err
- }
- return b[:n], nil
+func (x *SetGroupAddRequestResp) Reset() {
+ *x = SetGroupAddRequestResp{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_onebot_api_proto_msgTypes[39]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
}
}
-func (m *SetGroupAddRequestResp) XXX_Merge(src proto.Message) {
- xxx_messageInfo_SetGroupAddRequestResp.Merge(m, src)
-}
-func (m *SetGroupAddRequestResp) XXX_Size() int {
- return m.Size()
+
+func (x *SetGroupAddRequestResp) String() string {
+ return protoimpl.X.MessageStringOf(x)
}
-func (m *SetGroupAddRequestResp) XXX_DiscardUnknown() {
- xxx_messageInfo_SetGroupAddRequestResp.DiscardUnknown(m)
+
+func (*SetGroupAddRequestResp) ProtoMessage() {}
+
+func (x *SetGroupAddRequestResp) ProtoReflect() protoreflect.Message {
+ mi := &file_onebot_api_proto_msgTypes[39]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
}
-var xxx_messageInfo_SetGroupAddRequestResp proto.InternalMessageInfo
+// Deprecated: Use SetGroupAddRequestResp.ProtoReflect.Descriptor instead.
+func (*SetGroupAddRequestResp) Descriptor() ([]byte, []int) {
+ return file_onebot_api_proto_rawDescGZIP(), []int{39}
+}
type GetLoginInfoReq struct {
- XXX_NoUnkeyedLiteral struct{} `json:"-"`
- XXX_unrecognized []byte `json:"-"`
- XXX_sizecache int32 `json:"-"`
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
}
-func (m *GetLoginInfoReq) Reset() { *m = GetLoginInfoReq{} }
-func (m *GetLoginInfoReq) String() string { return proto.CompactTextString(m) }
-func (*GetLoginInfoReq) ProtoMessage() {}
-func (*GetLoginInfoReq) Descriptor() ([]byte, []int) {
- return fileDescriptor_ed9cadf202f12b1d, []int{38}
-}
-func (m *GetLoginInfoReq) XXX_Unmarshal(b []byte) error {
- return m.Unmarshal(b)
-}
-func (m *GetLoginInfoReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- if deterministic {
- return xxx_messageInfo_GetLoginInfoReq.Marshal(b, m, deterministic)
- } else {
- b = b[:cap(b)]
- n, err := m.MarshalToSizedBuffer(b)
- if err != nil {
- return nil, err
- }
- return b[:n], nil
+func (x *GetLoginInfoReq) Reset() {
+ *x = GetLoginInfoReq{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_onebot_api_proto_msgTypes[40]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
}
}
-func (m *GetLoginInfoReq) XXX_Merge(src proto.Message) {
- xxx_messageInfo_GetLoginInfoReq.Merge(m, src)
-}
-func (m *GetLoginInfoReq) XXX_Size() int {
- return m.Size()
+
+func (x *GetLoginInfoReq) String() string {
+ return protoimpl.X.MessageStringOf(x)
}
-func (m *GetLoginInfoReq) XXX_DiscardUnknown() {
- xxx_messageInfo_GetLoginInfoReq.DiscardUnknown(m)
+
+func (*GetLoginInfoReq) ProtoMessage() {}
+
+func (x *GetLoginInfoReq) ProtoReflect() protoreflect.Message {
+ mi := &file_onebot_api_proto_msgTypes[40]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
}
-var xxx_messageInfo_GetLoginInfoReq proto.InternalMessageInfo
+// Deprecated: Use GetLoginInfoReq.ProtoReflect.Descriptor instead.
+func (*GetLoginInfoReq) Descriptor() ([]byte, []int) {
+ return file_onebot_api_proto_rawDescGZIP(), []int{40}
+}
type GetLoginInfoResp struct {
- UserId int64 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
- Nickname string `protobuf:"bytes,2,opt,name=nickname,proto3" json:"nickname,omitempty"`
- XXX_NoUnkeyedLiteral struct{} `json:"-"`
- XXX_unrecognized []byte `json:"-"`
- XXX_sizecache int32 `json:"-"`
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ UserId int64 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
+ Nickname string `protobuf:"bytes,2,opt,name=nickname,proto3" json:"nickname,omitempty"`
}
-func (m *GetLoginInfoResp) Reset() { *m = GetLoginInfoResp{} }
-func (m *GetLoginInfoResp) String() string { return proto.CompactTextString(m) }
-func (*GetLoginInfoResp) ProtoMessage() {}
-func (*GetLoginInfoResp) Descriptor() ([]byte, []int) {
- return fileDescriptor_ed9cadf202f12b1d, []int{39}
-}
-func (m *GetLoginInfoResp) XXX_Unmarshal(b []byte) error {
- return m.Unmarshal(b)
-}
-func (m *GetLoginInfoResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- if deterministic {
- return xxx_messageInfo_GetLoginInfoResp.Marshal(b, m, deterministic)
- } else {
- b = b[:cap(b)]
- n, err := m.MarshalToSizedBuffer(b)
- if err != nil {
- return nil, err
- }
- return b[:n], nil
+func (x *GetLoginInfoResp) Reset() {
+ *x = GetLoginInfoResp{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_onebot_api_proto_msgTypes[41]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
}
}
-func (m *GetLoginInfoResp) XXX_Merge(src proto.Message) {
- xxx_messageInfo_GetLoginInfoResp.Merge(m, src)
-}
-func (m *GetLoginInfoResp) XXX_Size() int {
- return m.Size()
+
+func (x *GetLoginInfoResp) String() string {
+ return protoimpl.X.MessageStringOf(x)
}
-func (m *GetLoginInfoResp) XXX_DiscardUnknown() {
- xxx_messageInfo_GetLoginInfoResp.DiscardUnknown(m)
+
+func (*GetLoginInfoResp) ProtoMessage() {}
+
+func (x *GetLoginInfoResp) ProtoReflect() protoreflect.Message {
+ mi := &file_onebot_api_proto_msgTypes[41]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
}
-var xxx_messageInfo_GetLoginInfoResp proto.InternalMessageInfo
+// Deprecated: Use GetLoginInfoResp.ProtoReflect.Descriptor instead.
+func (*GetLoginInfoResp) Descriptor() ([]byte, []int) {
+ return file_onebot_api_proto_rawDescGZIP(), []int{41}
+}
-func (m *GetLoginInfoResp) GetUserId() int64 {
- if m != nil {
- return m.UserId
+func (x *GetLoginInfoResp) GetUserId() int64 {
+ if x != nil {
+ return x.UserId
}
return 0
}
-func (m *GetLoginInfoResp) GetNickname() string {
- if m != nil {
- return m.Nickname
+func (x *GetLoginInfoResp) GetNickname() string {
+ if x != nil {
+ return x.Nickname
}
return ""
}
type GetStrangerInfoReq struct {
- UserId int64 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
- NoCache bool `protobuf:"varint,2,opt,name=no_cache,json=noCache,proto3" json:"no_cache,omitempty"`
- XXX_NoUnkeyedLiteral struct{} `json:"-"`
- XXX_unrecognized []byte `json:"-"`
- XXX_sizecache int32 `json:"-"`
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ UserId int64 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
+ NoCache bool `protobuf:"varint,2,opt,name=no_cache,json=noCache,proto3" json:"no_cache,omitempty"`
}
-func (m *GetStrangerInfoReq) Reset() { *m = GetStrangerInfoReq{} }
-func (m *GetStrangerInfoReq) String() string { return proto.CompactTextString(m) }
-func (*GetStrangerInfoReq) ProtoMessage() {}
-func (*GetStrangerInfoReq) Descriptor() ([]byte, []int) {
- return fileDescriptor_ed9cadf202f12b1d, []int{40}
-}
-func (m *GetStrangerInfoReq) XXX_Unmarshal(b []byte) error {
- return m.Unmarshal(b)
-}
-func (m *GetStrangerInfoReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- if deterministic {
- return xxx_messageInfo_GetStrangerInfoReq.Marshal(b, m, deterministic)
- } else {
- b = b[:cap(b)]
- n, err := m.MarshalToSizedBuffer(b)
- if err != nil {
- return nil, err
- }
- return b[:n], nil
+func (x *GetStrangerInfoReq) Reset() {
+ *x = GetStrangerInfoReq{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_onebot_api_proto_msgTypes[42]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
}
}
-func (m *GetStrangerInfoReq) XXX_Merge(src proto.Message) {
- xxx_messageInfo_GetStrangerInfoReq.Merge(m, src)
-}
-func (m *GetStrangerInfoReq) XXX_Size() int {
- return m.Size()
+
+func (x *GetStrangerInfoReq) String() string {
+ return protoimpl.X.MessageStringOf(x)
}
-func (m *GetStrangerInfoReq) XXX_DiscardUnknown() {
- xxx_messageInfo_GetStrangerInfoReq.DiscardUnknown(m)
+
+func (*GetStrangerInfoReq) ProtoMessage() {}
+
+func (x *GetStrangerInfoReq) ProtoReflect() protoreflect.Message {
+ mi := &file_onebot_api_proto_msgTypes[42]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
}
-var xxx_messageInfo_GetStrangerInfoReq proto.InternalMessageInfo
+// Deprecated: Use GetStrangerInfoReq.ProtoReflect.Descriptor instead.
+func (*GetStrangerInfoReq) Descriptor() ([]byte, []int) {
+ return file_onebot_api_proto_rawDescGZIP(), []int{42}
+}
-func (m *GetStrangerInfoReq) GetUserId() int64 {
- if m != nil {
- return m.UserId
+func (x *GetStrangerInfoReq) GetUserId() int64 {
+ if x != nil {
+ return x.UserId
}
return 0
}
-func (m *GetStrangerInfoReq) GetNoCache() bool {
- if m != nil {
- return m.NoCache
+func (x *GetStrangerInfoReq) GetNoCache() bool {
+ if x != nil {
+ return x.NoCache
}
return false
}
type GetStrangerInfoResp struct {
- UserId int64 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
- Nickname string `protobuf:"bytes,2,opt,name=nickname,proto3" json:"nickname,omitempty"`
- Sex string `protobuf:"bytes,3,opt,name=sex,proto3" json:"sex,omitempty"`
- Age int32 `protobuf:"varint,4,opt,name=age,proto3" json:"age,omitempty"`
- Level int32 `protobuf:"varint,5,opt,name=level,proto3" json:"level,omitempty"`
- LoginDays int64 `protobuf:"varint,6,opt,name=login_days,json=loginDays,proto3" json:"login_days,omitempty"`
- XXX_NoUnkeyedLiteral struct{} `json:"-"`
- XXX_unrecognized []byte `json:"-"`
- XXX_sizecache int32 `json:"-"`
-}
-
-func (m *GetStrangerInfoResp) Reset() { *m = GetStrangerInfoResp{} }
-func (m *GetStrangerInfoResp) String() string { return proto.CompactTextString(m) }
-func (*GetStrangerInfoResp) ProtoMessage() {}
-func (*GetStrangerInfoResp) Descriptor() ([]byte, []int) {
- return fileDescriptor_ed9cadf202f12b1d, []int{41}
-}
-func (m *GetStrangerInfoResp) XXX_Unmarshal(b []byte) error {
- return m.Unmarshal(b)
-}
-func (m *GetStrangerInfoResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- if deterministic {
- return xxx_messageInfo_GetStrangerInfoResp.Marshal(b, m, deterministic)
- } else {
- b = b[:cap(b)]
- n, err := m.MarshalToSizedBuffer(b)
- if err != nil {
- return nil, err
- }
- return b[:n], nil
- }
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ UserId int64 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
+ Nickname string `protobuf:"bytes,2,opt,name=nickname,proto3" json:"nickname,omitempty"`
+ Sex string `protobuf:"bytes,3,opt,name=sex,proto3" json:"sex,omitempty"`
+ Age int32 `protobuf:"varint,4,opt,name=age,proto3" json:"age,omitempty"`
+ Level int32 `protobuf:"varint,5,opt,name=level,proto3" json:"level,omitempty"` // 扩展
+ LoginDays int64 `protobuf:"varint,6,opt,name=login_days,json=loginDays,proto3" json:"login_days,omitempty"` // 扩展
}
-func (m *GetStrangerInfoResp) XXX_Merge(src proto.Message) {
- xxx_messageInfo_GetStrangerInfoResp.Merge(m, src)
+
+func (x *GetStrangerInfoResp) Reset() {
+ *x = GetStrangerInfoResp{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_onebot_api_proto_msgTypes[43]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
}
-func (m *GetStrangerInfoResp) XXX_Size() int {
- return m.Size()
+
+func (x *GetStrangerInfoResp) String() string {
+ return protoimpl.X.MessageStringOf(x)
}
-func (m *GetStrangerInfoResp) XXX_DiscardUnknown() {
- xxx_messageInfo_GetStrangerInfoResp.DiscardUnknown(m)
+
+func (*GetStrangerInfoResp) ProtoMessage() {}
+
+func (x *GetStrangerInfoResp) ProtoReflect() protoreflect.Message {
+ mi := &file_onebot_api_proto_msgTypes[43]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
}
-var xxx_messageInfo_GetStrangerInfoResp proto.InternalMessageInfo
+// Deprecated: Use GetStrangerInfoResp.ProtoReflect.Descriptor instead.
+func (*GetStrangerInfoResp) Descriptor() ([]byte, []int) {
+ return file_onebot_api_proto_rawDescGZIP(), []int{43}
+}
-func (m *GetStrangerInfoResp) GetUserId() int64 {
- if m != nil {
- return m.UserId
+func (x *GetStrangerInfoResp) GetUserId() int64 {
+ if x != nil {
+ return x.UserId
}
return 0
}
-func (m *GetStrangerInfoResp) GetNickname() string {
- if m != nil {
- return m.Nickname
+func (x *GetStrangerInfoResp) GetNickname() string {
+ if x != nil {
+ return x.Nickname
}
return ""
}
-func (m *GetStrangerInfoResp) GetSex() string {
- if m != nil {
- return m.Sex
+func (x *GetStrangerInfoResp) GetSex() string {
+ if x != nil {
+ return x.Sex
}
return ""
}
-func (m *GetStrangerInfoResp) GetAge() int32 {
- if m != nil {
- return m.Age
+func (x *GetStrangerInfoResp) GetAge() int32 {
+ if x != nil {
+ return x.Age
}
return 0
}
-func (m *GetStrangerInfoResp) GetLevel() int32 {
- if m != nil {
- return m.Level
+func (x *GetStrangerInfoResp) GetLevel() int32 {
+ if x != nil {
+ return x.Level
}
return 0
}
-func (m *GetStrangerInfoResp) GetLoginDays() int64 {
- if m != nil {
- return m.LoginDays
+func (x *GetStrangerInfoResp) GetLoginDays() int64 {
+ if x != nil {
+ return x.LoginDays
}
return 0
}
type GetFriendListReq struct {
- XXX_NoUnkeyedLiteral struct{} `json:"-"`
- XXX_unrecognized []byte `json:"-"`
- XXX_sizecache int32 `json:"-"`
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
}
-func (m *GetFriendListReq) Reset() { *m = GetFriendListReq{} }
-func (m *GetFriendListReq) String() string { return proto.CompactTextString(m) }
-func (*GetFriendListReq) ProtoMessage() {}
-func (*GetFriendListReq) Descriptor() ([]byte, []int) {
- return fileDescriptor_ed9cadf202f12b1d, []int{42}
-}
-func (m *GetFriendListReq) XXX_Unmarshal(b []byte) error {
- return m.Unmarshal(b)
-}
-func (m *GetFriendListReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- if deterministic {
- return xxx_messageInfo_GetFriendListReq.Marshal(b, m, deterministic)
- } else {
- b = b[:cap(b)]
- n, err := m.MarshalToSizedBuffer(b)
- if err != nil {
- return nil, err
- }
- return b[:n], nil
+func (x *GetFriendListReq) Reset() {
+ *x = GetFriendListReq{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_onebot_api_proto_msgTypes[44]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
}
}
-func (m *GetFriendListReq) XXX_Merge(src proto.Message) {
- xxx_messageInfo_GetFriendListReq.Merge(m, src)
-}
-func (m *GetFriendListReq) XXX_Size() int {
- return m.Size()
-}
-func (m *GetFriendListReq) XXX_DiscardUnknown() {
- xxx_messageInfo_GetFriendListReq.DiscardUnknown(m)
-}
-
-var xxx_messageInfo_GetFriendListReq proto.InternalMessageInfo
-type GetFriendListResp struct {
- Friend []*GetFriendListResp_Friend `protobuf:"bytes,1,rep,name=friend,proto3" json:"friend,omitempty"`
- XXX_NoUnkeyedLiteral struct{} `json:"-"`
- XXX_unrecognized []byte `json:"-"`
- XXX_sizecache int32 `json:"-"`
+func (x *GetFriendListReq) String() string {
+ return protoimpl.X.MessageStringOf(x)
}
-func (m *GetFriendListResp) Reset() { *m = GetFriendListResp{} }
-func (m *GetFriendListResp) String() string { return proto.CompactTextString(m) }
-func (*GetFriendListResp) ProtoMessage() {}
-func (*GetFriendListResp) Descriptor() ([]byte, []int) {
- return fileDescriptor_ed9cadf202f12b1d, []int{43}
-}
-func (m *GetFriendListResp) XXX_Unmarshal(b []byte) error {
- return m.Unmarshal(b)
-}
-func (m *GetFriendListResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- if deterministic {
- return xxx_messageInfo_GetFriendListResp.Marshal(b, m, deterministic)
- } else {
- b = b[:cap(b)]
- n, err := m.MarshalToSizedBuffer(b)
- if err != nil {
- return nil, err
+func (*GetFriendListReq) ProtoMessage() {}
+
+func (x *GetFriendListReq) ProtoReflect() protoreflect.Message {
+ mi := &file_onebot_api_proto_msgTypes[44]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
}
- return b[:n], nil
+ return ms
}
+ return mi.MessageOf(x)
}
-func (m *GetFriendListResp) XXX_Merge(src proto.Message) {
- xxx_messageInfo_GetFriendListResp.Merge(m, src)
-}
-func (m *GetFriendListResp) XXX_Size() int {
- return m.Size()
-}
-func (m *GetFriendListResp) XXX_DiscardUnknown() {
- xxx_messageInfo_GetFriendListResp.DiscardUnknown(m)
+
+// Deprecated: Use GetFriendListReq.ProtoReflect.Descriptor instead.
+func (*GetFriendListReq) Descriptor() ([]byte, []int) {
+ return file_onebot_api_proto_rawDescGZIP(), []int{44}
}
-var xxx_messageInfo_GetFriendListResp proto.InternalMessageInfo
+type GetFriendListResp struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ Friend []*GetFriendListResp_Friend `protobuf:"bytes,1,rep,name=friend,proto3" json:"friend,omitempty"`
+}
-func (m *GetFriendListResp) GetFriend() []*GetFriendListResp_Friend {
- if m != nil {
- return m.Friend
+func (x *GetFriendListResp) Reset() {
+ *x = GetFriendListResp{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_onebot_api_proto_msgTypes[45]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
}
- return nil
}
-type GetFriendListResp_Friend struct {
- UserId int64 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
- Nickname string `protobuf:"bytes,2,opt,name=nickname,proto3" json:"nickname,omitempty"`
- Remark string `protobuf:"bytes,3,opt,name=remark,proto3" json:"remark,omitempty"`
- XXX_NoUnkeyedLiteral struct{} `json:"-"`
- XXX_unrecognized []byte `json:"-"`
- XXX_sizecache int32 `json:"-"`
+func (x *GetFriendListResp) String() string {
+ return protoimpl.X.MessageStringOf(x)
}
-func (m *GetFriendListResp_Friend) Reset() { *m = GetFriendListResp_Friend{} }
-func (m *GetFriendListResp_Friend) String() string { return proto.CompactTextString(m) }
-func (*GetFriendListResp_Friend) ProtoMessage() {}
-func (*GetFriendListResp_Friend) Descriptor() ([]byte, []int) {
- return fileDescriptor_ed9cadf202f12b1d, []int{43, 0}
-}
-func (m *GetFriendListResp_Friend) XXX_Unmarshal(b []byte) error {
- return m.Unmarshal(b)
-}
-func (m *GetFriendListResp_Friend) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- if deterministic {
- return xxx_messageInfo_GetFriendListResp_Friend.Marshal(b, m, deterministic)
- } else {
- b = b[:cap(b)]
- n, err := m.MarshalToSizedBuffer(b)
- if err != nil {
- return nil, err
+func (*GetFriendListResp) ProtoMessage() {}
+
+func (x *GetFriendListResp) ProtoReflect() protoreflect.Message {
+ mi := &file_onebot_api_proto_msgTypes[45]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
}
- return b[:n], nil
+ return ms
}
-}
-func (m *GetFriendListResp_Friend) XXX_Merge(src proto.Message) {
- xxx_messageInfo_GetFriendListResp_Friend.Merge(m, src)
-}
-func (m *GetFriendListResp_Friend) XXX_Size() int {
- return m.Size()
-}
-func (m *GetFriendListResp_Friend) XXX_DiscardUnknown() {
- xxx_messageInfo_GetFriendListResp_Friend.DiscardUnknown(m)
+ return mi.MessageOf(x)
}
-var xxx_messageInfo_GetFriendListResp_Friend proto.InternalMessageInfo
+// Deprecated: Use GetFriendListResp.ProtoReflect.Descriptor instead.
+func (*GetFriendListResp) Descriptor() ([]byte, []int) {
+ return file_onebot_api_proto_rawDescGZIP(), []int{45}
+}
-func (m *GetFriendListResp_Friend) GetUserId() int64 {
- if m != nil {
- return m.UserId
+func (x *GetFriendListResp) GetFriend() []*GetFriendListResp_Friend {
+ if x != nil {
+ return x.Friend
}
- return 0
+ return nil
}
-func (m *GetFriendListResp_Friend) GetNickname() string {
- if m != nil {
- return m.Nickname
- }
- return ""
+type GetGroupInfoReq struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ GroupId int64 `protobuf:"varint,1,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty"`
+ NoCache bool `protobuf:"varint,2,opt,name=no_cache,json=noCache,proto3" json:"no_cache,omitempty"`
}
-func (m *GetFriendListResp_Friend) GetRemark() string {
- if m != nil {
- return m.Remark
+func (x *GetGroupInfoReq) Reset() {
+ *x = GetGroupInfoReq{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_onebot_api_proto_msgTypes[46]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
}
- return ""
}
-type GetGroupInfoReq struct {
- GroupId int64 `protobuf:"varint,1,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty"`
- NoCache bool `protobuf:"varint,2,opt,name=no_cache,json=noCache,proto3" json:"no_cache,omitempty"`
- XXX_NoUnkeyedLiteral struct{} `json:"-"`
- XXX_unrecognized []byte `json:"-"`
- XXX_sizecache int32 `json:"-"`
+func (x *GetGroupInfoReq) String() string {
+ return protoimpl.X.MessageStringOf(x)
}
-func (m *GetGroupInfoReq) Reset() { *m = GetGroupInfoReq{} }
-func (m *GetGroupInfoReq) String() string { return proto.CompactTextString(m) }
-func (*GetGroupInfoReq) ProtoMessage() {}
-func (*GetGroupInfoReq) Descriptor() ([]byte, []int) {
- return fileDescriptor_ed9cadf202f12b1d, []int{44}
-}
-func (m *GetGroupInfoReq) XXX_Unmarshal(b []byte) error {
- return m.Unmarshal(b)
-}
-func (m *GetGroupInfoReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- if deterministic {
- return xxx_messageInfo_GetGroupInfoReq.Marshal(b, m, deterministic)
- } else {
- b = b[:cap(b)]
- n, err := m.MarshalToSizedBuffer(b)
- if err != nil {
- return nil, err
+func (*GetGroupInfoReq) ProtoMessage() {}
+
+func (x *GetGroupInfoReq) ProtoReflect() protoreflect.Message {
+ mi := &file_onebot_api_proto_msgTypes[46]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
}
- return b[:n], nil
+ return ms
}
-}
-func (m *GetGroupInfoReq) XXX_Merge(src proto.Message) {
- xxx_messageInfo_GetGroupInfoReq.Merge(m, src)
-}
-func (m *GetGroupInfoReq) XXX_Size() int {
- return m.Size()
-}
-func (m *GetGroupInfoReq) XXX_DiscardUnknown() {
- xxx_messageInfo_GetGroupInfoReq.DiscardUnknown(m)
+ return mi.MessageOf(x)
}
-var xxx_messageInfo_GetGroupInfoReq proto.InternalMessageInfo
+// Deprecated: Use GetGroupInfoReq.ProtoReflect.Descriptor instead.
+func (*GetGroupInfoReq) Descriptor() ([]byte, []int) {
+ return file_onebot_api_proto_rawDescGZIP(), []int{46}
+}
-func (m *GetGroupInfoReq) GetGroupId() int64 {
- if m != nil {
- return m.GroupId
+func (x *GetGroupInfoReq) GetGroupId() int64 {
+ if x != nil {
+ return x.GroupId
}
return 0
}
-func (m *GetGroupInfoReq) GetNoCache() bool {
- if m != nil {
- return m.NoCache
+func (x *GetGroupInfoReq) GetNoCache() bool {
+ if x != nil {
+ return x.NoCache
}
return false
}
type GetGroupInfoResp struct {
- GroupId int64 `protobuf:"varint,1,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty"`
- GroupName string `protobuf:"bytes,2,opt,name=group_name,json=groupName,proto3" json:"group_name,omitempty"`
- MemberCount int32 `protobuf:"varint,3,opt,name=member_count,json=memberCount,proto3" json:"member_count,omitempty"`
- MaxMemberCount int32 `protobuf:"varint,4,opt,name=max_member_count,json=maxMemberCount,proto3" json:"max_member_count,omitempty"`
- XXX_NoUnkeyedLiteral struct{} `json:"-"`
- XXX_unrecognized []byte `json:"-"`
- XXX_sizecache int32 `json:"-"`
-}
-
-func (m *GetGroupInfoResp) Reset() { *m = GetGroupInfoResp{} }
-func (m *GetGroupInfoResp) String() string { return proto.CompactTextString(m) }
-func (*GetGroupInfoResp) ProtoMessage() {}
-func (*GetGroupInfoResp) Descriptor() ([]byte, []int) {
- return fileDescriptor_ed9cadf202f12b1d, []int{45}
-}
-func (m *GetGroupInfoResp) XXX_Unmarshal(b []byte) error {
- return m.Unmarshal(b)
-}
-func (m *GetGroupInfoResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- if deterministic {
- return xxx_messageInfo_GetGroupInfoResp.Marshal(b, m, deterministic)
- } else {
- b = b[:cap(b)]
- n, err := m.MarshalToSizedBuffer(b)
- if err != nil {
- return nil, err
- }
- return b[:n], nil
- }
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ GroupId int64 `protobuf:"varint,1,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty"`
+ GroupName string `protobuf:"bytes,2,opt,name=group_name,json=groupName,proto3" json:"group_name,omitempty"`
+ MemberCount int32 `protobuf:"varint,3,opt,name=member_count,json=memberCount,proto3" json:"member_count,omitempty"`
+ MaxMemberCount int32 `protobuf:"varint,4,opt,name=max_member_count,json=maxMemberCount,proto3" json:"max_member_count,omitempty"`
}
-func (m *GetGroupInfoResp) XXX_Merge(src proto.Message) {
- xxx_messageInfo_GetGroupInfoResp.Merge(m, src)
+
+func (x *GetGroupInfoResp) Reset() {
+ *x = GetGroupInfoResp{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_onebot_api_proto_msgTypes[47]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
}
-func (m *GetGroupInfoResp) XXX_Size() int {
- return m.Size()
+
+func (x *GetGroupInfoResp) String() string {
+ return protoimpl.X.MessageStringOf(x)
}
-func (m *GetGroupInfoResp) XXX_DiscardUnknown() {
- xxx_messageInfo_GetGroupInfoResp.DiscardUnknown(m)
+
+func (*GetGroupInfoResp) ProtoMessage() {}
+
+func (x *GetGroupInfoResp) ProtoReflect() protoreflect.Message {
+ mi := &file_onebot_api_proto_msgTypes[47]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
}
-var xxx_messageInfo_GetGroupInfoResp proto.InternalMessageInfo
+// Deprecated: Use GetGroupInfoResp.ProtoReflect.Descriptor instead.
+func (*GetGroupInfoResp) Descriptor() ([]byte, []int) {
+ return file_onebot_api_proto_rawDescGZIP(), []int{47}
+}
-func (m *GetGroupInfoResp) GetGroupId() int64 {
- if m != nil {
- return m.GroupId
+func (x *GetGroupInfoResp) GetGroupId() int64 {
+ if x != nil {
+ return x.GroupId
}
return 0
}
-func (m *GetGroupInfoResp) GetGroupName() string {
- if m != nil {
- return m.GroupName
+func (x *GetGroupInfoResp) GetGroupName() string {
+ if x != nil {
+ return x.GroupName
}
return ""
}
-func (m *GetGroupInfoResp) GetMemberCount() int32 {
- if m != nil {
- return m.MemberCount
+func (x *GetGroupInfoResp) GetMemberCount() int32 {
+ if x != nil {
+ return x.MemberCount
}
return 0
}
-func (m *GetGroupInfoResp) GetMaxMemberCount() int32 {
- if m != nil {
- return m.MaxMemberCount
+func (x *GetGroupInfoResp) GetMaxMemberCount() int32 {
+ if x != nil {
+ return x.MaxMemberCount
}
return 0
}
type GetGroupListReq struct {
- XXX_NoUnkeyedLiteral struct{} `json:"-"`
- XXX_unrecognized []byte `json:"-"`
- XXX_sizecache int32 `json:"-"`
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
}
-func (m *GetGroupListReq) Reset() { *m = GetGroupListReq{} }
-func (m *GetGroupListReq) String() string { return proto.CompactTextString(m) }
-func (*GetGroupListReq) ProtoMessage() {}
-func (*GetGroupListReq) Descriptor() ([]byte, []int) {
- return fileDescriptor_ed9cadf202f12b1d, []int{46}
-}
-func (m *GetGroupListReq) XXX_Unmarshal(b []byte) error {
- return m.Unmarshal(b)
-}
-func (m *GetGroupListReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- if deterministic {
- return xxx_messageInfo_GetGroupListReq.Marshal(b, m, deterministic)
- } else {
- b = b[:cap(b)]
- n, err := m.MarshalToSizedBuffer(b)
- if err != nil {
- return nil, err
- }
- return b[:n], nil
+func (x *GetGroupListReq) Reset() {
+ *x = GetGroupListReq{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_onebot_api_proto_msgTypes[48]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
}
}
-func (m *GetGroupListReq) XXX_Merge(src proto.Message) {
- xxx_messageInfo_GetGroupListReq.Merge(m, src)
-}
-func (m *GetGroupListReq) XXX_Size() int {
- return m.Size()
-}
-func (m *GetGroupListReq) XXX_DiscardUnknown() {
- xxx_messageInfo_GetGroupListReq.DiscardUnknown(m)
-}
-var xxx_messageInfo_GetGroupListReq proto.InternalMessageInfo
-
-type GetGroupListResp struct {
- Group []*GetGroupListResp_Group `protobuf:"bytes,1,rep,name=group,proto3" json:"group,omitempty"`
- XXX_NoUnkeyedLiteral struct{} `json:"-"`
- XXX_unrecognized []byte `json:"-"`
- XXX_sizecache int32 `json:"-"`
+func (x *GetGroupListReq) String() string {
+ return protoimpl.X.MessageStringOf(x)
}
-func (m *GetGroupListResp) Reset() { *m = GetGroupListResp{} }
-func (m *GetGroupListResp) String() string { return proto.CompactTextString(m) }
-func (*GetGroupListResp) ProtoMessage() {}
-func (*GetGroupListResp) Descriptor() ([]byte, []int) {
- return fileDescriptor_ed9cadf202f12b1d, []int{47}
-}
-func (m *GetGroupListResp) XXX_Unmarshal(b []byte) error {
- return m.Unmarshal(b)
-}
-func (m *GetGroupListResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- if deterministic {
- return xxx_messageInfo_GetGroupListResp.Marshal(b, m, deterministic)
- } else {
- b = b[:cap(b)]
- n, err := m.MarshalToSizedBuffer(b)
- if err != nil {
- return nil, err
+func (*GetGroupListReq) ProtoMessage() {}
+
+func (x *GetGroupListReq) ProtoReflect() protoreflect.Message {
+ mi := &file_onebot_api_proto_msgTypes[48]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
}
- return b[:n], nil
+ return ms
}
+ return mi.MessageOf(x)
}
-func (m *GetGroupListResp) XXX_Merge(src proto.Message) {
- xxx_messageInfo_GetGroupListResp.Merge(m, src)
-}
-func (m *GetGroupListResp) XXX_Size() int {
- return m.Size()
-}
-func (m *GetGroupListResp) XXX_DiscardUnknown() {
- xxx_messageInfo_GetGroupListResp.DiscardUnknown(m)
+
+// Deprecated: Use GetGroupListReq.ProtoReflect.Descriptor instead.
+func (*GetGroupListReq) Descriptor() ([]byte, []int) {
+ return file_onebot_api_proto_rawDescGZIP(), []int{48}
}
-var xxx_messageInfo_GetGroupListResp proto.InternalMessageInfo
+type GetGroupListResp struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
-func (m *GetGroupListResp) GetGroup() []*GetGroupListResp_Group {
- if m != nil {
- return m.Group
- }
- return nil
+ Group []*GetGroupListResp_Group `protobuf:"bytes,1,rep,name=group,proto3" json:"group,omitempty"`
}
-type GetGroupListResp_Group struct {
- GroupId int64 `protobuf:"varint,1,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty"`
- GroupName string `protobuf:"bytes,2,opt,name=group_name,json=groupName,proto3" json:"group_name,omitempty"`
- MemberCount int32 `protobuf:"varint,3,opt,name=member_count,json=memberCount,proto3" json:"member_count,omitempty"`
- MaxMemberCount int32 `protobuf:"varint,4,opt,name=max_member_count,json=maxMemberCount,proto3" json:"max_member_count,omitempty"`
- XXX_NoUnkeyedLiteral struct{} `json:"-"`
- XXX_unrecognized []byte `json:"-"`
- XXX_sizecache int32 `json:"-"`
-}
-
-func (m *GetGroupListResp_Group) Reset() { *m = GetGroupListResp_Group{} }
-func (m *GetGroupListResp_Group) String() string { return proto.CompactTextString(m) }
-func (*GetGroupListResp_Group) ProtoMessage() {}
-func (*GetGroupListResp_Group) Descriptor() ([]byte, []int) {
- return fileDescriptor_ed9cadf202f12b1d, []int{47, 0}
-}
-func (m *GetGroupListResp_Group) XXX_Unmarshal(b []byte) error {
- return m.Unmarshal(b)
-}
-func (m *GetGroupListResp_Group) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- if deterministic {
- return xxx_messageInfo_GetGroupListResp_Group.Marshal(b, m, deterministic)
- } else {
- b = b[:cap(b)]
- n, err := m.MarshalToSizedBuffer(b)
- if err != nil {
- return nil, err
- }
- return b[:n], nil
+func (x *GetGroupListResp) Reset() {
+ *x = GetGroupListResp{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_onebot_api_proto_msgTypes[49]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
}
}
-func (m *GetGroupListResp_Group) XXX_Merge(src proto.Message) {
- xxx_messageInfo_GetGroupListResp_Group.Merge(m, src)
-}
-func (m *GetGroupListResp_Group) XXX_Size() int {
- return m.Size()
-}
-func (m *GetGroupListResp_Group) XXX_DiscardUnknown() {
- xxx_messageInfo_GetGroupListResp_Group.DiscardUnknown(m)
+
+func (x *GetGroupListResp) String() string {
+ return protoimpl.X.MessageStringOf(x)
}
-var xxx_messageInfo_GetGroupListResp_Group proto.InternalMessageInfo
+func (*GetGroupListResp) ProtoMessage() {}
-func (m *GetGroupListResp_Group) GetGroupId() int64 {
- if m != nil {
- return m.GroupId
+func (x *GetGroupListResp) ProtoReflect() protoreflect.Message {
+ mi := &file_onebot_api_proto_msgTypes[49]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
}
- return 0
+ return mi.MessageOf(x)
}
-func (m *GetGroupListResp_Group) GetGroupName() string {
- if m != nil {
- return m.GroupName
- }
- return ""
+// Deprecated: Use GetGroupListResp.ProtoReflect.Descriptor instead.
+func (*GetGroupListResp) Descriptor() ([]byte, []int) {
+ return file_onebot_api_proto_rawDescGZIP(), []int{49}
}
-func (m *GetGroupListResp_Group) GetMemberCount() int32 {
- if m != nil {
- return m.MemberCount
+func (x *GetGroupListResp) GetGroup() []*GetGroupListResp_Group {
+ if x != nil {
+ return x.Group
}
- return 0
+ return nil
+}
+
+type GetGroupMemberInfoReq struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ GroupId int64 `protobuf:"varint,1,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty"`
+ UserId int64 `protobuf:"varint,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
+ NoCache bool `protobuf:"varint,3,opt,name=no_cache,json=noCache,proto3" json:"no_cache,omitempty"`
}
-func (m *GetGroupListResp_Group) GetMaxMemberCount() int32 {
- if m != nil {
- return m.MaxMemberCount
+func (x *GetGroupMemberInfoReq) Reset() {
+ *x = GetGroupMemberInfoReq{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_onebot_api_proto_msgTypes[50]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
}
- return 0
}
-type GetGroupMemberInfoReq struct {
- GroupId int64 `protobuf:"varint,1,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty"`
- UserId int64 `protobuf:"varint,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
- NoCache bool `protobuf:"varint,3,opt,name=no_cache,json=noCache,proto3" json:"no_cache,omitempty"`
- XXX_NoUnkeyedLiteral struct{} `json:"-"`
- XXX_unrecognized []byte `json:"-"`
- XXX_sizecache int32 `json:"-"`
+func (x *GetGroupMemberInfoReq) String() string {
+ return protoimpl.X.MessageStringOf(x)
}
-func (m *GetGroupMemberInfoReq) Reset() { *m = GetGroupMemberInfoReq{} }
-func (m *GetGroupMemberInfoReq) String() string { return proto.CompactTextString(m) }
-func (*GetGroupMemberInfoReq) ProtoMessage() {}
-func (*GetGroupMemberInfoReq) Descriptor() ([]byte, []int) {
- return fileDescriptor_ed9cadf202f12b1d, []int{48}
-}
-func (m *GetGroupMemberInfoReq) XXX_Unmarshal(b []byte) error {
- return m.Unmarshal(b)
-}
-func (m *GetGroupMemberInfoReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- if deterministic {
- return xxx_messageInfo_GetGroupMemberInfoReq.Marshal(b, m, deterministic)
- } else {
- b = b[:cap(b)]
- n, err := m.MarshalToSizedBuffer(b)
- if err != nil {
- return nil, err
+func (*GetGroupMemberInfoReq) ProtoMessage() {}
+
+func (x *GetGroupMemberInfoReq) ProtoReflect() protoreflect.Message {
+ mi := &file_onebot_api_proto_msgTypes[50]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
}
- return b[:n], nil
+ return ms
}
-}
-func (m *GetGroupMemberInfoReq) XXX_Merge(src proto.Message) {
- xxx_messageInfo_GetGroupMemberInfoReq.Merge(m, src)
-}
-func (m *GetGroupMemberInfoReq) XXX_Size() int {
- return m.Size()
-}
-func (m *GetGroupMemberInfoReq) XXX_DiscardUnknown() {
- xxx_messageInfo_GetGroupMemberInfoReq.DiscardUnknown(m)
+ return mi.MessageOf(x)
}
-var xxx_messageInfo_GetGroupMemberInfoReq proto.InternalMessageInfo
+// Deprecated: Use GetGroupMemberInfoReq.ProtoReflect.Descriptor instead.
+func (*GetGroupMemberInfoReq) Descriptor() ([]byte, []int) {
+ return file_onebot_api_proto_rawDescGZIP(), []int{50}
+}
-func (m *GetGroupMemberInfoReq) GetGroupId() int64 {
- if m != nil {
- return m.GroupId
+func (x *GetGroupMemberInfoReq) GetGroupId() int64 {
+ if x != nil {
+ return x.GroupId
}
return 0
}
-func (m *GetGroupMemberInfoReq) GetUserId() int64 {
- if m != nil {
- return m.UserId
+func (x *GetGroupMemberInfoReq) GetUserId() int64 {
+ if x != nil {
+ return x.UserId
}
return 0
}
-func (m *GetGroupMemberInfoReq) GetNoCache() bool {
- if m != nil {
- return m.NoCache
+func (x *GetGroupMemberInfoReq) GetNoCache() bool {
+ if x != nil {
+ return x.NoCache
}
return false
}
type GetGroupMemberInfoResp struct {
- GroupId int64 `protobuf:"varint,1,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty"`
- UserId int64 `protobuf:"varint,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
- Nickname string `protobuf:"bytes,3,opt,name=nickname,proto3" json:"nickname,omitempty"`
- Card string `protobuf:"bytes,4,opt,name=card,proto3" json:"card,omitempty"`
- Sex string `protobuf:"bytes,5,opt,name=sex,proto3" json:"sex,omitempty"`
- Age int32 `protobuf:"varint,6,opt,name=age,proto3" json:"age,omitempty"`
- Area string `protobuf:"bytes,7,opt,name=area,proto3" json:"area,omitempty"`
- JoinTime int64 `protobuf:"varint,8,opt,name=join_time,json=joinTime,proto3" json:"join_time,omitempty"`
- LastSentTime int64 `protobuf:"varint,9,opt,name=last_sent_time,json=lastSentTime,proto3" json:"last_sent_time,omitempty"`
- Level string `protobuf:"bytes,10,opt,name=level,proto3" json:"level,omitempty"`
- Role string `protobuf:"bytes,11,opt,name=role,proto3" json:"role,omitempty"`
- Unfriendly bool `protobuf:"varint,12,opt,name=unfriendly,proto3" json:"unfriendly,omitempty"`
- Title string `protobuf:"bytes,13,opt,name=title,proto3" json:"title,omitempty"`
- TitleExpireTime int64 `protobuf:"varint,14,opt,name=title_expire_time,json=titleExpireTime,proto3" json:"title_expire_time,omitempty"`
- CardChangeable bool `protobuf:"varint,15,opt,name=card_changeable,json=cardChangeable,proto3" json:"card_changeable,omitempty"`
- XXX_NoUnkeyedLiteral struct{} `json:"-"`
- XXX_unrecognized []byte `json:"-"`
- XXX_sizecache int32 `json:"-"`
-}
-
-func (m *GetGroupMemberInfoResp) Reset() { *m = GetGroupMemberInfoResp{} }
-func (m *GetGroupMemberInfoResp) String() string { return proto.CompactTextString(m) }
-func (*GetGroupMemberInfoResp) ProtoMessage() {}
-func (*GetGroupMemberInfoResp) Descriptor() ([]byte, []int) {
- return fileDescriptor_ed9cadf202f12b1d, []int{49}
-}
-func (m *GetGroupMemberInfoResp) XXX_Unmarshal(b []byte) error {
- return m.Unmarshal(b)
-}
-func (m *GetGroupMemberInfoResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- if deterministic {
- return xxx_messageInfo_GetGroupMemberInfoResp.Marshal(b, m, deterministic)
- } else {
- b = b[:cap(b)]
- n, err := m.MarshalToSizedBuffer(b)
- if err != nil {
- return nil, err
- }
- return b[:n], nil
- }
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ GroupId int64 `protobuf:"varint,1,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty"`
+ UserId int64 `protobuf:"varint,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
+ Nickname string `protobuf:"bytes,3,opt,name=nickname,proto3" json:"nickname,omitempty"`
+ Card string `protobuf:"bytes,4,opt,name=card,proto3" json:"card,omitempty"`
+ Sex string `protobuf:"bytes,5,opt,name=sex,proto3" json:"sex,omitempty"`
+ Age int32 `protobuf:"varint,6,opt,name=age,proto3" json:"age,omitempty"`
+ Area string `protobuf:"bytes,7,opt,name=area,proto3" json:"area,omitempty"`
+ JoinTime int64 `protobuf:"varint,8,opt,name=join_time,json=joinTime,proto3" json:"join_time,omitempty"`
+ LastSentTime int64 `protobuf:"varint,9,opt,name=last_sent_time,json=lastSentTime,proto3" json:"last_sent_time,omitempty"`
+ Level string `protobuf:"bytes,10,opt,name=level,proto3" json:"level,omitempty"`
+ Role string `protobuf:"bytes,11,opt,name=role,proto3" json:"role,omitempty"`
+ Unfriendly bool `protobuf:"varint,12,opt,name=unfriendly,proto3" json:"unfriendly,omitempty"`
+ Title string `protobuf:"bytes,13,opt,name=title,proto3" json:"title,omitempty"`
+ TitleExpireTime int64 `protobuf:"varint,14,opt,name=title_expire_time,json=titleExpireTime,proto3" json:"title_expire_time,omitempty"`
+ CardChangeable bool `protobuf:"varint,15,opt,name=card_changeable,json=cardChangeable,proto3" json:"card_changeable,omitempty"`
}
-func (m *GetGroupMemberInfoResp) XXX_Merge(src proto.Message) {
- xxx_messageInfo_GetGroupMemberInfoResp.Merge(m, src)
+
+func (x *GetGroupMemberInfoResp) Reset() {
+ *x = GetGroupMemberInfoResp{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_onebot_api_proto_msgTypes[51]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
}
-func (m *GetGroupMemberInfoResp) XXX_Size() int {
- return m.Size()
+
+func (x *GetGroupMemberInfoResp) String() string {
+ return protoimpl.X.MessageStringOf(x)
}
-func (m *GetGroupMemberInfoResp) XXX_DiscardUnknown() {
- xxx_messageInfo_GetGroupMemberInfoResp.DiscardUnknown(m)
+
+func (*GetGroupMemberInfoResp) ProtoMessage() {}
+
+func (x *GetGroupMemberInfoResp) ProtoReflect() protoreflect.Message {
+ mi := &file_onebot_api_proto_msgTypes[51]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
}
-var xxx_messageInfo_GetGroupMemberInfoResp proto.InternalMessageInfo
+// Deprecated: Use GetGroupMemberInfoResp.ProtoReflect.Descriptor instead.
+func (*GetGroupMemberInfoResp) Descriptor() ([]byte, []int) {
+ return file_onebot_api_proto_rawDescGZIP(), []int{51}
+}
-func (m *GetGroupMemberInfoResp) GetGroupId() int64 {
- if m != nil {
- return m.GroupId
+func (x *GetGroupMemberInfoResp) GetGroupId() int64 {
+ if x != nil {
+ return x.GroupId
}
return 0
}
-func (m *GetGroupMemberInfoResp) GetUserId() int64 {
- if m != nil {
- return m.UserId
+func (x *GetGroupMemberInfoResp) GetUserId() int64 {
+ if x != nil {
+ return x.UserId
}
return 0
}
-func (m *GetGroupMemberInfoResp) GetNickname() string {
- if m != nil {
- return m.Nickname
+func (x *GetGroupMemberInfoResp) GetNickname() string {
+ if x != nil {
+ return x.Nickname
}
return ""
}
-func (m *GetGroupMemberInfoResp) GetCard() string {
- if m != nil {
- return m.Card
+func (x *GetGroupMemberInfoResp) GetCard() string {
+ if x != nil {
+ return x.Card
}
return ""
}
-func (m *GetGroupMemberInfoResp) GetSex() string {
- if m != nil {
- return m.Sex
+func (x *GetGroupMemberInfoResp) GetSex() string {
+ if x != nil {
+ return x.Sex
}
return ""
}
-func (m *GetGroupMemberInfoResp) GetAge() int32 {
- if m != nil {
- return m.Age
+func (x *GetGroupMemberInfoResp) GetAge() int32 {
+ if x != nil {
+ return x.Age
}
return 0
}
-func (m *GetGroupMemberInfoResp) GetArea() string {
- if m != nil {
- return m.Area
+func (x *GetGroupMemberInfoResp) GetArea() string {
+ if x != nil {
+ return x.Area
}
return ""
}
-func (m *GetGroupMemberInfoResp) GetJoinTime() int64 {
- if m != nil {
- return m.JoinTime
+func (x *GetGroupMemberInfoResp) GetJoinTime() int64 {
+ if x != nil {
+ return x.JoinTime
}
return 0
}
-func (m *GetGroupMemberInfoResp) GetLastSentTime() int64 {
- if m != nil {
- return m.LastSentTime
+func (x *GetGroupMemberInfoResp) GetLastSentTime() int64 {
+ if x != nil {
+ return x.LastSentTime
}
return 0
}
-func (m *GetGroupMemberInfoResp) GetLevel() string {
- if m != nil {
- return m.Level
+func (x *GetGroupMemberInfoResp) GetLevel() string {
+ if x != nil {
+ return x.Level
}
return ""
}
-func (m *GetGroupMemberInfoResp) GetRole() string {
- if m != nil {
- return m.Role
+func (x *GetGroupMemberInfoResp) GetRole() string {
+ if x != nil {
+ return x.Role
}
return ""
}
-func (m *GetGroupMemberInfoResp) GetUnfriendly() bool {
- if m != nil {
- return m.Unfriendly
+func (x *GetGroupMemberInfoResp) GetUnfriendly() bool {
+ if x != nil {
+ return x.Unfriendly
}
return false
}
-func (m *GetGroupMemberInfoResp) GetTitle() string {
- if m != nil {
- return m.Title
+func (x *GetGroupMemberInfoResp) GetTitle() string {
+ if x != nil {
+ return x.Title
}
return ""
}
-func (m *GetGroupMemberInfoResp) GetTitleExpireTime() int64 {
- if m != nil {
- return m.TitleExpireTime
+func (x *GetGroupMemberInfoResp) GetTitleExpireTime() int64 {
+ if x != nil {
+ return x.TitleExpireTime
}
return 0
}
-func (m *GetGroupMemberInfoResp) GetCardChangeable() bool {
- if m != nil {
- return m.CardChangeable
+func (x *GetGroupMemberInfoResp) GetCardChangeable() bool {
+ if x != nil {
+ return x.CardChangeable
}
return false
}
type GetGroupMemberListReq struct {
- GroupId int64 `protobuf:"varint,1,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty"`
- XXX_NoUnkeyedLiteral struct{} `json:"-"`
- XXX_unrecognized []byte `json:"-"`
- XXX_sizecache int32 `json:"-"`
-}
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
-func (m *GetGroupMemberListReq) Reset() { *m = GetGroupMemberListReq{} }
-func (m *GetGroupMemberListReq) String() string { return proto.CompactTextString(m) }
-func (*GetGroupMemberListReq) ProtoMessage() {}
-func (*GetGroupMemberListReq) Descriptor() ([]byte, []int) {
- return fileDescriptor_ed9cadf202f12b1d, []int{50}
-}
-func (m *GetGroupMemberListReq) XXX_Unmarshal(b []byte) error {
- return m.Unmarshal(b)
-}
-func (m *GetGroupMemberListReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- if deterministic {
- return xxx_messageInfo_GetGroupMemberListReq.Marshal(b, m, deterministic)
- } else {
- b = b[:cap(b)]
- n, err := m.MarshalToSizedBuffer(b)
- if err != nil {
- return nil, err
- }
- return b[:n], nil
- }
+ GroupId int64 `protobuf:"varint,1,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty"`
}
-func (m *GetGroupMemberListReq) XXX_Merge(src proto.Message) {
- xxx_messageInfo_GetGroupMemberListReq.Merge(m, src)
-}
-func (m *GetGroupMemberListReq) XXX_Size() int {
- return m.Size()
-}
-func (m *GetGroupMemberListReq) XXX_DiscardUnknown() {
- xxx_messageInfo_GetGroupMemberListReq.DiscardUnknown(m)
-}
-
-var xxx_messageInfo_GetGroupMemberListReq proto.InternalMessageInfo
-func (m *GetGroupMemberListReq) GetGroupId() int64 {
- if m != nil {
- return m.GroupId
+func (x *GetGroupMemberListReq) Reset() {
+ *x = GetGroupMemberListReq{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_onebot_api_proto_msgTypes[52]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
}
- return 0
}
-type GetGroupMemberListResp struct {
- GroupMember []*GetGroupMemberListResp_GroupMember `protobuf:"bytes,1,rep,name=group_member,json=groupMember,proto3" json:"group_member,omitempty"`
- XXX_NoUnkeyedLiteral struct{} `json:"-"`
- XXX_unrecognized []byte `json:"-"`
- XXX_sizecache int32 `json:"-"`
+func (x *GetGroupMemberListReq) String() string {
+ return protoimpl.X.MessageStringOf(x)
}
-func (m *GetGroupMemberListResp) Reset() { *m = GetGroupMemberListResp{} }
-func (m *GetGroupMemberListResp) String() string { return proto.CompactTextString(m) }
-func (*GetGroupMemberListResp) ProtoMessage() {}
-func (*GetGroupMemberListResp) Descriptor() ([]byte, []int) {
- return fileDescriptor_ed9cadf202f12b1d, []int{51}
-}
-func (m *GetGroupMemberListResp) XXX_Unmarshal(b []byte) error {
- return m.Unmarshal(b)
-}
-func (m *GetGroupMemberListResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- if deterministic {
- return xxx_messageInfo_GetGroupMemberListResp.Marshal(b, m, deterministic)
- } else {
- b = b[:cap(b)]
- n, err := m.MarshalToSizedBuffer(b)
- if err != nil {
- return nil, err
+func (*GetGroupMemberListReq) ProtoMessage() {}
+
+func (x *GetGroupMemberListReq) ProtoReflect() protoreflect.Message {
+ mi := &file_onebot_api_proto_msgTypes[52]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
}
- return b[:n], nil
+ return ms
}
+ return mi.MessageOf(x)
}
-func (m *GetGroupMemberListResp) XXX_Merge(src proto.Message) {
- xxx_messageInfo_GetGroupMemberListResp.Merge(m, src)
-}
-func (m *GetGroupMemberListResp) XXX_Size() int {
- return m.Size()
-}
-func (m *GetGroupMemberListResp) XXX_DiscardUnknown() {
- xxx_messageInfo_GetGroupMemberListResp.DiscardUnknown(m)
-}
-
-var xxx_messageInfo_GetGroupMemberListResp proto.InternalMessageInfo
-func (m *GetGroupMemberListResp) GetGroupMember() []*GetGroupMemberListResp_GroupMember {
- if m != nil {
- return m.GroupMember
- }
- return nil
+// Deprecated: Use GetGroupMemberListReq.ProtoReflect.Descriptor instead.
+func (*GetGroupMemberListReq) Descriptor() ([]byte, []int) {
+ return file_onebot_api_proto_rawDescGZIP(), []int{52}
}
-type GetGroupMemberListResp_GroupMember struct {
- GroupId int64 `protobuf:"varint,1,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty"`
- UserId int64 `protobuf:"varint,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
- Nickname string `protobuf:"bytes,3,opt,name=nickname,proto3" json:"nickname,omitempty"`
- Card string `protobuf:"bytes,4,opt,name=card,proto3" json:"card,omitempty"`
- Sex string `protobuf:"bytes,5,opt,name=sex,proto3" json:"sex,omitempty"`
- Age int32 `protobuf:"varint,6,opt,name=age,proto3" json:"age,omitempty"`
- Area string `protobuf:"bytes,7,opt,name=area,proto3" json:"area,omitempty"`
- JoinTime int64 `protobuf:"varint,8,opt,name=join_time,json=joinTime,proto3" json:"join_time,omitempty"`
- LastSentTime int64 `protobuf:"varint,9,opt,name=last_sent_time,json=lastSentTime,proto3" json:"last_sent_time,omitempty"`
- Level string `protobuf:"bytes,10,opt,name=level,proto3" json:"level,omitempty"`
- Role string `protobuf:"bytes,11,opt,name=role,proto3" json:"role,omitempty"`
- Unfriendly bool `protobuf:"varint,12,opt,name=unfriendly,proto3" json:"unfriendly,omitempty"`
- Title string `protobuf:"bytes,13,opt,name=title,proto3" json:"title,omitempty"`
- TitleExpireTime int64 `protobuf:"varint,14,opt,name=title_expire_time,json=titleExpireTime,proto3" json:"title_expire_time,omitempty"`
- CardChangeable bool `protobuf:"varint,15,opt,name=card_changeable,json=cardChangeable,proto3" json:"card_changeable,omitempty"`
- XXX_NoUnkeyedLiteral struct{} `json:"-"`
- XXX_unrecognized []byte `json:"-"`
- XXX_sizecache int32 `json:"-"`
-}
-
-func (m *GetGroupMemberListResp_GroupMember) Reset() { *m = GetGroupMemberListResp_GroupMember{} }
-func (m *GetGroupMemberListResp_GroupMember) String() string { return proto.CompactTextString(m) }
-func (*GetGroupMemberListResp_GroupMember) ProtoMessage() {}
-func (*GetGroupMemberListResp_GroupMember) Descriptor() ([]byte, []int) {
- return fileDescriptor_ed9cadf202f12b1d, []int{51, 0}
-}
-func (m *GetGroupMemberListResp_GroupMember) XXX_Unmarshal(b []byte) error {
- return m.Unmarshal(b)
-}
-func (m *GetGroupMemberListResp_GroupMember) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- if deterministic {
- return xxx_messageInfo_GetGroupMemberListResp_GroupMember.Marshal(b, m, deterministic)
- } else {
- b = b[:cap(b)]
- n, err := m.MarshalToSizedBuffer(b)
- if err != nil {
- return nil, err
- }
- return b[:n], nil
+func (x *GetGroupMemberListReq) GetGroupId() int64 {
+ if x != nil {
+ return x.GroupId
}
-}
-func (m *GetGroupMemberListResp_GroupMember) XXX_Merge(src proto.Message) {
- xxx_messageInfo_GetGroupMemberListResp_GroupMember.Merge(m, src)
-}
-func (m *GetGroupMemberListResp_GroupMember) XXX_Size() int {
- return m.Size()
-}
-func (m *GetGroupMemberListResp_GroupMember) XXX_DiscardUnknown() {
- xxx_messageInfo_GetGroupMemberListResp_GroupMember.DiscardUnknown(m)
+ return 0
}
-var xxx_messageInfo_GetGroupMemberListResp_GroupMember proto.InternalMessageInfo
+type GetGroupMemberListResp struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
-func (m *GetGroupMemberListResp_GroupMember) GetGroupId() int64 {
- if m != nil {
- return m.GroupId
- }
- return 0
+ GroupMember []*GetGroupMemberListResp_GroupMember `protobuf:"bytes,1,rep,name=group_member,json=groupMember,proto3" json:"group_member,omitempty"`
}
-func (m *GetGroupMemberListResp_GroupMember) GetUserId() int64 {
- if m != nil {
- return m.UserId
+func (x *GetGroupMemberListResp) Reset() {
+ *x = GetGroupMemberListResp{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_onebot_api_proto_msgTypes[53]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
}
- return 0
}
-func (m *GetGroupMemberListResp_GroupMember) GetNickname() string {
- if m != nil {
- return m.Nickname
- }
- return ""
+func (x *GetGroupMemberListResp) String() string {
+ return protoimpl.X.MessageStringOf(x)
}
-func (m *GetGroupMemberListResp_GroupMember) GetCard() string {
- if m != nil {
- return m.Card
- }
- return ""
-}
+func (*GetGroupMemberListResp) ProtoMessage() {}
-func (m *GetGroupMemberListResp_GroupMember) GetSex() string {
- if m != nil {
- return m.Sex
+func (x *GetGroupMemberListResp) ProtoReflect() protoreflect.Message {
+ mi := &file_onebot_api_proto_msgTypes[53]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
}
- return ""
+ return mi.MessageOf(x)
}
-func (m *GetGroupMemberListResp_GroupMember) GetAge() int32 {
- if m != nil {
- return m.Age
- }
- return 0
+// Deprecated: Use GetGroupMemberListResp.ProtoReflect.Descriptor instead.
+func (*GetGroupMemberListResp) Descriptor() ([]byte, []int) {
+ return file_onebot_api_proto_rawDescGZIP(), []int{53}
}
-func (m *GetGroupMemberListResp_GroupMember) GetArea() string {
- if m != nil {
- return m.Area
+func (x *GetGroupMemberListResp) GetGroupMember() []*GetGroupMemberListResp_GroupMember {
+ if x != nil {
+ return x.GroupMember
}
- return ""
+ return nil
}
-func (m *GetGroupMemberListResp_GroupMember) GetJoinTime() int64 {
- if m != nil {
- return m.JoinTime
- }
- return 0
-}
+type GetGroupHonorInfoReq struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
-func (m *GetGroupMemberListResp_GroupMember) GetLastSentTime() int64 {
- if m != nil {
- return m.LastSentTime
- }
- return 0
+ GroupId int64 `protobuf:"varint,1,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty"`
+ Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"`
}
-func (m *GetGroupMemberListResp_GroupMember) GetLevel() string {
- if m != nil {
- return m.Level
+func (x *GetGroupHonorInfoReq) Reset() {
+ *x = GetGroupHonorInfoReq{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_onebot_api_proto_msgTypes[54]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
}
- return ""
}
-func (m *GetGroupMemberListResp_GroupMember) GetRole() string {
- if m != nil {
- return m.Role
- }
- return ""
+func (x *GetGroupHonorInfoReq) String() string {
+ return protoimpl.X.MessageStringOf(x)
}
-func (m *GetGroupMemberListResp_GroupMember) GetUnfriendly() bool {
- if m != nil {
- return m.Unfriendly
+func (*GetGroupHonorInfoReq) ProtoMessage() {}
+
+func (x *GetGroupHonorInfoReq) ProtoReflect() protoreflect.Message {
+ mi := &file_onebot_api_proto_msgTypes[54]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
}
- return false
+ return mi.MessageOf(x)
}
-func (m *GetGroupMemberListResp_GroupMember) GetTitle() string {
- if m != nil {
- return m.Title
- }
- return ""
+// Deprecated: Use GetGroupHonorInfoReq.ProtoReflect.Descriptor instead.
+func (*GetGroupHonorInfoReq) Descriptor() ([]byte, []int) {
+ return file_onebot_api_proto_rawDescGZIP(), []int{54}
}
-func (m *GetGroupMemberListResp_GroupMember) GetTitleExpireTime() int64 {
- if m != nil {
- return m.TitleExpireTime
+func (x *GetGroupHonorInfoReq) GetGroupId() int64 {
+ if x != nil {
+ return x.GroupId
}
return 0
}
-func (m *GetGroupMemberListResp_GroupMember) GetCardChangeable() bool {
- if m != nil {
- return m.CardChangeable
+func (x *GetGroupHonorInfoReq) GetType() string {
+ if x != nil {
+ return x.Type
}
- return false
+ return ""
}
-type GetGroupHonorInfoReq struct {
- GroupId int64 `protobuf:"varint,1,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty"`
- Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"`
- XXX_NoUnkeyedLiteral struct{} `json:"-"`
- XXX_unrecognized []byte `json:"-"`
- XXX_sizecache int32 `json:"-"`
-}
+type GetGroupHonorInfoResp struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
-func (m *GetGroupHonorInfoReq) Reset() { *m = GetGroupHonorInfoReq{} }
-func (m *GetGroupHonorInfoReq) String() string { return proto.CompactTextString(m) }
-func (*GetGroupHonorInfoReq) ProtoMessage() {}
-func (*GetGroupHonorInfoReq) Descriptor() ([]byte, []int) {
- return fileDescriptor_ed9cadf202f12b1d, []int{52}
-}
-func (m *GetGroupHonorInfoReq) XXX_Unmarshal(b []byte) error {
- return m.Unmarshal(b)
-}
-func (m *GetGroupHonorInfoReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- if deterministic {
- return xxx_messageInfo_GetGroupHonorInfoReq.Marshal(b, m, deterministic)
- } else {
- b = b[:cap(b)]
- n, err := m.MarshalToSizedBuffer(b)
- if err != nil {
- return nil, err
- }
- return b[:n], nil
- }
-}
-func (m *GetGroupHonorInfoReq) XXX_Merge(src proto.Message) {
- xxx_messageInfo_GetGroupHonorInfoReq.Merge(m, src)
-}
-func (m *GetGroupHonorInfoReq) XXX_Size() int {
- return m.Size()
-}
-func (m *GetGroupHonorInfoReq) XXX_DiscardUnknown() {
- xxx_messageInfo_GetGroupHonorInfoReq.DiscardUnknown(m)
+ GroupId int64 `protobuf:"varint,1,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty"`
+ CurrentTalkative *GetGroupHonorInfoResp_CurrentTalkative `protobuf:"bytes,2,opt,name=current_talkative,json=currentTalkative,proto3" json:"current_talkative,omitempty"`
+ Talkative []*GetGroupHonorInfoResp_Honor `protobuf:"bytes,3,rep,name=talkative,proto3" json:"talkative,omitempty"`
+ Performer []*GetGroupHonorInfoResp_Honor `protobuf:"bytes,4,rep,name=performer,proto3" json:"performer,omitempty"`
+ Legend []*GetGroupHonorInfoResp_Honor `protobuf:"bytes,5,rep,name=legend,proto3" json:"legend,omitempty"`
+ StrongNewbie []*GetGroupHonorInfoResp_Honor `protobuf:"bytes,6,rep,name=strong_newbie,json=strongNewbie,proto3" json:"strong_newbie,omitempty"`
+ Emotion []*GetGroupHonorInfoResp_Honor `protobuf:"bytes,7,rep,name=emotion,proto3" json:"emotion,omitempty"`
}
-var xxx_messageInfo_GetGroupHonorInfoReq proto.InternalMessageInfo
-
-func (m *GetGroupHonorInfoReq) GetGroupId() int64 {
- if m != nil {
- return m.GroupId
+func (x *GetGroupHonorInfoResp) Reset() {
+ *x = GetGroupHonorInfoResp{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_onebot_api_proto_msgTypes[55]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
}
- return 0
}
-func (m *GetGroupHonorInfoReq) GetType() string {
- if m != nil {
- return m.Type
- }
- return ""
+func (x *GetGroupHonorInfoResp) String() string {
+ return protoimpl.X.MessageStringOf(x)
}
-type GetGroupHonorInfoResp struct {
- GroupId int64 `protobuf:"varint,1,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty"`
- CurrentTalkative *GetGroupHonorInfoResp_CurrentTalkative `protobuf:"bytes,2,opt,name=current_talkative,json=currentTalkative,proto3" json:"current_talkative,omitempty"`
- Talkative []*GetGroupHonorInfoResp_Honor `protobuf:"bytes,3,rep,name=talkative,proto3" json:"talkative,omitempty"`
- Performer []*GetGroupHonorInfoResp_Honor `protobuf:"bytes,4,rep,name=performer,proto3" json:"performer,omitempty"`
- Legend []*GetGroupHonorInfoResp_Honor `protobuf:"bytes,5,rep,name=legend,proto3" json:"legend,omitempty"`
- StrongNewbie []*GetGroupHonorInfoResp_Honor `protobuf:"bytes,6,rep,name=strong_newbie,json=strongNewbie,proto3" json:"strong_newbie,omitempty"`
- Emotion []*GetGroupHonorInfoResp_Honor `protobuf:"bytes,7,rep,name=emotion,proto3" json:"emotion,omitempty"`
- XXX_NoUnkeyedLiteral struct{} `json:"-"`
- XXX_unrecognized []byte `json:"-"`
- XXX_sizecache int32 `json:"-"`
-}
-
-func (m *GetGroupHonorInfoResp) Reset() { *m = GetGroupHonorInfoResp{} }
-func (m *GetGroupHonorInfoResp) String() string { return proto.CompactTextString(m) }
-func (*GetGroupHonorInfoResp) ProtoMessage() {}
-func (*GetGroupHonorInfoResp) Descriptor() ([]byte, []int) {
- return fileDescriptor_ed9cadf202f12b1d, []int{53}
-}
-func (m *GetGroupHonorInfoResp) XXX_Unmarshal(b []byte) error {
- return m.Unmarshal(b)
-}
-func (m *GetGroupHonorInfoResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- if deterministic {
- return xxx_messageInfo_GetGroupHonorInfoResp.Marshal(b, m, deterministic)
- } else {
- b = b[:cap(b)]
- n, err := m.MarshalToSizedBuffer(b)
- if err != nil {
- return nil, err
+func (*GetGroupHonorInfoResp) ProtoMessage() {}
+
+func (x *GetGroupHonorInfoResp) ProtoReflect() protoreflect.Message {
+ mi := &file_onebot_api_proto_msgTypes[55]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
}
- return b[:n], nil
+ return ms
}
-}
-func (m *GetGroupHonorInfoResp) XXX_Merge(src proto.Message) {
- xxx_messageInfo_GetGroupHonorInfoResp.Merge(m, src)
-}
-func (m *GetGroupHonorInfoResp) XXX_Size() int {
- return m.Size()
-}
-func (m *GetGroupHonorInfoResp) XXX_DiscardUnknown() {
- xxx_messageInfo_GetGroupHonorInfoResp.DiscardUnknown(m)
+ return mi.MessageOf(x)
}
-var xxx_messageInfo_GetGroupHonorInfoResp proto.InternalMessageInfo
+// Deprecated: Use GetGroupHonorInfoResp.ProtoReflect.Descriptor instead.
+func (*GetGroupHonorInfoResp) Descriptor() ([]byte, []int) {
+ return file_onebot_api_proto_rawDescGZIP(), []int{55}
+}
-func (m *GetGroupHonorInfoResp) GetGroupId() int64 {
- if m != nil {
- return m.GroupId
+func (x *GetGroupHonorInfoResp) GetGroupId() int64 {
+ if x != nil {
+ return x.GroupId
}
return 0
}
-func (m *GetGroupHonorInfoResp) GetCurrentTalkative() *GetGroupHonorInfoResp_CurrentTalkative {
- if m != nil {
- return m.CurrentTalkative
+func (x *GetGroupHonorInfoResp) GetCurrentTalkative() *GetGroupHonorInfoResp_CurrentTalkative {
+ if x != nil {
+ return x.CurrentTalkative
}
return nil
}
-func (m *GetGroupHonorInfoResp) GetTalkative() []*GetGroupHonorInfoResp_Honor {
- if m != nil {
- return m.Talkative
+func (x *GetGroupHonorInfoResp) GetTalkative() []*GetGroupHonorInfoResp_Honor {
+ if x != nil {
+ return x.Talkative
}
return nil
}
-func (m *GetGroupHonorInfoResp) GetPerformer() []*GetGroupHonorInfoResp_Honor {
- if m != nil {
- return m.Performer
+func (x *GetGroupHonorInfoResp) GetPerformer() []*GetGroupHonorInfoResp_Honor {
+ if x != nil {
+ return x.Performer
}
return nil
}
-func (m *GetGroupHonorInfoResp) GetLegend() []*GetGroupHonorInfoResp_Honor {
- if m != nil {
- return m.Legend
+func (x *GetGroupHonorInfoResp) GetLegend() []*GetGroupHonorInfoResp_Honor {
+ if x != nil {
+ return x.Legend
}
return nil
}
-func (m *GetGroupHonorInfoResp) GetStrongNewbie() []*GetGroupHonorInfoResp_Honor {
- if m != nil {
- return m.StrongNewbie
+func (x *GetGroupHonorInfoResp) GetStrongNewbie() []*GetGroupHonorInfoResp_Honor {
+ if x != nil {
+ return x.StrongNewbie
}
return nil
}
-func (m *GetGroupHonorInfoResp) GetEmotion() []*GetGroupHonorInfoResp_Honor {
- if m != nil {
- return m.Emotion
+func (x *GetGroupHonorInfoResp) GetEmotion() []*GetGroupHonorInfoResp_Honor {
+ if x != nil {
+ return x.Emotion
}
return nil
}
-type GetGroupHonorInfoResp_CurrentTalkative struct {
- UserId int64 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
- Nickname string `protobuf:"bytes,2,opt,name=nickname,proto3" json:"nickname,omitempty"`
- Avatar string `protobuf:"bytes,3,opt,name=avatar,proto3" json:"avatar,omitempty"`
- DayCount int32 `protobuf:"varint,4,opt,name=day_count,json=dayCount,proto3" json:"day_count,omitempty"`
- XXX_NoUnkeyedLiteral struct{} `json:"-"`
- XXX_unrecognized []byte `json:"-"`
- XXX_sizecache int32 `json:"-"`
-}
+type GetCookiesReq struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
-func (m *GetGroupHonorInfoResp_CurrentTalkative) Reset() {
- *m = GetGroupHonorInfoResp_CurrentTalkative{}
+ Domain string `protobuf:"bytes,1,opt,name=domain,proto3" json:"domain,omitempty"`
}
-func (m *GetGroupHonorInfoResp_CurrentTalkative) String() string { return proto.CompactTextString(m) }
-func (*GetGroupHonorInfoResp_CurrentTalkative) ProtoMessage() {}
-func (*GetGroupHonorInfoResp_CurrentTalkative) Descriptor() ([]byte, []int) {
- return fileDescriptor_ed9cadf202f12b1d, []int{53, 0}
-}
-func (m *GetGroupHonorInfoResp_CurrentTalkative) XXX_Unmarshal(b []byte) error {
- return m.Unmarshal(b)
-}
-func (m *GetGroupHonorInfoResp_CurrentTalkative) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- if deterministic {
- return xxx_messageInfo_GetGroupHonorInfoResp_CurrentTalkative.Marshal(b, m, deterministic)
- } else {
- b = b[:cap(b)]
- n, err := m.MarshalToSizedBuffer(b)
- if err != nil {
- return nil, err
- }
- return b[:n], nil
+
+func (x *GetCookiesReq) Reset() {
+ *x = GetCookiesReq{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_onebot_api_proto_msgTypes[56]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
}
}
-func (m *GetGroupHonorInfoResp_CurrentTalkative) XXX_Merge(src proto.Message) {
- xxx_messageInfo_GetGroupHonorInfoResp_CurrentTalkative.Merge(m, src)
-}
-func (m *GetGroupHonorInfoResp_CurrentTalkative) XXX_Size() int {
- return m.Size()
-}
-func (m *GetGroupHonorInfoResp_CurrentTalkative) XXX_DiscardUnknown() {
- xxx_messageInfo_GetGroupHonorInfoResp_CurrentTalkative.DiscardUnknown(m)
+
+func (x *GetCookiesReq) String() string {
+ return protoimpl.X.MessageStringOf(x)
}
-var xxx_messageInfo_GetGroupHonorInfoResp_CurrentTalkative proto.InternalMessageInfo
+func (*GetCookiesReq) ProtoMessage() {}
-func (m *GetGroupHonorInfoResp_CurrentTalkative) GetUserId() int64 {
- if m != nil {
- return m.UserId
+func (x *GetCookiesReq) ProtoReflect() protoreflect.Message {
+ mi := &file_onebot_api_proto_msgTypes[56]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
}
- return 0
+ return mi.MessageOf(x)
}
-func (m *GetGroupHonorInfoResp_CurrentTalkative) GetNickname() string {
- if m != nil {
- return m.Nickname
- }
- return ""
+// Deprecated: Use GetCookiesReq.ProtoReflect.Descriptor instead.
+func (*GetCookiesReq) Descriptor() ([]byte, []int) {
+ return file_onebot_api_proto_rawDescGZIP(), []int{56}
}
-func (m *GetGroupHonorInfoResp_CurrentTalkative) GetAvatar() string {
- if m != nil {
- return m.Avatar
+func (x *GetCookiesReq) GetDomain() string {
+ if x != nil {
+ return x.Domain
}
return ""
}
-func (m *GetGroupHonorInfoResp_CurrentTalkative) GetDayCount() int32 {
- if m != nil {
- return m.DayCount
- }
- return 0
+type GetCookiesResp struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ Cookies string `protobuf:"bytes,1,opt,name=cookies,proto3" json:"cookies,omitempty"`
}
-type GetGroupHonorInfoResp_Honor struct {
- UserId int64 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
- Nickname string `protobuf:"bytes,2,opt,name=nickname,proto3" json:"nickname,omitempty"`
- Avatar string `protobuf:"bytes,3,opt,name=avatar,proto3" json:"avatar,omitempty"`
- Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"`
- XXX_NoUnkeyedLiteral struct{} `json:"-"`
- XXX_unrecognized []byte `json:"-"`
- XXX_sizecache int32 `json:"-"`
-}
-
-func (m *GetGroupHonorInfoResp_Honor) Reset() { *m = GetGroupHonorInfoResp_Honor{} }
-func (m *GetGroupHonorInfoResp_Honor) String() string { return proto.CompactTextString(m) }
-func (*GetGroupHonorInfoResp_Honor) ProtoMessage() {}
-func (*GetGroupHonorInfoResp_Honor) Descriptor() ([]byte, []int) {
- return fileDescriptor_ed9cadf202f12b1d, []int{53, 1}
-}
-func (m *GetGroupHonorInfoResp_Honor) XXX_Unmarshal(b []byte) error {
- return m.Unmarshal(b)
-}
-func (m *GetGroupHonorInfoResp_Honor) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- if deterministic {
- return xxx_messageInfo_GetGroupHonorInfoResp_Honor.Marshal(b, m, deterministic)
- } else {
- b = b[:cap(b)]
- n, err := m.MarshalToSizedBuffer(b)
- if err != nil {
- return nil, err
- }
- return b[:n], nil
+func (x *GetCookiesResp) Reset() {
+ *x = GetCookiesResp{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_onebot_api_proto_msgTypes[57]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
}
}
-func (m *GetGroupHonorInfoResp_Honor) XXX_Merge(src proto.Message) {
- xxx_messageInfo_GetGroupHonorInfoResp_Honor.Merge(m, src)
-}
-func (m *GetGroupHonorInfoResp_Honor) XXX_Size() int {
- return m.Size()
-}
-func (m *GetGroupHonorInfoResp_Honor) XXX_DiscardUnknown() {
- xxx_messageInfo_GetGroupHonorInfoResp_Honor.DiscardUnknown(m)
+
+func (x *GetCookiesResp) String() string {
+ return protoimpl.X.MessageStringOf(x)
}
-var xxx_messageInfo_GetGroupHonorInfoResp_Honor proto.InternalMessageInfo
+func (*GetCookiesResp) ProtoMessage() {}
-func (m *GetGroupHonorInfoResp_Honor) GetUserId() int64 {
- if m != nil {
- return m.UserId
+func (x *GetCookiesResp) ProtoReflect() protoreflect.Message {
+ mi := &file_onebot_api_proto_msgTypes[57]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
}
- return 0
+ return mi.MessageOf(x)
}
-func (m *GetGroupHonorInfoResp_Honor) GetNickname() string {
- if m != nil {
- return m.Nickname
- }
- return ""
+// Deprecated: Use GetCookiesResp.ProtoReflect.Descriptor instead.
+func (*GetCookiesResp) Descriptor() ([]byte, []int) {
+ return file_onebot_api_proto_rawDescGZIP(), []int{57}
}
-func (m *GetGroupHonorInfoResp_Honor) GetAvatar() string {
- if m != nil {
- return m.Avatar
+func (x *GetCookiesResp) GetCookies() string {
+ if x != nil {
+ return x.Cookies
}
return ""
}
-func (m *GetGroupHonorInfoResp_Honor) GetDescription() string {
- if m != nil {
- return m.Description
+type GetCsrfTokenReq struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+}
+
+func (x *GetCsrfTokenReq) Reset() {
+ *x = GetCsrfTokenReq{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_onebot_api_proto_msgTypes[58]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
}
- return ""
}
-type GetCookiesReq struct {
- Domain string `protobuf:"bytes,1,opt,name=domain,proto3" json:"domain,omitempty"`
- XXX_NoUnkeyedLiteral struct{} `json:"-"`
- XXX_unrecognized []byte `json:"-"`
- XXX_sizecache int32 `json:"-"`
+func (x *GetCsrfTokenReq) String() string {
+ return protoimpl.X.MessageStringOf(x)
}
-func (m *GetCookiesReq) Reset() { *m = GetCookiesReq{} }
-func (m *GetCookiesReq) String() string { return proto.CompactTextString(m) }
-func (*GetCookiesReq) ProtoMessage() {}
-func (*GetCookiesReq) Descriptor() ([]byte, []int) {
- return fileDescriptor_ed9cadf202f12b1d, []int{54}
-}
-func (m *GetCookiesReq) XXX_Unmarshal(b []byte) error {
- return m.Unmarshal(b)
-}
-func (m *GetCookiesReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- if deterministic {
- return xxx_messageInfo_GetCookiesReq.Marshal(b, m, deterministic)
- } else {
- b = b[:cap(b)]
- n, err := m.MarshalToSizedBuffer(b)
- if err != nil {
- return nil, err
+func (*GetCsrfTokenReq) ProtoMessage() {}
+
+func (x *GetCsrfTokenReq) ProtoReflect() protoreflect.Message {
+ mi := &file_onebot_api_proto_msgTypes[58]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
}
- return b[:n], nil
+ return ms
}
+ return mi.MessageOf(x)
}
-func (m *GetCookiesReq) XXX_Merge(src proto.Message) {
- xxx_messageInfo_GetCookiesReq.Merge(m, src)
-}
-func (m *GetCookiesReq) XXX_Size() int {
- return m.Size()
-}
-func (m *GetCookiesReq) XXX_DiscardUnknown() {
- xxx_messageInfo_GetCookiesReq.DiscardUnknown(m)
+
+// Deprecated: Use GetCsrfTokenReq.ProtoReflect.Descriptor instead.
+func (*GetCsrfTokenReq) Descriptor() ([]byte, []int) {
+ return file_onebot_api_proto_rawDescGZIP(), []int{58}
}
-var xxx_messageInfo_GetCookiesReq proto.InternalMessageInfo
+type GetCsrfTokenResp struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ Token int32 `protobuf:"varint,1,opt,name=token,proto3" json:"token,omitempty"`
+}
-func (m *GetCookiesReq) GetDomain() string {
- if m != nil {
- return m.Domain
+func (x *GetCsrfTokenResp) Reset() {
+ *x = GetCsrfTokenResp{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_onebot_api_proto_msgTypes[59]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
}
- return ""
}
-type GetCookiesResp struct {
- Cookies string `protobuf:"bytes,1,opt,name=cookies,proto3" json:"cookies,omitempty"`
- XXX_NoUnkeyedLiteral struct{} `json:"-"`
- XXX_unrecognized []byte `json:"-"`
- XXX_sizecache int32 `json:"-"`
-}
-
-func (m *GetCookiesResp) Reset() { *m = GetCookiesResp{} }
-func (m *GetCookiesResp) String() string { return proto.CompactTextString(m) }
-func (*GetCookiesResp) ProtoMessage() {}
-func (*GetCookiesResp) Descriptor() ([]byte, []int) {
- return fileDescriptor_ed9cadf202f12b1d, []int{55}
-}
-func (m *GetCookiesResp) XXX_Unmarshal(b []byte) error {
- return m.Unmarshal(b)
-}
-func (m *GetCookiesResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- if deterministic {
- return xxx_messageInfo_GetCookiesResp.Marshal(b, m, deterministic)
- } else {
- b = b[:cap(b)]
- n, err := m.MarshalToSizedBuffer(b)
- if err != nil {
- return nil, err
- }
- return b[:n], nil
- }
-}
-func (m *GetCookiesResp) XXX_Merge(src proto.Message) {
- xxx_messageInfo_GetCookiesResp.Merge(m, src)
-}
-func (m *GetCookiesResp) XXX_Size() int {
- return m.Size()
-}
-func (m *GetCookiesResp) XXX_DiscardUnknown() {
- xxx_messageInfo_GetCookiesResp.DiscardUnknown(m)
+func (x *GetCsrfTokenResp) String() string {
+ return protoimpl.X.MessageStringOf(x)
}
-var xxx_messageInfo_GetCookiesResp proto.InternalMessageInfo
+func (*GetCsrfTokenResp) ProtoMessage() {}
-func (m *GetCookiesResp) GetCookies() string {
- if m != nil {
- return m.Cookies
+func (x *GetCsrfTokenResp) ProtoReflect() protoreflect.Message {
+ mi := &file_onebot_api_proto_msgTypes[59]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
}
- return ""
+ return mi.MessageOf(x)
}
-type GetCsrfTokenReq struct {
- XXX_NoUnkeyedLiteral struct{} `json:"-"`
- XXX_unrecognized []byte `json:"-"`
- XXX_sizecache int32 `json:"-"`
+// Deprecated: Use GetCsrfTokenResp.ProtoReflect.Descriptor instead.
+func (*GetCsrfTokenResp) Descriptor() ([]byte, []int) {
+ return file_onebot_api_proto_rawDescGZIP(), []int{59}
}
-func (m *GetCsrfTokenReq) Reset() { *m = GetCsrfTokenReq{} }
-func (m *GetCsrfTokenReq) String() string { return proto.CompactTextString(m) }
-func (*GetCsrfTokenReq) ProtoMessage() {}
-func (*GetCsrfTokenReq) Descriptor() ([]byte, []int) {
- return fileDescriptor_ed9cadf202f12b1d, []int{56}
-}
-func (m *GetCsrfTokenReq) XXX_Unmarshal(b []byte) error {
- return m.Unmarshal(b)
-}
-func (m *GetCsrfTokenReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- if deterministic {
- return xxx_messageInfo_GetCsrfTokenReq.Marshal(b, m, deterministic)
- } else {
- b = b[:cap(b)]
- n, err := m.MarshalToSizedBuffer(b)
- if err != nil {
- return nil, err
- }
- return b[:n], nil
+func (x *GetCsrfTokenResp) GetToken() int32 {
+ if x != nil {
+ return x.Token
}
-}
-func (m *GetCsrfTokenReq) XXX_Merge(src proto.Message) {
- xxx_messageInfo_GetCsrfTokenReq.Merge(m, src)
-}
-func (m *GetCsrfTokenReq) XXX_Size() int {
- return m.Size()
-}
-func (m *GetCsrfTokenReq) XXX_DiscardUnknown() {
- xxx_messageInfo_GetCsrfTokenReq.DiscardUnknown(m)
+ return 0
}
-var xxx_messageInfo_GetCsrfTokenReq proto.InternalMessageInfo
+type GetCredentialsReq struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
-type GetCsrfTokenResp struct {
- Token int32 `protobuf:"varint,1,opt,name=token,proto3" json:"token,omitempty"`
- XXX_NoUnkeyedLiteral struct{} `json:"-"`
- XXX_unrecognized []byte `json:"-"`
- XXX_sizecache int32 `json:"-"`
+ Domain string `protobuf:"bytes,1,opt,name=domain,proto3" json:"domain,omitempty"`
}
-func (m *GetCsrfTokenResp) Reset() { *m = GetCsrfTokenResp{} }
-func (m *GetCsrfTokenResp) String() string { return proto.CompactTextString(m) }
-func (*GetCsrfTokenResp) ProtoMessage() {}
-func (*GetCsrfTokenResp) Descriptor() ([]byte, []int) {
- return fileDescriptor_ed9cadf202f12b1d, []int{57}
-}
-func (m *GetCsrfTokenResp) XXX_Unmarshal(b []byte) error {
- return m.Unmarshal(b)
-}
-func (m *GetCsrfTokenResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- if deterministic {
- return xxx_messageInfo_GetCsrfTokenResp.Marshal(b, m, deterministic)
- } else {
- b = b[:cap(b)]
- n, err := m.MarshalToSizedBuffer(b)
- if err != nil {
- return nil, err
- }
- return b[:n], nil
+func (x *GetCredentialsReq) Reset() {
+ *x = GetCredentialsReq{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_onebot_api_proto_msgTypes[60]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
}
}
-func (m *GetCsrfTokenResp) XXX_Merge(src proto.Message) {
- xxx_messageInfo_GetCsrfTokenResp.Merge(m, src)
-}
-func (m *GetCsrfTokenResp) XXX_Size() int {
- return m.Size()
-}
-func (m *GetCsrfTokenResp) XXX_DiscardUnknown() {
- xxx_messageInfo_GetCsrfTokenResp.DiscardUnknown(m)
-}
-var xxx_messageInfo_GetCsrfTokenResp proto.InternalMessageInfo
-
-func (m *GetCsrfTokenResp) GetToken() int32 {
- if m != nil {
- return m.Token
- }
- return 0
+func (x *GetCredentialsReq) String() string {
+ return protoimpl.X.MessageStringOf(x)
}
-type GetCredentialsReq struct {
- Domain string `protobuf:"bytes,1,opt,name=domain,proto3" json:"domain,omitempty"`
- XXX_NoUnkeyedLiteral struct{} `json:"-"`
- XXX_unrecognized []byte `json:"-"`
- XXX_sizecache int32 `json:"-"`
-}
+func (*GetCredentialsReq) ProtoMessage() {}
-func (m *GetCredentialsReq) Reset() { *m = GetCredentialsReq{} }
-func (m *GetCredentialsReq) String() string { return proto.CompactTextString(m) }
-func (*GetCredentialsReq) ProtoMessage() {}
-func (*GetCredentialsReq) Descriptor() ([]byte, []int) {
- return fileDescriptor_ed9cadf202f12b1d, []int{58}
-}
-func (m *GetCredentialsReq) XXX_Unmarshal(b []byte) error {
- return m.Unmarshal(b)
-}
-func (m *GetCredentialsReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- if deterministic {
- return xxx_messageInfo_GetCredentialsReq.Marshal(b, m, deterministic)
- } else {
- b = b[:cap(b)]
- n, err := m.MarshalToSizedBuffer(b)
- if err != nil {
- return nil, err
+func (x *GetCredentialsReq) ProtoReflect() protoreflect.Message {
+ mi := &file_onebot_api_proto_msgTypes[60]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
}
- return b[:n], nil
+ return ms
}
-}
-func (m *GetCredentialsReq) XXX_Merge(src proto.Message) {
- xxx_messageInfo_GetCredentialsReq.Merge(m, src)
-}
-func (m *GetCredentialsReq) XXX_Size() int {
- return m.Size()
-}
-func (m *GetCredentialsReq) XXX_DiscardUnknown() {
- xxx_messageInfo_GetCredentialsReq.DiscardUnknown(m)
+ return mi.MessageOf(x)
}
-var xxx_messageInfo_GetCredentialsReq proto.InternalMessageInfo
+// Deprecated: Use GetCredentialsReq.ProtoReflect.Descriptor instead.
+func (*GetCredentialsReq) Descriptor() ([]byte, []int) {
+ return file_onebot_api_proto_rawDescGZIP(), []int{60}
+}
-func (m *GetCredentialsReq) GetDomain() string {
- if m != nil {
- return m.Domain
+func (x *GetCredentialsReq) GetDomain() string {
+ if x != nil {
+ return x.Domain
}
return ""
}
type GetCredentialsResp struct {
- Cookies string `protobuf:"bytes,1,opt,name=cookies,proto3" json:"cookies,omitempty"`
- CsrfToken int32 `protobuf:"varint,2,opt,name=csrf_token,json=csrfToken,proto3" json:"csrf_token,omitempty"`
- XXX_NoUnkeyedLiteral struct{} `json:"-"`
- XXX_unrecognized []byte `json:"-"`
- XXX_sizecache int32 `json:"-"`
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ Cookies string `protobuf:"bytes,1,opt,name=cookies,proto3" json:"cookies,omitempty"`
+ CsrfToken int32 `protobuf:"varint,2,opt,name=csrf_token,json=csrfToken,proto3" json:"csrf_token,omitempty"`
}
-func (m *GetCredentialsResp) Reset() { *m = GetCredentialsResp{} }
-func (m *GetCredentialsResp) String() string { return proto.CompactTextString(m) }
-func (*GetCredentialsResp) ProtoMessage() {}
-func (*GetCredentialsResp) Descriptor() ([]byte, []int) {
- return fileDescriptor_ed9cadf202f12b1d, []int{59}
-}
-func (m *GetCredentialsResp) XXX_Unmarshal(b []byte) error {
- return m.Unmarshal(b)
-}
-func (m *GetCredentialsResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- if deterministic {
- return xxx_messageInfo_GetCredentialsResp.Marshal(b, m, deterministic)
- } else {
- b = b[:cap(b)]
- n, err := m.MarshalToSizedBuffer(b)
- if err != nil {
- return nil, err
- }
- return b[:n], nil
+func (x *GetCredentialsResp) Reset() {
+ *x = GetCredentialsResp{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_onebot_api_proto_msgTypes[61]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
}
}
-func (m *GetCredentialsResp) XXX_Merge(src proto.Message) {
- xxx_messageInfo_GetCredentialsResp.Merge(m, src)
-}
-func (m *GetCredentialsResp) XXX_Size() int {
- return m.Size()
+
+func (x *GetCredentialsResp) String() string {
+ return protoimpl.X.MessageStringOf(x)
}
-func (m *GetCredentialsResp) XXX_DiscardUnknown() {
- xxx_messageInfo_GetCredentialsResp.DiscardUnknown(m)
+
+func (*GetCredentialsResp) ProtoMessage() {}
+
+func (x *GetCredentialsResp) ProtoReflect() protoreflect.Message {
+ mi := &file_onebot_api_proto_msgTypes[61]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
}
-var xxx_messageInfo_GetCredentialsResp proto.InternalMessageInfo
+// Deprecated: Use GetCredentialsResp.ProtoReflect.Descriptor instead.
+func (*GetCredentialsResp) Descriptor() ([]byte, []int) {
+ return file_onebot_api_proto_rawDescGZIP(), []int{61}
+}
-func (m *GetCredentialsResp) GetCookies() string {
- if m != nil {
- return m.Cookies
+func (x *GetCredentialsResp) GetCookies() string {
+ if x != nil {
+ return x.Cookies
}
return ""
}
-func (m *GetCredentialsResp) GetCsrfToken() int32 {
- if m != nil {
- return m.CsrfToken
+func (x *GetCredentialsResp) GetCsrfToken() int32 {
+ if x != nil {
+ return x.CsrfToken
}
return 0
}
type GetRecordReq struct {
- File string `protobuf:"bytes,1,opt,name=file,proto3" json:"file,omitempty"`
- OutFormat string `protobuf:"bytes,2,opt,name=out_format,json=outFormat,proto3" json:"out_format,omitempty"`
- XXX_NoUnkeyedLiteral struct{} `json:"-"`
- XXX_unrecognized []byte `json:"-"`
- XXX_sizecache int32 `json:"-"`
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ File string `protobuf:"bytes,1,opt,name=file,proto3" json:"file,omitempty"`
+ OutFormat string `protobuf:"bytes,2,opt,name=out_format,json=outFormat,proto3" json:"out_format,omitempty"`
}
-func (m *GetRecordReq) Reset() { *m = GetRecordReq{} }
-func (m *GetRecordReq) String() string { return proto.CompactTextString(m) }
-func (*GetRecordReq) ProtoMessage() {}
-func (*GetRecordReq) Descriptor() ([]byte, []int) {
- return fileDescriptor_ed9cadf202f12b1d, []int{60}
-}
-func (m *GetRecordReq) XXX_Unmarshal(b []byte) error {
- return m.Unmarshal(b)
-}
-func (m *GetRecordReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- if deterministic {
- return xxx_messageInfo_GetRecordReq.Marshal(b, m, deterministic)
- } else {
- b = b[:cap(b)]
- n, err := m.MarshalToSizedBuffer(b)
- if err != nil {
- return nil, err
- }
- return b[:n], nil
+func (x *GetRecordReq) Reset() {
+ *x = GetRecordReq{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_onebot_api_proto_msgTypes[62]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
}
}
-func (m *GetRecordReq) XXX_Merge(src proto.Message) {
- xxx_messageInfo_GetRecordReq.Merge(m, src)
-}
-func (m *GetRecordReq) XXX_Size() int {
- return m.Size()
+
+func (x *GetRecordReq) String() string {
+ return protoimpl.X.MessageStringOf(x)
}
-func (m *GetRecordReq) XXX_DiscardUnknown() {
- xxx_messageInfo_GetRecordReq.DiscardUnknown(m)
+
+func (*GetRecordReq) ProtoMessage() {}
+
+func (x *GetRecordReq) ProtoReflect() protoreflect.Message {
+ mi := &file_onebot_api_proto_msgTypes[62]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
}
-var xxx_messageInfo_GetRecordReq proto.InternalMessageInfo
+// Deprecated: Use GetRecordReq.ProtoReflect.Descriptor instead.
+func (*GetRecordReq) Descriptor() ([]byte, []int) {
+ return file_onebot_api_proto_rawDescGZIP(), []int{62}
+}
-func (m *GetRecordReq) GetFile() string {
- if m != nil {
- return m.File
+func (x *GetRecordReq) GetFile() string {
+ if x != nil {
+ return x.File
}
return ""
}
-func (m *GetRecordReq) GetOutFormat() string {
- if m != nil {
- return m.OutFormat
+func (x *GetRecordReq) GetOutFormat() string {
+ if x != nil {
+ return x.OutFormat
}
return ""
}
type GetRecordResp struct {
- File string `protobuf:"bytes,1,opt,name=file,proto3" json:"file,omitempty"`
- XXX_NoUnkeyedLiteral struct{} `json:"-"`
- XXX_unrecognized []byte `json:"-"`
- XXX_sizecache int32 `json:"-"`
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ File string `protobuf:"bytes,1,opt,name=file,proto3" json:"file,omitempty"`
}
-func (m *GetRecordResp) Reset() { *m = GetRecordResp{} }
-func (m *GetRecordResp) String() string { return proto.CompactTextString(m) }
-func (*GetRecordResp) ProtoMessage() {}
-func (*GetRecordResp) Descriptor() ([]byte, []int) {
- return fileDescriptor_ed9cadf202f12b1d, []int{61}
-}
-func (m *GetRecordResp) XXX_Unmarshal(b []byte) error {
- return m.Unmarshal(b)
-}
-func (m *GetRecordResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- if deterministic {
- return xxx_messageInfo_GetRecordResp.Marshal(b, m, deterministic)
- } else {
- b = b[:cap(b)]
- n, err := m.MarshalToSizedBuffer(b)
- if err != nil {
- return nil, err
- }
- return b[:n], nil
+func (x *GetRecordResp) Reset() {
+ *x = GetRecordResp{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_onebot_api_proto_msgTypes[63]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
}
}
-func (m *GetRecordResp) XXX_Merge(src proto.Message) {
- xxx_messageInfo_GetRecordResp.Merge(m, src)
-}
-func (m *GetRecordResp) XXX_Size() int {
- return m.Size()
+
+func (x *GetRecordResp) String() string {
+ return protoimpl.X.MessageStringOf(x)
}
-func (m *GetRecordResp) XXX_DiscardUnknown() {
- xxx_messageInfo_GetRecordResp.DiscardUnknown(m)
+
+func (*GetRecordResp) ProtoMessage() {}
+
+func (x *GetRecordResp) ProtoReflect() protoreflect.Message {
+ mi := &file_onebot_api_proto_msgTypes[63]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
}
-var xxx_messageInfo_GetRecordResp proto.InternalMessageInfo
+// Deprecated: Use GetRecordResp.ProtoReflect.Descriptor instead.
+func (*GetRecordResp) Descriptor() ([]byte, []int) {
+ return file_onebot_api_proto_rawDescGZIP(), []int{63}
+}
-func (m *GetRecordResp) GetFile() string {
- if m != nil {
- return m.File
+func (x *GetRecordResp) GetFile() string {
+ if x != nil {
+ return x.File
}
return ""
}
type GetImageReq struct {
- File string `protobuf:"bytes,1,opt,name=file,proto3" json:"file,omitempty"`
- XXX_NoUnkeyedLiteral struct{} `json:"-"`
- XXX_unrecognized []byte `json:"-"`
- XXX_sizecache int32 `json:"-"`
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ File string `protobuf:"bytes,1,opt,name=file,proto3" json:"file,omitempty"`
}
-func (m *GetImageReq) Reset() { *m = GetImageReq{} }
-func (m *GetImageReq) String() string { return proto.CompactTextString(m) }
-func (*GetImageReq) ProtoMessage() {}
-func (*GetImageReq) Descriptor() ([]byte, []int) {
- return fileDescriptor_ed9cadf202f12b1d, []int{62}
-}
-func (m *GetImageReq) XXX_Unmarshal(b []byte) error {
- return m.Unmarshal(b)
-}
-func (m *GetImageReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- if deterministic {
- return xxx_messageInfo_GetImageReq.Marshal(b, m, deterministic)
- } else {
- b = b[:cap(b)]
- n, err := m.MarshalToSizedBuffer(b)
- if err != nil {
- return nil, err
- }
- return b[:n], nil
+func (x *GetImageReq) Reset() {
+ *x = GetImageReq{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_onebot_api_proto_msgTypes[64]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
}
}
-func (m *GetImageReq) XXX_Merge(src proto.Message) {
- xxx_messageInfo_GetImageReq.Merge(m, src)
-}
-func (m *GetImageReq) XXX_Size() int {
- return m.Size()
+
+func (x *GetImageReq) String() string {
+ return protoimpl.X.MessageStringOf(x)
}
-func (m *GetImageReq) XXX_DiscardUnknown() {
- xxx_messageInfo_GetImageReq.DiscardUnknown(m)
+
+func (*GetImageReq) ProtoMessage() {}
+
+func (x *GetImageReq) ProtoReflect() protoreflect.Message {
+ mi := &file_onebot_api_proto_msgTypes[64]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
}
-var xxx_messageInfo_GetImageReq proto.InternalMessageInfo
+// Deprecated: Use GetImageReq.ProtoReflect.Descriptor instead.
+func (*GetImageReq) Descriptor() ([]byte, []int) {
+ return file_onebot_api_proto_rawDescGZIP(), []int{64}
+}
-func (m *GetImageReq) GetFile() string {
- if m != nil {
- return m.File
+func (x *GetImageReq) GetFile() string {
+ if x != nil {
+ return x.File
}
return ""
}
type GetImageResp struct {
- File string `protobuf:"bytes,1,opt,name=file,proto3" json:"file,omitempty"`
- XXX_NoUnkeyedLiteral struct{} `json:"-"`
- XXX_unrecognized []byte `json:"-"`
- XXX_sizecache int32 `json:"-"`
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ File string `protobuf:"bytes,1,opt,name=file,proto3" json:"file,omitempty"`
}
-func (m *GetImageResp) Reset() { *m = GetImageResp{} }
-func (m *GetImageResp) String() string { return proto.CompactTextString(m) }
-func (*GetImageResp) ProtoMessage() {}
-func (*GetImageResp) Descriptor() ([]byte, []int) {
- return fileDescriptor_ed9cadf202f12b1d, []int{63}
-}
-func (m *GetImageResp) XXX_Unmarshal(b []byte) error {
- return m.Unmarshal(b)
-}
-func (m *GetImageResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- if deterministic {
- return xxx_messageInfo_GetImageResp.Marshal(b, m, deterministic)
- } else {
- b = b[:cap(b)]
- n, err := m.MarshalToSizedBuffer(b)
- if err != nil {
- return nil, err
- }
- return b[:n], nil
+func (x *GetImageResp) Reset() {
+ *x = GetImageResp{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_onebot_api_proto_msgTypes[65]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
}
}
-func (m *GetImageResp) XXX_Merge(src proto.Message) {
- xxx_messageInfo_GetImageResp.Merge(m, src)
-}
-func (m *GetImageResp) XXX_Size() int {
- return m.Size()
+
+func (x *GetImageResp) String() string {
+ return protoimpl.X.MessageStringOf(x)
}
-func (m *GetImageResp) XXX_DiscardUnknown() {
- xxx_messageInfo_GetImageResp.DiscardUnknown(m)
+
+func (*GetImageResp) ProtoMessage() {}
+
+func (x *GetImageResp) ProtoReflect() protoreflect.Message {
+ mi := &file_onebot_api_proto_msgTypes[65]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
}
-var xxx_messageInfo_GetImageResp proto.InternalMessageInfo
+// Deprecated: Use GetImageResp.ProtoReflect.Descriptor instead.
+func (*GetImageResp) Descriptor() ([]byte, []int) {
+ return file_onebot_api_proto_rawDescGZIP(), []int{65}
+}
-func (m *GetImageResp) GetFile() string {
- if m != nil {
- return m.File
+func (x *GetImageResp) GetFile() string {
+ if x != nil {
+ return x.File
}
return ""
}
type CanSendImageReq struct {
- XXX_NoUnkeyedLiteral struct{} `json:"-"`
- XXX_unrecognized []byte `json:"-"`
- XXX_sizecache int32 `json:"-"`
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
}
-func (m *CanSendImageReq) Reset() { *m = CanSendImageReq{} }
-func (m *CanSendImageReq) String() string { return proto.CompactTextString(m) }
-func (*CanSendImageReq) ProtoMessage() {}
-func (*CanSendImageReq) Descriptor() ([]byte, []int) {
- return fileDescriptor_ed9cadf202f12b1d, []int{64}
-}
-func (m *CanSendImageReq) XXX_Unmarshal(b []byte) error {
- return m.Unmarshal(b)
-}
-func (m *CanSendImageReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- if deterministic {
- return xxx_messageInfo_CanSendImageReq.Marshal(b, m, deterministic)
- } else {
- b = b[:cap(b)]
- n, err := m.MarshalToSizedBuffer(b)
- if err != nil {
- return nil, err
- }
- return b[:n], nil
+func (x *CanSendImageReq) Reset() {
+ *x = CanSendImageReq{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_onebot_api_proto_msgTypes[66]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
}
}
-func (m *CanSendImageReq) XXX_Merge(src proto.Message) {
- xxx_messageInfo_CanSendImageReq.Merge(m, src)
-}
-func (m *CanSendImageReq) XXX_Size() int {
- return m.Size()
+
+func (x *CanSendImageReq) String() string {
+ return protoimpl.X.MessageStringOf(x)
}
-func (m *CanSendImageReq) XXX_DiscardUnknown() {
- xxx_messageInfo_CanSendImageReq.DiscardUnknown(m)
+
+func (*CanSendImageReq) ProtoMessage() {}
+
+func (x *CanSendImageReq) ProtoReflect() protoreflect.Message {
+ mi := &file_onebot_api_proto_msgTypes[66]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
}
-var xxx_messageInfo_CanSendImageReq proto.InternalMessageInfo
+// Deprecated: Use CanSendImageReq.ProtoReflect.Descriptor instead.
+func (*CanSendImageReq) Descriptor() ([]byte, []int) {
+ return file_onebot_api_proto_rawDescGZIP(), []int{66}
+}
type CanSendImageResp struct {
- Yes bool `protobuf:"varint,1,opt,name=yes,proto3" json:"yes,omitempty"`
- XXX_NoUnkeyedLiteral struct{} `json:"-"`
- XXX_unrecognized []byte `json:"-"`
- XXX_sizecache int32 `json:"-"`
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ Yes bool `protobuf:"varint,1,opt,name=yes,proto3" json:"yes,omitempty"`
}
-func (m *CanSendImageResp) Reset() { *m = CanSendImageResp{} }
-func (m *CanSendImageResp) String() string { return proto.CompactTextString(m) }
-func (*CanSendImageResp) ProtoMessage() {}
-func (*CanSendImageResp) Descriptor() ([]byte, []int) {
- return fileDescriptor_ed9cadf202f12b1d, []int{65}
-}
-func (m *CanSendImageResp) XXX_Unmarshal(b []byte) error {
- return m.Unmarshal(b)
-}
-func (m *CanSendImageResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- if deterministic {
- return xxx_messageInfo_CanSendImageResp.Marshal(b, m, deterministic)
- } else {
- b = b[:cap(b)]
- n, err := m.MarshalToSizedBuffer(b)
- if err != nil {
- return nil, err
- }
- return b[:n], nil
+func (x *CanSendImageResp) Reset() {
+ *x = CanSendImageResp{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_onebot_api_proto_msgTypes[67]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
}
}
-func (m *CanSendImageResp) XXX_Merge(src proto.Message) {
- xxx_messageInfo_CanSendImageResp.Merge(m, src)
-}
-func (m *CanSendImageResp) XXX_Size() int {
- return m.Size()
+
+func (x *CanSendImageResp) String() string {
+ return protoimpl.X.MessageStringOf(x)
}
-func (m *CanSendImageResp) XXX_DiscardUnknown() {
- xxx_messageInfo_CanSendImageResp.DiscardUnknown(m)
+
+func (*CanSendImageResp) ProtoMessage() {}
+
+func (x *CanSendImageResp) ProtoReflect() protoreflect.Message {
+ mi := &file_onebot_api_proto_msgTypes[67]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
}
-var xxx_messageInfo_CanSendImageResp proto.InternalMessageInfo
+// Deprecated: Use CanSendImageResp.ProtoReflect.Descriptor instead.
+func (*CanSendImageResp) Descriptor() ([]byte, []int) {
+ return file_onebot_api_proto_rawDescGZIP(), []int{67}
+}
-func (m *CanSendImageResp) GetYes() bool {
- if m != nil {
- return m.Yes
+func (x *CanSendImageResp) GetYes() bool {
+ if x != nil {
+ return x.Yes
}
return false
}
type CanSendRecordReq struct {
- XXX_NoUnkeyedLiteral struct{} `json:"-"`
- XXX_unrecognized []byte `json:"-"`
- XXX_sizecache int32 `json:"-"`
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
}
-func (m *CanSendRecordReq) Reset() { *m = CanSendRecordReq{} }
-func (m *CanSendRecordReq) String() string { return proto.CompactTextString(m) }
-func (*CanSendRecordReq) ProtoMessage() {}
-func (*CanSendRecordReq) Descriptor() ([]byte, []int) {
- return fileDescriptor_ed9cadf202f12b1d, []int{66}
-}
-func (m *CanSendRecordReq) XXX_Unmarshal(b []byte) error {
- return m.Unmarshal(b)
-}
-func (m *CanSendRecordReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- if deterministic {
- return xxx_messageInfo_CanSendRecordReq.Marshal(b, m, deterministic)
- } else {
- b = b[:cap(b)]
- n, err := m.MarshalToSizedBuffer(b)
- if err != nil {
- return nil, err
- }
- return b[:n], nil
+func (x *CanSendRecordReq) Reset() {
+ *x = CanSendRecordReq{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_onebot_api_proto_msgTypes[68]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
}
}
-func (m *CanSendRecordReq) XXX_Merge(src proto.Message) {
- xxx_messageInfo_CanSendRecordReq.Merge(m, src)
-}
-func (m *CanSendRecordReq) XXX_Size() int {
- return m.Size()
+
+func (x *CanSendRecordReq) String() string {
+ return protoimpl.X.MessageStringOf(x)
}
-func (m *CanSendRecordReq) XXX_DiscardUnknown() {
- xxx_messageInfo_CanSendRecordReq.DiscardUnknown(m)
+
+func (*CanSendRecordReq) ProtoMessage() {}
+
+func (x *CanSendRecordReq) ProtoReflect() protoreflect.Message {
+ mi := &file_onebot_api_proto_msgTypes[68]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
}
-var xxx_messageInfo_CanSendRecordReq proto.InternalMessageInfo
+// Deprecated: Use CanSendRecordReq.ProtoReflect.Descriptor instead.
+func (*CanSendRecordReq) Descriptor() ([]byte, []int) {
+ return file_onebot_api_proto_rawDescGZIP(), []int{68}
+}
type CanSendRecordResp struct {
- Yes bool `protobuf:"varint,1,opt,name=yes,proto3" json:"yes,omitempty"`
- XXX_NoUnkeyedLiteral struct{} `json:"-"`
- XXX_unrecognized []byte `json:"-"`
- XXX_sizecache int32 `json:"-"`
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ Yes bool `protobuf:"varint,1,opt,name=yes,proto3" json:"yes,omitempty"`
}
-func (m *CanSendRecordResp) Reset() { *m = CanSendRecordResp{} }
-func (m *CanSendRecordResp) String() string { return proto.CompactTextString(m) }
-func (*CanSendRecordResp) ProtoMessage() {}
-func (*CanSendRecordResp) Descriptor() ([]byte, []int) {
- return fileDescriptor_ed9cadf202f12b1d, []int{67}
-}
-func (m *CanSendRecordResp) XXX_Unmarshal(b []byte) error {
- return m.Unmarshal(b)
-}
-func (m *CanSendRecordResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- if deterministic {
- return xxx_messageInfo_CanSendRecordResp.Marshal(b, m, deterministic)
- } else {
- b = b[:cap(b)]
- n, err := m.MarshalToSizedBuffer(b)
- if err != nil {
- return nil, err
- }
- return b[:n], nil
+func (x *CanSendRecordResp) Reset() {
+ *x = CanSendRecordResp{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_onebot_api_proto_msgTypes[69]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
}
}
-func (m *CanSendRecordResp) XXX_Merge(src proto.Message) {
- xxx_messageInfo_CanSendRecordResp.Merge(m, src)
-}
-func (m *CanSendRecordResp) XXX_Size() int {
- return m.Size()
+
+func (x *CanSendRecordResp) String() string {
+ return protoimpl.X.MessageStringOf(x)
}
-func (m *CanSendRecordResp) XXX_DiscardUnknown() {
- xxx_messageInfo_CanSendRecordResp.DiscardUnknown(m)
+
+func (*CanSendRecordResp) ProtoMessage() {}
+
+func (x *CanSendRecordResp) ProtoReflect() protoreflect.Message {
+ mi := &file_onebot_api_proto_msgTypes[69]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
}
-var xxx_messageInfo_CanSendRecordResp proto.InternalMessageInfo
+// Deprecated: Use CanSendRecordResp.ProtoReflect.Descriptor instead.
+func (*CanSendRecordResp) Descriptor() ([]byte, []int) {
+ return file_onebot_api_proto_rawDescGZIP(), []int{69}
+}
-func (m *CanSendRecordResp) GetYes() bool {
- if m != nil {
- return m.Yes
+func (x *CanSendRecordResp) GetYes() bool {
+ if x != nil {
+ return x.Yes
}
return false
}
type GetStatusReq struct {
- XXX_NoUnkeyedLiteral struct{} `json:"-"`
- XXX_unrecognized []byte `json:"-"`
- XXX_sizecache int32 `json:"-"`
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
}
-func (m *GetStatusReq) Reset() { *m = GetStatusReq{} }
-func (m *GetStatusReq) String() string { return proto.CompactTextString(m) }
-func (*GetStatusReq) ProtoMessage() {}
-func (*GetStatusReq) Descriptor() ([]byte, []int) {
- return fileDescriptor_ed9cadf202f12b1d, []int{68}
-}
-func (m *GetStatusReq) XXX_Unmarshal(b []byte) error {
- return m.Unmarshal(b)
-}
-func (m *GetStatusReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- if deterministic {
- return xxx_messageInfo_GetStatusReq.Marshal(b, m, deterministic)
- } else {
- b = b[:cap(b)]
- n, err := m.MarshalToSizedBuffer(b)
- if err != nil {
- return nil, err
- }
- return b[:n], nil
+func (x *GetStatusReq) Reset() {
+ *x = GetStatusReq{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_onebot_api_proto_msgTypes[70]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
}
}
-func (m *GetStatusReq) XXX_Merge(src proto.Message) {
- xxx_messageInfo_GetStatusReq.Merge(m, src)
-}
-func (m *GetStatusReq) XXX_Size() int {
- return m.Size()
+
+func (x *GetStatusReq) String() string {
+ return protoimpl.X.MessageStringOf(x)
}
-func (m *GetStatusReq) XXX_DiscardUnknown() {
- xxx_messageInfo_GetStatusReq.DiscardUnknown(m)
+
+func (*GetStatusReq) ProtoMessage() {}
+
+func (x *GetStatusReq) ProtoReflect() protoreflect.Message {
+ mi := &file_onebot_api_proto_msgTypes[70]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
}
-var xxx_messageInfo_GetStatusReq proto.InternalMessageInfo
+// Deprecated: Use GetStatusReq.ProtoReflect.Descriptor instead.
+func (*GetStatusReq) Descriptor() ([]byte, []int) {
+ return file_onebot_api_proto_rawDescGZIP(), []int{70}
+}
type GetStatusResp struct {
- Online bool `protobuf:"varint,1,opt,name=online,proto3" json:"online,omitempty"`
- Good bool `protobuf:"varint,2,opt,name=good,proto3" json:"good,omitempty"`
- XXX_NoUnkeyedLiteral struct{} `json:"-"`
- XXX_unrecognized []byte `json:"-"`
- XXX_sizecache int32 `json:"-"`
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ Online bool `protobuf:"varint,1,opt,name=online,proto3" json:"online,omitempty"`
+ Good bool `protobuf:"varint,2,opt,name=good,proto3" json:"good,omitempty"`
}
-func (m *GetStatusResp) Reset() { *m = GetStatusResp{} }
-func (m *GetStatusResp) String() string { return proto.CompactTextString(m) }
-func (*GetStatusResp) ProtoMessage() {}
-func (*GetStatusResp) Descriptor() ([]byte, []int) {
- return fileDescriptor_ed9cadf202f12b1d, []int{69}
-}
-func (m *GetStatusResp) XXX_Unmarshal(b []byte) error {
- return m.Unmarshal(b)
-}
-func (m *GetStatusResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- if deterministic {
- return xxx_messageInfo_GetStatusResp.Marshal(b, m, deterministic)
- } else {
- b = b[:cap(b)]
- n, err := m.MarshalToSizedBuffer(b)
- if err != nil {
- return nil, err
- }
- return b[:n], nil
+func (x *GetStatusResp) Reset() {
+ *x = GetStatusResp{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_onebot_api_proto_msgTypes[71]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
}
}
-func (m *GetStatusResp) XXX_Merge(src proto.Message) {
- xxx_messageInfo_GetStatusResp.Merge(m, src)
-}
-func (m *GetStatusResp) XXX_Size() int {
- return m.Size()
+
+func (x *GetStatusResp) String() string {
+ return protoimpl.X.MessageStringOf(x)
}
-func (m *GetStatusResp) XXX_DiscardUnknown() {
- xxx_messageInfo_GetStatusResp.DiscardUnknown(m)
+
+func (*GetStatusResp) ProtoMessage() {}
+
+func (x *GetStatusResp) ProtoReflect() protoreflect.Message {
+ mi := &file_onebot_api_proto_msgTypes[71]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
}
-var xxx_messageInfo_GetStatusResp proto.InternalMessageInfo
+// Deprecated: Use GetStatusResp.ProtoReflect.Descriptor instead.
+func (*GetStatusResp) Descriptor() ([]byte, []int) {
+ return file_onebot_api_proto_rawDescGZIP(), []int{71}
+}
-func (m *GetStatusResp) GetOnline() bool {
- if m != nil {
- return m.Online
+func (x *GetStatusResp) GetOnline() bool {
+ if x != nil {
+ return x.Online
}
return false
}
-func (m *GetStatusResp) GetGood() bool {
- if m != nil {
- return m.Good
+func (x *GetStatusResp) GetGood() bool {
+ if x != nil {
+ return x.Good
}
return false
}
type GetVersionInfoReq struct {
- XXX_NoUnkeyedLiteral struct{} `json:"-"`
- XXX_unrecognized []byte `json:"-"`
- XXX_sizecache int32 `json:"-"`
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
}
-func (m *GetVersionInfoReq) Reset() { *m = GetVersionInfoReq{} }
-func (m *GetVersionInfoReq) String() string { return proto.CompactTextString(m) }
-func (*GetVersionInfoReq) ProtoMessage() {}
-func (*GetVersionInfoReq) Descriptor() ([]byte, []int) {
- return fileDescriptor_ed9cadf202f12b1d, []int{70}
-}
-func (m *GetVersionInfoReq) XXX_Unmarshal(b []byte) error {
- return m.Unmarshal(b)
-}
-func (m *GetVersionInfoReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- if deterministic {
- return xxx_messageInfo_GetVersionInfoReq.Marshal(b, m, deterministic)
- } else {
- b = b[:cap(b)]
- n, err := m.MarshalToSizedBuffer(b)
- if err != nil {
- return nil, err
- }
- return b[:n], nil
+func (x *GetVersionInfoReq) Reset() {
+ *x = GetVersionInfoReq{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_onebot_api_proto_msgTypes[72]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
}
}
-func (m *GetVersionInfoReq) XXX_Merge(src proto.Message) {
- xxx_messageInfo_GetVersionInfoReq.Merge(m, src)
-}
-func (m *GetVersionInfoReq) XXX_Size() int {
- return m.Size()
-}
-func (m *GetVersionInfoReq) XXX_DiscardUnknown() {
- xxx_messageInfo_GetVersionInfoReq.DiscardUnknown(m)
+
+func (x *GetVersionInfoReq) String() string {
+ return protoimpl.X.MessageStringOf(x)
}
-var xxx_messageInfo_GetVersionInfoReq proto.InternalMessageInfo
+func (*GetVersionInfoReq) ProtoMessage() {}
-type GetVersionInfoResp struct {
- AppName string `protobuf:"bytes,1,opt,name=app_name,json=appName,proto3" json:"app_name,omitempty"`
- AppVersion string `protobuf:"bytes,2,opt,name=app_version,json=appVersion,proto3" json:"app_version,omitempty"`
- ProtocolVersion string `protobuf:"bytes,3,opt,name=protocol_version,json=protocolVersion,proto3" json:"protocol_version,omitempty"`
- Extra map[string]string `protobuf:"bytes,4,rep,name=extra,proto3" json:"extra,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
- XXX_NoUnkeyedLiteral struct{} `json:"-"`
- XXX_unrecognized []byte `json:"-"`
- XXX_sizecache int32 `json:"-"`
-}
-
-func (m *GetVersionInfoResp) Reset() { *m = GetVersionInfoResp{} }
-func (m *GetVersionInfoResp) String() string { return proto.CompactTextString(m) }
-func (*GetVersionInfoResp) ProtoMessage() {}
-func (*GetVersionInfoResp) Descriptor() ([]byte, []int) {
- return fileDescriptor_ed9cadf202f12b1d, []int{71}
-}
-func (m *GetVersionInfoResp) XXX_Unmarshal(b []byte) error {
- return m.Unmarshal(b)
-}
-func (m *GetVersionInfoResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- if deterministic {
- return xxx_messageInfo_GetVersionInfoResp.Marshal(b, m, deterministic)
- } else {
- b = b[:cap(b)]
- n, err := m.MarshalToSizedBuffer(b)
- if err != nil {
- return nil, err
+func (x *GetVersionInfoReq) ProtoReflect() protoreflect.Message {
+ mi := &file_onebot_api_proto_msgTypes[72]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
}
- return b[:n], nil
+ return ms
}
+ return mi.MessageOf(x)
+}
+
+// Deprecated: Use GetVersionInfoReq.ProtoReflect.Descriptor instead.
+func (*GetVersionInfoReq) Descriptor() ([]byte, []int) {
+ return file_onebot_api_proto_rawDescGZIP(), []int{72}
+}
+
+type GetVersionInfoResp struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ AppName string `protobuf:"bytes,1,opt,name=app_name,json=appName,proto3" json:"app_name,omitempty"`
+ AppVersion string `protobuf:"bytes,2,opt,name=app_version,json=appVersion,proto3" json:"app_version,omitempty"`
+ ProtocolVersion string `protobuf:"bytes,3,opt,name=protocol_version,json=protocolVersion,proto3" json:"protocol_version,omitempty"`
+ Extra map[string]string `protobuf:"bytes,4,rep,name=extra,proto3" json:"extra,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
}
-func (m *GetVersionInfoResp) XXX_Merge(src proto.Message) {
- xxx_messageInfo_GetVersionInfoResp.Merge(m, src)
+
+func (x *GetVersionInfoResp) Reset() {
+ *x = GetVersionInfoResp{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_onebot_api_proto_msgTypes[73]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
}
-func (m *GetVersionInfoResp) XXX_Size() int {
- return m.Size()
+
+func (x *GetVersionInfoResp) String() string {
+ return protoimpl.X.MessageStringOf(x)
}
-func (m *GetVersionInfoResp) XXX_DiscardUnknown() {
- xxx_messageInfo_GetVersionInfoResp.DiscardUnknown(m)
+
+func (*GetVersionInfoResp) ProtoMessage() {}
+
+func (x *GetVersionInfoResp) ProtoReflect() protoreflect.Message {
+ mi := &file_onebot_api_proto_msgTypes[73]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
}
-var xxx_messageInfo_GetVersionInfoResp proto.InternalMessageInfo
+// Deprecated: Use GetVersionInfoResp.ProtoReflect.Descriptor instead.
+func (*GetVersionInfoResp) Descriptor() ([]byte, []int) {
+ return file_onebot_api_proto_rawDescGZIP(), []int{73}
+}
-func (m *GetVersionInfoResp) GetAppName() string {
- if m != nil {
- return m.AppName
+func (x *GetVersionInfoResp) GetAppName() string {
+ if x != nil {
+ return x.AppName
}
return ""
}
-func (m *GetVersionInfoResp) GetAppVersion() string {
- if m != nil {
- return m.AppVersion
+func (x *GetVersionInfoResp) GetAppVersion() string {
+ if x != nil {
+ return x.AppVersion
}
return ""
}
-func (m *GetVersionInfoResp) GetProtocolVersion() string {
- if m != nil {
- return m.ProtocolVersion
+func (x *GetVersionInfoResp) GetProtocolVersion() string {
+ if x != nil {
+ return x.ProtocolVersion
}
return ""
}
-func (m *GetVersionInfoResp) GetExtra() map[string]string {
- if m != nil {
- return m.Extra
+func (x *GetVersionInfoResp) GetExtra() map[string]string {
+ if x != nil {
+ return x.Extra
}
return nil
}
type SetRestartReq struct {
- Delay int32 `protobuf:"varint,1,opt,name=delay,proto3" json:"delay,omitempty"`
- XXX_NoUnkeyedLiteral struct{} `json:"-"`
- XXX_unrecognized []byte `json:"-"`
- XXX_sizecache int32 `json:"-"`
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ Delay int32 `protobuf:"varint,1,opt,name=delay,proto3" json:"delay,omitempty"`
}
-func (m *SetRestartReq) Reset() { *m = SetRestartReq{} }
-func (m *SetRestartReq) String() string { return proto.CompactTextString(m) }
-func (*SetRestartReq) ProtoMessage() {}
-func (*SetRestartReq) Descriptor() ([]byte, []int) {
- return fileDescriptor_ed9cadf202f12b1d, []int{72}
-}
-func (m *SetRestartReq) XXX_Unmarshal(b []byte) error {
- return m.Unmarshal(b)
-}
-func (m *SetRestartReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- if deterministic {
- return xxx_messageInfo_SetRestartReq.Marshal(b, m, deterministic)
- } else {
- b = b[:cap(b)]
- n, err := m.MarshalToSizedBuffer(b)
- if err != nil {
- return nil, err
- }
- return b[:n], nil
+func (x *SetRestartReq) Reset() {
+ *x = SetRestartReq{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_onebot_api_proto_msgTypes[74]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
}
}
-func (m *SetRestartReq) XXX_Merge(src proto.Message) {
- xxx_messageInfo_SetRestartReq.Merge(m, src)
-}
-func (m *SetRestartReq) XXX_Size() int {
- return m.Size()
+
+func (x *SetRestartReq) String() string {
+ return protoimpl.X.MessageStringOf(x)
}
-func (m *SetRestartReq) XXX_DiscardUnknown() {
- xxx_messageInfo_SetRestartReq.DiscardUnknown(m)
+
+func (*SetRestartReq) ProtoMessage() {}
+
+func (x *SetRestartReq) ProtoReflect() protoreflect.Message {
+ mi := &file_onebot_api_proto_msgTypes[74]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
}
-var xxx_messageInfo_SetRestartReq proto.InternalMessageInfo
+// Deprecated: Use SetRestartReq.ProtoReflect.Descriptor instead.
+func (*SetRestartReq) Descriptor() ([]byte, []int) {
+ return file_onebot_api_proto_rawDescGZIP(), []int{74}
+}
-func (m *SetRestartReq) GetDelay() int32 {
- if m != nil {
- return m.Delay
+func (x *SetRestartReq) GetDelay() int32 {
+ if x != nil {
+ return x.Delay
}
return 0
}
type SetRestartResp struct {
- XXX_NoUnkeyedLiteral struct{} `json:"-"`
- XXX_unrecognized []byte `json:"-"`
- XXX_sizecache int32 `json:"-"`
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
}
-func (m *SetRestartResp) Reset() { *m = SetRestartResp{} }
-func (m *SetRestartResp) String() string { return proto.CompactTextString(m) }
-func (*SetRestartResp) ProtoMessage() {}
-func (*SetRestartResp) Descriptor() ([]byte, []int) {
- return fileDescriptor_ed9cadf202f12b1d, []int{73}
-}
-func (m *SetRestartResp) XXX_Unmarshal(b []byte) error {
- return m.Unmarshal(b)
-}
-func (m *SetRestartResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- if deterministic {
- return xxx_messageInfo_SetRestartResp.Marshal(b, m, deterministic)
- } else {
- b = b[:cap(b)]
- n, err := m.MarshalToSizedBuffer(b)
- if err != nil {
- return nil, err
- }
- return b[:n], nil
+func (x *SetRestartResp) Reset() {
+ *x = SetRestartResp{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_onebot_api_proto_msgTypes[75]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
}
}
-func (m *SetRestartResp) XXX_Merge(src proto.Message) {
- xxx_messageInfo_SetRestartResp.Merge(m, src)
-}
-func (m *SetRestartResp) XXX_Size() int {
- return m.Size()
+
+func (x *SetRestartResp) String() string {
+ return protoimpl.X.MessageStringOf(x)
}
-func (m *SetRestartResp) XXX_DiscardUnknown() {
- xxx_messageInfo_SetRestartResp.DiscardUnknown(m)
+
+func (*SetRestartResp) ProtoMessage() {}
+
+func (x *SetRestartResp) ProtoReflect() protoreflect.Message {
+ mi := &file_onebot_api_proto_msgTypes[75]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
}
-var xxx_messageInfo_SetRestartResp proto.InternalMessageInfo
+// Deprecated: Use SetRestartResp.ProtoReflect.Descriptor instead.
+func (*SetRestartResp) Descriptor() ([]byte, []int) {
+ return file_onebot_api_proto_rawDescGZIP(), []int{75}
+}
type CleanCacheReq struct {
- XXX_NoUnkeyedLiteral struct{} `json:"-"`
- XXX_unrecognized []byte `json:"-"`
- XXX_sizecache int32 `json:"-"`
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
}
-func (m *CleanCacheReq) Reset() { *m = CleanCacheReq{} }
-func (m *CleanCacheReq) String() string { return proto.CompactTextString(m) }
-func (*CleanCacheReq) ProtoMessage() {}
-func (*CleanCacheReq) Descriptor() ([]byte, []int) {
- return fileDescriptor_ed9cadf202f12b1d, []int{74}
-}
-func (m *CleanCacheReq) XXX_Unmarshal(b []byte) error {
- return m.Unmarshal(b)
-}
-func (m *CleanCacheReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- if deterministic {
- return xxx_messageInfo_CleanCacheReq.Marshal(b, m, deterministic)
- } else {
- b = b[:cap(b)]
- n, err := m.MarshalToSizedBuffer(b)
- if err != nil {
- return nil, err
- }
- return b[:n], nil
+func (x *CleanCacheReq) Reset() {
+ *x = CleanCacheReq{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_onebot_api_proto_msgTypes[76]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
}
}
-func (m *CleanCacheReq) XXX_Merge(src proto.Message) {
- xxx_messageInfo_CleanCacheReq.Merge(m, src)
-}
-func (m *CleanCacheReq) XXX_Size() int {
- return m.Size()
+
+func (x *CleanCacheReq) String() string {
+ return protoimpl.X.MessageStringOf(x)
}
-func (m *CleanCacheReq) XXX_DiscardUnknown() {
- xxx_messageInfo_CleanCacheReq.DiscardUnknown(m)
+
+func (*CleanCacheReq) ProtoMessage() {}
+
+func (x *CleanCacheReq) ProtoReflect() protoreflect.Message {
+ mi := &file_onebot_api_proto_msgTypes[76]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
}
-var xxx_messageInfo_CleanCacheReq proto.InternalMessageInfo
+// Deprecated: Use CleanCacheReq.ProtoReflect.Descriptor instead.
+func (*CleanCacheReq) Descriptor() ([]byte, []int) {
+ return file_onebot_api_proto_rawDescGZIP(), []int{76}
+}
type CleanCacheResp struct {
- XXX_NoUnkeyedLiteral struct{} `json:"-"`
- XXX_unrecognized []byte `json:"-"`
- XXX_sizecache int32 `json:"-"`
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
}
-func (m *CleanCacheResp) Reset() { *m = CleanCacheResp{} }
-func (m *CleanCacheResp) String() string { return proto.CompactTextString(m) }
-func (*CleanCacheResp) ProtoMessage() {}
-func (*CleanCacheResp) Descriptor() ([]byte, []int) {
- return fileDescriptor_ed9cadf202f12b1d, []int{75}
-}
-func (m *CleanCacheResp) XXX_Unmarshal(b []byte) error {
- return m.Unmarshal(b)
-}
-func (m *CleanCacheResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- if deterministic {
- return xxx_messageInfo_CleanCacheResp.Marshal(b, m, deterministic)
- } else {
- b = b[:cap(b)]
- n, err := m.MarshalToSizedBuffer(b)
- if err != nil {
- return nil, err
- }
- return b[:n], nil
+func (x *CleanCacheResp) Reset() {
+ *x = CleanCacheResp{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_onebot_api_proto_msgTypes[77]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
}
}
-func (m *CleanCacheResp) XXX_Merge(src proto.Message) {
- xxx_messageInfo_CleanCacheResp.Merge(m, src)
-}
-func (m *CleanCacheResp) XXX_Size() int {
- return m.Size()
+
+func (x *CleanCacheResp) String() string {
+ return protoimpl.X.MessageStringOf(x)
}
-func (m *CleanCacheResp) XXX_DiscardUnknown() {
- xxx_messageInfo_CleanCacheResp.DiscardUnknown(m)
+
+func (*CleanCacheResp) ProtoMessage() {}
+
+func (x *CleanCacheResp) ProtoReflect() protoreflect.Message {
+ mi := &file_onebot_api_proto_msgTypes[77]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
}
-var xxx_messageInfo_CleanCacheResp proto.InternalMessageInfo
+// Deprecated: Use CleanCacheResp.ProtoReflect.Descriptor instead.
+func (*CleanCacheResp) Descriptor() ([]byte, []int) {
+ return file_onebot_api_proto_rawDescGZIP(), []int{77}
+}
type SetGroupSignInReq struct {
- GroupId int64 `protobuf:"varint,1,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty"`
- XXX_NoUnkeyedLiteral struct{} `json:"-"`
- XXX_unrecognized []byte `json:"-"`
- XXX_sizecache int32 `json:"-"`
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ GroupId int64 `protobuf:"varint,1,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty"`
}
-func (m *SetGroupSignInReq) Reset() { *m = SetGroupSignInReq{} }
-func (m *SetGroupSignInReq) String() string { return proto.CompactTextString(m) }
-func (*SetGroupSignInReq) ProtoMessage() {}
-func (*SetGroupSignInReq) Descriptor() ([]byte, []int) {
- return fileDescriptor_ed9cadf202f12b1d, []int{76}
-}
-func (m *SetGroupSignInReq) XXX_Unmarshal(b []byte) error {
- return m.Unmarshal(b)
-}
-func (m *SetGroupSignInReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- if deterministic {
- return xxx_messageInfo_SetGroupSignInReq.Marshal(b, m, deterministic)
- } else {
- b = b[:cap(b)]
- n, err := m.MarshalToSizedBuffer(b)
- if err != nil {
- return nil, err
- }
- return b[:n], nil
+func (x *SetGroupSignInReq) Reset() {
+ *x = SetGroupSignInReq{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_onebot_api_proto_msgTypes[78]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
}
}
-func (m *SetGroupSignInReq) XXX_Merge(src proto.Message) {
- xxx_messageInfo_SetGroupSignInReq.Merge(m, src)
-}
-func (m *SetGroupSignInReq) XXX_Size() int {
- return m.Size()
+
+func (x *SetGroupSignInReq) String() string {
+ return protoimpl.X.MessageStringOf(x)
}
-func (m *SetGroupSignInReq) XXX_DiscardUnknown() {
- xxx_messageInfo_SetGroupSignInReq.DiscardUnknown(m)
+
+func (*SetGroupSignInReq) ProtoMessage() {}
+
+func (x *SetGroupSignInReq) ProtoReflect() protoreflect.Message {
+ mi := &file_onebot_api_proto_msgTypes[78]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
}
-var xxx_messageInfo_SetGroupSignInReq proto.InternalMessageInfo
+// Deprecated: Use SetGroupSignInReq.ProtoReflect.Descriptor instead.
+func (*SetGroupSignInReq) Descriptor() ([]byte, []int) {
+ return file_onebot_api_proto_rawDescGZIP(), []int{78}
+}
-func (m *SetGroupSignInReq) GetGroupId() int64 {
- if m != nil {
- return m.GroupId
+func (x *SetGroupSignInReq) GetGroupId() int64 {
+ if x != nil {
+ return x.GroupId
}
return 0
}
type SetGroupSignInResp struct {
- XXX_NoUnkeyedLiteral struct{} `json:"-"`
- XXX_unrecognized []byte `json:"-"`
- XXX_sizecache int32 `json:"-"`
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
}
-func (m *SetGroupSignInResp) Reset() { *m = SetGroupSignInResp{} }
-func (m *SetGroupSignInResp) String() string { return proto.CompactTextString(m) }
-func (*SetGroupSignInResp) ProtoMessage() {}
-func (*SetGroupSignInResp) Descriptor() ([]byte, []int) {
- return fileDescriptor_ed9cadf202f12b1d, []int{77}
-}
-func (m *SetGroupSignInResp) XXX_Unmarshal(b []byte) error {
- return m.Unmarshal(b)
-}
-func (m *SetGroupSignInResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- if deterministic {
- return xxx_messageInfo_SetGroupSignInResp.Marshal(b, m, deterministic)
- } else {
- b = b[:cap(b)]
- n, err := m.MarshalToSizedBuffer(b)
- if err != nil {
- return nil, err
- }
- return b[:n], nil
+func (x *SetGroupSignInResp) Reset() {
+ *x = SetGroupSignInResp{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_onebot_api_proto_msgTypes[79]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
}
}
-func (m *SetGroupSignInResp) XXX_Merge(src proto.Message) {
- xxx_messageInfo_SetGroupSignInResp.Merge(m, src)
-}
-func (m *SetGroupSignInResp) XXX_Size() int {
- return m.Size()
-}
-func (m *SetGroupSignInResp) XXX_DiscardUnknown() {
- xxx_messageInfo_SetGroupSignInResp.DiscardUnknown(m)
+
+func (x *SetGroupSignInResp) String() string {
+ return protoimpl.X.MessageStringOf(x)
}
-var xxx_messageInfo_SetGroupSignInResp proto.InternalMessageInfo
+func (*SetGroupSignInResp) ProtoMessage() {}
-type SendMusicReq struct {
- GroupId int64 `protobuf:"varint,1,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty"`
- UserId int64 `protobuf:"varint,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
- Type string `protobuf:"bytes,3,opt,name=type,proto3" json:"type,omitempty"`
- Title string `protobuf:"bytes,4,opt,name=title,proto3" json:"title,omitempty"`
- Brief string `protobuf:"bytes,5,opt,name=brief,proto3" json:"brief,omitempty"`
- Summary string `protobuf:"bytes,6,opt,name=summary,proto3" json:"summary,omitempty"`
- Url string `protobuf:"bytes,7,opt,name=url,proto3" json:"url,omitempty"`
- PictureUrl string `protobuf:"bytes,8,opt,name=picture_url,json=pictureUrl,proto3" json:"picture_url,omitempty"`
- MusicUrl string `protobuf:"bytes,9,opt,name=music_url,json=musicUrl,proto3" json:"music_url,omitempty"`
- XXX_NoUnkeyedLiteral struct{} `json:"-"`
- XXX_unrecognized []byte `json:"-"`
- XXX_sizecache int32 `json:"-"`
-}
-
-func (m *SendMusicReq) Reset() { *m = SendMusicReq{} }
-func (m *SendMusicReq) String() string { return proto.CompactTextString(m) }
-func (*SendMusicReq) ProtoMessage() {}
-func (*SendMusicReq) Descriptor() ([]byte, []int) {
- return fileDescriptor_ed9cadf202f12b1d, []int{78}
-}
-func (m *SendMusicReq) XXX_Unmarshal(b []byte) error {
- return m.Unmarshal(b)
-}
-func (m *SendMusicReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- if deterministic {
- return xxx_messageInfo_SendMusicReq.Marshal(b, m, deterministic)
- } else {
- b = b[:cap(b)]
- n, err := m.MarshalToSizedBuffer(b)
- if err != nil {
- return nil, err
+func (x *SetGroupSignInResp) ProtoReflect() protoreflect.Message {
+ mi := &file_onebot_api_proto_msgTypes[79]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
}
- return b[:n], nil
+ return ms
}
+ return mi.MessageOf(x)
+}
+
+// Deprecated: Use SetGroupSignInResp.ProtoReflect.Descriptor instead.
+func (*SetGroupSignInResp) Descriptor() ([]byte, []int) {
+ return file_onebot_api_proto_rawDescGZIP(), []int{79}
}
-func (m *SendMusicReq) XXX_Merge(src proto.Message) {
- xxx_messageInfo_SendMusicReq.Merge(m, src)
+
+type SendMusicReq struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ GroupId int64 `protobuf:"varint,1,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty"`
+ UserId int64 `protobuf:"varint,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
+ Type string `protobuf:"bytes,3,opt,name=type,proto3" json:"type,omitempty"`
+ Title string `protobuf:"bytes,4,opt,name=title,proto3" json:"title,omitempty"`
+ Brief string `protobuf:"bytes,5,opt,name=brief,proto3" json:"brief,omitempty"`
+ Summary string `protobuf:"bytes,6,opt,name=summary,proto3" json:"summary,omitempty"`
+ Url string `protobuf:"bytes,7,opt,name=url,proto3" json:"url,omitempty"`
+ PictureUrl string `protobuf:"bytes,8,opt,name=picture_url,json=pictureUrl,proto3" json:"picture_url,omitempty"`
+ MusicUrl string `protobuf:"bytes,9,opt,name=music_url,json=musicUrl,proto3" json:"music_url,omitempty"`
+}
+
+func (x *SendMusicReq) Reset() {
+ *x = SendMusicReq{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_onebot_api_proto_msgTypes[80]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
}
-func (m *SendMusicReq) XXX_Size() int {
- return m.Size()
+
+func (x *SendMusicReq) String() string {
+ return protoimpl.X.MessageStringOf(x)
}
-func (m *SendMusicReq) XXX_DiscardUnknown() {
- xxx_messageInfo_SendMusicReq.DiscardUnknown(m)
+
+func (*SendMusicReq) ProtoMessage() {}
+
+func (x *SendMusicReq) ProtoReflect() protoreflect.Message {
+ mi := &file_onebot_api_proto_msgTypes[80]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
}
-var xxx_messageInfo_SendMusicReq proto.InternalMessageInfo
+// Deprecated: Use SendMusicReq.ProtoReflect.Descriptor instead.
+func (*SendMusicReq) Descriptor() ([]byte, []int) {
+ return file_onebot_api_proto_rawDescGZIP(), []int{80}
+}
-func (m *SendMusicReq) GetGroupId() int64 {
- if m != nil {
- return m.GroupId
+func (x *SendMusicReq) GetGroupId() int64 {
+ if x != nil {
+ return x.GroupId
}
return 0
}
-func (m *SendMusicReq) GetUserId() int64 {
- if m != nil {
- return m.UserId
+func (x *SendMusicReq) GetUserId() int64 {
+ if x != nil {
+ return x.UserId
}
return 0
}
-func (m *SendMusicReq) GetType() string {
- if m != nil {
- return m.Type
+func (x *SendMusicReq) GetType() string {
+ if x != nil {
+ return x.Type
}
return ""
}
-func (m *SendMusicReq) GetTitle() string {
- if m != nil {
- return m.Title
+func (x *SendMusicReq) GetTitle() string {
+ if x != nil {
+ return x.Title
}
return ""
}
-func (m *SendMusicReq) GetBrief() string {
- if m != nil {
- return m.Brief
+func (x *SendMusicReq) GetBrief() string {
+ if x != nil {
+ return x.Brief
}
return ""
}
-func (m *SendMusicReq) GetSummary() string {
- if m != nil {
- return m.Summary
+func (x *SendMusicReq) GetSummary() string {
+ if x != nil {
+ return x.Summary
}
return ""
}
-func (m *SendMusicReq) GetUrl() string {
- if m != nil {
- return m.Url
+func (x *SendMusicReq) GetUrl() string {
+ if x != nil {
+ return x.Url
}
return ""
}
-func (m *SendMusicReq) GetPictureUrl() string {
- if m != nil {
- return m.PictureUrl
+func (x *SendMusicReq) GetPictureUrl() string {
+ if x != nil {
+ return x.PictureUrl
}
return ""
}
-func (m *SendMusicReq) GetMusicUrl() string {
- if m != nil {
- return m.MusicUrl
+func (x *SendMusicReq) GetMusicUrl() string {
+ if x != nil {
+ return x.MusicUrl
}
return ""
}
type SendMusicResp struct {
- XXX_NoUnkeyedLiteral struct{} `json:"-"`
- XXX_unrecognized []byte `json:"-"`
- XXX_sizecache int32 `json:"-"`
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
}
-func (m *SendMusicResp) Reset() { *m = SendMusicResp{} }
-func (m *SendMusicResp) String() string { return proto.CompactTextString(m) }
-func (*SendMusicResp) ProtoMessage() {}
-func (*SendMusicResp) Descriptor() ([]byte, []int) {
- return fileDescriptor_ed9cadf202f12b1d, []int{79}
-}
-func (m *SendMusicResp) XXX_Unmarshal(b []byte) error {
- return m.Unmarshal(b)
-}
-func (m *SendMusicResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- if deterministic {
- return xxx_messageInfo_SendMusicResp.Marshal(b, m, deterministic)
- } else {
- b = b[:cap(b)]
- n, err := m.MarshalToSizedBuffer(b)
- if err != nil {
- return nil, err
- }
- return b[:n], nil
+func (x *SendMusicResp) Reset() {
+ *x = SendMusicResp{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_onebot_api_proto_msgTypes[81]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
}
}
-func (m *SendMusicResp) XXX_Merge(src proto.Message) {
- xxx_messageInfo_SendMusicResp.Merge(m, src)
-}
-func (m *SendMusicResp) XXX_Size() int {
- return m.Size()
-}
-func (m *SendMusicResp) XXX_DiscardUnknown() {
- xxx_messageInfo_SendMusicResp.DiscardUnknown(m)
+
+func (x *SendMusicResp) String() string {
+ return protoimpl.X.MessageStringOf(x)
}
-var xxx_messageInfo_SendMusicResp proto.InternalMessageInfo
-
-type SendGroupPokeReq struct {
- GroupId int64 `protobuf:"varint,1,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty"`
- UserId int64 `protobuf:"varint,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
- XXX_NoUnkeyedLiteral struct{} `json:"-"`
- XXX_unrecognized []byte `json:"-"`
- XXX_sizecache int32 `json:"-"`
-}
+func (*SendMusicResp) ProtoMessage() {}
-func (m *SendGroupPokeReq) Reset() { *m = SendGroupPokeReq{} }
-func (m *SendGroupPokeReq) String() string { return proto.CompactTextString(m) }
-func (*SendGroupPokeReq) ProtoMessage() {}
-func (*SendGroupPokeReq) Descriptor() ([]byte, []int) {
- return fileDescriptor_ed9cadf202f12b1d, []int{80}
-}
-func (m *SendGroupPokeReq) XXX_Unmarshal(b []byte) error {
- return m.Unmarshal(b)
-}
-func (m *SendGroupPokeReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- if deterministic {
- return xxx_messageInfo_SendGroupPokeReq.Marshal(b, m, deterministic)
- } else {
- b = b[:cap(b)]
- n, err := m.MarshalToSizedBuffer(b)
- if err != nil {
- return nil, err
+func (x *SendMusicResp) ProtoReflect() protoreflect.Message {
+ mi := &file_onebot_api_proto_msgTypes[81]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
}
- return b[:n], nil
+ return ms
}
+ return mi.MessageOf(x)
}
-func (m *SendGroupPokeReq) XXX_Merge(src proto.Message) {
- xxx_messageInfo_SendGroupPokeReq.Merge(m, src)
-}
-func (m *SendGroupPokeReq) XXX_Size() int {
- return m.Size()
-}
-func (m *SendGroupPokeReq) XXX_DiscardUnknown() {
- xxx_messageInfo_SendGroupPokeReq.DiscardUnknown(m)
+
+// Deprecated: Use SendMusicResp.ProtoReflect.Descriptor instead.
+func (*SendMusicResp) Descriptor() ([]byte, []int) {
+ return file_onebot_api_proto_rawDescGZIP(), []int{81}
}
-var xxx_messageInfo_SendGroupPokeReq proto.InternalMessageInfo
+type SendGroupPokeReq struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
-func (m *SendGroupPokeReq) GetGroupId() int64 {
- if m != nil {
- return m.GroupId
- }
- return 0
+ ToUin int64 `protobuf:"varint,1,opt,name=to_uin,json=toUin,proto3" json:"to_uin,omitempty"`
+ GroupId int64 `protobuf:"varint,2,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty"`
}
-func (m *SendGroupPokeReq) GetUserId() int64 {
- if m != nil {
- return m.UserId
+func (x *SendGroupPokeReq) Reset() {
+ *x = SendGroupPokeReq{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_onebot_api_proto_msgTypes[82]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
}
- return 0
}
-type SendGroupPokeResp struct {
- XXX_NoUnkeyedLiteral struct{} `json:"-"`
- XXX_unrecognized []byte `json:"-"`
- XXX_sizecache int32 `json:"-"`
+func (x *SendGroupPokeReq) String() string {
+ return protoimpl.X.MessageStringOf(x)
}
-func (m *SendGroupPokeResp) Reset() { *m = SendGroupPokeResp{} }
-func (m *SendGroupPokeResp) String() string { return proto.CompactTextString(m) }
-func (*SendGroupPokeResp) ProtoMessage() {}
-func (*SendGroupPokeResp) Descriptor() ([]byte, []int) {
- return fileDescriptor_ed9cadf202f12b1d, []int{81}
-}
-func (m *SendGroupPokeResp) XXX_Unmarshal(b []byte) error {
- return m.Unmarshal(b)
-}
-func (m *SendGroupPokeResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- if deterministic {
- return xxx_messageInfo_SendGroupPokeResp.Marshal(b, m, deterministic)
- } else {
- b = b[:cap(b)]
- n, err := m.MarshalToSizedBuffer(b)
- if err != nil {
- return nil, err
+func (*SendGroupPokeReq) ProtoMessage() {}
+
+func (x *SendGroupPokeReq) ProtoReflect() protoreflect.Message {
+ mi := &file_onebot_api_proto_msgTypes[82]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
}
- return b[:n], nil
+ return ms
}
-}
-func (m *SendGroupPokeResp) XXX_Merge(src proto.Message) {
- xxx_messageInfo_SendGroupPokeResp.Merge(m, src)
-}
-func (m *SendGroupPokeResp) XXX_Size() int {
- return m.Size()
-}
-func (m *SendGroupPokeResp) XXX_DiscardUnknown() {
- xxx_messageInfo_SendGroupPokeResp.DiscardUnknown(m)
+ return mi.MessageOf(x)
}
-var xxx_messageInfo_SendGroupPokeResp proto.InternalMessageInfo
-
-type SendFriendPokeReq struct {
- UserId int64 `protobuf:"varint,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
- XXX_NoUnkeyedLiteral struct{} `json:"-"`
- XXX_unrecognized []byte `json:"-"`
- XXX_sizecache int32 `json:"-"`
+// Deprecated: Use SendGroupPokeReq.ProtoReflect.Descriptor instead.
+func (*SendGroupPokeReq) Descriptor() ([]byte, []int) {
+ return file_onebot_api_proto_rawDescGZIP(), []int{82}
}
-func (m *SendFriendPokeReq) Reset() { *m = SendFriendPokeReq{} }
-func (m *SendFriendPokeReq) String() string { return proto.CompactTextString(m) }
-func (*SendFriendPokeReq) ProtoMessage() {}
-func (*SendFriendPokeReq) Descriptor() ([]byte, []int) {
- return fileDescriptor_ed9cadf202f12b1d, []int{82}
-}
-func (m *SendFriendPokeReq) XXX_Unmarshal(b []byte) error {
- return m.Unmarshal(b)
-}
-func (m *SendFriendPokeReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- if deterministic {
- return xxx_messageInfo_SendFriendPokeReq.Marshal(b, m, deterministic)
- } else {
- b = b[:cap(b)]
- n, err := m.MarshalToSizedBuffer(b)
- if err != nil {
- return nil, err
- }
- return b[:n], nil
+func (x *SendGroupPokeReq) GetToUin() int64 {
+ if x != nil {
+ return x.ToUin
}
+ return 0
}
-func (m *SendFriendPokeReq) XXX_Merge(src proto.Message) {
- xxx_messageInfo_SendFriendPokeReq.Merge(m, src)
-}
-func (m *SendFriendPokeReq) XXX_Size() int {
- return m.Size()
-}
-func (m *SendFriendPokeReq) XXX_DiscardUnknown() {
- xxx_messageInfo_SendFriendPokeReq.DiscardUnknown(m)
-}
-
-var xxx_messageInfo_SendFriendPokeReq proto.InternalMessageInfo
-func (m *SendFriendPokeReq) GetUserId() int64 {
- if m != nil {
- return m.UserId
+func (x *SendGroupPokeReq) GetGroupId() int64 {
+ if x != nil {
+ return x.GroupId
}
return 0
}
-type SendFriendPokeResp struct {
- XXX_NoUnkeyedLiteral struct{} `json:"-"`
- XXX_unrecognized []byte `json:"-"`
- XXX_sizecache int32 `json:"-"`
+type SendGroupPokeResp struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
}
-func (m *SendFriendPokeResp) Reset() { *m = SendFriendPokeResp{} }
-func (m *SendFriendPokeResp) String() string { return proto.CompactTextString(m) }
-func (*SendFriendPokeResp) ProtoMessage() {}
-func (*SendFriendPokeResp) Descriptor() ([]byte, []int) {
- return fileDescriptor_ed9cadf202f12b1d, []int{83}
-}
-func (m *SendFriendPokeResp) XXX_Unmarshal(b []byte) error {
- return m.Unmarshal(b)
-}
-func (m *SendFriendPokeResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- if deterministic {
- return xxx_messageInfo_SendFriendPokeResp.Marshal(b, m, deterministic)
- } else {
- b = b[:cap(b)]
- n, err := m.MarshalToSizedBuffer(b)
- if err != nil {
- return nil, err
- }
- return b[:n], nil
- }
-}
-func (m *SendFriendPokeResp) XXX_Merge(src proto.Message) {
- xxx_messageInfo_SendFriendPokeResp.Merge(m, src)
-}
-func (m *SendFriendPokeResp) XXX_Size() int {
- return m.Size()
-}
-func (m *SendFriendPokeResp) XXX_DiscardUnknown() {
- xxx_messageInfo_SendFriendPokeResp.DiscardUnknown(m)
-}
-
-var xxx_messageInfo_SendFriendPokeResp proto.InternalMessageInfo
-
-func init() {
- proto.RegisterType((*SendPrivateMsgReq)(nil), "onebot.SendPrivateMsgReq")
- proto.RegisterType((*SendPrivateMsgResp)(nil), "onebot.SendPrivateMsgResp")
- proto.RegisterType((*SendGroupMsgReq)(nil), "onebot.SendGroupMsgReq")
- proto.RegisterType((*SendGroupMsgResp)(nil), "onebot.SendGroupMsgResp")
- proto.RegisterType((*SendMsgReq)(nil), "onebot.SendMsgReq")
- proto.RegisterType((*SendMsgResp)(nil), "onebot.SendMsgResp")
- proto.RegisterType((*DeleteMsgReq)(nil), "onebot.DeleteMsgReq")
- proto.RegisterType((*DeleteMsgResp)(nil), "onebot.DeleteMsgResp")
- proto.RegisterType((*GetMsgReq)(nil), "onebot.GetMsgReq")
- proto.RegisterType((*GetMsgResp)(nil), "onebot.GetMsgResp")
- proto.RegisterType((*GetMsgResp_Sender)(nil), "onebot.GetMsgResp.Sender")
- proto.RegisterType((*GetForwardMsgReq)(nil), "onebot.GetForwardMsgReq")
- proto.RegisterType((*GetForwardMsgResp)(nil), "onebot.GetForwardMsgResp")
- proto.RegisterType((*SendLikeReq)(nil), "onebot.SendLikeReq")
- proto.RegisterType((*SendLikeResp)(nil), "onebot.SendLikeResp")
- proto.RegisterType((*SetGroupKickReq)(nil), "onebot.SetGroupKickReq")
- proto.RegisterType((*SetGroupKickResp)(nil), "onebot.SetGroupKickResp")
- proto.RegisterType((*SetGroupBanReq)(nil), "onebot.SetGroupBanReq")
- proto.RegisterType((*SetGroupBanResp)(nil), "onebot.SetGroupBanResp")
- proto.RegisterType((*SetGroupAnonymousBanReq)(nil), "onebot.SetGroupAnonymousBanReq")
- proto.RegisterType((*SetGroupAnonymousBanReq_Anonymous)(nil), "onebot.SetGroupAnonymousBanReq.Anonymous")
- proto.RegisterType((*SetGroupAnonymousBanResp)(nil), "onebot.SetGroupAnonymousBanResp")
- proto.RegisterType((*SetGroupWholeBanReq)(nil), "onebot.SetGroupWholeBanReq")
- proto.RegisterType((*SetGroupWholeBanResp)(nil), "onebot.SetGroupWholeBanResp")
- proto.RegisterType((*SetGroupAdminReq)(nil), "onebot.SetGroupAdminReq")
- proto.RegisterType((*SetGroupAdminResp)(nil), "onebot.SetGroupAdminResp")
- proto.RegisterType((*SetGroupAnonymousReq)(nil), "onebot.SetGroupAnonymousReq")
- proto.RegisterType((*SetGroupAnonymousResp)(nil), "onebot.SetGroupAnonymousResp")
- proto.RegisterType((*SetGroupCardReq)(nil), "onebot.SetGroupCardReq")
- proto.RegisterType((*SetGroupCardResp)(nil), "onebot.SetGroupCardResp")
- proto.RegisterType((*SetGroupNameReq)(nil), "onebot.SetGroupNameReq")
- proto.RegisterType((*SetGroupNameResp)(nil), "onebot.SetGroupNameResp")
- proto.RegisterType((*SetGroupLeaveReq)(nil), "onebot.SetGroupLeaveReq")
- proto.RegisterType((*SetGroupLeaveResp)(nil), "onebot.SetGroupLeaveResp")
- proto.RegisterType((*SetGroupSpecialTitleReq)(nil), "onebot.SetGroupSpecialTitleReq")
- proto.RegisterType((*SetGroupSpecialTitleResp)(nil), "onebot.SetGroupSpecialTitleResp")
- proto.RegisterType((*SetFriendAddRequestReq)(nil), "onebot.SetFriendAddRequestReq")
- proto.RegisterType((*SetFriendAddRequestResp)(nil), "onebot.SetFriendAddRequestResp")
- proto.RegisterType((*SetGroupAddRequestReq)(nil), "onebot.SetGroupAddRequestReq")
- proto.RegisterType((*SetGroupAddRequestResp)(nil), "onebot.SetGroupAddRequestResp")
- proto.RegisterType((*GetLoginInfoReq)(nil), "onebot.GetLoginInfoReq")
- proto.RegisterType((*GetLoginInfoResp)(nil), "onebot.GetLoginInfoResp")
- proto.RegisterType((*GetStrangerInfoReq)(nil), "onebot.GetStrangerInfoReq")
- proto.RegisterType((*GetStrangerInfoResp)(nil), "onebot.GetStrangerInfoResp")
- proto.RegisterType((*GetFriendListReq)(nil), "onebot.GetFriendListReq")
- proto.RegisterType((*GetFriendListResp)(nil), "onebot.GetFriendListResp")
- proto.RegisterType((*GetFriendListResp_Friend)(nil), "onebot.GetFriendListResp.Friend")
- proto.RegisterType((*GetGroupInfoReq)(nil), "onebot.GetGroupInfoReq")
- proto.RegisterType((*GetGroupInfoResp)(nil), "onebot.GetGroupInfoResp")
- proto.RegisterType((*GetGroupListReq)(nil), "onebot.GetGroupListReq")
- proto.RegisterType((*GetGroupListResp)(nil), "onebot.GetGroupListResp")
- proto.RegisterType((*GetGroupListResp_Group)(nil), "onebot.GetGroupListResp.Group")
- proto.RegisterType((*GetGroupMemberInfoReq)(nil), "onebot.GetGroupMemberInfoReq")
- proto.RegisterType((*GetGroupMemberInfoResp)(nil), "onebot.GetGroupMemberInfoResp")
- proto.RegisterType((*GetGroupMemberListReq)(nil), "onebot.GetGroupMemberListReq")
- proto.RegisterType((*GetGroupMemberListResp)(nil), "onebot.GetGroupMemberListResp")
- proto.RegisterType((*GetGroupMemberListResp_GroupMember)(nil), "onebot.GetGroupMemberListResp.GroupMember")
- proto.RegisterType((*GetGroupHonorInfoReq)(nil), "onebot.GetGroupHonorInfoReq")
- proto.RegisterType((*GetGroupHonorInfoResp)(nil), "onebot.GetGroupHonorInfoResp")
- proto.RegisterType((*GetGroupHonorInfoResp_CurrentTalkative)(nil), "onebot.GetGroupHonorInfoResp.CurrentTalkative")
- proto.RegisterType((*GetGroupHonorInfoResp_Honor)(nil), "onebot.GetGroupHonorInfoResp.Honor")
- proto.RegisterType((*GetCookiesReq)(nil), "onebot.GetCookiesReq")
- proto.RegisterType((*GetCookiesResp)(nil), "onebot.GetCookiesResp")
- proto.RegisterType((*GetCsrfTokenReq)(nil), "onebot.GetCsrfTokenReq")
- proto.RegisterType((*GetCsrfTokenResp)(nil), "onebot.GetCsrfTokenResp")
- proto.RegisterType((*GetCredentialsReq)(nil), "onebot.GetCredentialsReq")
- proto.RegisterType((*GetCredentialsResp)(nil), "onebot.GetCredentialsResp")
- proto.RegisterType((*GetRecordReq)(nil), "onebot.GetRecordReq")
- proto.RegisterType((*GetRecordResp)(nil), "onebot.GetRecordResp")
- proto.RegisterType((*GetImageReq)(nil), "onebot.GetImageReq")
- proto.RegisterType((*GetImageResp)(nil), "onebot.GetImageResp")
- proto.RegisterType((*CanSendImageReq)(nil), "onebot.CanSendImageReq")
- proto.RegisterType((*CanSendImageResp)(nil), "onebot.CanSendImageResp")
- proto.RegisterType((*CanSendRecordReq)(nil), "onebot.CanSendRecordReq")
- proto.RegisterType((*CanSendRecordResp)(nil), "onebot.CanSendRecordResp")
- proto.RegisterType((*GetStatusReq)(nil), "onebot.GetStatusReq")
- proto.RegisterType((*GetStatusResp)(nil), "onebot.GetStatusResp")
- proto.RegisterType((*GetVersionInfoReq)(nil), "onebot.GetVersionInfoReq")
- proto.RegisterType((*GetVersionInfoResp)(nil), "onebot.GetVersionInfoResp")
- proto.RegisterMapType((map[string]string)(nil), "onebot.GetVersionInfoResp.ExtraEntry")
- proto.RegisterType((*SetRestartReq)(nil), "onebot.SetRestartReq")
- proto.RegisterType((*SetRestartResp)(nil), "onebot.SetRestartResp")
- proto.RegisterType((*CleanCacheReq)(nil), "onebot.CleanCacheReq")
- proto.RegisterType((*CleanCacheResp)(nil), "onebot.CleanCacheResp")
- proto.RegisterType((*SetGroupSignInReq)(nil), "onebot.SetGroupSignInReq")
- proto.RegisterType((*SetGroupSignInResp)(nil), "onebot.SetGroupSignInResp")
- proto.RegisterType((*SendMusicReq)(nil), "onebot.SendMusicReq")
- proto.RegisterType((*SendMusicResp)(nil), "onebot.SendMusicResp")
- proto.RegisterType((*SendGroupPokeReq)(nil), "onebot.SendGroupPokeReq")
- proto.RegisterType((*SendGroupPokeResp)(nil), "onebot.SendGroupPokeResp")
- proto.RegisterType((*SendFriendPokeReq)(nil), "onebot.SendFriendPokeReq")
- proto.RegisterType((*SendFriendPokeResp)(nil), "onebot.SendFriendPokeResp")
-}
-
-func init() { proto.RegisterFile("onebot_api.proto", fileDescriptor_ed9cadf202f12b1d) }
-
-var fileDescriptor_ed9cadf202f12b1d = []byte{
- // 2217 bytes of a gzipped FileDescriptorProto
- 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xec, 0x19, 0x4d, 0x6f, 0x1c, 0x49,
- 0x95, 0xf6, 0x78, 0xc6, 0x33, 0x6f, 0xec, 0xf1, 0xb8, 0xe3, 0x75, 0x26, 0x83, 0xe2, 0xf5, 0x56,
- 0x36, 0x5a, 0x27, 0xac, 0x46, 0x22, 0x80, 0x14, 0x11, 0x38, 0x64, 0x27, 0xce, 0xc4, 0x4a, 0xbc,
- 0x5a, 0xf5, 0x24, 0x20, 0x84, 0x44, 0x53, 0xee, 0x2e, 0x4f, 0x7a, 0xdd, 0xd3, 0x5d, 0xa9, 0xea,
- 0x71, 0x3c, 0x12, 0xff, 0x00, 0xb4, 0x67, 0xf6, 0x88, 0xe0, 0x88, 0xc4, 0xbf, 0x40, 0x70, 0x83,
- 0x23, 0x37, 0x14, 0xae, 0x9c, 0xf8, 0x05, 0xa8, 0xbe, 0xba, 0xab, 0x67, 0xec, 0xb1, 0x19, 0xf6,
- 0xb0, 0x87, 0xbd, 0xd5, 0x7b, 0xf5, 0xea, 0x7d, 0xbf, 0xd7, 0xaf, 0xaa, 0xa1, 0x9d, 0x26, 0xe4,
- 0x38, 0xcd, 0x7c, 0x4c, 0xa3, 0x1e, 0x65, 0x69, 0x96, 0xba, 0x35, 0x85, 0xe9, 0x6e, 0xe9, 0x9d,
- 0x63, 0xcc, 0x89, 0xda, 0x42, 0xe7, 0xb0, 0x35, 0x24, 0x49, 0xf8, 0x19, 0x8b, 0xce, 0x70, 0x46,
- 0x8e, 0xf8, 0xc8, 0x23, 0x6f, 0xdc, 0x9b, 0xb0, 0x36, 0xe1, 0x84, 0xf9, 0x51, 0xd8, 0x71, 0xf6,
- 0x9c, 0xfd, 0x8a, 0x57, 0x13, 0xe0, 0x61, 0xe8, 0xde, 0x83, 0xb5, 0x31, 0xe1, 0x1c, 0x8f, 0x48,
- 0x67, 0x65, 0xaf, 0xb2, 0xdf, 0x7c, 0xb0, 0xd9, 0x53, 0x2c, 0x7b, 0x47, 0x0a, 0xed, 0x99, 0x7d,
- 0xf7, 0x7d, 0x68, 0xe2, 0x49, 0x96, 0xfa, 0x84, 0x07, 0x98, 0x92, 0x4e, 0x65, 0xcf, 0xd9, 0xaf,
- 0x7b, 0x20, 0x50, 0x07, 0x12, 0x83, 0x9e, 0x83, 0x3b, 0x2b, 0x99, 0x53, 0xf7, 0x07, 0x00, 0x9a,
- 0x83, 0x90, 0xbe, 0xb2, 0xe7, 0xec, 0x37, 0x1f, 0xec, 0xcc, 0x0a, 0x21, 0x01, 0x89, 0x68, 0xe6,
- 0x35, 0x34, 0xe5, 0x61, 0x88, 0xce, 0x61, 0x53, 0x30, 0x1b, 0xb0, 0x74, 0x42, 0xb5, 0x11, 0xb7,
- 0xa0, 0x3e, 0x12, 0x60, 0x61, 0xc5, 0x9a, 0x84, 0xbf, 0x62, 0x33, 0x0e, 0xa1, 0x5d, 0x96, 0xbc,
- 0xbc, 0x11, 0x7f, 0x72, 0x00, 0x04, 0x2f, 0x6d, 0xc0, 0x07, 0xb0, 0x6e, 0xb8, 0x64, 0x53, 0x4a,
- 0xa4, 0x11, 0x0d, 0xaf, 0xa9, 0x71, 0x2f, 0xa7, 0x94, 0xd8, 0x81, 0x5a, 0x29, 0x05, 0xca, 0x36,
- 0xbe, 0x72, 0xa9, 0xf1, 0xab, 0xff, 0x9b, 0xf1, 0xd5, 0x39, 0xe3, 0x9f, 0x40, 0x33, 0x57, 0x78,
- 0x79, 0xbb, 0x0f, 0x60, 0xfd, 0x09, 0x89, 0x49, 0x9e, 0x7e, 0x4b, 0xb2, 0xd9, 0x84, 0x0d, 0x8b,
- 0x0d, 0xa7, 0xe8, 0x3e, 0x34, 0x06, 0x24, 0xd3, 0x4c, 0x6f, 0x97, 0x98, 0x0a, 0x5f, 0x56, 0xed,
- 0xc3, 0x7f, 0xae, 0x00, 0x18, 0x62, 0x4e, 0x5d, 0x17, 0x56, 0xb3, 0x68, 0x4c, 0x34, 0x9d, 0x5c,
- 0xcf, 0xc5, 0x63, 0x65, 0x3e, 0x1e, 0x65, 0x21, 0x95, 0x19, 0x21, 0x22, 0x5c, 0x8c, 0xe0, 0x58,
- 0xec, 0xad, 0xca, 0xbd, 0x9a, 0x00, 0x0f, 0x43, 0xf7, 0xbb, 0x50, 0xe3, 0x24, 0x09, 0x09, 0x93,
- 0x3e, 0x6e, 0x3e, 0xb8, 0x65, 0xac, 0x2d, 0x54, 0xea, 0x0d, 0x25, 0x81, 0xa7, 0x09, 0xed, 0x30,
- 0xd6, 0xae, 0x0e, 0x23, 0xc3, 0x6f, 0x7d, 0x43, 0xbe, 0x26, 0xf5, 0x06, 0x86, 0xdf, 0x6a, 0xca,
- 0xee, 0x5f, 0x1d, 0xa8, 0x29, 0xf6, 0x97, 0x97, 0x7e, 0x17, 0xea, 0x49, 0x14, 0x9c, 0x26, 0x78,
- 0x6c, 0x2c, 0xcf, 0x61, 0xe1, 0xad, 0x00, 0x33, 0x65, 0x70, 0xc3, 0x93, 0x6b, 0xb7, 0x0d, 0x15,
- 0x4e, 0xce, 0xa5, 0x9d, 0x0d, 0x4f, 0x2c, 0x05, 0x46, 0x88, 0xaf, 0x4a, 0xcb, 0xc5, 0x52, 0x9c,
- 0xc3, 0x8c, 0xe0, 0x4e, 0x4d, 0x9d, 0x13, 0x6b, 0x77, 0x1b, 0xaa, 0x31, 0x39, 0x23, 0xb1, 0x56,
- 0x53, 0x01, 0x82, 0x92, 0xa5, 0x31, 0xe9, 0xd4, 0x15, 0xa5, 0x58, 0x0b, 0xca, 0x2c, 0xca, 0x62,
- 0xd2, 0x69, 0x28, 0x4a, 0x09, 0x20, 0x04, 0xed, 0x01, 0xc9, 0x9e, 0xa6, 0xec, 0x2d, 0x66, 0xa6,
- 0x92, 0x5a, 0xb0, 0xa2, 0xed, 0x69, 0x78, 0x2b, 0x51, 0x88, 0x6e, 0xc0, 0xd6, 0x0c, 0x0d, 0xa7,
- 0xe8, 0x47, 0x2a, 0x97, 0x5f, 0x44, 0xa7, 0x64, 0x61, 0x0f, 0x94, 0x62, 0xc7, 0x84, 0x4b, 0x2f,
- 0x54, 0x3d, 0x05, 0xa0, 0x16, 0xac, 0x17, 0xa7, 0x39, 0x45, 0x5f, 0x38, 0xa2, 0x23, 0x65, 0xb2,
- 0x2d, 0x3c, 0x8f, 0x82, 0xd3, 0x2b, 0x3a, 0xd2, 0xa5, 0x85, 0xfc, 0x31, 0xb8, 0x8c, 0x7c, 0x4e,
- 0x82, 0xcc, 0xc7, 0x61, 0xe8, 0x33, 0xf2, 0x66, 0x42, 0x78, 0xa6, 0xdb, 0x50, 0x5b, 0xed, 0x3c,
- 0x0e, 0x43, 0x4f, 0xe1, 0x85, 0x04, 0xcd, 0x86, 0xcb, 0xe2, 0xae, 0x78, 0x6b, 0x8a, 0x0f, 0x47,
- 0xae, 0xe8, 0x53, 0xb6, 0x3e, 0x9c, 0xa2, 0x5f, 0x42, 0xcb, 0xe0, 0x3e, 0xc1, 0xc9, 0xb2, 0x2a,
- 0x76, 0xa1, 0x1e, 0x4e, 0x18, 0xce, 0xa2, 0x34, 0xd1, 0x29, 0x9f, 0xc3, 0x68, 0xab, 0xf0, 0x82,
- 0x94, 0xc0, 0x29, 0xfa, 0x72, 0x05, 0x6e, 0x1a, 0xdc, 0xe3, 0x24, 0x4d, 0xa6, 0xe3, 0x74, 0xc2,
- 0xaf, 0x16, 0x3f, 0x80, 0x06, 0x36, 0xd4, 0xba, 0x27, 0xdc, 0x33, 0x19, 0x7f, 0x09, 0xbb, 0x5e,
- 0x0e, 0x7b, 0xc5, 0x59, 0xf7, 0x2e, 0xb4, 0x72, 0xc0, 0x3f, 0x89, 0xf1, 0x48, 0xa7, 0xed, 0x46,
- 0x8e, 0x7d, 0x1a, 0xe3, 0x91, 0xc8, 0x38, 0xb9, 0xa9, 0x12, 0x58, 0xae, 0x4b, 0x96, 0x56, 0xa5,
- 0x7a, 0x39, 0xdc, 0xed, 0x43, 0x23, 0x17, 0x67, 0x25, 0x5c, 0x45, 0x24, 0x9c, 0x60, 0x66, 0x15,
- 0xce, 0xaa, 0x29, 0x1a, 0x4b, 0xba, 0x5c, 0xa3, 0x2e, 0x74, 0x2e, 0xb6, 0x85, 0x53, 0xf4, 0x0c,
- 0x6e, 0x98, 0xbd, 0x9f, 0xbe, 0x4e, 0x63, 0x72, 0xb5, 0xcb, 0x76, 0xa0, 0x46, 0x12, 0x7c, 0x1c,
- 0x2b, 0xb9, 0x75, 0x4f, 0x43, 0x68, 0x07, 0xb6, 0xe7, 0x39, 0x71, 0x8a, 0x7e, 0x51, 0xa4, 0xc8,
- 0xe3, 0x70, 0x1c, 0x2d, 0x9d, 0x10, 0x85, 0xdc, 0x4a, 0x49, 0xee, 0x0d, 0x31, 0x6b, 0x94, 0xf8,
- 0x73, 0x8a, 0x0e, 0x0b, 0x65, 0x8a, 0x70, 0x2d, 0x67, 0xd7, 0x4d, 0x78, 0xef, 0x02, 0x56, 0x9c,
- 0xa2, 0x9f, 0x15, 0x59, 0xd8, 0xc7, 0x2c, 0x5c, 0xd6, 0xae, 0x0b, 0xda, 0x9c, 0x5d, 0x56, 0x8a,
- 0x35, 0xa7, 0xe8, 0x79, 0x21, 0xee, 0x53, 0x3c, 0x26, 0x57, 0x88, 0xbb, 0x0d, 0xa0, 0xb6, 0xac,
- 0x0c, 0x69, 0x8c, 0xcc, 0x61, 0x5b, 0x80, 0x62, 0xc6, 0x29, 0x7a, 0x51, 0xe0, 0x5e, 0x10, 0x7c,
- 0x76, 0x0d, 0x09, 0x11, 0xf7, 0xc3, 0x88, 0x8f, 0x23, 0xce, 0xb5, 0xcf, 0x1a, 0x11, 0x7f, 0xa2,
- 0x10, 0x76, 0x58, 0x34, 0x37, 0xd5, 0xbf, 0xf2, 0x2a, 0x1d, 0x52, 0x12, 0x44, 0x38, 0x7e, 0x29,
- 0xfa, 0xeb, 0xb2, 0xbe, 0xbb, 0x03, 0x1b, 0x5c, 0xb1, 0xf1, 0x55, 0xd3, 0x56, 0x4e, 0x5c, 0xe7,
- 0x16, 0xef, 0x52, 0x7d, 0xad, 0x96, 0xeb, 0xcb, 0x2e, 0x8d, 0xb2, 0x3e, 0x32, 0x71, 0x77, 0x86,
- 0x24, 0x7b, 0xca, 0x22, 0x92, 0x84, 0x45, 0x37, 0x14, 0xaa, 0x9a, 0x22, 0x73, 0xac, 0x2a, 0xee,
- 0xc0, 0x1a, 0xa6, 0x94, 0xa5, 0x67, 0x26, 0x7f, 0x0c, 0x28, 0x12, 0x8b, 0x91, 0x31, 0x66, 0xa7,
- 0x5a, 0x3b, 0x0d, 0xa1, 0x5b, 0xd2, 0x17, 0xf3, 0xfc, 0x39, 0x45, 0xbf, 0x71, 0xac, 0xa4, 0xbb,
- 0x52, 0xf4, 0x2d, 0xa8, 0xf3, 0xc9, 0xb1, 0x3d, 0x3e, 0xac, 0xf1, 0xc9, 0xb1, 0x1c, 0x1d, 0xc4,
- 0xc4, 0x31, 0xa5, 0xc6, 0x2f, 0x72, 0x6d, 0x6b, 0xba, 0x7a, 0x81, 0xa6, 0x98, 0xeb, 0x3e, 0x24,
- 0x35, 0x15, 0x10, 0xea, 0x48, 0x4f, 0xcc, 0x69, 0xc3, 0xa9, 0xe8, 0xc4, 0x03, 0x92, 0xbd, 0x48,
- 0x47, 0x51, 0x72, 0x98, 0x9c, 0xa4, 0x1e, 0x79, 0x83, 0x06, 0xf2, 0x53, 0x69, 0xa1, 0x38, 0x5d,
- 0xea, 0xfb, 0x8f, 0x9e, 0x81, 0x3b, 0x20, 0xd9, 0x30, 0x63, 0x38, 0x19, 0x11, 0xa6, 0xd9, 0x5f,
- 0xce, 0xea, 0x16, 0xd4, 0x93, 0xd4, 0x0f, 0x70, 0xf0, 0x3a, 0x8f, 0x40, 0x92, 0xf6, 0x05, 0x88,
- 0x7e, 0xef, 0xc0, 0x8d, 0x39, 0x56, 0x4b, 0xaa, 0x65, 0x46, 0x90, 0xca, 0xdc, 0x08, 0xb2, 0x5a,
- 0x8c, 0x20, 0xf9, 0xb8, 0xa1, 0xc6, 0x12, 0x3d, 0x6e, 0xdc, 0x06, 0x88, 0x85, 0x5b, 0xfc, 0x10,
- 0x4f, 0xb9, 0x1c, 0x4f, 0x2a, 0x5e, 0x43, 0x62, 0x9e, 0xe0, 0xa9, 0xfc, 0x96, 0x0e, 0x4c, 0x3e,
- 0xbc, 0x88, 0x64, 0xb8, 0xd1, 0x1f, 0x1c, 0x35, 0x54, 0x58, 0x48, 0x4e, 0xdd, 0x87, 0x50, 0x3b,
- 0x91, 0x98, 0x8e, 0x23, 0x87, 0xb4, 0x3d, 0x6b, 0xb0, 0x2b, 0x93, 0xf6, 0x14, 0xe8, 0x69, 0xfa,
- 0xee, 0x2b, 0xa8, 0x29, 0xcc, 0x72, 0xb6, 0x5f, 0x96, 0xca, 0x03, 0x99, 0x06, 0x32, 0x41, 0x4c,
- 0x9c, 0x16, 0x94, 0xf3, 0x82, 0x48, 0x7d, 0xe9, 0x48, 0x27, 0x58, 0x9c, 0x38, 0x5d, 0xbe, 0xcd,
- 0xa9, 0xe1, 0x7a, 0x7c, 0x4c, 0x98, 0x1f, 0xa4, 0x93, 0x24, 0xd3, 0x83, 0x44, 0x53, 0xe1, 0xfa,
- 0x02, 0xe5, 0xee, 0x43, 0x7b, 0x8c, 0xcf, 0xfd, 0x12, 0x99, 0x8a, 0x64, 0x6b, 0x8c, 0xcf, 0x8f,
- 0x0a, 0x4a, 0x9d, 0xeb, 0xaa, 0xa3, 0xe9, 0xf0, 0xfc, 0xc3, 0x52, 0x37, 0x8f, 0xce, 0xf7, 0xa1,
- 0x2a, 0x35, 0xd0, 0xc1, 0xd9, 0xb5, 0x82, 0x53, 0x22, 0xec, 0x49, 0xc8, 0x53, 0xc4, 0xdd, 0x2f,
- 0x1c, 0xa8, 0x4a, 0xc4, 0xd7, 0xc5, 0xdc, 0x13, 0x78, 0xcf, 0x68, 0xac, 0xd0, 0xd7, 0x88, 0xec,
- 0xa2, 0x9b, 0x63, 0x1e, 0xf2, 0x4a, 0x39, 0xe4, 0x7f, 0xac, 0xc0, 0xce, 0x45, 0x82, 0x16, 0x07,
- 0x7e, 0xd1, 0xdc, 0x98, 0xa7, 0x6f, 0xe5, 0x92, 0x1b, 0xc5, 0xea, 0xfc, 0x8d, 0xa2, 0x3a, 0x57,
- 0xce, 0xb5, 0xf9, 0x1b, 0xc5, 0x9a, 0x75, 0xa3, 0xf8, 0x36, 0x34, 0x3e, 0x4f, 0xa3, 0xc4, 0x97,
- 0x17, 0xba, 0xba, 0xfa, 0xac, 0x08, 0xc4, 0x4b, 0x71, 0xa9, 0xfb, 0x10, 0x5a, 0x31, 0xe6, 0x99,
- 0xcf, 0x49, 0x92, 0x29, 0x8a, 0x86, 0xa4, 0x58, 0x17, 0xd8, 0x21, 0x49, 0x32, 0x49, 0x95, 0x77,
- 0x09, 0xb8, 0xe8, 0x52, 0xd2, 0xb4, 0x2e, 0x25, 0xbb, 0x00, 0x93, 0x44, 0x95, 0x70, 0x3c, 0xed,
- 0xac, 0xab, 0x1b, 0x73, 0x81, 0x29, 0x2e, 0x2d, 0x1b, 0xd6, 0xa5, 0xc5, 0xbd, 0x0f, 0x5b, 0x72,
- 0xe1, 0x93, 0x73, 0x1a, 0x31, 0xa2, 0x14, 0x69, 0x49, 0x45, 0x36, 0xe5, 0xc6, 0x81, 0xc4, 0x4b,
- 0x5d, 0x3e, 0x82, 0x4d, 0xe1, 0x0e, 0x3f, 0x78, 0x2d, 0x5a, 0xa4, 0x1c, 0x83, 0x36, 0xa5, 0x98,
- 0x96, 0x40, 0xf7, 0x73, 0x2c, 0x7a, 0x30, 0x9b, 0x16, 0xba, 0x16, 0x16, 0x04, 0x0b, 0xfd, 0x7a,
- 0x75, 0x36, 0xc4, 0x79, 0xb1, 0x1c, 0xc1, 0xba, 0x3a, 0xa5, 0x32, 0x52, 0xd7, 0xcc, 0xfd, 0xd9,
- 0x9a, 0x29, 0x9f, 0xea, 0x59, 0x38, 0xaf, 0x39, 0x2a, 0x80, 0xee, 0xef, 0x2a, 0xd0, 0xb4, 0x36,
- 0xbf, 0xc9, 0xa0, 0xaf, 0x61, 0x06, 0x1d, 0xc0, 0xb6, 0x09, 0xeb, 0xb3, 0x34, 0x49, 0xaf, 0xd3,
- 0x57, 0xcc, 0x18, 0xb3, 0x52, 0x8c, 0x31, 0xe8, 0xef, 0xd5, 0x22, 0x13, 0x2d, 0x3e, 0x8b, 0xdb,
- 0xc6, 0xcf, 0x61, 0x2b, 0x98, 0x30, 0x26, 0x9d, 0x8a, 0xe3, 0x53, 0x9c, 0x45, 0x7a, 0x5e, 0x6b,
- 0x3e, 0xe8, 0xcd, 0xe6, 0x5c, 0x89, 0x69, 0xaf, 0xaf, 0x8e, 0xbd, 0x34, 0xa7, 0xbc, 0x76, 0x30,
- 0x83, 0x71, 0x1f, 0x43, 0xa3, 0x60, 0x5a, 0x91, 0x89, 0x7c, 0x67, 0x31, 0x53, 0x09, 0x79, 0xc5,
- 0x29, 0xc1, 0x82, 0x12, 0x76, 0x92, 0xb2, 0x31, 0x61, 0xfa, 0x21, 0xed, 0x7a, 0x2c, 0xf2, 0x53,
- 0xee, 0x23, 0xa8, 0xc5, 0x64, 0x24, 0x86, 0x83, 0xea, 0xf5, 0xcf, 0xeb, 0x23, 0xee, 0x33, 0xd8,
- 0xe0, 0x19, 0x4b, 0x93, 0x91, 0x9f, 0x90, 0xb7, 0xc7, 0x91, 0x79, 0x05, 0xba, 0x16, 0x8f, 0x75,
- 0x75, 0xf2, 0x53, 0x79, 0xd0, 0xfd, 0x31, 0xac, 0x91, 0x71, 0x2a, 0x87, 0xee, 0xb5, 0xeb, 0xf3,
- 0x30, 0x67, 0xba, 0xbf, 0x82, 0xf6, 0xac, 0xc7, 0x97, 0x1e, 0x59, 0xf0, 0x19, 0xce, 0x30, 0x33,
- 0x23, 0x8b, 0x82, 0x44, 0xf5, 0x85, 0x78, 0x5a, 0xfa, 0x02, 0xd6, 0x43, 0x3c, 0x95, 0xdf, 0xbe,
- 0xee, 0x19, 0x54, 0xa5, 0x3e, 0x5f, 0xad, 0xc8, 0x3d, 0x68, 0x86, 0x84, 0x07, 0x2c, 0xa2, 0xf9,
- 0x5d, 0xa4, 0xe1, 0xd9, 0x28, 0xf4, 0x11, 0x6c, 0x0c, 0x48, 0xd6, 0x4f, 0xd3, 0xd3, 0x88, 0xc8,
- 0xfb, 0xea, 0x0e, 0xd4, 0xc2, 0x74, 0x8c, 0xa3, 0x44, 0x0f, 0xfc, 0x1a, 0x42, 0xf7, 0xa1, 0x65,
- 0x13, 0x72, 0x2a, 0xa6, 0xfa, 0x40, 0x81, 0x9a, 0xd4, 0x80, 0x7a, 0x6e, 0xe9, 0x73, 0x76, 0xf2,
- 0x32, 0x3d, 0x25, 0xe2, 0xfe, 0x8d, 0xf6, 0xe5, 0xd8, 0x62, 0xa1, 0x38, 0x95, 0x1d, 0x40, 0x00,
- 0xfa, 0x75, 0x52, 0x01, 0xe8, 0x3b, 0x72, 0xfe, 0xec, 0x33, 0x12, 0x92, 0x24, 0x8b, 0x70, 0xbc,
- 0x50, 0xab, 0x23, 0x39, 0xb1, 0x97, 0x88, 0x17, 0x69, 0x26, 0xc6, 0x99, 0x80, 0xb3, 0x13, 0x5f,
- 0xc9, 0x55, 0x2f, 0x5f, 0x8d, 0xc0, 0x68, 0x85, 0x1e, 0xc3, 0xfa, 0x80, 0x64, 0x1e, 0x09, 0x52,
- 0x75, 0xbb, 0x16, 0x77, 0x9f, 0x28, 0x26, 0xf9, 0xdd, 0x27, 0x8a, 0xe5, 0xdb, 0x68, 0x3a, 0xc9,
- 0x7c, 0x91, 0xfb, 0x38, 0x33, 0x13, 0x51, 0x3a, 0xc9, 0x9e, 0x4a, 0x04, 0xba, 0x23, 0x1d, 0x6a,
- 0x58, 0xa8, 0x27, 0xd8, 0x59, 0x1e, 0xe8, 0x03, 0x68, 0x0e, 0x48, 0x76, 0x38, 0x96, 0x0f, 0xc0,
- 0x17, 0x8a, 0x41, 0x48, 0xaa, 0xa2, 0x49, 0x2e, 0x61, 0xb3, 0x05, 0x9b, 0x7d, 0x9c, 0x0c, 0x49,
- 0x12, 0x1a, 0x56, 0xe8, 0x43, 0x68, 0x97, 0x51, 0x9c, 0x8a, 0x8f, 0xc3, 0x54, 0xbb, 0xa2, 0xee,
- 0x89, 0xa5, 0x18, 0xfc, 0x35, 0x55, 0x6e, 0x2b, 0xba, 0x0b, 0x5b, 0x33, 0xb8, 0x0b, 0x8f, 0xb6,
- 0xa4, 0x5e, 0xc3, 0x0c, 0x67, 0xf2, 0x7d, 0x03, 0x3d, 0x92, 0xf6, 0x1a, 0x98, 0x53, 0x11, 0xaa,
- 0x34, 0x89, 0xa3, 0x84, 0xe8, 0x53, 0x1a, 0x12, 0x06, 0x8c, 0xd2, 0x34, 0xd4, 0xf3, 0xb7, 0x5c,
- 0xeb, 0x07, 0xcc, 0x9f, 0x10, 0xc6, 0xa3, 0x34, 0xbf, 0xce, 0xfd, 0xc7, 0x91, 0x41, 0x2d, 0x61,
- 0x55, 0x8f, 0xc5, 0x54, 0xcf, 0xa1, 0x3a, 0xaa, 0x98, 0xaa, 0x29, 0xf4, 0x7d, 0x68, 0x8a, 0xad,
- 0x33, 0x75, 0x42, 0xc7, 0x04, 0x30, 0xa5, 0x9a, 0x87, 0x7b, 0x0f, 0xda, 0xf2, 0x37, 0x51, 0x90,
- 0xc6, 0x39, 0x95, 0xaa, 0x94, 0x4d, 0x83, 0x37, 0xa4, 0x8f, 0xa0, 0x4a, 0xce, 0x33, 0x86, 0x75,
- 0x2f, 0xbc, 0x6b, 0xf5, 0x90, 0x19, 0x8d, 0x7a, 0x07, 0x82, 0xee, 0x20, 0xc9, 0xd8, 0xd4, 0x53,
- 0x67, 0xba, 0x0f, 0x01, 0x0a, 0xa4, 0x70, 0xde, 0x29, 0x99, 0x6a, 0x65, 0xc5, 0x52, 0x64, 0xfc,
- 0x19, 0x8e, 0x27, 0xa6, 0x80, 0x15, 0xf0, 0xc3, 0x95, 0x87, 0x0e, 0xba, 0x0b, 0x1b, 0x43, 0x91,
- 0x36, 0x3c, 0xc3, 0x4c, 0x0e, 0x37, 0xdb, 0x50, 0x0d, 0x49, 0x8c, 0xa7, 0xa6, 0x38, 0x24, 0x80,
- 0xda, 0xf2, 0xa5, 0x33, 0x27, 0xe3, 0x14, 0x6d, 0xc2, 0x46, 0x3f, 0x26, 0x38, 0x91, 0xa3, 0xad,
- 0x70, 0x5f, 0x1b, 0x5a, 0x36, 0x82, 0x53, 0xd4, 0x2b, 0x1e, 0x46, 0x86, 0xd1, 0x28, 0x39, 0xbc,
- 0xe2, 0x41, 0x0c, 0x6d, 0x83, 0x3b, 0x4b, 0xcf, 0x29, 0xfa, 0xb7, 0xa3, 0x9e, 0x86, 0x8f, 0x26,
- 0x3c, 0x0a, 0xfe, 0x8f, 0xa7, 0xa7, 0xb9, 0xd7, 0x81, 0x7c, 0x10, 0x58, 0xb5, 0x07, 0x81, 0x6d,
- 0xa8, 0x1e, 0xb3, 0x88, 0x9c, 0xe8, 0x29, 0x47, 0x01, 0xa2, 0xb2, 0xf9, 0x64, 0x3c, 0xc6, 0x6c,
- 0xaa, 0x1f, 0xdb, 0x0d, 0x28, 0x9c, 0x3d, 0x61, 0xe6, 0xb5, 0x5d, 0x2c, 0x45, 0x56, 0xd0, 0x28,
- 0xc8, 0x26, 0x8c, 0xf8, 0x62, 0x47, 0x3d, 0xb9, 0x83, 0x46, 0xbd, 0x62, 0xb1, 0x68, 0xc8, 0x63,
- 0x61, 0x8c, 0xdc, 0x56, 0x8f, 0xef, 0x75, 0x89, 0x78, 0xc5, 0x62, 0xe1, 0x57, 0xcb, 0x5a, 0x4e,
- 0xd1, 0x53, 0xeb, 0x07, 0xd9, 0x67, 0xe9, 0xe9, 0xb2, 0x2f, 0x48, 0xea, 0x99, 0xaa, 0xc4, 0x87,
- 0x53, 0xf4, 0xb1, 0x42, 0xaa, 0x9b, 0xb2, 0xe1, 0x7e, 0x29, 0x8b, 0x6d, 0xf5, 0xcb, 0xd1, 0xa6,
- 0xe6, 0xf4, 0x93, 0xf6, 0x5f, 0xde, 0xed, 0x3a, 0x7f, 0x7b, 0xb7, 0xeb, 0xfc, 0xf3, 0xdd, 0xae,
- 0xf3, 0xdb, 0x7f, 0xed, 0x7e, 0xeb, 0xb8, 0x26, 0x93, 0xfb, 0x7b, 0xff, 0x0d, 0x00, 0x00, 0xff,
- 0xff, 0x8a, 0xba, 0x14, 0xcd, 0x4a, 0x1d, 0x00, 0x00,
-}
-
-func (m *SendPrivateMsgReq) Marshal() (dAtA []byte, err error) {
- size := m.Size()
- dAtA = make([]byte, size)
- n, err := m.MarshalToSizedBuffer(dAtA[:size])
- if err != nil {
- return nil, err
- }
- return dAtA[:n], nil
-}
-
-func (m *SendPrivateMsgReq) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
-}
-
-func (m *SendPrivateMsgReq) MarshalToSizedBuffer(dAtA []byte) (int, error) {
- i := len(dAtA)
- _ = i
- var l int
- _ = l
- if m.XXX_unrecognized != nil {
- i -= len(m.XXX_unrecognized)
- copy(dAtA[i:], m.XXX_unrecognized)
- }
- if m.AutoEscape {
- i--
- if m.AutoEscape {
- dAtA[i] = 1
- } else {
- dAtA[i] = 0
- }
- i--
- dAtA[i] = 0x18
- }
- if len(m.Message) > 0 {
- for iNdEx := len(m.Message) - 1; iNdEx >= 0; iNdEx-- {
- {
- size, err := m.Message[iNdEx].MarshalToSizedBuffer(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- i = encodeVarintOnebotApi(dAtA, i, uint64(size))
- }
- i--
- dAtA[i] = 0x12
- }
- }
- if m.UserId != 0 {
- i = encodeVarintOnebotApi(dAtA, i, uint64(m.UserId))
- i--
- dAtA[i] = 0x8
+func (x *SendGroupPokeResp) Reset() {
+ *x = SendGroupPokeResp{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_onebot_api_proto_msgTypes[83]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
}
- return len(dAtA) - i, nil
}
-func (m *SendPrivateMsgResp) Marshal() (dAtA []byte, err error) {
- size := m.Size()
- dAtA = make([]byte, size)
- n, err := m.MarshalToSizedBuffer(dAtA[:size])
- if err != nil {
- return nil, err
- }
- return dAtA[:n], nil
+func (x *SendGroupPokeResp) String() string {
+ return protoimpl.X.MessageStringOf(x)
}
-func (m *SendPrivateMsgResp) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
-}
+func (*SendGroupPokeResp) ProtoMessage() {}
-func (m *SendPrivateMsgResp) MarshalToSizedBuffer(dAtA []byte) (int, error) {
- i := len(dAtA)
- _ = i
- var l int
- _ = l
- if m.XXX_unrecognized != nil {
- i -= len(m.XXX_unrecognized)
- copy(dAtA[i:], m.XXX_unrecognized)
- }
- if m.MessageId != nil {
- {
- size, err := m.MessageId.MarshalToSizedBuffer(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- i = encodeVarintOnebotApi(dAtA, i, uint64(size))
+func (x *SendGroupPokeResp) ProtoReflect() protoreflect.Message {
+ mi := &file_onebot_api_proto_msgTypes[83]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
}
- i--
- dAtA[i] = 0x12
+ return ms
}
- return len(dAtA) - i, nil
+ return mi.MessageOf(x)
}
-func (m *SendGroupMsgReq) Marshal() (dAtA []byte, err error) {
- size := m.Size()
- dAtA = make([]byte, size)
- n, err := m.MarshalToSizedBuffer(dAtA[:size])
- if err != nil {
- return nil, err
- }
- return dAtA[:n], nil
+// Deprecated: Use SendGroupPokeResp.ProtoReflect.Descriptor instead.
+func (*SendGroupPokeResp) Descriptor() ([]byte, []int) {
+ return file_onebot_api_proto_rawDescGZIP(), []int{83}
}
-func (m *SendGroupMsgReq) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
-}
+type SendFriendPokeReq struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
-func (m *SendGroupMsgReq) MarshalToSizedBuffer(dAtA []byte) (int, error) {
- i := len(dAtA)
- _ = i
- var l int
- _ = l
- if m.XXX_unrecognized != nil {
- i -= len(m.XXX_unrecognized)
- copy(dAtA[i:], m.XXX_unrecognized)
- }
- if m.AutoEscape {
- i--
- if m.AutoEscape {
- dAtA[i] = 1
- } else {
- dAtA[i] = 0
- }
- i--
- dAtA[i] = 0x18
- }
- if len(m.Message) > 0 {
- for iNdEx := len(m.Message) - 1; iNdEx >= 0; iNdEx-- {
- {
- size, err := m.Message[iNdEx].MarshalToSizedBuffer(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- i = encodeVarintOnebotApi(dAtA, i, uint64(size))
- }
- i--
- dAtA[i] = 0x12
- }
- }
- if m.GroupId != 0 {
- i = encodeVarintOnebotApi(dAtA, i, uint64(m.GroupId))
- i--
- dAtA[i] = 0x8
- }
- return len(dAtA) - i, nil
+ ToUin int64 `protobuf:"varint,1,opt,name=to_uin,json=toUin,proto3" json:"to_uin,omitempty"`
+ AioUin int64 `protobuf:"varint,2,opt,name=aio_uin,json=aioUin,proto3" json:"aio_uin,omitempty"`
}
-func (m *SendGroupMsgResp) Marshal() (dAtA []byte, err error) {
- size := m.Size()
- dAtA = make([]byte, size)
- n, err := m.MarshalToSizedBuffer(dAtA[:size])
- if err != nil {
- return nil, err
+func (x *SendFriendPokeReq) Reset() {
+ *x = SendFriendPokeReq{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_onebot_api_proto_msgTypes[84]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
}
- return dAtA[:n], nil
}
-func (m *SendGroupMsgResp) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
+func (x *SendFriendPokeReq) String() string {
+ return protoimpl.X.MessageStringOf(x)
}
-func (m *SendGroupMsgResp) MarshalToSizedBuffer(dAtA []byte) (int, error) {
- i := len(dAtA)
- _ = i
- var l int
- _ = l
- if m.XXX_unrecognized != nil {
- i -= len(m.XXX_unrecognized)
- copy(dAtA[i:], m.XXX_unrecognized)
- }
- if m.MessageId != nil {
- {
- size, err := m.MessageId.MarshalToSizedBuffer(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- i = encodeVarintOnebotApi(dAtA, i, uint64(size))
- }
- i--
- dAtA[i] = 0x12
- }
- return len(dAtA) - i, nil
-}
+func (*SendFriendPokeReq) ProtoMessage() {}
-func (m *SendMsgReq) Marshal() (dAtA []byte, err error) {
- size := m.Size()
- dAtA = make([]byte, size)
- n, err := m.MarshalToSizedBuffer(dAtA[:size])
- if err != nil {
- return nil, err
+func (x *SendFriendPokeReq) ProtoReflect() protoreflect.Message {
+ mi := &file_onebot_api_proto_msgTypes[84]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
}
- return dAtA[:n], nil
+ return mi.MessageOf(x)
}
-func (m *SendMsgReq) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
+// Deprecated: Use SendFriendPokeReq.ProtoReflect.Descriptor instead.
+func (*SendFriendPokeReq) Descriptor() ([]byte, []int) {
+ return file_onebot_api_proto_rawDescGZIP(), []int{84}
}
-func (m *SendMsgReq) MarshalToSizedBuffer(dAtA []byte) (int, error) {
- i := len(dAtA)
- _ = i
- var l int
- _ = l
- if m.XXX_unrecognized != nil {
- i -= len(m.XXX_unrecognized)
- copy(dAtA[i:], m.XXX_unrecognized)
- }
- if m.AutoEscape {
- i--
- if m.AutoEscape {
- dAtA[i] = 1
- } else {
- dAtA[i] = 0
- }
- i--
- dAtA[i] = 0x28
- }
- if len(m.Message) > 0 {
- for iNdEx := len(m.Message) - 1; iNdEx >= 0; iNdEx-- {
- {
- size, err := m.Message[iNdEx].MarshalToSizedBuffer(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- i = encodeVarintOnebotApi(dAtA, i, uint64(size))
- }
- i--
- dAtA[i] = 0x22
- }
- }
- if m.GroupId != 0 {
- i = encodeVarintOnebotApi(dAtA, i, uint64(m.GroupId))
- i--
- dAtA[i] = 0x18
+func (x *SendFriendPokeReq) GetToUin() int64 {
+ if x != nil {
+ return x.ToUin
}
- if m.UserId != 0 {
- i = encodeVarintOnebotApi(dAtA, i, uint64(m.UserId))
- i--
- dAtA[i] = 0x10
- }
- if len(m.MessageType) > 0 {
- i -= len(m.MessageType)
- copy(dAtA[i:], m.MessageType)
- i = encodeVarintOnebotApi(dAtA, i, uint64(len(m.MessageType)))
- i--
- dAtA[i] = 0xa
- }
- return len(dAtA) - i, nil
+ return 0
}
-func (m *SendMsgResp) Marshal() (dAtA []byte, err error) {
- size := m.Size()
- dAtA = make([]byte, size)
- n, err := m.MarshalToSizedBuffer(dAtA[:size])
- if err != nil {
- return nil, err
+func (x *SendFriendPokeReq) GetAioUin() int64 {
+ if x != nil {
+ return x.AioUin
}
- return dAtA[:n], nil
+ return 0
}
-func (m *SendMsgResp) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
+type SendFriendPokeResp struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
}
-func (m *SendMsgResp) MarshalToSizedBuffer(dAtA []byte) (int, error) {
- i := len(dAtA)
- _ = i
- var l int
- _ = l
- if m.XXX_unrecognized != nil {
- i -= len(m.XXX_unrecognized)
- copy(dAtA[i:], m.XXX_unrecognized)
- }
- if m.MessageId != nil {
- {
- size, err := m.MessageId.MarshalToSizedBuffer(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- i = encodeVarintOnebotApi(dAtA, i, uint64(size))
- }
- i--
- dAtA[i] = 0x12
+func (x *SendFriendPokeResp) Reset() {
+ *x = SendFriendPokeResp{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_onebot_api_proto_msgTypes[85]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
}
- return len(dAtA) - i, nil
}
-func (m *DeleteMsgReq) Marshal() (dAtA []byte, err error) {
- size := m.Size()
- dAtA = make([]byte, size)
- n, err := m.MarshalToSizedBuffer(dAtA[:size])
- if err != nil {
- return nil, err
- }
- return dAtA[:n], nil
+func (x *SendFriendPokeResp) String() string {
+ return protoimpl.X.MessageStringOf(x)
}
-func (m *DeleteMsgReq) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
-}
+func (*SendFriendPokeResp) ProtoMessage() {}
-func (m *DeleteMsgReq) MarshalToSizedBuffer(dAtA []byte) (int, error) {
- i := len(dAtA)
- _ = i
- var l int
- _ = l
- if m.XXX_unrecognized != nil {
- i -= len(m.XXX_unrecognized)
- copy(dAtA[i:], m.XXX_unrecognized)
- }
- if m.MessageId != nil {
- {
- size, err := m.MessageId.MarshalToSizedBuffer(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- i = encodeVarintOnebotApi(dAtA, i, uint64(size))
+func (x *SendFriendPokeResp) ProtoReflect() protoreflect.Message {
+ mi := &file_onebot_api_proto_msgTypes[85]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
}
- i--
- dAtA[i] = 0x12
+ return ms
}
- return len(dAtA) - i, nil
+ return mi.MessageOf(x)
}
-func (m *DeleteMsgResp) Marshal() (dAtA []byte, err error) {
- size := m.Size()
- dAtA = make([]byte, size)
- n, err := m.MarshalToSizedBuffer(dAtA[:size])
- if err != nil {
- return nil, err
- }
- return dAtA[:n], nil
+// Deprecated: Use SendFriendPokeResp.ProtoReflect.Descriptor instead.
+func (*SendFriendPokeResp) Descriptor() ([]byte, []int) {
+ return file_onebot_api_proto_rawDescGZIP(), []int{85}
}
-func (m *DeleteMsgResp) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
-}
+type GetMsgResp_Sender struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
-func (m *DeleteMsgResp) MarshalToSizedBuffer(dAtA []byte) (int, error) {
- i := len(dAtA)
- _ = i
- var l int
- _ = l
- if m.XXX_unrecognized != nil {
- i -= len(m.XXX_unrecognized)
- copy(dAtA[i:], m.XXX_unrecognized)
- }
- return len(dAtA) - i, nil
+ UserId int64 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
+ Nickname string `protobuf:"bytes,2,opt,name=nickname,proto3" json:"nickname,omitempty"`
+ Card string `protobuf:"bytes,3,opt,name=card,proto3" json:"card,omitempty"`
+ Sex string `protobuf:"bytes,4,opt,name=sex,proto3" json:"sex,omitempty"`
+ Age int32 `protobuf:"varint,5,opt,name=age,proto3" json:"age,omitempty"`
+ Area string `protobuf:"bytes,6,opt,name=area,proto3" json:"area,omitempty"`
+ Level string `protobuf:"bytes,7,opt,name=level,proto3" json:"level,omitempty"`
+ Role string `protobuf:"bytes,8,opt,name=role,proto3" json:"role,omitempty"`
+ Title string `protobuf:"bytes,9,opt,name=title,proto3" json:"title,omitempty"`
}
-func (m *GetMsgReq) Marshal() (dAtA []byte, err error) {
- size := m.Size()
- dAtA = make([]byte, size)
- n, err := m.MarshalToSizedBuffer(dAtA[:size])
- if err != nil {
- return nil, err
+func (x *GetMsgResp_Sender) Reset() {
+ *x = GetMsgResp_Sender{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_onebot_api_proto_msgTypes[86]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
}
- return dAtA[:n], nil
}
-func (m *GetMsgReq) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
+func (x *GetMsgResp_Sender) String() string {
+ return protoimpl.X.MessageStringOf(x)
}
-func (m *GetMsgReq) MarshalToSizedBuffer(dAtA []byte) (int, error) {
- i := len(dAtA)
- _ = i
- var l int
- _ = l
- if m.XXX_unrecognized != nil {
- i -= len(m.XXX_unrecognized)
- copy(dAtA[i:], m.XXX_unrecognized)
- }
- if m.MessageId != 0 {
- i = encodeVarintOnebotApi(dAtA, i, uint64(m.MessageId))
- i--
- dAtA[i] = 0x8
- }
- return len(dAtA) - i, nil
-}
+func (*GetMsgResp_Sender) ProtoMessage() {}
-func (m *GetMsgResp) Marshal() (dAtA []byte, err error) {
- size := m.Size()
- dAtA = make([]byte, size)
- n, err := m.MarshalToSizedBuffer(dAtA[:size])
- if err != nil {
- return nil, err
+func (x *GetMsgResp_Sender) ProtoReflect() protoreflect.Message {
+ mi := &file_onebot_api_proto_msgTypes[86]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
}
- return dAtA[:n], nil
+ return mi.MessageOf(x)
}
-func (m *GetMsgResp) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
+// Deprecated: Use GetMsgResp_Sender.ProtoReflect.Descriptor instead.
+func (*GetMsgResp_Sender) Descriptor() ([]byte, []int) {
+ return file_onebot_api_proto_rawDescGZIP(), []int{11, 0}
}
-func (m *GetMsgResp) MarshalToSizedBuffer(dAtA []byte) (int, error) {
- i := len(dAtA)
- _ = i
- var l int
- _ = l
- if m.XXX_unrecognized != nil {
- i -= len(m.XXX_unrecognized)
- copy(dAtA[i:], m.XXX_unrecognized)
- }
- if len(m.RawMessage) > 0 {
- i -= len(m.RawMessage)
- copy(dAtA[i:], m.RawMessage)
- i = encodeVarintOnebotApi(dAtA, i, uint64(len(m.RawMessage)))
- i--
- dAtA[i] = 0x3a
- }
- if len(m.Message) > 0 {
- for iNdEx := len(m.Message) - 1; iNdEx >= 0; iNdEx-- {
- {
- size, err := m.Message[iNdEx].MarshalToSizedBuffer(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- i = encodeVarintOnebotApi(dAtA, i, uint64(size))
- }
- i--
- dAtA[i] = 0x32
- }
+func (x *GetMsgResp_Sender) GetUserId() int64 {
+ if x != nil {
+ return x.UserId
}
- if m.Sender != nil {
- {
- size, err := m.Sender.MarshalToSizedBuffer(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- i = encodeVarintOnebotApi(dAtA, i, uint64(size))
- }
- i--
- dAtA[i] = 0x2a
- }
- if m.RealId != 0 {
- i = encodeVarintOnebotApi(dAtA, i, uint64(m.RealId))
- i--
- dAtA[i] = 0x20
- }
- if m.MessageId != 0 {
- i = encodeVarintOnebotApi(dAtA, i, uint64(m.MessageId))
- i--
- dAtA[i] = 0x18
- }
- if len(m.MessageType) > 0 {
- i -= len(m.MessageType)
- copy(dAtA[i:], m.MessageType)
- i = encodeVarintOnebotApi(dAtA, i, uint64(len(m.MessageType)))
- i--
- dAtA[i] = 0x12
- }
- if m.Time != 0 {
- i = encodeVarintOnebotApi(dAtA, i, uint64(m.Time))
- i--
- dAtA[i] = 0x8
- }
- return len(dAtA) - i, nil
-}
-
-func (m *GetMsgResp_Sender) Marshal() (dAtA []byte, err error) {
- size := m.Size()
- dAtA = make([]byte, size)
- n, err := m.MarshalToSizedBuffer(dAtA[:size])
- if err != nil {
- return nil, err
- }
- return dAtA[:n], nil
-}
-
-func (m *GetMsgResp_Sender) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
-}
-
-func (m *GetMsgResp_Sender) MarshalToSizedBuffer(dAtA []byte) (int, error) {
- i := len(dAtA)
- _ = i
- var l int
- _ = l
- if m.XXX_unrecognized != nil {
- i -= len(m.XXX_unrecognized)
- copy(dAtA[i:], m.XXX_unrecognized)
- }
- if len(m.Title) > 0 {
- i -= len(m.Title)
- copy(dAtA[i:], m.Title)
- i = encodeVarintOnebotApi(dAtA, i, uint64(len(m.Title)))
- i--
- dAtA[i] = 0x4a
- }
- if len(m.Role) > 0 {
- i -= len(m.Role)
- copy(dAtA[i:], m.Role)
- i = encodeVarintOnebotApi(dAtA, i, uint64(len(m.Role)))
- i--
- dAtA[i] = 0x42
- }
- if len(m.Level) > 0 {
- i -= len(m.Level)
- copy(dAtA[i:], m.Level)
- i = encodeVarintOnebotApi(dAtA, i, uint64(len(m.Level)))
- i--
- dAtA[i] = 0x3a
- }
- if len(m.Area) > 0 {
- i -= len(m.Area)
- copy(dAtA[i:], m.Area)
- i = encodeVarintOnebotApi(dAtA, i, uint64(len(m.Area)))
- i--
- dAtA[i] = 0x32
- }
- if m.Age != 0 {
- i = encodeVarintOnebotApi(dAtA, i, uint64(m.Age))
- i--
- dAtA[i] = 0x28
- }
- if len(m.Sex) > 0 {
- i -= len(m.Sex)
- copy(dAtA[i:], m.Sex)
- i = encodeVarintOnebotApi(dAtA, i, uint64(len(m.Sex)))
- i--
- dAtA[i] = 0x22
- }
- if len(m.Card) > 0 {
- i -= len(m.Card)
- copy(dAtA[i:], m.Card)
- i = encodeVarintOnebotApi(dAtA, i, uint64(len(m.Card)))
- i--
- dAtA[i] = 0x1a
- }
- if len(m.Nickname) > 0 {
- i -= len(m.Nickname)
- copy(dAtA[i:], m.Nickname)
- i = encodeVarintOnebotApi(dAtA, i, uint64(len(m.Nickname)))
- i--
- dAtA[i] = 0x12
- }
- if m.UserId != 0 {
- i = encodeVarintOnebotApi(dAtA, i, uint64(m.UserId))
- i--
- dAtA[i] = 0x8
- }
- return len(dAtA) - i, nil
-}
-
-func (m *GetForwardMsgReq) Marshal() (dAtA []byte, err error) {
- size := m.Size()
- dAtA = make([]byte, size)
- n, err := m.MarshalToSizedBuffer(dAtA[:size])
- if err != nil {
- return nil, err
- }
- return dAtA[:n], nil
+ return 0
}
-func (m *GetForwardMsgReq) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
-}
-
-func (m *GetForwardMsgReq) MarshalToSizedBuffer(dAtA []byte) (int, error) {
- i := len(dAtA)
- _ = i
- var l int
- _ = l
- if m.XXX_unrecognized != nil {
- i -= len(m.XXX_unrecognized)
- copy(dAtA[i:], m.XXX_unrecognized)
- }
- if len(m.Id) > 0 {
- i -= len(m.Id)
- copy(dAtA[i:], m.Id)
- i = encodeVarintOnebotApi(dAtA, i, uint64(len(m.Id)))
- i--
- dAtA[i] = 0xa
- }
- return len(dAtA) - i, nil
-}
-
-func (m *GetForwardMsgResp) Marshal() (dAtA []byte, err error) {
- size := m.Size()
- dAtA = make([]byte, size)
- n, err := m.MarshalToSizedBuffer(dAtA[:size])
- if err != nil {
- return nil, err
+func (x *GetMsgResp_Sender) GetNickname() string {
+ if x != nil {
+ return x.Nickname
}
- return dAtA[:n], nil
-}
-
-func (m *GetForwardMsgResp) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
+ return ""
}
-func (m *GetForwardMsgResp) MarshalToSizedBuffer(dAtA []byte) (int, error) {
- i := len(dAtA)
- _ = i
- var l int
- _ = l
- if m.XXX_unrecognized != nil {
- i -= len(m.XXX_unrecognized)
- copy(dAtA[i:], m.XXX_unrecognized)
+func (x *GetMsgResp_Sender) GetCard() string {
+ if x != nil {
+ return x.Card
}
- return len(dAtA) - i, nil
+ return ""
}
-func (m *SendLikeReq) Marshal() (dAtA []byte, err error) {
- size := m.Size()
- dAtA = make([]byte, size)
- n, err := m.MarshalToSizedBuffer(dAtA[:size])
- if err != nil {
- return nil, err
+func (x *GetMsgResp_Sender) GetSex() string {
+ if x != nil {
+ return x.Sex
}
- return dAtA[:n], nil
-}
-
-func (m *SendLikeReq) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
+ return ""
}
-func (m *SendLikeReq) MarshalToSizedBuffer(dAtA []byte) (int, error) {
- i := len(dAtA)
- _ = i
- var l int
- _ = l
- if m.XXX_unrecognized != nil {
- i -= len(m.XXX_unrecognized)
- copy(dAtA[i:], m.XXX_unrecognized)
- }
- if m.Times != 0 {
- i = encodeVarintOnebotApi(dAtA, i, uint64(m.Times))
- i--
- dAtA[i] = 0x10
+func (x *GetMsgResp_Sender) GetAge() int32 {
+ if x != nil {
+ return x.Age
}
- if m.UserId != 0 {
- i = encodeVarintOnebotApi(dAtA, i, uint64(m.UserId))
- i--
- dAtA[i] = 0x8
- }
- return len(dAtA) - i, nil
+ return 0
}
-func (m *SendLikeResp) Marshal() (dAtA []byte, err error) {
- size := m.Size()
- dAtA = make([]byte, size)
- n, err := m.MarshalToSizedBuffer(dAtA[:size])
- if err != nil {
- return nil, err
+func (x *GetMsgResp_Sender) GetArea() string {
+ if x != nil {
+ return x.Area
}
- return dAtA[:n], nil
+ return ""
}
-func (m *SendLikeResp) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
+func (x *GetMsgResp_Sender) GetLevel() string {
+ if x != nil {
+ return x.Level
+ }
+ return ""
}
-func (m *SendLikeResp) MarshalToSizedBuffer(dAtA []byte) (int, error) {
- i := len(dAtA)
- _ = i
- var l int
- _ = l
- if m.XXX_unrecognized != nil {
- i -= len(m.XXX_unrecognized)
- copy(dAtA[i:], m.XXX_unrecognized)
+func (x *GetMsgResp_Sender) GetRole() string {
+ if x != nil {
+ return x.Role
}
- return len(dAtA) - i, nil
+ return ""
}
-func (m *SetGroupKickReq) Marshal() (dAtA []byte, err error) {
- size := m.Size()
- dAtA = make([]byte, size)
- n, err := m.MarshalToSizedBuffer(dAtA[:size])
- if err != nil {
- return nil, err
+func (x *GetMsgResp_Sender) GetTitle() string {
+ if x != nil {
+ return x.Title
}
- return dAtA[:n], nil
+ return ""
}
-func (m *SetGroupKickReq) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
-}
+type SetGroupAnonymousBanReq_Anonymous struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
-func (m *SetGroupKickReq) MarshalToSizedBuffer(dAtA []byte) (int, error) {
- i := len(dAtA)
- _ = i
- var l int
- _ = l
- if m.XXX_unrecognized != nil {
- i -= len(m.XXX_unrecognized)
- copy(dAtA[i:], m.XXX_unrecognized)
- }
- if len(m.UserIds) > 0 {
- dAtA7 := make([]byte, len(m.UserIds)*10)
- var j6 int
- for _, num1 := range m.UserIds {
- num := uint64(num1)
- for num >= 1<<7 {
- dAtA7[j6] = uint8(uint64(num)&0x7f | 0x80)
- num >>= 7
- j6++
- }
- dAtA7[j6] = uint8(num)
- j6++
- }
- i -= j6
- copy(dAtA[i:], dAtA7[:j6])
- i = encodeVarintOnebotApi(dAtA, i, uint64(j6))
- i--
- dAtA[i] = 0x22
- }
- if m.RejectAddRequest {
- i--
- if m.RejectAddRequest {
- dAtA[i] = 1
- } else {
- dAtA[i] = 0
- }
- i--
- dAtA[i] = 0x18
- }
- if m.UserId != 0 {
- i = encodeVarintOnebotApi(dAtA, i, uint64(m.UserId))
- i--
- dAtA[i] = 0x10
- }
- if m.GroupId != 0 {
- i = encodeVarintOnebotApi(dAtA, i, uint64(m.GroupId))
- i--
- dAtA[i] = 0x8
- }
- return len(dAtA) - i, nil
+ Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
+ Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
+ Flag string `protobuf:"bytes,3,opt,name=flag,proto3" json:"flag,omitempty"`
}
-func (m *SetGroupKickResp) Marshal() (dAtA []byte, err error) {
- size := m.Size()
- dAtA = make([]byte, size)
- n, err := m.MarshalToSizedBuffer(dAtA[:size])
- if err != nil {
- return nil, err
+func (x *SetGroupAnonymousBanReq_Anonymous) Reset() {
+ *x = SetGroupAnonymousBanReq_Anonymous{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_onebot_api_proto_msgTypes[87]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
}
- return dAtA[:n], nil
}
-func (m *SetGroupKickResp) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
+func (x *SetGroupAnonymousBanReq_Anonymous) String() string {
+ return protoimpl.X.MessageStringOf(x)
}
-func (m *SetGroupKickResp) MarshalToSizedBuffer(dAtA []byte) (int, error) {
- i := len(dAtA)
- _ = i
- var l int
- _ = l
- if m.XXX_unrecognized != nil {
- i -= len(m.XXX_unrecognized)
- copy(dAtA[i:], m.XXX_unrecognized)
- }
- return len(dAtA) - i, nil
-}
+func (*SetGroupAnonymousBanReq_Anonymous) ProtoMessage() {}
-func (m *SetGroupBanReq) Marshal() (dAtA []byte, err error) {
- size := m.Size()
- dAtA = make([]byte, size)
- n, err := m.MarshalToSizedBuffer(dAtA[:size])
- if err != nil {
- return nil, err
+func (x *SetGroupAnonymousBanReq_Anonymous) ProtoReflect() protoreflect.Message {
+ mi := &file_onebot_api_proto_msgTypes[87]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
}
- return dAtA[:n], nil
+ return mi.MessageOf(x)
}
-func (m *SetGroupBanReq) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
+// Deprecated: Use SetGroupAnonymousBanReq_Anonymous.ProtoReflect.Descriptor instead.
+func (*SetGroupAnonymousBanReq_Anonymous) Descriptor() ([]byte, []int) {
+ return file_onebot_api_proto_rawDescGZIP(), []int{20, 0}
}
-func (m *SetGroupBanReq) MarshalToSizedBuffer(dAtA []byte) (int, error) {
- i := len(dAtA)
- _ = i
- var l int
- _ = l
- if m.XXX_unrecognized != nil {
- i -= len(m.XXX_unrecognized)
- copy(dAtA[i:], m.XXX_unrecognized)
- }
- if m.Duration != 0 {
- i = encodeVarintOnebotApi(dAtA, i, uint64(m.Duration))
- i--
- dAtA[i] = 0x18
- }
- if m.UserId != 0 {
- i = encodeVarintOnebotApi(dAtA, i, uint64(m.UserId))
- i--
- dAtA[i] = 0x10
+func (x *SetGroupAnonymousBanReq_Anonymous) GetId() int64 {
+ if x != nil {
+ return x.Id
}
- if m.GroupId != 0 {
- i = encodeVarintOnebotApi(dAtA, i, uint64(m.GroupId))
- i--
- dAtA[i] = 0x8
- }
- return len(dAtA) - i, nil
+ return 0
}
-func (m *SetGroupBanResp) Marshal() (dAtA []byte, err error) {
- size := m.Size()
- dAtA = make([]byte, size)
- n, err := m.MarshalToSizedBuffer(dAtA[:size])
- if err != nil {
- return nil, err
+func (x *SetGroupAnonymousBanReq_Anonymous) GetName() string {
+ if x != nil {
+ return x.Name
}
- return dAtA[:n], nil
+ return ""
}
-func (m *SetGroupBanResp) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
+func (x *SetGroupAnonymousBanReq_Anonymous) GetFlag() string {
+ if x != nil {
+ return x.Flag
+ }
+ return ""
}
-func (m *SetGroupBanResp) MarshalToSizedBuffer(dAtA []byte) (int, error) {
- i := len(dAtA)
- _ = i
- var l int
- _ = l
- if m.XXX_unrecognized != nil {
- i -= len(m.XXX_unrecognized)
- copy(dAtA[i:], m.XXX_unrecognized)
- }
- return len(dAtA) - i, nil
+type GetFriendListResp_Friend struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ UserId int64 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
+ Nickname string `protobuf:"bytes,2,opt,name=nickname,proto3" json:"nickname,omitempty"`
+ Remark string `protobuf:"bytes,3,opt,name=remark,proto3" json:"remark,omitempty"`
}
-func (m *SetGroupAnonymousBanReq) Marshal() (dAtA []byte, err error) {
- size := m.Size()
- dAtA = make([]byte, size)
- n, err := m.MarshalToSizedBuffer(dAtA[:size])
- if err != nil {
- return nil, err
+func (x *GetFriendListResp_Friend) Reset() {
+ *x = GetFriendListResp_Friend{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_onebot_api_proto_msgTypes[88]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
}
- return dAtA[:n], nil
}
-func (m *SetGroupAnonymousBanReq) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
+func (x *GetFriendListResp_Friend) String() string {
+ return protoimpl.X.MessageStringOf(x)
}
-func (m *SetGroupAnonymousBanReq) MarshalToSizedBuffer(dAtA []byte) (int, error) {
- i := len(dAtA)
- _ = i
- var l int
- _ = l
- if m.XXX_unrecognized != nil {
- i -= len(m.XXX_unrecognized)
- copy(dAtA[i:], m.XXX_unrecognized)
- }
- if m.Duration != 0 {
- i = encodeVarintOnebotApi(dAtA, i, uint64(m.Duration))
- i--
- dAtA[i] = 0x28
- }
- if len(m.Flag) > 0 {
- i -= len(m.Flag)
- copy(dAtA[i:], m.Flag)
- i = encodeVarintOnebotApi(dAtA, i, uint64(len(m.Flag)))
- i--
- dAtA[i] = 0x22
- }
- if len(m.AnonymousFlag) > 0 {
- i -= len(m.AnonymousFlag)
- copy(dAtA[i:], m.AnonymousFlag)
- i = encodeVarintOnebotApi(dAtA, i, uint64(len(m.AnonymousFlag)))
- i--
- dAtA[i] = 0x1a
- }
- if m.Anonymous != nil {
- {
- size, err := m.Anonymous.MarshalToSizedBuffer(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- i = encodeVarintOnebotApi(dAtA, i, uint64(size))
+func (*GetFriendListResp_Friend) ProtoMessage() {}
+
+func (x *GetFriendListResp_Friend) ProtoReflect() protoreflect.Message {
+ mi := &file_onebot_api_proto_msgTypes[88]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
}
- i--
- dAtA[i] = 0x12
- }
- if m.GroupId != 0 {
- i = encodeVarintOnebotApi(dAtA, i, uint64(m.GroupId))
- i--
- dAtA[i] = 0x8
+ return ms
}
- return len(dAtA) - i, nil
+ return mi.MessageOf(x)
}
-func (m *SetGroupAnonymousBanReq_Anonymous) Marshal() (dAtA []byte, err error) {
- size := m.Size()
- dAtA = make([]byte, size)
- n, err := m.MarshalToSizedBuffer(dAtA[:size])
- if err != nil {
- return nil, err
- }
- return dAtA[:n], nil
+// Deprecated: Use GetFriendListResp_Friend.ProtoReflect.Descriptor instead.
+func (*GetFriendListResp_Friend) Descriptor() ([]byte, []int) {
+ return file_onebot_api_proto_rawDescGZIP(), []int{45, 0}
}
-func (m *SetGroupAnonymousBanReq_Anonymous) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
+func (x *GetFriendListResp_Friend) GetUserId() int64 {
+ if x != nil {
+ return x.UserId
+ }
+ return 0
}
-func (m *SetGroupAnonymousBanReq_Anonymous) MarshalToSizedBuffer(dAtA []byte) (int, error) {
- i := len(dAtA)
- _ = i
- var l int
- _ = l
- if m.XXX_unrecognized != nil {
- i -= len(m.XXX_unrecognized)
- copy(dAtA[i:], m.XXX_unrecognized)
- }
- if len(m.Flag) > 0 {
- i -= len(m.Flag)
- copy(dAtA[i:], m.Flag)
- i = encodeVarintOnebotApi(dAtA, i, uint64(len(m.Flag)))
- i--
- dAtA[i] = 0x1a
- }
- if len(m.Name) > 0 {
- i -= len(m.Name)
- copy(dAtA[i:], m.Name)
- i = encodeVarintOnebotApi(dAtA, i, uint64(len(m.Name)))
- i--
- dAtA[i] = 0x12
+func (x *GetFriendListResp_Friend) GetNickname() string {
+ if x != nil {
+ return x.Nickname
}
- if m.Id != 0 {
- i = encodeVarintOnebotApi(dAtA, i, uint64(m.Id))
- i--
- dAtA[i] = 0x8
- }
- return len(dAtA) - i, nil
+ return ""
}
-func (m *SetGroupAnonymousBanResp) Marshal() (dAtA []byte, err error) {
- size := m.Size()
- dAtA = make([]byte, size)
- n, err := m.MarshalToSizedBuffer(dAtA[:size])
- if err != nil {
- return nil, err
+func (x *GetFriendListResp_Friend) GetRemark() string {
+ if x != nil {
+ return x.Remark
}
- return dAtA[:n], nil
+ return ""
}
-func (m *SetGroupAnonymousBanResp) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
-}
+type GetGroupListResp_Group struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
-func (m *SetGroupAnonymousBanResp) MarshalToSizedBuffer(dAtA []byte) (int, error) {
- i := len(dAtA)
- _ = i
- var l int
- _ = l
- if m.XXX_unrecognized != nil {
- i -= len(m.XXX_unrecognized)
- copy(dAtA[i:], m.XXX_unrecognized)
- }
- return len(dAtA) - i, nil
+ GroupId int64 `protobuf:"varint,1,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty"`
+ GroupName string `protobuf:"bytes,2,opt,name=group_name,json=groupName,proto3" json:"group_name,omitempty"`
+ MemberCount int32 `protobuf:"varint,3,opt,name=member_count,json=memberCount,proto3" json:"member_count,omitempty"`
+ MaxMemberCount int32 `protobuf:"varint,4,opt,name=max_member_count,json=maxMemberCount,proto3" json:"max_member_count,omitempty"`
}
-func (m *SetGroupWholeBanReq) Marshal() (dAtA []byte, err error) {
- size := m.Size()
- dAtA = make([]byte, size)
- n, err := m.MarshalToSizedBuffer(dAtA[:size])
- if err != nil {
- return nil, err
+func (x *GetGroupListResp_Group) Reset() {
+ *x = GetGroupListResp_Group{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_onebot_api_proto_msgTypes[89]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
}
- return dAtA[:n], nil
}
-func (m *SetGroupWholeBanReq) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
+func (x *GetGroupListResp_Group) String() string {
+ return protoimpl.X.MessageStringOf(x)
}
-func (m *SetGroupWholeBanReq) MarshalToSizedBuffer(dAtA []byte) (int, error) {
- i := len(dAtA)
- _ = i
- var l int
- _ = l
- if m.XXX_unrecognized != nil {
- i -= len(m.XXX_unrecognized)
- copy(dAtA[i:], m.XXX_unrecognized)
- }
- if m.Enable {
- i--
- if m.Enable {
- dAtA[i] = 1
- } else {
- dAtA[i] = 0
- }
- i--
- dAtA[i] = 0x10
- }
- if m.GroupId != 0 {
- i = encodeVarintOnebotApi(dAtA, i, uint64(m.GroupId))
- i--
- dAtA[i] = 0x8
- }
- return len(dAtA) - i, nil
-}
+func (*GetGroupListResp_Group) ProtoMessage() {}
-func (m *SetGroupWholeBanResp) Marshal() (dAtA []byte, err error) {
- size := m.Size()
- dAtA = make([]byte, size)
- n, err := m.MarshalToSizedBuffer(dAtA[:size])
- if err != nil {
- return nil, err
+func (x *GetGroupListResp_Group) ProtoReflect() protoreflect.Message {
+ mi := &file_onebot_api_proto_msgTypes[89]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
}
- return dAtA[:n], nil
+ return mi.MessageOf(x)
}
-func (m *SetGroupWholeBanResp) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
+// Deprecated: Use GetGroupListResp_Group.ProtoReflect.Descriptor instead.
+func (*GetGroupListResp_Group) Descriptor() ([]byte, []int) {
+ return file_onebot_api_proto_rawDescGZIP(), []int{49, 0}
}
-func (m *SetGroupWholeBanResp) MarshalToSizedBuffer(dAtA []byte) (int, error) {
- i := len(dAtA)
- _ = i
- var l int
- _ = l
- if m.XXX_unrecognized != nil {
- i -= len(m.XXX_unrecognized)
- copy(dAtA[i:], m.XXX_unrecognized)
+func (x *GetGroupListResp_Group) GetGroupId() int64 {
+ if x != nil {
+ return x.GroupId
}
- return len(dAtA) - i, nil
+ return 0
}
-func (m *SetGroupAdminReq) Marshal() (dAtA []byte, err error) {
- size := m.Size()
- dAtA = make([]byte, size)
- n, err := m.MarshalToSizedBuffer(dAtA[:size])
- if err != nil {
- return nil, err
+func (x *GetGroupListResp_Group) GetGroupName() string {
+ if x != nil {
+ return x.GroupName
}
- return dAtA[:n], nil
-}
-
-func (m *SetGroupAdminReq) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
+ return ""
}
-func (m *SetGroupAdminReq) MarshalToSizedBuffer(dAtA []byte) (int, error) {
- i := len(dAtA)
- _ = i
- var l int
- _ = l
- if m.XXX_unrecognized != nil {
- i -= len(m.XXX_unrecognized)
- copy(dAtA[i:], m.XXX_unrecognized)
- }
- if m.Enable {
- i--
- if m.Enable {
- dAtA[i] = 1
- } else {
- dAtA[i] = 0
- }
- i--
- dAtA[i] = 0x18
- }
- if m.UserId != 0 {
- i = encodeVarintOnebotApi(dAtA, i, uint64(m.UserId))
- i--
- dAtA[i] = 0x10
+func (x *GetGroupListResp_Group) GetMemberCount() int32 {
+ if x != nil {
+ return x.MemberCount
}
- if m.GroupId != 0 {
- i = encodeVarintOnebotApi(dAtA, i, uint64(m.GroupId))
- i--
- dAtA[i] = 0x8
- }
- return len(dAtA) - i, nil
+ return 0
}
-func (m *SetGroupAdminResp) Marshal() (dAtA []byte, err error) {
- size := m.Size()
- dAtA = make([]byte, size)
- n, err := m.MarshalToSizedBuffer(dAtA[:size])
- if err != nil {
- return nil, err
+func (x *GetGroupListResp_Group) GetMaxMemberCount() int32 {
+ if x != nil {
+ return x.MaxMemberCount
}
- return dAtA[:n], nil
+ return 0
}
-func (m *SetGroupAdminResp) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
-}
+type GetGroupMemberListResp_GroupMember struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
-func (m *SetGroupAdminResp) MarshalToSizedBuffer(dAtA []byte) (int, error) {
- i := len(dAtA)
- _ = i
- var l int
- _ = l
- if m.XXX_unrecognized != nil {
- i -= len(m.XXX_unrecognized)
- copy(dAtA[i:], m.XXX_unrecognized)
- }
- return len(dAtA) - i, nil
+ GroupId int64 `protobuf:"varint,1,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty"`
+ UserId int64 `protobuf:"varint,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
+ Nickname string `protobuf:"bytes,3,opt,name=nickname,proto3" json:"nickname,omitempty"`
+ Card string `protobuf:"bytes,4,opt,name=card,proto3" json:"card,omitempty"`
+ Sex string `protobuf:"bytes,5,opt,name=sex,proto3" json:"sex,omitempty"`
+ Age int32 `protobuf:"varint,6,opt,name=age,proto3" json:"age,omitempty"`
+ Area string `protobuf:"bytes,7,opt,name=area,proto3" json:"area,omitempty"`
+ JoinTime int64 `protobuf:"varint,8,opt,name=join_time,json=joinTime,proto3" json:"join_time,omitempty"`
+ LastSentTime int64 `protobuf:"varint,9,opt,name=last_sent_time,json=lastSentTime,proto3" json:"last_sent_time,omitempty"`
+ Level string `protobuf:"bytes,10,opt,name=level,proto3" json:"level,omitempty"`
+ Role string `protobuf:"bytes,11,opt,name=role,proto3" json:"role,omitempty"`
+ Unfriendly bool `protobuf:"varint,12,opt,name=unfriendly,proto3" json:"unfriendly,omitempty"`
+ Title string `protobuf:"bytes,13,opt,name=title,proto3" json:"title,omitempty"`
+ TitleExpireTime int64 `protobuf:"varint,14,opt,name=title_expire_time,json=titleExpireTime,proto3" json:"title_expire_time,omitempty"`
+ CardChangeable bool `protobuf:"varint,15,opt,name=card_changeable,json=cardChangeable,proto3" json:"card_changeable,omitempty"`
}
-func (m *SetGroupAnonymousReq) Marshal() (dAtA []byte, err error) {
- size := m.Size()
- dAtA = make([]byte, size)
- n, err := m.MarshalToSizedBuffer(dAtA[:size])
- if err != nil {
- return nil, err
+func (x *GetGroupMemberListResp_GroupMember) Reset() {
+ *x = GetGroupMemberListResp_GroupMember{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_onebot_api_proto_msgTypes[90]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
}
- return dAtA[:n], nil
}
-func (m *SetGroupAnonymousReq) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
+func (x *GetGroupMemberListResp_GroupMember) String() string {
+ return protoimpl.X.MessageStringOf(x)
}
-func (m *SetGroupAnonymousReq) MarshalToSizedBuffer(dAtA []byte) (int, error) {
- i := len(dAtA)
- _ = i
- var l int
- _ = l
- if m.XXX_unrecognized != nil {
- i -= len(m.XXX_unrecognized)
- copy(dAtA[i:], m.XXX_unrecognized)
- }
- if m.Enable {
- i--
- if m.Enable {
- dAtA[i] = 1
- } else {
- dAtA[i] = 0
- }
- i--
- dAtA[i] = 0x10
- }
- if m.GroupId != 0 {
- i = encodeVarintOnebotApi(dAtA, i, uint64(m.GroupId))
- i--
- dAtA[i] = 0x8
- }
- return len(dAtA) - i, nil
-}
+func (*GetGroupMemberListResp_GroupMember) ProtoMessage() {}
-func (m *SetGroupAnonymousResp) Marshal() (dAtA []byte, err error) {
- size := m.Size()
- dAtA = make([]byte, size)
- n, err := m.MarshalToSizedBuffer(dAtA[:size])
- if err != nil {
- return nil, err
+func (x *GetGroupMemberListResp_GroupMember) ProtoReflect() protoreflect.Message {
+ mi := &file_onebot_api_proto_msgTypes[90]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
}
- return dAtA[:n], nil
+ return mi.MessageOf(x)
}
-func (m *SetGroupAnonymousResp) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
+// Deprecated: Use GetGroupMemberListResp_GroupMember.ProtoReflect.Descriptor instead.
+func (*GetGroupMemberListResp_GroupMember) Descriptor() ([]byte, []int) {
+ return file_onebot_api_proto_rawDescGZIP(), []int{53, 0}
}
-func (m *SetGroupAnonymousResp) MarshalToSizedBuffer(dAtA []byte) (int, error) {
- i := len(dAtA)
- _ = i
- var l int
- _ = l
- if m.XXX_unrecognized != nil {
- i -= len(m.XXX_unrecognized)
- copy(dAtA[i:], m.XXX_unrecognized)
+func (x *GetGroupMemberListResp_GroupMember) GetGroupId() int64 {
+ if x != nil {
+ return x.GroupId
}
- return len(dAtA) - i, nil
+ return 0
}
-func (m *SetGroupCardReq) Marshal() (dAtA []byte, err error) {
- size := m.Size()
- dAtA = make([]byte, size)
- n, err := m.MarshalToSizedBuffer(dAtA[:size])
- if err != nil {
- return nil, err
+func (x *GetGroupMemberListResp_GroupMember) GetUserId() int64 {
+ if x != nil {
+ return x.UserId
}
- return dAtA[:n], nil
-}
-
-func (m *SetGroupCardReq) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
+ return 0
}
-func (m *SetGroupCardReq) MarshalToSizedBuffer(dAtA []byte) (int, error) {
- i := len(dAtA)
- _ = i
- var l int
- _ = l
- if m.XXX_unrecognized != nil {
- i -= len(m.XXX_unrecognized)
- copy(dAtA[i:], m.XXX_unrecognized)
- }
- if len(m.Card) > 0 {
- i -= len(m.Card)
- copy(dAtA[i:], m.Card)
- i = encodeVarintOnebotApi(dAtA, i, uint64(len(m.Card)))
- i--
- dAtA[i] = 0x1a
- }
- if m.UserId != 0 {
- i = encodeVarintOnebotApi(dAtA, i, uint64(m.UserId))
- i--
- dAtA[i] = 0x10
- }
- if m.GroupId != 0 {
- i = encodeVarintOnebotApi(dAtA, i, uint64(m.GroupId))
- i--
- dAtA[i] = 0x8
+func (x *GetGroupMemberListResp_GroupMember) GetNickname() string {
+ if x != nil {
+ return x.Nickname
}
- return len(dAtA) - i, nil
+ return ""
}
-func (m *SetGroupCardResp) Marshal() (dAtA []byte, err error) {
- size := m.Size()
- dAtA = make([]byte, size)
- n, err := m.MarshalToSizedBuffer(dAtA[:size])
- if err != nil {
- return nil, err
+func (x *GetGroupMemberListResp_GroupMember) GetCard() string {
+ if x != nil {
+ return x.Card
}
- return dAtA[:n], nil
-}
-
-func (m *SetGroupCardResp) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
+ return ""
}
-func (m *SetGroupCardResp) MarshalToSizedBuffer(dAtA []byte) (int, error) {
- i := len(dAtA)
- _ = i
- var l int
- _ = l
- if m.XXX_unrecognized != nil {
- i -= len(m.XXX_unrecognized)
- copy(dAtA[i:], m.XXX_unrecognized)
+func (x *GetGroupMemberListResp_GroupMember) GetSex() string {
+ if x != nil {
+ return x.Sex
}
- return len(dAtA) - i, nil
+ return ""
}
-func (m *SetGroupNameReq) Marshal() (dAtA []byte, err error) {
- size := m.Size()
- dAtA = make([]byte, size)
- n, err := m.MarshalToSizedBuffer(dAtA[:size])
- if err != nil {
- return nil, err
+func (x *GetGroupMemberListResp_GroupMember) GetAge() int32 {
+ if x != nil {
+ return x.Age
}
- return dAtA[:n], nil
+ return 0
}
-func (m *SetGroupNameReq) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
+func (x *GetGroupMemberListResp_GroupMember) GetArea() string {
+ if x != nil {
+ return x.Area
+ }
+ return ""
}
-func (m *SetGroupNameReq) MarshalToSizedBuffer(dAtA []byte) (int, error) {
- i := len(dAtA)
- _ = i
- var l int
- _ = l
- if m.XXX_unrecognized != nil {
- i -= len(m.XXX_unrecognized)
- copy(dAtA[i:], m.XXX_unrecognized)
+func (x *GetGroupMemberListResp_GroupMember) GetJoinTime() int64 {
+ if x != nil {
+ return x.JoinTime
}
- if len(m.GroupName) > 0 {
- i -= len(m.GroupName)
- copy(dAtA[i:], m.GroupName)
- i = encodeVarintOnebotApi(dAtA, i, uint64(len(m.GroupName)))
- i--
- dAtA[i] = 0x12
- }
- if m.GroupId != 0 {
- i = encodeVarintOnebotApi(dAtA, i, uint64(m.GroupId))
- i--
- dAtA[i] = 0x8
- }
- return len(dAtA) - i, nil
+ return 0
}
-func (m *SetGroupNameResp) Marshal() (dAtA []byte, err error) {
- size := m.Size()
- dAtA = make([]byte, size)
- n, err := m.MarshalToSizedBuffer(dAtA[:size])
- if err != nil {
- return nil, err
+func (x *GetGroupMemberListResp_GroupMember) GetLastSentTime() int64 {
+ if x != nil {
+ return x.LastSentTime
}
- return dAtA[:n], nil
+ return 0
}
-func (m *SetGroupNameResp) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
+func (x *GetGroupMemberListResp_GroupMember) GetLevel() string {
+ if x != nil {
+ return x.Level
+ }
+ return ""
}
-func (m *SetGroupNameResp) MarshalToSizedBuffer(dAtA []byte) (int, error) {
- i := len(dAtA)
- _ = i
- var l int
- _ = l
- if m.XXX_unrecognized != nil {
- i -= len(m.XXX_unrecognized)
- copy(dAtA[i:], m.XXX_unrecognized)
+func (x *GetGroupMemberListResp_GroupMember) GetRole() string {
+ if x != nil {
+ return x.Role
}
- return len(dAtA) - i, nil
+ return ""
}
-func (m *SetGroupLeaveReq) Marshal() (dAtA []byte, err error) {
- size := m.Size()
- dAtA = make([]byte, size)
- n, err := m.MarshalToSizedBuffer(dAtA[:size])
- if err != nil {
- return nil, err
+func (x *GetGroupMemberListResp_GroupMember) GetUnfriendly() bool {
+ if x != nil {
+ return x.Unfriendly
}
- return dAtA[:n], nil
+ return false
}
-func (m *SetGroupLeaveReq) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
+func (x *GetGroupMemberListResp_GroupMember) GetTitle() string {
+ if x != nil {
+ return x.Title
+ }
+ return ""
}
-func (m *SetGroupLeaveReq) MarshalToSizedBuffer(dAtA []byte) (int, error) {
- i := len(dAtA)
- _ = i
- var l int
- _ = l
- if m.XXX_unrecognized != nil {
- i -= len(m.XXX_unrecognized)
- copy(dAtA[i:], m.XXX_unrecognized)
- }
- if m.IsDismiss {
- i--
- if m.IsDismiss {
- dAtA[i] = 1
- } else {
- dAtA[i] = 0
- }
- i--
- dAtA[i] = 0x10
+func (x *GetGroupMemberListResp_GroupMember) GetTitleExpireTime() int64 {
+ if x != nil {
+ return x.TitleExpireTime
}
- if m.GroupId != 0 {
- i = encodeVarintOnebotApi(dAtA, i, uint64(m.GroupId))
- i--
- dAtA[i] = 0x8
- }
- return len(dAtA) - i, nil
+ return 0
}
-func (m *SetGroupLeaveResp) Marshal() (dAtA []byte, err error) {
- size := m.Size()
- dAtA = make([]byte, size)
- n, err := m.MarshalToSizedBuffer(dAtA[:size])
- if err != nil {
- return nil, err
+func (x *GetGroupMemberListResp_GroupMember) GetCardChangeable() bool {
+ if x != nil {
+ return x.CardChangeable
}
- return dAtA[:n], nil
+ return false
}
-func (m *SetGroupLeaveResp) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
-}
+type GetGroupHonorInfoResp_CurrentTalkative struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
-func (m *SetGroupLeaveResp) MarshalToSizedBuffer(dAtA []byte) (int, error) {
- i := len(dAtA)
- _ = i
- var l int
- _ = l
- if m.XXX_unrecognized != nil {
- i -= len(m.XXX_unrecognized)
- copy(dAtA[i:], m.XXX_unrecognized)
- }
- return len(dAtA) - i, nil
+ UserId int64 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
+ Nickname string `protobuf:"bytes,2,opt,name=nickname,proto3" json:"nickname,omitempty"`
+ Avatar string `protobuf:"bytes,3,opt,name=avatar,proto3" json:"avatar,omitempty"`
+ DayCount int32 `protobuf:"varint,4,opt,name=day_count,json=dayCount,proto3" json:"day_count,omitempty"`
}
-func (m *SetGroupSpecialTitleReq) Marshal() (dAtA []byte, err error) {
- size := m.Size()
- dAtA = make([]byte, size)
- n, err := m.MarshalToSizedBuffer(dAtA[:size])
- if err != nil {
- return nil, err
+func (x *GetGroupHonorInfoResp_CurrentTalkative) Reset() {
+ *x = GetGroupHonorInfoResp_CurrentTalkative{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_onebot_api_proto_msgTypes[91]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
}
- return dAtA[:n], nil
}
-func (m *SetGroupSpecialTitleReq) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
+func (x *GetGroupHonorInfoResp_CurrentTalkative) String() string {
+ return protoimpl.X.MessageStringOf(x)
}
-func (m *SetGroupSpecialTitleReq) MarshalToSizedBuffer(dAtA []byte) (int, error) {
- i := len(dAtA)
- _ = i
- var l int
- _ = l
- if m.XXX_unrecognized != nil {
- i -= len(m.XXX_unrecognized)
- copy(dAtA[i:], m.XXX_unrecognized)
- }
- if m.Duration != 0 {
- i = encodeVarintOnebotApi(dAtA, i, uint64(m.Duration))
- i--
- dAtA[i] = 0x20
- }
- if len(m.SpecialTitle) > 0 {
- i -= len(m.SpecialTitle)
- copy(dAtA[i:], m.SpecialTitle)
- i = encodeVarintOnebotApi(dAtA, i, uint64(len(m.SpecialTitle)))
- i--
- dAtA[i] = 0x1a
- }
- if m.UserId != 0 {
- i = encodeVarintOnebotApi(dAtA, i, uint64(m.UserId))
- i--
- dAtA[i] = 0x10
- }
- if m.GroupId != 0 {
- i = encodeVarintOnebotApi(dAtA, i, uint64(m.GroupId))
- i--
- dAtA[i] = 0x8
- }
- return len(dAtA) - i, nil
-}
+func (*GetGroupHonorInfoResp_CurrentTalkative) ProtoMessage() {}
-func (m *SetGroupSpecialTitleResp) Marshal() (dAtA []byte, err error) {
- size := m.Size()
- dAtA = make([]byte, size)
- n, err := m.MarshalToSizedBuffer(dAtA[:size])
- if err != nil {
- return nil, err
+func (x *GetGroupHonorInfoResp_CurrentTalkative) ProtoReflect() protoreflect.Message {
+ mi := &file_onebot_api_proto_msgTypes[91]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
}
- return dAtA[:n], nil
+ return mi.MessageOf(x)
}
-func (m *SetGroupSpecialTitleResp) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
+// Deprecated: Use GetGroupHonorInfoResp_CurrentTalkative.ProtoReflect.Descriptor instead.
+func (*GetGroupHonorInfoResp_CurrentTalkative) Descriptor() ([]byte, []int) {
+ return file_onebot_api_proto_rawDescGZIP(), []int{55, 0}
}
-func (m *SetGroupSpecialTitleResp) MarshalToSizedBuffer(dAtA []byte) (int, error) {
- i := len(dAtA)
- _ = i
- var l int
- _ = l
- if m.XXX_unrecognized != nil {
- i -= len(m.XXX_unrecognized)
- copy(dAtA[i:], m.XXX_unrecognized)
+func (x *GetGroupHonorInfoResp_CurrentTalkative) GetUserId() int64 {
+ if x != nil {
+ return x.UserId
}
- return len(dAtA) - i, nil
+ return 0
}
-func (m *SetFriendAddRequestReq) Marshal() (dAtA []byte, err error) {
- size := m.Size()
- dAtA = make([]byte, size)
- n, err := m.MarshalToSizedBuffer(dAtA[:size])
- if err != nil {
- return nil, err
+func (x *GetGroupHonorInfoResp_CurrentTalkative) GetNickname() string {
+ if x != nil {
+ return x.Nickname
}
- return dAtA[:n], nil
+ return ""
}
-func (m *SetFriendAddRequestReq) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
-}
-
-func (m *SetFriendAddRequestReq) MarshalToSizedBuffer(dAtA []byte) (int, error) {
- i := len(dAtA)
- _ = i
- var l int
- _ = l
- if m.XXX_unrecognized != nil {
- i -= len(m.XXX_unrecognized)
- copy(dAtA[i:], m.XXX_unrecognized)
- }
- if len(m.Remark) > 0 {
- i -= len(m.Remark)
- copy(dAtA[i:], m.Remark)
- i = encodeVarintOnebotApi(dAtA, i, uint64(len(m.Remark)))
- i--
- dAtA[i] = 0x1a
- }
- if m.Approve {
- i--
- if m.Approve {
- dAtA[i] = 1
- } else {
- dAtA[i] = 0
- }
- i--
- dAtA[i] = 0x10
+func (x *GetGroupHonorInfoResp_CurrentTalkative) GetAvatar() string {
+ if x != nil {
+ return x.Avatar
}
- if len(m.Flag) > 0 {
- i -= len(m.Flag)
- copy(dAtA[i:], m.Flag)
- i = encodeVarintOnebotApi(dAtA, i, uint64(len(m.Flag)))
- i--
- dAtA[i] = 0xa
- }
- return len(dAtA) - i, nil
+ return ""
}
-func (m *SetFriendAddRequestResp) Marshal() (dAtA []byte, err error) {
- size := m.Size()
- dAtA = make([]byte, size)
- n, err := m.MarshalToSizedBuffer(dAtA[:size])
- if err != nil {
- return nil, err
+func (x *GetGroupHonorInfoResp_CurrentTalkative) GetDayCount() int32 {
+ if x != nil {
+ return x.DayCount
}
- return dAtA[:n], nil
+ return 0
}
-func (m *SetFriendAddRequestResp) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
-}
+type GetGroupHonorInfoResp_Honor struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
-func (m *SetFriendAddRequestResp) MarshalToSizedBuffer(dAtA []byte) (int, error) {
- i := len(dAtA)
- _ = i
- var l int
- _ = l
- if m.XXX_unrecognized != nil {
- i -= len(m.XXX_unrecognized)
- copy(dAtA[i:], m.XXX_unrecognized)
- }
- return len(dAtA) - i, nil
+ UserId int64 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
+ Nickname string `protobuf:"bytes,2,opt,name=nickname,proto3" json:"nickname,omitempty"`
+ Avatar string `protobuf:"bytes,3,opt,name=avatar,proto3" json:"avatar,omitempty"`
+ Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"`
}
-func (m *SetGroupAddRequestReq) Marshal() (dAtA []byte, err error) {
- size := m.Size()
- dAtA = make([]byte, size)
- n, err := m.MarshalToSizedBuffer(dAtA[:size])
- if err != nil {
- return nil, err
+func (x *GetGroupHonorInfoResp_Honor) Reset() {
+ *x = GetGroupHonorInfoResp_Honor{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_onebot_api_proto_msgTypes[92]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
}
- return dAtA[:n], nil
}
-func (m *SetGroupAddRequestReq) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
+func (x *GetGroupHonorInfoResp_Honor) String() string {
+ return protoimpl.X.MessageStringOf(x)
}
-func (m *SetGroupAddRequestReq) MarshalToSizedBuffer(dAtA []byte) (int, error) {
- i := len(dAtA)
- _ = i
- var l int
- _ = l
- if m.XXX_unrecognized != nil {
- i -= len(m.XXX_unrecognized)
- copy(dAtA[i:], m.XXX_unrecognized)
- }
- if len(m.Reason) > 0 {
- i -= len(m.Reason)
- copy(dAtA[i:], m.Reason)
- i = encodeVarintOnebotApi(dAtA, i, uint64(len(m.Reason)))
- i--
- dAtA[i] = 0x2a
- }
- if m.Approve {
- i--
- if m.Approve {
- dAtA[i] = 1
- } else {
- dAtA[i] = 0
- }
- i--
- dAtA[i] = 0x20
- }
- if len(m.Type) > 0 {
- i -= len(m.Type)
- copy(dAtA[i:], m.Type)
- i = encodeVarintOnebotApi(dAtA, i, uint64(len(m.Type)))
- i--
- dAtA[i] = 0x1a
- }
- if len(m.SubType) > 0 {
- i -= len(m.SubType)
- copy(dAtA[i:], m.SubType)
- i = encodeVarintOnebotApi(dAtA, i, uint64(len(m.SubType)))
- i--
- dAtA[i] = 0x12
- }
- if len(m.Flag) > 0 {
- i -= len(m.Flag)
- copy(dAtA[i:], m.Flag)
- i = encodeVarintOnebotApi(dAtA, i, uint64(len(m.Flag)))
- i--
- dAtA[i] = 0xa
- }
- return len(dAtA) - i, nil
-}
+func (*GetGroupHonorInfoResp_Honor) ProtoMessage() {}
-func (m *SetGroupAddRequestResp) Marshal() (dAtA []byte, err error) {
- size := m.Size()
- dAtA = make([]byte, size)
- n, err := m.MarshalToSizedBuffer(dAtA[:size])
- if err != nil {
- return nil, err
+func (x *GetGroupHonorInfoResp_Honor) ProtoReflect() protoreflect.Message {
+ mi := &file_onebot_api_proto_msgTypes[92]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
}
- return dAtA[:n], nil
+ return mi.MessageOf(x)
}
-func (m *SetGroupAddRequestResp) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
+// Deprecated: Use GetGroupHonorInfoResp_Honor.ProtoReflect.Descriptor instead.
+func (*GetGroupHonorInfoResp_Honor) Descriptor() ([]byte, []int) {
+ return file_onebot_api_proto_rawDescGZIP(), []int{55, 1}
}
-func (m *SetGroupAddRequestResp) MarshalToSizedBuffer(dAtA []byte) (int, error) {
- i := len(dAtA)
- _ = i
- var l int
- _ = l
- if m.XXX_unrecognized != nil {
- i -= len(m.XXX_unrecognized)
- copy(dAtA[i:], m.XXX_unrecognized)
+func (x *GetGroupHonorInfoResp_Honor) GetUserId() int64 {
+ if x != nil {
+ return x.UserId
}
- return len(dAtA) - i, nil
+ return 0
}
-func (m *GetLoginInfoReq) Marshal() (dAtA []byte, err error) {
- size := m.Size()
- dAtA = make([]byte, size)
- n, err := m.MarshalToSizedBuffer(dAtA[:size])
- if err != nil {
- return nil, err
+func (x *GetGroupHonorInfoResp_Honor) GetNickname() string {
+ if x != nil {
+ return x.Nickname
}
- return dAtA[:n], nil
-}
-
-func (m *GetLoginInfoReq) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
+ return ""
}
-func (m *GetLoginInfoReq) MarshalToSizedBuffer(dAtA []byte) (int, error) {
- i := len(dAtA)
- _ = i
- var l int
- _ = l
- if m.XXX_unrecognized != nil {
- i -= len(m.XXX_unrecognized)
- copy(dAtA[i:], m.XXX_unrecognized)
+func (x *GetGroupHonorInfoResp_Honor) GetAvatar() string {
+ if x != nil {
+ return x.Avatar
}
- return len(dAtA) - i, nil
+ return ""
}
-func (m *GetLoginInfoResp) Marshal() (dAtA []byte, err error) {
- size := m.Size()
- dAtA = make([]byte, size)
- n, err := m.MarshalToSizedBuffer(dAtA[:size])
- if err != nil {
- return nil, err
+func (x *GetGroupHonorInfoResp_Honor) GetDescription() string {
+ if x != nil {
+ return x.Description
}
- return dAtA[:n], nil
-}
-
-func (m *GetLoginInfoResp) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
+ return ""
}
-func (m *GetLoginInfoResp) MarshalToSizedBuffer(dAtA []byte) (int, error) {
- i := len(dAtA)
- _ = i
- var l int
- _ = l
- if m.XXX_unrecognized != nil {
- i -= len(m.XXX_unrecognized)
- copy(dAtA[i:], m.XXX_unrecognized)
- }
- if len(m.Nickname) > 0 {
- i -= len(m.Nickname)
- copy(dAtA[i:], m.Nickname)
- i = encodeVarintOnebotApi(dAtA, i, uint64(len(m.Nickname)))
- i--
- dAtA[i] = 0x12
- }
- if m.UserId != 0 {
- i = encodeVarintOnebotApi(dAtA, i, uint64(m.UserId))
- i--
- dAtA[i] = 0x8
- }
- return len(dAtA) - i, nil
+var File_onebot_api_proto protoreflect.FileDescriptor
+
+var file_onebot_api_proto_rawDesc = []byte{
+ 0x0a, 0x10, 0x6f, 0x6e, 0x65, 0x62, 0x6f, 0x74, 0x5f, 0x61, 0x70, 0x69, 0x2e, 0x70, 0x72, 0x6f,
+ 0x74, 0x6f, 0x12, 0x06, 0x6f, 0x6e, 0x65, 0x62, 0x6f, 0x74, 0x1a, 0x11, 0x6f, 0x6e, 0x65, 0x62,
+ 0x6f, 0x74, 0x5f, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x78, 0x0a,
+ 0x11, 0x53, 0x65, 0x6e, 0x64, 0x50, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x4d, 0x73, 0x67, 0x52,
+ 0x65, 0x71, 0x12, 0x17, 0x0a, 0x07, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20,
+ 0x01, 0x28, 0x03, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x12, 0x29, 0x0a, 0x07, 0x6d,
+ 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x6f,
+ 0x6e, 0x65, 0x62, 0x6f, 0x74, 0x2e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x07, 0x6d,
+ 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x61, 0x75, 0x74, 0x6f, 0x5f, 0x65,
+ 0x73, 0x63, 0x61, 0x70, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0a, 0x61, 0x75, 0x74,
+ 0x6f, 0x45, 0x73, 0x63, 0x61, 0x70, 0x65, 0x22, 0x74, 0x0a, 0x12, 0x53, 0x65, 0x6e, 0x64, 0x50,
+ 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x73, 0x70, 0x12, 0x1d, 0x0a,
+ 0x0a, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28,
+ 0x05, 0x52, 0x09, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x49, 0x64, 0x12, 0x3f, 0x0a, 0x0f,
+ 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, 0x72, 0x65, 0x63, 0x65, 0x69, 0x70, 0x74, 0x18,
+ 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x6f, 0x6e, 0x65, 0x62, 0x6f, 0x74, 0x2e, 0x4d,
+ 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x65, 0x63, 0x65, 0x69, 0x70, 0x74, 0x52, 0x0e, 0x6d,
+ 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x65, 0x63, 0x65, 0x69, 0x70, 0x74, 0x22, 0x78, 0x0a,
+ 0x0f, 0x53, 0x65, 0x6e, 0x64, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x71,
+ 0x12, 0x19, 0x0a, 0x08, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01,
+ 0x28, 0x03, 0x52, 0x07, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x49, 0x64, 0x12, 0x29, 0x0a, 0x07, 0x6d,
+ 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x6f,
+ 0x6e, 0x65, 0x62, 0x6f, 0x74, 0x2e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x07, 0x6d,
+ 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x61, 0x75, 0x74, 0x6f, 0x5f, 0x65,
+ 0x73, 0x63, 0x61, 0x70, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0a, 0x61, 0x75, 0x74,
+ 0x6f, 0x45, 0x73, 0x63, 0x61, 0x70, 0x65, 0x22, 0x72, 0x0a, 0x10, 0x53, 0x65, 0x6e, 0x64, 0x47,
+ 0x72, 0x6f, 0x75, 0x70, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x73, 0x70, 0x12, 0x1d, 0x0a, 0x0a, 0x6d,
+ 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52,
+ 0x09, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x49, 0x64, 0x12, 0x3f, 0x0a, 0x0f, 0x6d, 0x65,
+ 0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, 0x72, 0x65, 0x63, 0x65, 0x69, 0x70, 0x74, 0x18, 0x02, 0x20,
+ 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x6f, 0x6e, 0x65, 0x62, 0x6f, 0x74, 0x2e, 0x4d, 0x65, 0x73,
+ 0x73, 0x61, 0x67, 0x65, 0x52, 0x65, 0x63, 0x65, 0x69, 0x70, 0x74, 0x52, 0x0e, 0x6d, 0x65, 0x73,
+ 0x73, 0x61, 0x67, 0x65, 0x52, 0x65, 0x63, 0x65, 0x69, 0x70, 0x74, 0x22, 0x99, 0x01, 0x0a, 0x11,
+ 0x53, 0x65, 0x6e, 0x64, 0x43, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x4d, 0x73, 0x67, 0x52, 0x65,
+ 0x71, 0x12, 0x19, 0x0a, 0x08, 0x67, 0x75, 0x69, 0x6c, 0x64, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20,
+ 0x01, 0x28, 0x04, 0x52, 0x07, 0x67, 0x75, 0x69, 0x6c, 0x64, 0x49, 0x64, 0x12, 0x1d, 0x0a, 0x0a,
+ 0x63, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04,
+ 0x52, 0x09, 0x63, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x49, 0x64, 0x12, 0x29, 0x0a, 0x07, 0x6d,
+ 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x6f,
+ 0x6e, 0x65, 0x62, 0x6f, 0x74, 0x2e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x07, 0x6d,
+ 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x61, 0x75, 0x74, 0x6f, 0x5f, 0x65,
+ 0x73, 0x63, 0x61, 0x70, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0a, 0x61, 0x75, 0x74,
+ 0x6f, 0x45, 0x73, 0x63, 0x61, 0x70, 0x65, 0x22, 0x33, 0x0a, 0x12, 0x53, 0x65, 0x6e, 0x64, 0x43,
+ 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x73, 0x70, 0x12, 0x1d, 0x0a,
+ 0x0a, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28,
+ 0x04, 0x52, 0x09, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x49, 0x64, 0x22, 0xaf, 0x01, 0x0a,
+ 0x0a, 0x53, 0x65, 0x6e, 0x64, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x71, 0x12, 0x21, 0x0a, 0x0c, 0x6d,
+ 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28,
+ 0x09, 0x52, 0x0b, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x17,
+ 0x0a, 0x07, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52,
+ 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x12, 0x19, 0x0a, 0x08, 0x67, 0x72, 0x6f, 0x75, 0x70,
+ 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x07, 0x67, 0x72, 0x6f, 0x75, 0x70,
+ 0x49, 0x64, 0x12, 0x29, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x04, 0x20,
+ 0x03, 0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x6f, 0x6e, 0x65, 0x62, 0x6f, 0x74, 0x2e, 0x4d, 0x65, 0x73,
+ 0x73, 0x61, 0x67, 0x65, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x1f, 0x0a,
+ 0x0b, 0x61, 0x75, 0x74, 0x6f, 0x5f, 0x65, 0x73, 0x63, 0x61, 0x70, 0x65, 0x18, 0x05, 0x20, 0x01,
+ 0x28, 0x08, 0x52, 0x0a, 0x61, 0x75, 0x74, 0x6f, 0x45, 0x73, 0x63, 0x61, 0x70, 0x65, 0x22, 0x6d,
+ 0x0a, 0x0b, 0x53, 0x65, 0x6e, 0x64, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x73, 0x70, 0x12, 0x1d, 0x0a,
+ 0x0a, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28,
+ 0x05, 0x52, 0x09, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x49, 0x64, 0x12, 0x3f, 0x0a, 0x0f,
+ 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, 0x72, 0x65, 0x63, 0x65, 0x69, 0x70, 0x74, 0x18,
+ 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x6f, 0x6e, 0x65, 0x62, 0x6f, 0x74, 0x2e, 0x4d,
+ 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x65, 0x63, 0x65, 0x69, 0x70, 0x74, 0x52, 0x0e, 0x6d,
+ 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x65, 0x63, 0x65, 0x69, 0x70, 0x74, 0x22, 0x6e, 0x0a,
+ 0x0c, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x71, 0x12, 0x1d, 0x0a,
+ 0x0a, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28,
+ 0x05, 0x52, 0x09, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x49, 0x64, 0x12, 0x3f, 0x0a, 0x0f,
+ 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, 0x72, 0x65, 0x63, 0x65, 0x69, 0x70, 0x74, 0x18,
+ 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x6f, 0x6e, 0x65, 0x62, 0x6f, 0x74, 0x2e, 0x4d,
+ 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x65, 0x63, 0x65, 0x69, 0x70, 0x74, 0x52, 0x0e, 0x6d,
+ 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x65, 0x63, 0x65, 0x69, 0x70, 0x74, 0x22, 0x0f, 0x0a,
+ 0x0d, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x73, 0x70, 0x22, 0x2a,
+ 0x0a, 0x09, 0x47, 0x65, 0x74, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x71, 0x12, 0x1d, 0x0a, 0x0a, 0x6d,
+ 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52,
+ 0x09, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x49, 0x64, 0x22, 0xc6, 0x03, 0x0a, 0x0a, 0x47,
+ 0x65, 0x74, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x73, 0x70, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x69, 0x6d,
+ 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x74, 0x69, 0x6d, 0x65, 0x12, 0x21, 0x0a,
+ 0x0c, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20,
+ 0x01, 0x28, 0x09, 0x52, 0x0b, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x54, 0x79, 0x70, 0x65,
+ 0x12, 0x1d, 0x0a, 0x0a, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x03,
+ 0x20, 0x01, 0x28, 0x05, 0x52, 0x09, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x49, 0x64, 0x12,
+ 0x17, 0x0a, 0x07, 0x72, 0x65, 0x61, 0x6c, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05,
+ 0x52, 0x06, 0x72, 0x65, 0x61, 0x6c, 0x49, 0x64, 0x12, 0x31, 0x0a, 0x06, 0x73, 0x65, 0x6e, 0x64,
+ 0x65, 0x72, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x6f, 0x6e, 0x65, 0x62, 0x6f,
+ 0x74, 0x2e, 0x47, 0x65, 0x74, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x73, 0x70, 0x2e, 0x53, 0x65, 0x6e,
+ 0x64, 0x65, 0x72, 0x52, 0x06, 0x73, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x12, 0x29, 0x0a, 0x07, 0x6d,
+ 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x06, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x6f,
+ 0x6e, 0x65, 0x62, 0x6f, 0x74, 0x2e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x07, 0x6d,
+ 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x72, 0x61, 0x77, 0x5f, 0x6d, 0x65,
+ 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x72, 0x61, 0x77,
+ 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x1a, 0xc9, 0x01, 0x0a, 0x06, 0x53, 0x65, 0x6e, 0x64,
+ 0x65, 0x72, 0x12, 0x17, 0x0a, 0x07, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20,
+ 0x01, 0x28, 0x03, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x6e,
+ 0x69, 0x63, 0x6b, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6e,
+ 0x69, 0x63, 0x6b, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x61, 0x72, 0x64, 0x18,
+ 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x63, 0x61, 0x72, 0x64, 0x12, 0x10, 0x0a, 0x03, 0x73,
+ 0x65, 0x78, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x73, 0x65, 0x78, 0x12, 0x10, 0x0a,
+ 0x03, 0x61, 0x67, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x05, 0x52, 0x03, 0x61, 0x67, 0x65, 0x12,
+ 0x12, 0x0a, 0x04, 0x61, 0x72, 0x65, 0x61, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x61,
+ 0x72, 0x65, 0x61, 0x12, 0x14, 0x0a, 0x05, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x18, 0x07, 0x20, 0x01,
+ 0x28, 0x09, 0x52, 0x05, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x12, 0x12, 0x0a, 0x04, 0x72, 0x6f, 0x6c,
+ 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x72, 0x6f, 0x6c, 0x65, 0x12, 0x14, 0x0a,
+ 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x69,
+ 0x74, 0x6c, 0x65, 0x22, 0x22, 0x0a, 0x10, 0x47, 0x65, 0x74, 0x46, 0x6f, 0x72, 0x77, 0x61, 0x72,
+ 0x64, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x71, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20,
+ 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x22, 0x13, 0x0a, 0x11, 0x47, 0x65, 0x74, 0x46, 0x6f,
+ 0x72, 0x77, 0x61, 0x72, 0x64, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x73, 0x70, 0x22, 0x3c, 0x0a, 0x0b,
+ 0x53, 0x65, 0x6e, 0x64, 0x4c, 0x69, 0x6b, 0x65, 0x52, 0x65, 0x71, 0x12, 0x17, 0x0a, 0x07, 0x75,
+ 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x75, 0x73,
+ 0x65, 0x72, 0x49, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x18, 0x02, 0x20,
+ 0x01, 0x28, 0x05, 0x52, 0x05, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x22, 0x0e, 0x0a, 0x0c, 0x53, 0x65,
+ 0x6e, 0x64, 0x4c, 0x69, 0x6b, 0x65, 0x52, 0x65, 0x73, 0x70, 0x22, 0x8e, 0x01, 0x0a, 0x0f, 0x53,
+ 0x65, 0x74, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x4b, 0x69, 0x63, 0x6b, 0x52, 0x65, 0x71, 0x12, 0x19,
+ 0x0a, 0x08, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03,
+ 0x52, 0x07, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x49, 0x64, 0x12, 0x17, 0x0a, 0x07, 0x75, 0x73, 0x65,
+ 0x72, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72,
+ 0x49, 0x64, 0x12, 0x2c, 0x0a, 0x12, 0x72, 0x65, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x61, 0x64, 0x64,
+ 0x5f, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x10,
+ 0x72, 0x65, 0x6a, 0x65, 0x63, 0x74, 0x41, 0x64, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
+ 0x12, 0x19, 0x0a, 0x08, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x73, 0x18, 0x04, 0x20, 0x03,
+ 0x28, 0x03, 0x52, 0x07, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x73, 0x22, 0x12, 0x0a, 0x10, 0x53,
+ 0x65, 0x74, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x4b, 0x69, 0x63, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x22,
+ 0x60, 0x0a, 0x0e, 0x53, 0x65, 0x74, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x42, 0x61, 0x6e, 0x52, 0x65,
+ 0x71, 0x12, 0x19, 0x0a, 0x08, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20,
+ 0x01, 0x28, 0x03, 0x52, 0x07, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x49, 0x64, 0x12, 0x17, 0x0a, 0x07,
+ 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x75,
+ 0x73, 0x65, 0x72, 0x49, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f,
+ 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f,
+ 0x6e, 0x22, 0x11, 0x0a, 0x0f, 0x53, 0x65, 0x74, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x42, 0x61, 0x6e,
+ 0x52, 0x65, 0x73, 0x70, 0x22, 0x99, 0x02, 0x0a, 0x17, 0x53, 0x65, 0x74, 0x47, 0x72, 0x6f, 0x75,
+ 0x70, 0x41, 0x6e, 0x6f, 0x6e, 0x79, 0x6d, 0x6f, 0x75, 0x73, 0x42, 0x61, 0x6e, 0x52, 0x65, 0x71,
+ 0x12, 0x19, 0x0a, 0x08, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01,
+ 0x28, 0x03, 0x52, 0x07, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x49, 0x64, 0x12, 0x47, 0x0a, 0x09, 0x61,
+ 0x6e, 0x6f, 0x6e, 0x79, 0x6d, 0x6f, 0x75, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x29,
+ 0x2e, 0x6f, 0x6e, 0x65, 0x62, 0x6f, 0x74, 0x2e, 0x53, 0x65, 0x74, 0x47, 0x72, 0x6f, 0x75, 0x70,
+ 0x41, 0x6e, 0x6f, 0x6e, 0x79, 0x6d, 0x6f, 0x75, 0x73, 0x42, 0x61, 0x6e, 0x52, 0x65, 0x71, 0x2e,
+ 0x41, 0x6e, 0x6f, 0x6e, 0x79, 0x6d, 0x6f, 0x75, 0x73, 0x52, 0x09, 0x61, 0x6e, 0x6f, 0x6e, 0x79,
+ 0x6d, 0x6f, 0x75, 0x73, 0x12, 0x25, 0x0a, 0x0e, 0x61, 0x6e, 0x6f, 0x6e, 0x79, 0x6d, 0x6f, 0x75,
+ 0x73, 0x5f, 0x66, 0x6c, 0x61, 0x67, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x61, 0x6e,
+ 0x6f, 0x6e, 0x79, 0x6d, 0x6f, 0x75, 0x73, 0x46, 0x6c, 0x61, 0x67, 0x12, 0x12, 0x0a, 0x04, 0x66,
+ 0x6c, 0x61, 0x67, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x66, 0x6c, 0x61, 0x67, 0x12,
+ 0x1a, 0x0a, 0x08, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x05, 0x20, 0x01, 0x28,
+ 0x03, 0x52, 0x08, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x1a, 0x43, 0x0a, 0x09, 0x41,
+ 0x6e, 0x6f, 0x6e, 0x79, 0x6d, 0x6f, 0x75, 0x73, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01,
+ 0x20, 0x01, 0x28, 0x03, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65,
+ 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x12, 0x0a, 0x04,
+ 0x66, 0x6c, 0x61, 0x67, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x66, 0x6c, 0x61, 0x67,
+ 0x22, 0x1a, 0x0a, 0x18, 0x53, 0x65, 0x74, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x41, 0x6e, 0x6f, 0x6e,
+ 0x79, 0x6d, 0x6f, 0x75, 0x73, 0x42, 0x61, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x22, 0x48, 0x0a, 0x13,
+ 0x53, 0x65, 0x74, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x57, 0x68, 0x6f, 0x6c, 0x65, 0x42, 0x61, 0x6e,
+ 0x52, 0x65, 0x71, 0x12, 0x19, 0x0a, 0x08, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x5f, 0x69, 0x64, 0x18,
+ 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x07, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x49, 0x64, 0x12, 0x16,
+ 0x0a, 0x06, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x06,
+ 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x22, 0x16, 0x0a, 0x14, 0x53, 0x65, 0x74, 0x47, 0x72, 0x6f,
+ 0x75, 0x70, 0x57, 0x68, 0x6f, 0x6c, 0x65, 0x42, 0x61, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x22, 0x5e,
+ 0x0a, 0x10, 0x53, 0x65, 0x74, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x52,
+ 0x65, 0x71, 0x12, 0x19, 0x0a, 0x08, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x5f, 0x69, 0x64, 0x18, 0x01,
+ 0x20, 0x01, 0x28, 0x03, 0x52, 0x07, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x49, 0x64, 0x12, 0x17, 0x0a,
+ 0x07, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06,
+ 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65,
+ 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x06, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x22, 0x13,
+ 0x0a, 0x11, 0x53, 0x65, 0x74, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x52,
+ 0x65, 0x73, 0x70, 0x22, 0x49, 0x0a, 0x14, 0x53, 0x65, 0x74, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x41,
+ 0x6e, 0x6f, 0x6e, 0x79, 0x6d, 0x6f, 0x75, 0x73, 0x52, 0x65, 0x71, 0x12, 0x19, 0x0a, 0x08, 0x67,
+ 0x72, 0x6f, 0x75, 0x70, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x07, 0x67,
+ 0x72, 0x6f, 0x75, 0x70, 0x49, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65,
+ 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x06, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x22, 0x17,
+ 0x0a, 0x15, 0x53, 0x65, 0x74, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x41, 0x6e, 0x6f, 0x6e, 0x79, 0x6d,
+ 0x6f, 0x75, 0x73, 0x52, 0x65, 0x73, 0x70, 0x22, 0x59, 0x0a, 0x0f, 0x53, 0x65, 0x74, 0x47, 0x72,
+ 0x6f, 0x75, 0x70, 0x43, 0x61, 0x72, 0x64, 0x52, 0x65, 0x71, 0x12, 0x19, 0x0a, 0x08, 0x67, 0x72,
+ 0x6f, 0x75, 0x70, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x07, 0x67, 0x72,
+ 0x6f, 0x75, 0x70, 0x49, 0x64, 0x12, 0x17, 0x0a, 0x07, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64,
+ 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x12, 0x12,
+ 0x0a, 0x04, 0x63, 0x61, 0x72, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x63, 0x61,
+ 0x72, 0x64, 0x22, 0x12, 0x0a, 0x10, 0x53, 0x65, 0x74, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x43, 0x61,
+ 0x72, 0x64, 0x52, 0x65, 0x73, 0x70, 0x22, 0x4b, 0x0a, 0x0f, 0x53, 0x65, 0x74, 0x47, 0x72, 0x6f,
+ 0x75, 0x70, 0x4e, 0x61, 0x6d, 0x65, 0x52, 0x65, 0x71, 0x12, 0x19, 0x0a, 0x08, 0x67, 0x72, 0x6f,
+ 0x75, 0x70, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x07, 0x67, 0x72, 0x6f,
+ 0x75, 0x70, 0x49, 0x64, 0x12, 0x1d, 0x0a, 0x0a, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x5f, 0x6e, 0x61,
+ 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x4e,
+ 0x61, 0x6d, 0x65, 0x22, 0x12, 0x0a, 0x10, 0x53, 0x65, 0x74, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x4e,
+ 0x61, 0x6d, 0x65, 0x52, 0x65, 0x73, 0x70, 0x22, 0x4c, 0x0a, 0x10, 0x53, 0x65, 0x74, 0x47, 0x72,
+ 0x6f, 0x75, 0x70, 0x4c, 0x65, 0x61, 0x76, 0x65, 0x52, 0x65, 0x71, 0x12, 0x19, 0x0a, 0x08, 0x67,
+ 0x72, 0x6f, 0x75, 0x70, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x07, 0x67,
+ 0x72, 0x6f, 0x75, 0x70, 0x49, 0x64, 0x12, 0x1d, 0x0a, 0x0a, 0x69, 0x73, 0x5f, 0x64, 0x69, 0x73,
+ 0x6d, 0x69, 0x73, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x09, 0x69, 0x73, 0x44, 0x69,
+ 0x73, 0x6d, 0x69, 0x73, 0x73, 0x22, 0x13, 0x0a, 0x11, 0x53, 0x65, 0x74, 0x47, 0x72, 0x6f, 0x75,
+ 0x70, 0x4c, 0x65, 0x61, 0x76, 0x65, 0x52, 0x65, 0x73, 0x70, 0x22, 0x8e, 0x01, 0x0a, 0x17, 0x53,
+ 0x65, 0x74, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x53, 0x70, 0x65, 0x63, 0x69, 0x61, 0x6c, 0x54, 0x69,
+ 0x74, 0x6c, 0x65, 0x52, 0x65, 0x71, 0x12, 0x19, 0x0a, 0x08, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x5f,
+ 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x07, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x49,
+ 0x64, 0x12, 0x17, 0x0a, 0x07, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01,
+ 0x28, 0x03, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x12, 0x23, 0x0a, 0x0d, 0x73, 0x70,
+ 0x65, 0x63, 0x69, 0x61, 0x6c, 0x5f, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28,
+ 0x09, 0x52, 0x0c, 0x73, 0x70, 0x65, 0x63, 0x69, 0x61, 0x6c, 0x54, 0x69, 0x74, 0x6c, 0x65, 0x12,
+ 0x1a, 0x0a, 0x08, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28,
+ 0x03, 0x52, 0x08, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x1a, 0x0a, 0x18, 0x53,
+ 0x65, 0x74, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x53, 0x70, 0x65, 0x63, 0x69, 0x61, 0x6c, 0x54, 0x69,
+ 0x74, 0x6c, 0x65, 0x52, 0x65, 0x73, 0x70, 0x22, 0x5e, 0x0a, 0x16, 0x53, 0x65, 0x74, 0x46, 0x72,
+ 0x69, 0x65, 0x6e, 0x64, 0x41, 0x64, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x65,
+ 0x71, 0x12, 0x12, 0x0a, 0x04, 0x66, 0x6c, 0x61, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52,
+ 0x04, 0x66, 0x6c, 0x61, 0x67, 0x12, 0x18, 0x0a, 0x07, 0x61, 0x70, 0x70, 0x72, 0x6f, 0x76, 0x65,
+ 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x61, 0x70, 0x70, 0x72, 0x6f, 0x76, 0x65, 0x12,
+ 0x16, 0x0a, 0x06, 0x72, 0x65, 0x6d, 0x61, 0x72, 0x6b, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52,
+ 0x06, 0x72, 0x65, 0x6d, 0x61, 0x72, 0x6b, 0x22, 0x19, 0x0a, 0x17, 0x53, 0x65, 0x74, 0x46, 0x72,
+ 0x69, 0x65, 0x6e, 0x64, 0x41, 0x64, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x65,
+ 0x73, 0x70, 0x22, 0x8c, 0x01, 0x0a, 0x15, 0x53, 0x65, 0x74, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x41,
+ 0x64, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x65, 0x71, 0x12, 0x12, 0x0a, 0x04,
+ 0x66, 0x6c, 0x61, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x66, 0x6c, 0x61, 0x67,
+ 0x12, 0x19, 0x0a, 0x08, 0x73, 0x75, 0x62, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01,
+ 0x28, 0x09, 0x52, 0x07, 0x73, 0x75, 0x62, 0x54, 0x79, 0x70, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x74,
+ 0x79, 0x70, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12,
+ 0x18, 0x0a, 0x07, 0x61, 0x70, 0x70, 0x72, 0x6f, 0x76, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08,
+ 0x52, 0x07, 0x61, 0x70, 0x70, 0x72, 0x6f, 0x76, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x72, 0x65, 0x61,
+ 0x73, 0x6f, 0x6e, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x72, 0x65, 0x61, 0x73, 0x6f,
+ 0x6e, 0x22, 0x18, 0x0a, 0x16, 0x53, 0x65, 0x74, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x41, 0x64, 0x64,
+ 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x22, 0x11, 0x0a, 0x0f, 0x47,
+ 0x65, 0x74, 0x4c, 0x6f, 0x67, 0x69, 0x6e, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x71, 0x22, 0x47,
+ 0x0a, 0x10, 0x47, 0x65, 0x74, 0x4c, 0x6f, 0x67, 0x69, 0x6e, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65,
+ 0x73, 0x70, 0x12, 0x17, 0x0a, 0x07, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20,
+ 0x01, 0x28, 0x03, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x6e,
+ 0x69, 0x63, 0x6b, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6e,
+ 0x69, 0x63, 0x6b, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x48, 0x0a, 0x12, 0x47, 0x65, 0x74, 0x53, 0x74,
+ 0x72, 0x61, 0x6e, 0x67, 0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x71, 0x12, 0x17, 0x0a,
+ 0x07, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06,
+ 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x12, 0x19, 0x0a, 0x08, 0x6e, 0x6f, 0x5f, 0x63, 0x61, 0x63,
+ 0x68, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x6e, 0x6f, 0x43, 0x61, 0x63, 0x68,
+ 0x65, 0x22, 0xa3, 0x01, 0x0a, 0x13, 0x47, 0x65, 0x74, 0x53, 0x74, 0x72, 0x61, 0x6e, 0x67, 0x65,
+ 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x73, 0x70, 0x12, 0x17, 0x0a, 0x07, 0x75, 0x73, 0x65,
+ 0x72, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72,
+ 0x49, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x6e, 0x69, 0x63, 0x6b, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02,
+ 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6e, 0x69, 0x63, 0x6b, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x10,
+ 0x0a, 0x03, 0x73, 0x65, 0x78, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x73, 0x65, 0x78,
+ 0x12, 0x10, 0x0a, 0x03, 0x61, 0x67, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x03, 0x61,
+ 0x67, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x18, 0x05, 0x20, 0x01, 0x28,
+ 0x05, 0x52, 0x05, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x12, 0x1d, 0x0a, 0x0a, 0x6c, 0x6f, 0x67, 0x69,
+ 0x6e, 0x5f, 0x64, 0x61, 0x79, 0x73, 0x18, 0x06, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x6c, 0x6f,
+ 0x67, 0x69, 0x6e, 0x44, 0x61, 0x79, 0x73, 0x22, 0x12, 0x0a, 0x10, 0x47, 0x65, 0x74, 0x46, 0x72,
+ 0x69, 0x65, 0x6e, 0x64, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x71, 0x22, 0xa4, 0x01, 0x0a, 0x11,
+ 0x47, 0x65, 0x74, 0x46, 0x72, 0x69, 0x65, 0x6e, 0x64, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73,
+ 0x70, 0x12, 0x38, 0x0a, 0x06, 0x66, 0x72, 0x69, 0x65, 0x6e, 0x64, 0x18, 0x01, 0x20, 0x03, 0x28,
+ 0x0b, 0x32, 0x20, 0x2e, 0x6f, 0x6e, 0x65, 0x62, 0x6f, 0x74, 0x2e, 0x47, 0x65, 0x74, 0x46, 0x72,
+ 0x69, 0x65, 0x6e, 0x64, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x2e, 0x46, 0x72, 0x69,
+ 0x65, 0x6e, 0x64, 0x52, 0x06, 0x66, 0x72, 0x69, 0x65, 0x6e, 0x64, 0x1a, 0x55, 0x0a, 0x06, 0x46,
+ 0x72, 0x69, 0x65, 0x6e, 0x64, 0x12, 0x17, 0x0a, 0x07, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64,
+ 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x12, 0x1a,
+ 0x0a, 0x08, 0x6e, 0x69, 0x63, 0x6b, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09,
+ 0x52, 0x08, 0x6e, 0x69, 0x63, 0x6b, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x72, 0x65,
+ 0x6d, 0x61, 0x72, 0x6b, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x72, 0x65, 0x6d, 0x61,
+ 0x72, 0x6b, 0x22, 0x47, 0x0a, 0x0f, 0x47, 0x65, 0x74, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x49, 0x6e,
+ 0x66, 0x6f, 0x52, 0x65, 0x71, 0x12, 0x19, 0x0a, 0x08, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x5f, 0x69,
+ 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x07, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x49, 0x64,
+ 0x12, 0x19, 0x0a, 0x08, 0x6e, 0x6f, 0x5f, 0x63, 0x61, 0x63, 0x68, 0x65, 0x18, 0x02, 0x20, 0x01,
+ 0x28, 0x08, 0x52, 0x07, 0x6e, 0x6f, 0x43, 0x61, 0x63, 0x68, 0x65, 0x22, 0x99, 0x01, 0x0a, 0x10,
+ 0x47, 0x65, 0x74, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x73, 0x70,
+ 0x12, 0x19, 0x0a, 0x08, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01,
+ 0x28, 0x03, 0x52, 0x07, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x49, 0x64, 0x12, 0x1d, 0x0a, 0x0a, 0x67,
+ 0x72, 0x6f, 0x75, 0x70, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52,
+ 0x09, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x21, 0x0a, 0x0c, 0x6d, 0x65,
+ 0x6d, 0x62, 0x65, 0x72, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05,
+ 0x52, 0x0b, 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x28, 0x0a,
+ 0x10, 0x6d, 0x61, 0x78, 0x5f, 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x5f, 0x63, 0x6f, 0x75, 0x6e,
+ 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0e, 0x6d, 0x61, 0x78, 0x4d, 0x65, 0x6d, 0x62,
+ 0x65, 0x72, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x22, 0x11, 0x0a, 0x0f, 0x47, 0x65, 0x74, 0x47, 0x72,
+ 0x6f, 0x75, 0x70, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x71, 0x22, 0xd9, 0x01, 0x0a, 0x10, 0x47,
+ 0x65, 0x74, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x12,
+ 0x34, 0x0a, 0x05, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1e,
+ 0x2e, 0x6f, 0x6e, 0x65, 0x62, 0x6f, 0x74, 0x2e, 0x47, 0x65, 0x74, 0x47, 0x72, 0x6f, 0x75, 0x70,
+ 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x2e, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x52, 0x05,
+ 0x67, 0x72, 0x6f, 0x75, 0x70, 0x1a, 0x8e, 0x01, 0x0a, 0x05, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x12,
+ 0x19, 0x0a, 0x08, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28,
+ 0x03, 0x52, 0x07, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x49, 0x64, 0x12, 0x1d, 0x0a, 0x0a, 0x67, 0x72,
+ 0x6f, 0x75, 0x70, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09,
+ 0x67, 0x72, 0x6f, 0x75, 0x70, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x21, 0x0a, 0x0c, 0x6d, 0x65, 0x6d,
+ 0x62, 0x65, 0x72, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52,
+ 0x0b, 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x28, 0x0a, 0x10,
+ 0x6d, 0x61, 0x78, 0x5f, 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74,
+ 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0e, 0x6d, 0x61, 0x78, 0x4d, 0x65, 0x6d, 0x62, 0x65,
+ 0x72, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x22, 0x66, 0x0a, 0x15, 0x47, 0x65, 0x74, 0x47, 0x72, 0x6f,
+ 0x75, 0x70, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x71, 0x12,
+ 0x19, 0x0a, 0x08, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28,
+ 0x03, 0x52, 0x07, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x49, 0x64, 0x12, 0x17, 0x0a, 0x07, 0x75, 0x73,
+ 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x75, 0x73, 0x65,
+ 0x72, 0x49, 0x64, 0x12, 0x19, 0x0a, 0x08, 0x6e, 0x6f, 0x5f, 0x63, 0x61, 0x63, 0x68, 0x65, 0x18,
+ 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x6e, 0x6f, 0x43, 0x61, 0x63, 0x68, 0x65, 0x22, 0xac,
+ 0x03, 0x0a, 0x16, 0x47, 0x65, 0x74, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x4d, 0x65, 0x6d, 0x62, 0x65,
+ 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x73, 0x70, 0x12, 0x19, 0x0a, 0x08, 0x67, 0x72, 0x6f,
+ 0x75, 0x70, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x07, 0x67, 0x72, 0x6f,
+ 0x75, 0x70, 0x49, 0x64, 0x12, 0x17, 0x0a, 0x07, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18,
+ 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x12, 0x1a, 0x0a,
+ 0x08, 0x6e, 0x69, 0x63, 0x6b, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52,
+ 0x08, 0x6e, 0x69, 0x63, 0x6b, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x61, 0x72,
+ 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x63, 0x61, 0x72, 0x64, 0x12, 0x10, 0x0a,
+ 0x03, 0x73, 0x65, 0x78, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x73, 0x65, 0x78, 0x12,
+ 0x10, 0x0a, 0x03, 0x61, 0x67, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x05, 0x52, 0x03, 0x61, 0x67,
+ 0x65, 0x12, 0x12, 0x0a, 0x04, 0x61, 0x72, 0x65, 0x61, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52,
+ 0x04, 0x61, 0x72, 0x65, 0x61, 0x12, 0x1b, 0x0a, 0x09, 0x6a, 0x6f, 0x69, 0x6e, 0x5f, 0x74, 0x69,
+ 0x6d, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 0x03, 0x52, 0x08, 0x6a, 0x6f, 0x69, 0x6e, 0x54, 0x69,
+ 0x6d, 0x65, 0x12, 0x24, 0x0a, 0x0e, 0x6c, 0x61, 0x73, 0x74, 0x5f, 0x73, 0x65, 0x6e, 0x74, 0x5f,
+ 0x74, 0x69, 0x6d, 0x65, 0x18, 0x09, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0c, 0x6c, 0x61, 0x73, 0x74,
+ 0x53, 0x65, 0x6e, 0x74, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x6c, 0x65, 0x76, 0x65,
+ 0x6c, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x12, 0x12,
+ 0x0a, 0x04, 0x72, 0x6f, 0x6c, 0x65, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x72, 0x6f,
+ 0x6c, 0x65, 0x12, 0x1e, 0x0a, 0x0a, 0x75, 0x6e, 0x66, 0x72, 0x69, 0x65, 0x6e, 0x64, 0x6c, 0x79,
+ 0x18, 0x0c, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0a, 0x75, 0x6e, 0x66, 0x72, 0x69, 0x65, 0x6e, 0x64,
+ 0x6c, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x18, 0x0d, 0x20, 0x01, 0x28,
+ 0x09, 0x52, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x12, 0x2a, 0x0a, 0x11, 0x74, 0x69, 0x74, 0x6c,
+ 0x65, 0x5f, 0x65, 0x78, 0x70, 0x69, 0x72, 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x0e, 0x20,
+ 0x01, 0x28, 0x03, 0x52, 0x0f, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x45, 0x78, 0x70, 0x69, 0x72, 0x65,
+ 0x54, 0x69, 0x6d, 0x65, 0x12, 0x27, 0x0a, 0x0f, 0x63, 0x61, 0x72, 0x64, 0x5f, 0x63, 0x68, 0x61,
+ 0x6e, 0x67, 0x65, 0x61, 0x62, 0x6c, 0x65, 0x18, 0x0f, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0e, 0x63,
+ 0x61, 0x72, 0x64, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x61, 0x62, 0x6c, 0x65, 0x22, 0x32, 0x0a,
+ 0x15, 0x47, 0x65, 0x74, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x4c,
+ 0x69, 0x73, 0x74, 0x52, 0x65, 0x71, 0x12, 0x19, 0x0a, 0x08, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x5f,
+ 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x07, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x49,
+ 0x64, 0x22, 0x8b, 0x04, 0x0a, 0x16, 0x47, 0x65, 0x74, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x4d, 0x65,
+ 0x6d, 0x62, 0x65, 0x72, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x12, 0x4d, 0x0a, 0x0c,
+ 0x67, 0x72, 0x6f, 0x75, 0x70, 0x5f, 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x18, 0x01, 0x20, 0x03,
+ 0x28, 0x0b, 0x32, 0x2a, 0x2e, 0x6f, 0x6e, 0x65, 0x62, 0x6f, 0x74, 0x2e, 0x47, 0x65, 0x74, 0x47,
+ 0x72, 0x6f, 0x75, 0x70, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65,
+ 0x73, 0x70, 0x2e, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x52, 0x0b,
+ 0x67, 0x72, 0x6f, 0x75, 0x70, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x1a, 0xa1, 0x03, 0x0a, 0x0b,
+ 0x47, 0x72, 0x6f, 0x75, 0x70, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x12, 0x19, 0x0a, 0x08, 0x67,
+ 0x72, 0x6f, 0x75, 0x70, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x07, 0x67,
+ 0x72, 0x6f, 0x75, 0x70, 0x49, 0x64, 0x12, 0x17, 0x0a, 0x07, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69,
+ 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x12,
+ 0x1a, 0x0a, 0x08, 0x6e, 0x69, 0x63, 0x6b, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28,
+ 0x09, 0x52, 0x08, 0x6e, 0x69, 0x63, 0x6b, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x63,
+ 0x61, 0x72, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x63, 0x61, 0x72, 0x64, 0x12,
+ 0x10, 0x0a, 0x03, 0x73, 0x65, 0x78, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x73, 0x65,
+ 0x78, 0x12, 0x10, 0x0a, 0x03, 0x61, 0x67, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x05, 0x52, 0x03,
+ 0x61, 0x67, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x61, 0x72, 0x65, 0x61, 0x18, 0x07, 0x20, 0x01, 0x28,
+ 0x09, 0x52, 0x04, 0x61, 0x72, 0x65, 0x61, 0x12, 0x1b, 0x0a, 0x09, 0x6a, 0x6f, 0x69, 0x6e, 0x5f,
+ 0x74, 0x69, 0x6d, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 0x03, 0x52, 0x08, 0x6a, 0x6f, 0x69, 0x6e,
+ 0x54, 0x69, 0x6d, 0x65, 0x12, 0x24, 0x0a, 0x0e, 0x6c, 0x61, 0x73, 0x74, 0x5f, 0x73, 0x65, 0x6e,
+ 0x74, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x09, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0c, 0x6c, 0x61,
+ 0x73, 0x74, 0x53, 0x65, 0x6e, 0x74, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x6c, 0x65,
+ 0x76, 0x65, 0x6c, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6c, 0x65, 0x76, 0x65, 0x6c,
+ 0x12, 0x12, 0x0a, 0x04, 0x72, 0x6f, 0x6c, 0x65, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04,
+ 0x72, 0x6f, 0x6c, 0x65, 0x12, 0x1e, 0x0a, 0x0a, 0x75, 0x6e, 0x66, 0x72, 0x69, 0x65, 0x6e, 0x64,
+ 0x6c, 0x79, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0a, 0x75, 0x6e, 0x66, 0x72, 0x69, 0x65,
+ 0x6e, 0x64, 0x6c, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x18, 0x0d, 0x20,
+ 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x12, 0x2a, 0x0a, 0x11, 0x74, 0x69,
+ 0x74, 0x6c, 0x65, 0x5f, 0x65, 0x78, 0x70, 0x69, 0x72, 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18,
+ 0x0e, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0f, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x45, 0x78, 0x70, 0x69,
+ 0x72, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x27, 0x0a, 0x0f, 0x63, 0x61, 0x72, 0x64, 0x5f, 0x63,
+ 0x68, 0x61, 0x6e, 0x67, 0x65, 0x61, 0x62, 0x6c, 0x65, 0x18, 0x0f, 0x20, 0x01, 0x28, 0x08, 0x52,
+ 0x0e, 0x63, 0x61, 0x72, 0x64, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x61, 0x62, 0x6c, 0x65, 0x22,
+ 0x45, 0x0a, 0x14, 0x47, 0x65, 0x74, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x48, 0x6f, 0x6e, 0x6f, 0x72,
+ 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x71, 0x12, 0x19, 0x0a, 0x08, 0x67, 0x72, 0x6f, 0x75, 0x70,
+ 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x07, 0x67, 0x72, 0x6f, 0x75, 0x70,
+ 0x49, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09,
+ 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x22, 0xd1, 0x05, 0x0a, 0x15, 0x47, 0x65, 0x74, 0x47, 0x72,
+ 0x6f, 0x75, 0x70, 0x48, 0x6f, 0x6e, 0x6f, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x73, 0x70,
+ 0x12, 0x19, 0x0a, 0x08, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01,
+ 0x28, 0x03, 0x52, 0x07, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x49, 0x64, 0x12, 0x5b, 0x0a, 0x11, 0x63,
+ 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x5f, 0x74, 0x61, 0x6c, 0x6b, 0x61, 0x74, 0x69, 0x76, 0x65,
+ 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2e, 0x2e, 0x6f, 0x6e, 0x65, 0x62, 0x6f, 0x74, 0x2e,
+ 0x47, 0x65, 0x74, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x48, 0x6f, 0x6e, 0x6f, 0x72, 0x49, 0x6e, 0x66,
+ 0x6f, 0x52, 0x65, 0x73, 0x70, 0x2e, 0x43, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x54, 0x61, 0x6c,
+ 0x6b, 0x61, 0x74, 0x69, 0x76, 0x65, 0x52, 0x10, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x54,
+ 0x61, 0x6c, 0x6b, 0x61, 0x74, 0x69, 0x76, 0x65, 0x12, 0x41, 0x0a, 0x09, 0x74, 0x61, 0x6c, 0x6b,
+ 0x61, 0x74, 0x69, 0x76, 0x65, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x6f, 0x6e,
+ 0x65, 0x62, 0x6f, 0x74, 0x2e, 0x47, 0x65, 0x74, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x48, 0x6f, 0x6e,
+ 0x6f, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x73, 0x70, 0x2e, 0x48, 0x6f, 0x6e, 0x6f, 0x72,
+ 0x52, 0x09, 0x74, 0x61, 0x6c, 0x6b, 0x61, 0x74, 0x69, 0x76, 0x65, 0x12, 0x41, 0x0a, 0x09, 0x70,
+ 0x65, 0x72, 0x66, 0x6f, 0x72, 0x6d, 0x65, 0x72, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x23,
+ 0x2e, 0x6f, 0x6e, 0x65, 0x62, 0x6f, 0x74, 0x2e, 0x47, 0x65, 0x74, 0x47, 0x72, 0x6f, 0x75, 0x70,
+ 0x48, 0x6f, 0x6e, 0x6f, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x73, 0x70, 0x2e, 0x48, 0x6f,
+ 0x6e, 0x6f, 0x72, 0x52, 0x09, 0x70, 0x65, 0x72, 0x66, 0x6f, 0x72, 0x6d, 0x65, 0x72, 0x12, 0x3b,
+ 0x0a, 0x06, 0x6c, 0x65, 0x67, 0x65, 0x6e, 0x64, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x23,
+ 0x2e, 0x6f, 0x6e, 0x65, 0x62, 0x6f, 0x74, 0x2e, 0x47, 0x65, 0x74, 0x47, 0x72, 0x6f, 0x75, 0x70,
+ 0x48, 0x6f, 0x6e, 0x6f, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x73, 0x70, 0x2e, 0x48, 0x6f,
+ 0x6e, 0x6f, 0x72, 0x52, 0x06, 0x6c, 0x65, 0x67, 0x65, 0x6e, 0x64, 0x12, 0x48, 0x0a, 0x0d, 0x73,
+ 0x74, 0x72, 0x6f, 0x6e, 0x67, 0x5f, 0x6e, 0x65, 0x77, 0x62, 0x69, 0x65, 0x18, 0x06, 0x20, 0x03,
+ 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x6f, 0x6e, 0x65, 0x62, 0x6f, 0x74, 0x2e, 0x47, 0x65, 0x74, 0x47,
+ 0x72, 0x6f, 0x75, 0x70, 0x48, 0x6f, 0x6e, 0x6f, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x73,
+ 0x70, 0x2e, 0x48, 0x6f, 0x6e, 0x6f, 0x72, 0x52, 0x0c, 0x73, 0x74, 0x72, 0x6f, 0x6e, 0x67, 0x4e,
+ 0x65, 0x77, 0x62, 0x69, 0x65, 0x12, 0x3d, 0x0a, 0x07, 0x65, 0x6d, 0x6f, 0x74, 0x69, 0x6f, 0x6e,
+ 0x18, 0x07, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x6f, 0x6e, 0x65, 0x62, 0x6f, 0x74, 0x2e,
+ 0x47, 0x65, 0x74, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x48, 0x6f, 0x6e, 0x6f, 0x72, 0x49, 0x6e, 0x66,
+ 0x6f, 0x52, 0x65, 0x73, 0x70, 0x2e, 0x48, 0x6f, 0x6e, 0x6f, 0x72, 0x52, 0x07, 0x65, 0x6d, 0x6f,
+ 0x74, 0x69, 0x6f, 0x6e, 0x1a, 0x7c, 0x0a, 0x10, 0x43, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x54,
+ 0x61, 0x6c, 0x6b, 0x61, 0x74, 0x69, 0x76, 0x65, 0x12, 0x17, 0x0a, 0x07, 0x75, 0x73, 0x65, 0x72,
+ 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49,
+ 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x6e, 0x69, 0x63, 0x6b, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20,
+ 0x01, 0x28, 0x09, 0x52, 0x08, 0x6e, 0x69, 0x63, 0x6b, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x16, 0x0a,
+ 0x06, 0x61, 0x76, 0x61, 0x74, 0x61, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x61,
+ 0x76, 0x61, 0x74, 0x61, 0x72, 0x12, 0x1b, 0x0a, 0x09, 0x64, 0x61, 0x79, 0x5f, 0x63, 0x6f, 0x75,
+ 0x6e, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x64, 0x61, 0x79, 0x43, 0x6f, 0x75,
+ 0x6e, 0x74, 0x1a, 0x76, 0x0a, 0x05, 0x48, 0x6f, 0x6e, 0x6f, 0x72, 0x12, 0x17, 0x0a, 0x07, 0x75,
+ 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x75, 0x73,
+ 0x65, 0x72, 0x49, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x6e, 0x69, 0x63, 0x6b, 0x6e, 0x61, 0x6d, 0x65,
+ 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6e, 0x69, 0x63, 0x6b, 0x6e, 0x61, 0x6d, 0x65,
+ 0x12, 0x16, 0x0a, 0x06, 0x61, 0x76, 0x61, 0x74, 0x61, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09,
+ 0x52, 0x06, 0x61, 0x76, 0x61, 0x74, 0x61, 0x72, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63,
+ 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64,
+ 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x27, 0x0a, 0x0d, 0x47, 0x65,
+ 0x74, 0x43, 0x6f, 0x6f, 0x6b, 0x69, 0x65, 0x73, 0x52, 0x65, 0x71, 0x12, 0x16, 0x0a, 0x06, 0x64,
+ 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x64, 0x6f, 0x6d,
+ 0x61, 0x69, 0x6e, 0x22, 0x2a, 0x0a, 0x0e, 0x47, 0x65, 0x74, 0x43, 0x6f, 0x6f, 0x6b, 0x69, 0x65,
+ 0x73, 0x52, 0x65, 0x73, 0x70, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x6f, 0x6f, 0x6b, 0x69, 0x65, 0x73,
+ 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x6f, 0x6f, 0x6b, 0x69, 0x65, 0x73, 0x22,
+ 0x11, 0x0a, 0x0f, 0x47, 0x65, 0x74, 0x43, 0x73, 0x72, 0x66, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52,
+ 0x65, 0x71, 0x22, 0x28, 0x0a, 0x10, 0x47, 0x65, 0x74, 0x43, 0x73, 0x72, 0x66, 0x54, 0x6f, 0x6b,
+ 0x65, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18,
+ 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x2b, 0x0a, 0x11,
+ 0x47, 0x65, 0x74, 0x43, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x73, 0x52, 0x65,
+ 0x71, 0x12, 0x16, 0x0a, 0x06, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28,
+ 0x09, 0x52, 0x06, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x22, 0x4d, 0x0a, 0x12, 0x47, 0x65, 0x74,
+ 0x43, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x73, 0x52, 0x65, 0x73, 0x70, 0x12,
+ 0x18, 0x0a, 0x07, 0x63, 0x6f, 0x6f, 0x6b, 0x69, 0x65, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09,
+ 0x52, 0x07, 0x63, 0x6f, 0x6f, 0x6b, 0x69, 0x65, 0x73, 0x12, 0x1d, 0x0a, 0x0a, 0x63, 0x73, 0x72,
+ 0x66, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x09, 0x63,
+ 0x73, 0x72, 0x66, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x41, 0x0a, 0x0c, 0x47, 0x65, 0x74, 0x52,
+ 0x65, 0x63, 0x6f, 0x72, 0x64, 0x52, 0x65, 0x71, 0x12, 0x12, 0x0a, 0x04, 0x66, 0x69, 0x6c, 0x65,
+ 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x66, 0x69, 0x6c, 0x65, 0x12, 0x1d, 0x0a, 0x0a,
+ 0x6f, 0x75, 0x74, 0x5f, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09,
+ 0x52, 0x09, 0x6f, 0x75, 0x74, 0x46, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x22, 0x23, 0x0a, 0x0d, 0x47,
+ 0x65, 0x74, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x52, 0x65, 0x73, 0x70, 0x12, 0x12, 0x0a, 0x04,
+ 0x66, 0x69, 0x6c, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x66, 0x69, 0x6c, 0x65,
+ 0x22, 0x21, 0x0a, 0x0b, 0x47, 0x65, 0x74, 0x49, 0x6d, 0x61, 0x67, 0x65, 0x52, 0x65, 0x71, 0x12,
+ 0x12, 0x0a, 0x04, 0x66, 0x69, 0x6c, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x66,
+ 0x69, 0x6c, 0x65, 0x22, 0x22, 0x0a, 0x0c, 0x47, 0x65, 0x74, 0x49, 0x6d, 0x61, 0x67, 0x65, 0x52,
+ 0x65, 0x73, 0x70, 0x12, 0x12, 0x0a, 0x04, 0x66, 0x69, 0x6c, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28,
+ 0x09, 0x52, 0x04, 0x66, 0x69, 0x6c, 0x65, 0x22, 0x11, 0x0a, 0x0f, 0x43, 0x61, 0x6e, 0x53, 0x65,
+ 0x6e, 0x64, 0x49, 0x6d, 0x61, 0x67, 0x65, 0x52, 0x65, 0x71, 0x22, 0x24, 0x0a, 0x10, 0x43, 0x61,
+ 0x6e, 0x53, 0x65, 0x6e, 0x64, 0x49, 0x6d, 0x61, 0x67, 0x65, 0x52, 0x65, 0x73, 0x70, 0x12, 0x10,
+ 0x0a, 0x03, 0x79, 0x65, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x03, 0x79, 0x65, 0x73,
+ 0x22, 0x12, 0x0a, 0x10, 0x43, 0x61, 0x6e, 0x53, 0x65, 0x6e, 0x64, 0x52, 0x65, 0x63, 0x6f, 0x72,
+ 0x64, 0x52, 0x65, 0x71, 0x22, 0x25, 0x0a, 0x11, 0x43, 0x61, 0x6e, 0x53, 0x65, 0x6e, 0x64, 0x52,
+ 0x65, 0x63, 0x6f, 0x72, 0x64, 0x52, 0x65, 0x73, 0x70, 0x12, 0x10, 0x0a, 0x03, 0x79, 0x65, 0x73,
+ 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x03, 0x79, 0x65, 0x73, 0x22, 0x0e, 0x0a, 0x0c, 0x47,
+ 0x65, 0x74, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x71, 0x22, 0x3b, 0x0a, 0x0d, 0x47,
+ 0x65, 0x74, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x73, 0x70, 0x12, 0x16, 0x0a, 0x06,
+ 0x6f, 0x6e, 0x6c, 0x69, 0x6e, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x06, 0x6f, 0x6e,
+ 0x6c, 0x69, 0x6e, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x67, 0x6f, 0x6f, 0x64, 0x18, 0x02, 0x20, 0x01,
+ 0x28, 0x08, 0x52, 0x04, 0x67, 0x6f, 0x6f, 0x64, 0x22, 0x13, 0x0a, 0x11, 0x47, 0x65, 0x74, 0x56,
+ 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x71, 0x22, 0xf2, 0x01,
+ 0x0a, 0x12, 0x47, 0x65, 0x74, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x49, 0x6e, 0x66, 0x6f,
+ 0x52, 0x65, 0x73, 0x70, 0x12, 0x19, 0x0a, 0x08, 0x61, 0x70, 0x70, 0x5f, 0x6e, 0x61, 0x6d, 0x65,
+ 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x61, 0x70, 0x70, 0x4e, 0x61, 0x6d, 0x65, 0x12,
+ 0x1f, 0x0a, 0x0b, 0x61, 0x70, 0x70, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x02,
+ 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x61, 0x70, 0x70, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e,
+ 0x12, 0x29, 0x0a, 0x10, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x5f, 0x76, 0x65, 0x72,
+ 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x70, 0x72, 0x6f, 0x74,
+ 0x6f, 0x63, 0x6f, 0x6c, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x3b, 0x0a, 0x05, 0x65,
+ 0x78, 0x74, 0x72, 0x61, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x6f, 0x6e, 0x65,
+ 0x62, 0x6f, 0x74, 0x2e, 0x47, 0x65, 0x74, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x49, 0x6e,
+ 0x66, 0x6f, 0x52, 0x65, 0x73, 0x70, 0x2e, 0x45, 0x78, 0x74, 0x72, 0x61, 0x45, 0x6e, 0x74, 0x72,
+ 0x79, 0x52, 0x05, 0x65, 0x78, 0x74, 0x72, 0x61, 0x1a, 0x38, 0x0a, 0x0a, 0x45, 0x78, 0x74, 0x72,
+ 0x61, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20,
+ 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75,
+ 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02,
+ 0x38, 0x01, 0x22, 0x25, 0x0a, 0x0d, 0x53, 0x65, 0x74, 0x52, 0x65, 0x73, 0x74, 0x61, 0x72, 0x74,
+ 0x52, 0x65, 0x71, 0x12, 0x14, 0x0a, 0x05, 0x64, 0x65, 0x6c, 0x61, 0x79, 0x18, 0x01, 0x20, 0x01,
+ 0x28, 0x05, 0x52, 0x05, 0x64, 0x65, 0x6c, 0x61, 0x79, 0x22, 0x10, 0x0a, 0x0e, 0x53, 0x65, 0x74,
+ 0x52, 0x65, 0x73, 0x74, 0x61, 0x72, 0x74, 0x52, 0x65, 0x73, 0x70, 0x22, 0x0f, 0x0a, 0x0d, 0x43,
+ 0x6c, 0x65, 0x61, 0x6e, 0x43, 0x61, 0x63, 0x68, 0x65, 0x52, 0x65, 0x71, 0x22, 0x10, 0x0a, 0x0e,
+ 0x43, 0x6c, 0x65, 0x61, 0x6e, 0x43, 0x61, 0x63, 0x68, 0x65, 0x52, 0x65, 0x73, 0x70, 0x22, 0x2e,
+ 0x0a, 0x11, 0x53, 0x65, 0x74, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x53, 0x69, 0x67, 0x6e, 0x49, 0x6e,
+ 0x52, 0x65, 0x71, 0x12, 0x19, 0x0a, 0x08, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x5f, 0x69, 0x64, 0x18,
+ 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x07, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x49, 0x64, 0x22, 0x14,
+ 0x0a, 0x12, 0x53, 0x65, 0x74, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x53, 0x69, 0x67, 0x6e, 0x49, 0x6e,
+ 0x52, 0x65, 0x73, 0x70, 0x22, 0xec, 0x01, 0x0a, 0x0c, 0x53, 0x65, 0x6e, 0x64, 0x4d, 0x75, 0x73,
+ 0x69, 0x63, 0x52, 0x65, 0x71, 0x12, 0x19, 0x0a, 0x08, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x5f, 0x69,
+ 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x07, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x49, 0x64,
+ 0x12, 0x17, 0x0a, 0x07, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28,
+ 0x03, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x79, 0x70,
+ 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x14, 0x0a,
+ 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x69,
+ 0x74, 0x6c, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x62, 0x72, 0x69, 0x65, 0x66, 0x18, 0x05, 0x20, 0x01,
+ 0x28, 0x09, 0x52, 0x05, 0x62, 0x72, 0x69, 0x65, 0x66, 0x12, 0x18, 0x0a, 0x07, 0x73, 0x75, 0x6d,
+ 0x6d, 0x61, 0x72, 0x79, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x73, 0x75, 0x6d, 0x6d,
+ 0x61, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x72, 0x6c, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09,
+ 0x52, 0x03, 0x75, 0x72, 0x6c, 0x12, 0x1f, 0x0a, 0x0b, 0x70, 0x69, 0x63, 0x74, 0x75, 0x72, 0x65,
+ 0x5f, 0x75, 0x72, 0x6c, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x70, 0x69, 0x63, 0x74,
+ 0x75, 0x72, 0x65, 0x55, 0x72, 0x6c, 0x12, 0x1b, 0x0a, 0x09, 0x6d, 0x75, 0x73, 0x69, 0x63, 0x5f,
+ 0x75, 0x72, 0x6c, 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6d, 0x75, 0x73, 0x69, 0x63,
+ 0x55, 0x72, 0x6c, 0x22, 0x0f, 0x0a, 0x0d, 0x53, 0x65, 0x6e, 0x64, 0x4d, 0x75, 0x73, 0x69, 0x63,
+ 0x52, 0x65, 0x73, 0x70, 0x22, 0x44, 0x0a, 0x10, 0x53, 0x65, 0x6e, 0x64, 0x47, 0x72, 0x6f, 0x75,
+ 0x70, 0x50, 0x6f, 0x6b, 0x65, 0x52, 0x65, 0x71, 0x12, 0x15, 0x0a, 0x06, 0x74, 0x6f, 0x5f, 0x75,
+ 0x69, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x74, 0x6f, 0x55, 0x69, 0x6e, 0x12,
+ 0x19, 0x0a, 0x08, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28,
+ 0x03, 0x52, 0x07, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x49, 0x64, 0x22, 0x13, 0x0a, 0x11, 0x53, 0x65,
+ 0x6e, 0x64, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x50, 0x6f, 0x6b, 0x65, 0x52, 0x65, 0x73, 0x70, 0x22,
+ 0x43, 0x0a, 0x11, 0x53, 0x65, 0x6e, 0x64, 0x46, 0x72, 0x69, 0x65, 0x6e, 0x64, 0x50, 0x6f, 0x6b,
+ 0x65, 0x52, 0x65, 0x71, 0x12, 0x15, 0x0a, 0x06, 0x74, 0x6f, 0x5f, 0x75, 0x69, 0x6e, 0x18, 0x01,
+ 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x74, 0x6f, 0x55, 0x69, 0x6e, 0x12, 0x17, 0x0a, 0x07, 0x61,
+ 0x69, 0x6f, 0x5f, 0x75, 0x69, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x61, 0x69,
+ 0x6f, 0x55, 0x69, 0x6e, 0x22, 0x14, 0x0a, 0x12, 0x53, 0x65, 0x6e, 0x64, 0x46, 0x72, 0x69, 0x65,
+ 0x6e, 0x64, 0x50, 0x6f, 0x6b, 0x65, 0x52, 0x65, 0x73, 0x70, 0x42, 0x0a, 0x5a, 0x08, 0x2e, 0x2f,
+ 0x6f, 0x6e, 0x65, 0x62, 0x6f, 0x74, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
}
-func (m *GetStrangerInfoReq) Marshal() (dAtA []byte, err error) {
- size := m.Size()
- dAtA = make([]byte, size)
- n, err := m.MarshalToSizedBuffer(dAtA[:size])
- if err != nil {
- return nil, err
- }
- return dAtA[:n], nil
-}
+var (
+ file_onebot_api_proto_rawDescOnce sync.Once
+ file_onebot_api_proto_rawDescData = file_onebot_api_proto_rawDesc
+)
-func (m *GetStrangerInfoReq) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
+func file_onebot_api_proto_rawDescGZIP() []byte {
+ file_onebot_api_proto_rawDescOnce.Do(func() {
+ file_onebot_api_proto_rawDescData = protoimpl.X.CompressGZIP(file_onebot_api_proto_rawDescData)
+ })
+ return file_onebot_api_proto_rawDescData
+}
+
+var file_onebot_api_proto_msgTypes = make([]protoimpl.MessageInfo, 94)
+var file_onebot_api_proto_goTypes = []interface{}{
+ (*SendPrivateMsgReq)(nil), // 0: onebot.SendPrivateMsgReq
+ (*SendPrivateMsgResp)(nil), // 1: onebot.SendPrivateMsgResp
+ (*SendGroupMsgReq)(nil), // 2: onebot.SendGroupMsgReq
+ (*SendGroupMsgResp)(nil), // 3: onebot.SendGroupMsgResp
+ (*SendChannelMsgReq)(nil), // 4: onebot.SendChannelMsgReq
+ (*SendChannelMsgResp)(nil), // 5: onebot.SendChannelMsgResp
+ (*SendMsgReq)(nil), // 6: onebot.SendMsgReq
+ (*SendMsgResp)(nil), // 7: onebot.SendMsgResp
+ (*DeleteMsgReq)(nil), // 8: onebot.DeleteMsgReq
+ (*DeleteMsgResp)(nil), // 9: onebot.DeleteMsgResp
+ (*GetMsgReq)(nil), // 10: onebot.GetMsgReq
+ (*GetMsgResp)(nil), // 11: onebot.GetMsgResp
+ (*GetForwardMsgReq)(nil), // 12: onebot.GetForwardMsgReq
+ (*GetForwardMsgResp)(nil), // 13: onebot.GetForwardMsgResp
+ (*SendLikeReq)(nil), // 14: onebot.SendLikeReq
+ (*SendLikeResp)(nil), // 15: onebot.SendLikeResp
+ (*SetGroupKickReq)(nil), // 16: onebot.SetGroupKickReq
+ (*SetGroupKickResp)(nil), // 17: onebot.SetGroupKickResp
+ (*SetGroupBanReq)(nil), // 18: onebot.SetGroupBanReq
+ (*SetGroupBanResp)(nil), // 19: onebot.SetGroupBanResp
+ (*SetGroupAnonymousBanReq)(nil), // 20: onebot.SetGroupAnonymousBanReq
+ (*SetGroupAnonymousBanResp)(nil), // 21: onebot.SetGroupAnonymousBanResp
+ (*SetGroupWholeBanReq)(nil), // 22: onebot.SetGroupWholeBanReq
+ (*SetGroupWholeBanResp)(nil), // 23: onebot.SetGroupWholeBanResp
+ (*SetGroupAdminReq)(nil), // 24: onebot.SetGroupAdminReq
+ (*SetGroupAdminResp)(nil), // 25: onebot.SetGroupAdminResp
+ (*SetGroupAnonymousReq)(nil), // 26: onebot.SetGroupAnonymousReq
+ (*SetGroupAnonymousResp)(nil), // 27: onebot.SetGroupAnonymousResp
+ (*SetGroupCardReq)(nil), // 28: onebot.SetGroupCardReq
+ (*SetGroupCardResp)(nil), // 29: onebot.SetGroupCardResp
+ (*SetGroupNameReq)(nil), // 30: onebot.SetGroupNameReq
+ (*SetGroupNameResp)(nil), // 31: onebot.SetGroupNameResp
+ (*SetGroupLeaveReq)(nil), // 32: onebot.SetGroupLeaveReq
+ (*SetGroupLeaveResp)(nil), // 33: onebot.SetGroupLeaveResp
+ (*SetGroupSpecialTitleReq)(nil), // 34: onebot.SetGroupSpecialTitleReq
+ (*SetGroupSpecialTitleResp)(nil), // 35: onebot.SetGroupSpecialTitleResp
+ (*SetFriendAddRequestReq)(nil), // 36: onebot.SetFriendAddRequestReq
+ (*SetFriendAddRequestResp)(nil), // 37: onebot.SetFriendAddRequestResp
+ (*SetGroupAddRequestReq)(nil), // 38: onebot.SetGroupAddRequestReq
+ (*SetGroupAddRequestResp)(nil), // 39: onebot.SetGroupAddRequestResp
+ (*GetLoginInfoReq)(nil), // 40: onebot.GetLoginInfoReq
+ (*GetLoginInfoResp)(nil), // 41: onebot.GetLoginInfoResp
+ (*GetStrangerInfoReq)(nil), // 42: onebot.GetStrangerInfoReq
+ (*GetStrangerInfoResp)(nil), // 43: onebot.GetStrangerInfoResp
+ (*GetFriendListReq)(nil), // 44: onebot.GetFriendListReq
+ (*GetFriendListResp)(nil), // 45: onebot.GetFriendListResp
+ (*GetGroupInfoReq)(nil), // 46: onebot.GetGroupInfoReq
+ (*GetGroupInfoResp)(nil), // 47: onebot.GetGroupInfoResp
+ (*GetGroupListReq)(nil), // 48: onebot.GetGroupListReq
+ (*GetGroupListResp)(nil), // 49: onebot.GetGroupListResp
+ (*GetGroupMemberInfoReq)(nil), // 50: onebot.GetGroupMemberInfoReq
+ (*GetGroupMemberInfoResp)(nil), // 51: onebot.GetGroupMemberInfoResp
+ (*GetGroupMemberListReq)(nil), // 52: onebot.GetGroupMemberListReq
+ (*GetGroupMemberListResp)(nil), // 53: onebot.GetGroupMemberListResp
+ (*GetGroupHonorInfoReq)(nil), // 54: onebot.GetGroupHonorInfoReq
+ (*GetGroupHonorInfoResp)(nil), // 55: onebot.GetGroupHonorInfoResp
+ (*GetCookiesReq)(nil), // 56: onebot.GetCookiesReq
+ (*GetCookiesResp)(nil), // 57: onebot.GetCookiesResp
+ (*GetCsrfTokenReq)(nil), // 58: onebot.GetCsrfTokenReq
+ (*GetCsrfTokenResp)(nil), // 59: onebot.GetCsrfTokenResp
+ (*GetCredentialsReq)(nil), // 60: onebot.GetCredentialsReq
+ (*GetCredentialsResp)(nil), // 61: onebot.GetCredentialsResp
+ (*GetRecordReq)(nil), // 62: onebot.GetRecordReq
+ (*GetRecordResp)(nil), // 63: onebot.GetRecordResp
+ (*GetImageReq)(nil), // 64: onebot.GetImageReq
+ (*GetImageResp)(nil), // 65: onebot.GetImageResp
+ (*CanSendImageReq)(nil), // 66: onebot.CanSendImageReq
+ (*CanSendImageResp)(nil), // 67: onebot.CanSendImageResp
+ (*CanSendRecordReq)(nil), // 68: onebot.CanSendRecordReq
+ (*CanSendRecordResp)(nil), // 69: onebot.CanSendRecordResp
+ (*GetStatusReq)(nil), // 70: onebot.GetStatusReq
+ (*GetStatusResp)(nil), // 71: onebot.GetStatusResp
+ (*GetVersionInfoReq)(nil), // 72: onebot.GetVersionInfoReq
+ (*GetVersionInfoResp)(nil), // 73: onebot.GetVersionInfoResp
+ (*SetRestartReq)(nil), // 74: onebot.SetRestartReq
+ (*SetRestartResp)(nil), // 75: onebot.SetRestartResp
+ (*CleanCacheReq)(nil), // 76: onebot.CleanCacheReq
+ (*CleanCacheResp)(nil), // 77: onebot.CleanCacheResp
+ (*SetGroupSignInReq)(nil), // 78: onebot.SetGroupSignInReq
+ (*SetGroupSignInResp)(nil), // 79: onebot.SetGroupSignInResp
+ (*SendMusicReq)(nil), // 80: onebot.SendMusicReq
+ (*SendMusicResp)(nil), // 81: onebot.SendMusicResp
+ (*SendGroupPokeReq)(nil), // 82: onebot.SendGroupPokeReq
+ (*SendGroupPokeResp)(nil), // 83: onebot.SendGroupPokeResp
+ (*SendFriendPokeReq)(nil), // 84: onebot.SendFriendPokeReq
+ (*SendFriendPokeResp)(nil), // 85: onebot.SendFriendPokeResp
+ (*GetMsgResp_Sender)(nil), // 86: onebot.GetMsgResp.Sender
+ (*SetGroupAnonymousBanReq_Anonymous)(nil), // 87: onebot.SetGroupAnonymousBanReq.Anonymous
+ (*GetFriendListResp_Friend)(nil), // 88: onebot.GetFriendListResp.Friend
+ (*GetGroupListResp_Group)(nil), // 89: onebot.GetGroupListResp.Group
+ (*GetGroupMemberListResp_GroupMember)(nil), // 90: onebot.GetGroupMemberListResp.GroupMember
+ (*GetGroupHonorInfoResp_CurrentTalkative)(nil), // 91: onebot.GetGroupHonorInfoResp.CurrentTalkative
+ (*GetGroupHonorInfoResp_Honor)(nil), // 92: onebot.GetGroupHonorInfoResp.Honor
+ nil, // 93: onebot.GetVersionInfoResp.ExtraEntry
+ (*Message)(nil), // 94: onebot.Message
+ (*MessageReceipt)(nil), // 95: onebot.MessageReceipt
+}
+var file_onebot_api_proto_depIdxs = []int32{
+ 94, // 0: onebot.SendPrivateMsgReq.message:type_name -> onebot.Message
+ 95, // 1: onebot.SendPrivateMsgResp.message_receipt:type_name -> onebot.MessageReceipt
+ 94, // 2: onebot.SendGroupMsgReq.message:type_name -> onebot.Message
+ 95, // 3: onebot.SendGroupMsgResp.message_receipt:type_name -> onebot.MessageReceipt
+ 94, // 4: onebot.SendChannelMsgReq.message:type_name -> onebot.Message
+ 94, // 5: onebot.SendMsgReq.message:type_name -> onebot.Message
+ 95, // 6: onebot.SendMsgResp.message_receipt:type_name -> onebot.MessageReceipt
+ 95, // 7: onebot.DeleteMsgReq.message_receipt:type_name -> onebot.MessageReceipt
+ 86, // 8: onebot.GetMsgResp.sender:type_name -> onebot.GetMsgResp.Sender
+ 94, // 9: onebot.GetMsgResp.message:type_name -> onebot.Message
+ 87, // 10: onebot.SetGroupAnonymousBanReq.anonymous:type_name -> onebot.SetGroupAnonymousBanReq.Anonymous
+ 88, // 11: onebot.GetFriendListResp.friend:type_name -> onebot.GetFriendListResp.Friend
+ 89, // 12: onebot.GetGroupListResp.group:type_name -> onebot.GetGroupListResp.Group
+ 90, // 13: onebot.GetGroupMemberListResp.group_member:type_name -> onebot.GetGroupMemberListResp.GroupMember
+ 91, // 14: onebot.GetGroupHonorInfoResp.current_talkative:type_name -> onebot.GetGroupHonorInfoResp.CurrentTalkative
+ 92, // 15: onebot.GetGroupHonorInfoResp.talkative:type_name -> onebot.GetGroupHonorInfoResp.Honor
+ 92, // 16: onebot.GetGroupHonorInfoResp.performer:type_name -> onebot.GetGroupHonorInfoResp.Honor
+ 92, // 17: onebot.GetGroupHonorInfoResp.legend:type_name -> onebot.GetGroupHonorInfoResp.Honor
+ 92, // 18: onebot.GetGroupHonorInfoResp.strong_newbie:type_name -> onebot.GetGroupHonorInfoResp.Honor
+ 92, // 19: onebot.GetGroupHonorInfoResp.emotion:type_name -> onebot.GetGroupHonorInfoResp.Honor
+ 93, // 20: onebot.GetVersionInfoResp.extra:type_name -> onebot.GetVersionInfoResp.ExtraEntry
+ 21, // [21:21] is the sub-list for method output_type
+ 21, // [21:21] is the sub-list for method input_type
+ 21, // [21:21] is the sub-list for extension type_name
+ 21, // [21:21] is the sub-list for extension extendee
+ 0, // [0:21] is the sub-list for field type_name
+}
+
+func init() { file_onebot_api_proto_init() }
+func file_onebot_api_proto_init() {
+ if File_onebot_api_proto != nil {
+ return
+ }
+ file_onebot_base_proto_init()
+ if !protoimpl.UnsafeEnabled {
+ file_onebot_api_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*SendPrivateMsgReq); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_onebot_api_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*SendPrivateMsgResp); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_onebot_api_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*SendGroupMsgReq); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_onebot_api_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*SendGroupMsgResp); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_onebot_api_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*SendChannelMsgReq); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_onebot_api_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*SendChannelMsgResp); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_onebot_api_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*SendMsgReq); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_onebot_api_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*SendMsgResp); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_onebot_api_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*DeleteMsgReq); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_onebot_api_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*DeleteMsgResp); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_onebot_api_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*GetMsgReq); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_onebot_api_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*GetMsgResp); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_onebot_api_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*GetForwardMsgReq); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_onebot_api_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*GetForwardMsgResp); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_onebot_api_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*SendLikeReq); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_onebot_api_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*SendLikeResp); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_onebot_api_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*SetGroupKickReq); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_onebot_api_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*SetGroupKickResp); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_onebot_api_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*SetGroupBanReq); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_onebot_api_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*SetGroupBanResp); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_onebot_api_proto_msgTypes[20].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*SetGroupAnonymousBanReq); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_onebot_api_proto_msgTypes[21].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*SetGroupAnonymousBanResp); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_onebot_api_proto_msgTypes[22].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*SetGroupWholeBanReq); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_onebot_api_proto_msgTypes[23].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*SetGroupWholeBanResp); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_onebot_api_proto_msgTypes[24].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*SetGroupAdminReq); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_onebot_api_proto_msgTypes[25].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*SetGroupAdminResp); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_onebot_api_proto_msgTypes[26].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*SetGroupAnonymousReq); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_onebot_api_proto_msgTypes[27].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*SetGroupAnonymousResp); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_onebot_api_proto_msgTypes[28].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*SetGroupCardReq); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_onebot_api_proto_msgTypes[29].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*SetGroupCardResp); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_onebot_api_proto_msgTypes[30].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*SetGroupNameReq); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_onebot_api_proto_msgTypes[31].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*SetGroupNameResp); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_onebot_api_proto_msgTypes[32].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*SetGroupLeaveReq); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_onebot_api_proto_msgTypes[33].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*SetGroupLeaveResp); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_onebot_api_proto_msgTypes[34].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*SetGroupSpecialTitleReq); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_onebot_api_proto_msgTypes[35].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*SetGroupSpecialTitleResp); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_onebot_api_proto_msgTypes[36].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*SetFriendAddRequestReq); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_onebot_api_proto_msgTypes[37].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*SetFriendAddRequestResp); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_onebot_api_proto_msgTypes[38].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*SetGroupAddRequestReq); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_onebot_api_proto_msgTypes[39].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*SetGroupAddRequestResp); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_onebot_api_proto_msgTypes[40].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*GetLoginInfoReq); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_onebot_api_proto_msgTypes[41].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*GetLoginInfoResp); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_onebot_api_proto_msgTypes[42].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*GetStrangerInfoReq); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_onebot_api_proto_msgTypes[43].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*GetStrangerInfoResp); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_onebot_api_proto_msgTypes[44].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*GetFriendListReq); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_onebot_api_proto_msgTypes[45].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*GetFriendListResp); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_onebot_api_proto_msgTypes[46].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*GetGroupInfoReq); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_onebot_api_proto_msgTypes[47].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*GetGroupInfoResp); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_onebot_api_proto_msgTypes[48].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*GetGroupListReq); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_onebot_api_proto_msgTypes[49].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*GetGroupListResp); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_onebot_api_proto_msgTypes[50].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*GetGroupMemberInfoReq); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_onebot_api_proto_msgTypes[51].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*GetGroupMemberInfoResp); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_onebot_api_proto_msgTypes[52].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*GetGroupMemberListReq); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_onebot_api_proto_msgTypes[53].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*GetGroupMemberListResp); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_onebot_api_proto_msgTypes[54].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*GetGroupHonorInfoReq); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_onebot_api_proto_msgTypes[55].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*GetGroupHonorInfoResp); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_onebot_api_proto_msgTypes[56].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*GetCookiesReq); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_onebot_api_proto_msgTypes[57].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*GetCookiesResp); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_onebot_api_proto_msgTypes[58].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*GetCsrfTokenReq); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_onebot_api_proto_msgTypes[59].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*GetCsrfTokenResp); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_onebot_api_proto_msgTypes[60].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*GetCredentialsReq); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_onebot_api_proto_msgTypes[61].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*GetCredentialsResp); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_onebot_api_proto_msgTypes[62].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*GetRecordReq); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_onebot_api_proto_msgTypes[63].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*GetRecordResp); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_onebot_api_proto_msgTypes[64].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*GetImageReq); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_onebot_api_proto_msgTypes[65].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*GetImageResp); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_onebot_api_proto_msgTypes[66].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*CanSendImageReq); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_onebot_api_proto_msgTypes[67].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*CanSendImageResp); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_onebot_api_proto_msgTypes[68].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*CanSendRecordReq); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_onebot_api_proto_msgTypes[69].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*CanSendRecordResp); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_onebot_api_proto_msgTypes[70].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*GetStatusReq); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_onebot_api_proto_msgTypes[71].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*GetStatusResp); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_onebot_api_proto_msgTypes[72].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*GetVersionInfoReq); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_onebot_api_proto_msgTypes[73].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*GetVersionInfoResp); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_onebot_api_proto_msgTypes[74].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*SetRestartReq); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_onebot_api_proto_msgTypes[75].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*SetRestartResp); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_onebot_api_proto_msgTypes[76].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*CleanCacheReq); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_onebot_api_proto_msgTypes[77].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*CleanCacheResp); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_onebot_api_proto_msgTypes[78].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*SetGroupSignInReq); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_onebot_api_proto_msgTypes[79].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*SetGroupSignInResp); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_onebot_api_proto_msgTypes[80].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*SendMusicReq); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_onebot_api_proto_msgTypes[81].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*SendMusicResp); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_onebot_api_proto_msgTypes[82].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*SendGroupPokeReq); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_onebot_api_proto_msgTypes[83].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*SendGroupPokeResp); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_onebot_api_proto_msgTypes[84].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*SendFriendPokeReq); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_onebot_api_proto_msgTypes[85].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*SendFriendPokeResp); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_onebot_api_proto_msgTypes[86].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*GetMsgResp_Sender); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_onebot_api_proto_msgTypes[87].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*SetGroupAnonymousBanReq_Anonymous); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_onebot_api_proto_msgTypes[88].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*GetFriendListResp_Friend); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_onebot_api_proto_msgTypes[89].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*GetGroupListResp_Group); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_onebot_api_proto_msgTypes[90].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*GetGroupMemberListResp_GroupMember); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_onebot_api_proto_msgTypes[91].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*GetGroupHonorInfoResp_CurrentTalkative); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_onebot_api_proto_msgTypes[92].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*GetGroupHonorInfoResp_Honor); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ }
+ type x struct{}
+ out := protoimpl.TypeBuilder{
+ File: protoimpl.DescBuilder{
+ GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
+ RawDescriptor: file_onebot_api_proto_rawDesc,
+ NumEnums: 0,
+ NumMessages: 94,
+ NumExtensions: 0,
+ NumServices: 0,
+ },
+ GoTypes: file_onebot_api_proto_goTypes,
+ DependencyIndexes: file_onebot_api_proto_depIdxs,
+ MessageInfos: file_onebot_api_proto_msgTypes,
+ }.Build()
+ File_onebot_api_proto = out.File
+ file_onebot_api_proto_rawDesc = nil
+ file_onebot_api_proto_goTypes = nil
+ file_onebot_api_proto_depIdxs = nil
}
-
-func (m *GetStrangerInfoReq) MarshalToSizedBuffer(dAtA []byte) (int, error) {
- i := len(dAtA)
- _ = i
- var l int
- _ = l
- if m.XXX_unrecognized != nil {
- i -= len(m.XXX_unrecognized)
- copy(dAtA[i:], m.XXX_unrecognized)
- }
- if m.NoCache {
- i--
- if m.NoCache {
- dAtA[i] = 1
- } else {
- dAtA[i] = 0
- }
- i--
- dAtA[i] = 0x10
- }
- if m.UserId != 0 {
- i = encodeVarintOnebotApi(dAtA, i, uint64(m.UserId))
- i--
- dAtA[i] = 0x8
- }
- return len(dAtA) - i, nil
-}
-
-func (m *GetStrangerInfoResp) Marshal() (dAtA []byte, err error) {
- size := m.Size()
- dAtA = make([]byte, size)
- n, err := m.MarshalToSizedBuffer(dAtA[:size])
- if err != nil {
- return nil, err
- }
- return dAtA[:n], nil
-}
-
-func (m *GetStrangerInfoResp) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
-}
-
-func (m *GetStrangerInfoResp) MarshalToSizedBuffer(dAtA []byte) (int, error) {
- i := len(dAtA)
- _ = i
- var l int
- _ = l
- if m.XXX_unrecognized != nil {
- i -= len(m.XXX_unrecognized)
- copy(dAtA[i:], m.XXX_unrecognized)
- }
- if m.LoginDays != 0 {
- i = encodeVarintOnebotApi(dAtA, i, uint64(m.LoginDays))
- i--
- dAtA[i] = 0x30
- }
- if m.Level != 0 {
- i = encodeVarintOnebotApi(dAtA, i, uint64(m.Level))
- i--
- dAtA[i] = 0x28
- }
- if m.Age != 0 {
- i = encodeVarintOnebotApi(dAtA, i, uint64(m.Age))
- i--
- dAtA[i] = 0x20
- }
- if len(m.Sex) > 0 {
- i -= len(m.Sex)
- copy(dAtA[i:], m.Sex)
- i = encodeVarintOnebotApi(dAtA, i, uint64(len(m.Sex)))
- i--
- dAtA[i] = 0x1a
- }
- if len(m.Nickname) > 0 {
- i -= len(m.Nickname)
- copy(dAtA[i:], m.Nickname)
- i = encodeVarintOnebotApi(dAtA, i, uint64(len(m.Nickname)))
- i--
- dAtA[i] = 0x12
- }
- if m.UserId != 0 {
- i = encodeVarintOnebotApi(dAtA, i, uint64(m.UserId))
- i--
- dAtA[i] = 0x8
- }
- return len(dAtA) - i, nil
-}
-
-func (m *GetFriendListReq) Marshal() (dAtA []byte, err error) {
- size := m.Size()
- dAtA = make([]byte, size)
- n, err := m.MarshalToSizedBuffer(dAtA[:size])
- if err != nil {
- return nil, err
- }
- return dAtA[:n], nil
-}
-
-func (m *GetFriendListReq) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
-}
-
-func (m *GetFriendListReq) MarshalToSizedBuffer(dAtA []byte) (int, error) {
- i := len(dAtA)
- _ = i
- var l int
- _ = l
- if m.XXX_unrecognized != nil {
- i -= len(m.XXX_unrecognized)
- copy(dAtA[i:], m.XXX_unrecognized)
- }
- return len(dAtA) - i, nil
-}
-
-func (m *GetFriendListResp) Marshal() (dAtA []byte, err error) {
- size := m.Size()
- dAtA = make([]byte, size)
- n, err := m.MarshalToSizedBuffer(dAtA[:size])
- if err != nil {
- return nil, err
- }
- return dAtA[:n], nil
-}
-
-func (m *GetFriendListResp) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
-}
-
-func (m *GetFriendListResp) MarshalToSizedBuffer(dAtA []byte) (int, error) {
- i := len(dAtA)
- _ = i
- var l int
- _ = l
- if m.XXX_unrecognized != nil {
- i -= len(m.XXX_unrecognized)
- copy(dAtA[i:], m.XXX_unrecognized)
- }
- if len(m.Friend) > 0 {
- for iNdEx := len(m.Friend) - 1; iNdEx >= 0; iNdEx-- {
- {
- size, err := m.Friend[iNdEx].MarshalToSizedBuffer(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- i = encodeVarintOnebotApi(dAtA, i, uint64(size))
- }
- i--
- dAtA[i] = 0xa
- }
- }
- return len(dAtA) - i, nil
-}
-
-func (m *GetFriendListResp_Friend) Marshal() (dAtA []byte, err error) {
- size := m.Size()
- dAtA = make([]byte, size)
- n, err := m.MarshalToSizedBuffer(dAtA[:size])
- if err != nil {
- return nil, err
- }
- return dAtA[:n], nil
-}
-
-func (m *GetFriendListResp_Friend) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
-}
-
-func (m *GetFriendListResp_Friend) MarshalToSizedBuffer(dAtA []byte) (int, error) {
- i := len(dAtA)
- _ = i
- var l int
- _ = l
- if m.XXX_unrecognized != nil {
- i -= len(m.XXX_unrecognized)
- copy(dAtA[i:], m.XXX_unrecognized)
- }
- if len(m.Remark) > 0 {
- i -= len(m.Remark)
- copy(dAtA[i:], m.Remark)
- i = encodeVarintOnebotApi(dAtA, i, uint64(len(m.Remark)))
- i--
- dAtA[i] = 0x1a
- }
- if len(m.Nickname) > 0 {
- i -= len(m.Nickname)
- copy(dAtA[i:], m.Nickname)
- i = encodeVarintOnebotApi(dAtA, i, uint64(len(m.Nickname)))
- i--
- dAtA[i] = 0x12
- }
- if m.UserId != 0 {
- i = encodeVarintOnebotApi(dAtA, i, uint64(m.UserId))
- i--
- dAtA[i] = 0x8
- }
- return len(dAtA) - i, nil
-}
-
-func (m *GetGroupInfoReq) Marshal() (dAtA []byte, err error) {
- size := m.Size()
- dAtA = make([]byte, size)
- n, err := m.MarshalToSizedBuffer(dAtA[:size])
- if err != nil {
- return nil, err
- }
- return dAtA[:n], nil
-}
-
-func (m *GetGroupInfoReq) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
-}
-
-func (m *GetGroupInfoReq) MarshalToSizedBuffer(dAtA []byte) (int, error) {
- i := len(dAtA)
- _ = i
- var l int
- _ = l
- if m.XXX_unrecognized != nil {
- i -= len(m.XXX_unrecognized)
- copy(dAtA[i:], m.XXX_unrecognized)
- }
- if m.NoCache {
- i--
- if m.NoCache {
- dAtA[i] = 1
- } else {
- dAtA[i] = 0
- }
- i--
- dAtA[i] = 0x10
- }
- if m.GroupId != 0 {
- i = encodeVarintOnebotApi(dAtA, i, uint64(m.GroupId))
- i--
- dAtA[i] = 0x8
- }
- return len(dAtA) - i, nil
-}
-
-func (m *GetGroupInfoResp) Marshal() (dAtA []byte, err error) {
- size := m.Size()
- dAtA = make([]byte, size)
- n, err := m.MarshalToSizedBuffer(dAtA[:size])
- if err != nil {
- return nil, err
- }
- return dAtA[:n], nil
-}
-
-func (m *GetGroupInfoResp) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
-}
-
-func (m *GetGroupInfoResp) MarshalToSizedBuffer(dAtA []byte) (int, error) {
- i := len(dAtA)
- _ = i
- var l int
- _ = l
- if m.XXX_unrecognized != nil {
- i -= len(m.XXX_unrecognized)
- copy(dAtA[i:], m.XXX_unrecognized)
- }
- if m.MaxMemberCount != 0 {
- i = encodeVarintOnebotApi(dAtA, i, uint64(m.MaxMemberCount))
- i--
- dAtA[i] = 0x20
- }
- if m.MemberCount != 0 {
- i = encodeVarintOnebotApi(dAtA, i, uint64(m.MemberCount))
- i--
- dAtA[i] = 0x18
- }
- if len(m.GroupName) > 0 {
- i -= len(m.GroupName)
- copy(dAtA[i:], m.GroupName)
- i = encodeVarintOnebotApi(dAtA, i, uint64(len(m.GroupName)))
- i--
- dAtA[i] = 0x12
- }
- if m.GroupId != 0 {
- i = encodeVarintOnebotApi(dAtA, i, uint64(m.GroupId))
- i--
- dAtA[i] = 0x8
- }
- return len(dAtA) - i, nil
-}
-
-func (m *GetGroupListReq) Marshal() (dAtA []byte, err error) {
- size := m.Size()
- dAtA = make([]byte, size)
- n, err := m.MarshalToSizedBuffer(dAtA[:size])
- if err != nil {
- return nil, err
- }
- return dAtA[:n], nil
-}
-
-func (m *GetGroupListReq) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
-}
-
-func (m *GetGroupListReq) MarshalToSizedBuffer(dAtA []byte) (int, error) {
- i := len(dAtA)
- _ = i
- var l int
- _ = l
- if m.XXX_unrecognized != nil {
- i -= len(m.XXX_unrecognized)
- copy(dAtA[i:], m.XXX_unrecognized)
- }
- return len(dAtA) - i, nil
-}
-
-func (m *GetGroupListResp) Marshal() (dAtA []byte, err error) {
- size := m.Size()
- dAtA = make([]byte, size)
- n, err := m.MarshalToSizedBuffer(dAtA[:size])
- if err != nil {
- return nil, err
- }
- return dAtA[:n], nil
-}
-
-func (m *GetGroupListResp) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
-}
-
-func (m *GetGroupListResp) MarshalToSizedBuffer(dAtA []byte) (int, error) {
- i := len(dAtA)
- _ = i
- var l int
- _ = l
- if m.XXX_unrecognized != nil {
- i -= len(m.XXX_unrecognized)
- copy(dAtA[i:], m.XXX_unrecognized)
- }
- if len(m.Group) > 0 {
- for iNdEx := len(m.Group) - 1; iNdEx >= 0; iNdEx-- {
- {
- size, err := m.Group[iNdEx].MarshalToSizedBuffer(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- i = encodeVarintOnebotApi(dAtA, i, uint64(size))
- }
- i--
- dAtA[i] = 0xa
- }
- }
- return len(dAtA) - i, nil
-}
-
-func (m *GetGroupListResp_Group) Marshal() (dAtA []byte, err error) {
- size := m.Size()
- dAtA = make([]byte, size)
- n, err := m.MarshalToSizedBuffer(dAtA[:size])
- if err != nil {
- return nil, err
- }
- return dAtA[:n], nil
-}
-
-func (m *GetGroupListResp_Group) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
-}
-
-func (m *GetGroupListResp_Group) MarshalToSizedBuffer(dAtA []byte) (int, error) {
- i := len(dAtA)
- _ = i
- var l int
- _ = l
- if m.XXX_unrecognized != nil {
- i -= len(m.XXX_unrecognized)
- copy(dAtA[i:], m.XXX_unrecognized)
- }
- if m.MaxMemberCount != 0 {
- i = encodeVarintOnebotApi(dAtA, i, uint64(m.MaxMemberCount))
- i--
- dAtA[i] = 0x20
- }
- if m.MemberCount != 0 {
- i = encodeVarintOnebotApi(dAtA, i, uint64(m.MemberCount))
- i--
- dAtA[i] = 0x18
- }
- if len(m.GroupName) > 0 {
- i -= len(m.GroupName)
- copy(dAtA[i:], m.GroupName)
- i = encodeVarintOnebotApi(dAtA, i, uint64(len(m.GroupName)))
- i--
- dAtA[i] = 0x12
- }
- if m.GroupId != 0 {
- i = encodeVarintOnebotApi(dAtA, i, uint64(m.GroupId))
- i--
- dAtA[i] = 0x8
- }
- return len(dAtA) - i, nil
-}
-
-func (m *GetGroupMemberInfoReq) Marshal() (dAtA []byte, err error) {
- size := m.Size()
- dAtA = make([]byte, size)
- n, err := m.MarshalToSizedBuffer(dAtA[:size])
- if err != nil {
- return nil, err
- }
- return dAtA[:n], nil
-}
-
-func (m *GetGroupMemberInfoReq) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
-}
-
-func (m *GetGroupMemberInfoReq) MarshalToSizedBuffer(dAtA []byte) (int, error) {
- i := len(dAtA)
- _ = i
- var l int
- _ = l
- if m.XXX_unrecognized != nil {
- i -= len(m.XXX_unrecognized)
- copy(dAtA[i:], m.XXX_unrecognized)
- }
- if m.NoCache {
- i--
- if m.NoCache {
- dAtA[i] = 1
- } else {
- dAtA[i] = 0
- }
- i--
- dAtA[i] = 0x18
- }
- if m.UserId != 0 {
- i = encodeVarintOnebotApi(dAtA, i, uint64(m.UserId))
- i--
- dAtA[i] = 0x10
- }
- if m.GroupId != 0 {
- i = encodeVarintOnebotApi(dAtA, i, uint64(m.GroupId))
- i--
- dAtA[i] = 0x8
- }
- return len(dAtA) - i, nil
-}
-
-func (m *GetGroupMemberInfoResp) Marshal() (dAtA []byte, err error) {
- size := m.Size()
- dAtA = make([]byte, size)
- n, err := m.MarshalToSizedBuffer(dAtA[:size])
- if err != nil {
- return nil, err
- }
- return dAtA[:n], nil
-}
-
-func (m *GetGroupMemberInfoResp) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
-}
-
-func (m *GetGroupMemberInfoResp) MarshalToSizedBuffer(dAtA []byte) (int, error) {
- i := len(dAtA)
- _ = i
- var l int
- _ = l
- if m.XXX_unrecognized != nil {
- i -= len(m.XXX_unrecognized)
- copy(dAtA[i:], m.XXX_unrecognized)
- }
- if m.CardChangeable {
- i--
- if m.CardChangeable {
- dAtA[i] = 1
- } else {
- dAtA[i] = 0
- }
- i--
- dAtA[i] = 0x78
- }
- if m.TitleExpireTime != 0 {
- i = encodeVarintOnebotApi(dAtA, i, uint64(m.TitleExpireTime))
- i--
- dAtA[i] = 0x70
- }
- if len(m.Title) > 0 {
- i -= len(m.Title)
- copy(dAtA[i:], m.Title)
- i = encodeVarintOnebotApi(dAtA, i, uint64(len(m.Title)))
- i--
- dAtA[i] = 0x6a
- }
- if m.Unfriendly {
- i--
- if m.Unfriendly {
- dAtA[i] = 1
- } else {
- dAtA[i] = 0
- }
- i--
- dAtA[i] = 0x60
- }
- if len(m.Role) > 0 {
- i -= len(m.Role)
- copy(dAtA[i:], m.Role)
- i = encodeVarintOnebotApi(dAtA, i, uint64(len(m.Role)))
- i--
- dAtA[i] = 0x5a
- }
- if len(m.Level) > 0 {
- i -= len(m.Level)
- copy(dAtA[i:], m.Level)
- i = encodeVarintOnebotApi(dAtA, i, uint64(len(m.Level)))
- i--
- dAtA[i] = 0x52
- }
- if m.LastSentTime != 0 {
- i = encodeVarintOnebotApi(dAtA, i, uint64(m.LastSentTime))
- i--
- dAtA[i] = 0x48
- }
- if m.JoinTime != 0 {
- i = encodeVarintOnebotApi(dAtA, i, uint64(m.JoinTime))
- i--
- dAtA[i] = 0x40
- }
- if len(m.Area) > 0 {
- i -= len(m.Area)
- copy(dAtA[i:], m.Area)
- i = encodeVarintOnebotApi(dAtA, i, uint64(len(m.Area)))
- i--
- dAtA[i] = 0x3a
- }
- if m.Age != 0 {
- i = encodeVarintOnebotApi(dAtA, i, uint64(m.Age))
- i--
- dAtA[i] = 0x30
- }
- if len(m.Sex) > 0 {
- i -= len(m.Sex)
- copy(dAtA[i:], m.Sex)
- i = encodeVarintOnebotApi(dAtA, i, uint64(len(m.Sex)))
- i--
- dAtA[i] = 0x2a
- }
- if len(m.Card) > 0 {
- i -= len(m.Card)
- copy(dAtA[i:], m.Card)
- i = encodeVarintOnebotApi(dAtA, i, uint64(len(m.Card)))
- i--
- dAtA[i] = 0x22
- }
- if len(m.Nickname) > 0 {
- i -= len(m.Nickname)
- copy(dAtA[i:], m.Nickname)
- i = encodeVarintOnebotApi(dAtA, i, uint64(len(m.Nickname)))
- i--
- dAtA[i] = 0x1a
- }
- if m.UserId != 0 {
- i = encodeVarintOnebotApi(dAtA, i, uint64(m.UserId))
- i--
- dAtA[i] = 0x10
- }
- if m.GroupId != 0 {
- i = encodeVarintOnebotApi(dAtA, i, uint64(m.GroupId))
- i--
- dAtA[i] = 0x8
- }
- return len(dAtA) - i, nil
-}
-
-func (m *GetGroupMemberListReq) Marshal() (dAtA []byte, err error) {
- size := m.Size()
- dAtA = make([]byte, size)
- n, err := m.MarshalToSizedBuffer(dAtA[:size])
- if err != nil {
- return nil, err
- }
- return dAtA[:n], nil
-}
-
-func (m *GetGroupMemberListReq) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
-}
-
-func (m *GetGroupMemberListReq) MarshalToSizedBuffer(dAtA []byte) (int, error) {
- i := len(dAtA)
- _ = i
- var l int
- _ = l
- if m.XXX_unrecognized != nil {
- i -= len(m.XXX_unrecognized)
- copy(dAtA[i:], m.XXX_unrecognized)
- }
- if m.GroupId != 0 {
- i = encodeVarintOnebotApi(dAtA, i, uint64(m.GroupId))
- i--
- dAtA[i] = 0x8
- }
- return len(dAtA) - i, nil
-}
-
-func (m *GetGroupMemberListResp) Marshal() (dAtA []byte, err error) {
- size := m.Size()
- dAtA = make([]byte, size)
- n, err := m.MarshalToSizedBuffer(dAtA[:size])
- if err != nil {
- return nil, err
- }
- return dAtA[:n], nil
-}
-
-func (m *GetGroupMemberListResp) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
-}
-
-func (m *GetGroupMemberListResp) MarshalToSizedBuffer(dAtA []byte) (int, error) {
- i := len(dAtA)
- _ = i
- var l int
- _ = l
- if m.XXX_unrecognized != nil {
- i -= len(m.XXX_unrecognized)
- copy(dAtA[i:], m.XXX_unrecognized)
- }
- if len(m.GroupMember) > 0 {
- for iNdEx := len(m.GroupMember) - 1; iNdEx >= 0; iNdEx-- {
- {
- size, err := m.GroupMember[iNdEx].MarshalToSizedBuffer(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- i = encodeVarintOnebotApi(dAtA, i, uint64(size))
- }
- i--
- dAtA[i] = 0xa
- }
- }
- return len(dAtA) - i, nil
-}
-
-func (m *GetGroupMemberListResp_GroupMember) Marshal() (dAtA []byte, err error) {
- size := m.Size()
- dAtA = make([]byte, size)
- n, err := m.MarshalToSizedBuffer(dAtA[:size])
- if err != nil {
- return nil, err
- }
- return dAtA[:n], nil
-}
-
-func (m *GetGroupMemberListResp_GroupMember) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
-}
-
-func (m *GetGroupMemberListResp_GroupMember) MarshalToSizedBuffer(dAtA []byte) (int, error) {
- i := len(dAtA)
- _ = i
- var l int
- _ = l
- if m.XXX_unrecognized != nil {
- i -= len(m.XXX_unrecognized)
- copy(dAtA[i:], m.XXX_unrecognized)
- }
- if m.CardChangeable {
- i--
- if m.CardChangeable {
- dAtA[i] = 1
- } else {
- dAtA[i] = 0
- }
- i--
- dAtA[i] = 0x78
- }
- if m.TitleExpireTime != 0 {
- i = encodeVarintOnebotApi(dAtA, i, uint64(m.TitleExpireTime))
- i--
- dAtA[i] = 0x70
- }
- if len(m.Title) > 0 {
- i -= len(m.Title)
- copy(dAtA[i:], m.Title)
- i = encodeVarintOnebotApi(dAtA, i, uint64(len(m.Title)))
- i--
- dAtA[i] = 0x6a
- }
- if m.Unfriendly {
- i--
- if m.Unfriendly {
- dAtA[i] = 1
- } else {
- dAtA[i] = 0
- }
- i--
- dAtA[i] = 0x60
- }
- if len(m.Role) > 0 {
- i -= len(m.Role)
- copy(dAtA[i:], m.Role)
- i = encodeVarintOnebotApi(dAtA, i, uint64(len(m.Role)))
- i--
- dAtA[i] = 0x5a
- }
- if len(m.Level) > 0 {
- i -= len(m.Level)
- copy(dAtA[i:], m.Level)
- i = encodeVarintOnebotApi(dAtA, i, uint64(len(m.Level)))
- i--
- dAtA[i] = 0x52
- }
- if m.LastSentTime != 0 {
- i = encodeVarintOnebotApi(dAtA, i, uint64(m.LastSentTime))
- i--
- dAtA[i] = 0x48
- }
- if m.JoinTime != 0 {
- i = encodeVarintOnebotApi(dAtA, i, uint64(m.JoinTime))
- i--
- dAtA[i] = 0x40
- }
- if len(m.Area) > 0 {
- i -= len(m.Area)
- copy(dAtA[i:], m.Area)
- i = encodeVarintOnebotApi(dAtA, i, uint64(len(m.Area)))
- i--
- dAtA[i] = 0x3a
- }
- if m.Age != 0 {
- i = encodeVarintOnebotApi(dAtA, i, uint64(m.Age))
- i--
- dAtA[i] = 0x30
- }
- if len(m.Sex) > 0 {
- i -= len(m.Sex)
- copy(dAtA[i:], m.Sex)
- i = encodeVarintOnebotApi(dAtA, i, uint64(len(m.Sex)))
- i--
- dAtA[i] = 0x2a
- }
- if len(m.Card) > 0 {
- i -= len(m.Card)
- copy(dAtA[i:], m.Card)
- i = encodeVarintOnebotApi(dAtA, i, uint64(len(m.Card)))
- i--
- dAtA[i] = 0x22
- }
- if len(m.Nickname) > 0 {
- i -= len(m.Nickname)
- copy(dAtA[i:], m.Nickname)
- i = encodeVarintOnebotApi(dAtA, i, uint64(len(m.Nickname)))
- i--
- dAtA[i] = 0x1a
- }
- if m.UserId != 0 {
- i = encodeVarintOnebotApi(dAtA, i, uint64(m.UserId))
- i--
- dAtA[i] = 0x10
- }
- if m.GroupId != 0 {
- i = encodeVarintOnebotApi(dAtA, i, uint64(m.GroupId))
- i--
- dAtA[i] = 0x8
- }
- return len(dAtA) - i, nil
-}
-
-func (m *GetGroupHonorInfoReq) Marshal() (dAtA []byte, err error) {
- size := m.Size()
- dAtA = make([]byte, size)
- n, err := m.MarshalToSizedBuffer(dAtA[:size])
- if err != nil {
- return nil, err
- }
- return dAtA[:n], nil
-}
-
-func (m *GetGroupHonorInfoReq) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
-}
-
-func (m *GetGroupHonorInfoReq) MarshalToSizedBuffer(dAtA []byte) (int, error) {
- i := len(dAtA)
- _ = i
- var l int
- _ = l
- if m.XXX_unrecognized != nil {
- i -= len(m.XXX_unrecognized)
- copy(dAtA[i:], m.XXX_unrecognized)
- }
- if len(m.Type) > 0 {
- i -= len(m.Type)
- copy(dAtA[i:], m.Type)
- i = encodeVarintOnebotApi(dAtA, i, uint64(len(m.Type)))
- i--
- dAtA[i] = 0x12
- }
- if m.GroupId != 0 {
- i = encodeVarintOnebotApi(dAtA, i, uint64(m.GroupId))
- i--
- dAtA[i] = 0x8
- }
- return len(dAtA) - i, nil
-}
-
-func (m *GetGroupHonorInfoResp) Marshal() (dAtA []byte, err error) {
- size := m.Size()
- dAtA = make([]byte, size)
- n, err := m.MarshalToSizedBuffer(dAtA[:size])
- if err != nil {
- return nil, err
- }
- return dAtA[:n], nil
-}
-
-func (m *GetGroupHonorInfoResp) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
-}
-
-func (m *GetGroupHonorInfoResp) MarshalToSizedBuffer(dAtA []byte) (int, error) {
- i := len(dAtA)
- _ = i
- var l int
- _ = l
- if m.XXX_unrecognized != nil {
- i -= len(m.XXX_unrecognized)
- copy(dAtA[i:], m.XXX_unrecognized)
- }
- if len(m.Emotion) > 0 {
- for iNdEx := len(m.Emotion) - 1; iNdEx >= 0; iNdEx-- {
- {
- size, err := m.Emotion[iNdEx].MarshalToSizedBuffer(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- i = encodeVarintOnebotApi(dAtA, i, uint64(size))
- }
- i--
- dAtA[i] = 0x3a
- }
- }
- if len(m.StrongNewbie) > 0 {
- for iNdEx := len(m.StrongNewbie) - 1; iNdEx >= 0; iNdEx-- {
- {
- size, err := m.StrongNewbie[iNdEx].MarshalToSizedBuffer(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- i = encodeVarintOnebotApi(dAtA, i, uint64(size))
- }
- i--
- dAtA[i] = 0x32
- }
- }
- if len(m.Legend) > 0 {
- for iNdEx := len(m.Legend) - 1; iNdEx >= 0; iNdEx-- {
- {
- size, err := m.Legend[iNdEx].MarshalToSizedBuffer(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- i = encodeVarintOnebotApi(dAtA, i, uint64(size))
- }
- i--
- dAtA[i] = 0x2a
- }
- }
- if len(m.Performer) > 0 {
- for iNdEx := len(m.Performer) - 1; iNdEx >= 0; iNdEx-- {
- {
- size, err := m.Performer[iNdEx].MarshalToSizedBuffer(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- i = encodeVarintOnebotApi(dAtA, i, uint64(size))
- }
- i--
- dAtA[i] = 0x22
- }
- }
- if len(m.Talkative) > 0 {
- for iNdEx := len(m.Talkative) - 1; iNdEx >= 0; iNdEx-- {
- {
- size, err := m.Talkative[iNdEx].MarshalToSizedBuffer(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- i = encodeVarintOnebotApi(dAtA, i, uint64(size))
- }
- i--
- dAtA[i] = 0x1a
- }
- }
- if m.CurrentTalkative != nil {
- {
- size, err := m.CurrentTalkative.MarshalToSizedBuffer(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- i = encodeVarintOnebotApi(dAtA, i, uint64(size))
- }
- i--
- dAtA[i] = 0x12
- }
- if m.GroupId != 0 {
- i = encodeVarintOnebotApi(dAtA, i, uint64(m.GroupId))
- i--
- dAtA[i] = 0x8
- }
- return len(dAtA) - i, nil
-}
-
-func (m *GetGroupHonorInfoResp_CurrentTalkative) Marshal() (dAtA []byte, err error) {
- size := m.Size()
- dAtA = make([]byte, size)
- n, err := m.MarshalToSizedBuffer(dAtA[:size])
- if err != nil {
- return nil, err
- }
- return dAtA[:n], nil
-}
-
-func (m *GetGroupHonorInfoResp_CurrentTalkative) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
-}
-
-func (m *GetGroupHonorInfoResp_CurrentTalkative) MarshalToSizedBuffer(dAtA []byte) (int, error) {
- i := len(dAtA)
- _ = i
- var l int
- _ = l
- if m.XXX_unrecognized != nil {
- i -= len(m.XXX_unrecognized)
- copy(dAtA[i:], m.XXX_unrecognized)
- }
- if m.DayCount != 0 {
- i = encodeVarintOnebotApi(dAtA, i, uint64(m.DayCount))
- i--
- dAtA[i] = 0x20
- }
- if len(m.Avatar) > 0 {
- i -= len(m.Avatar)
- copy(dAtA[i:], m.Avatar)
- i = encodeVarintOnebotApi(dAtA, i, uint64(len(m.Avatar)))
- i--
- dAtA[i] = 0x1a
- }
- if len(m.Nickname) > 0 {
- i -= len(m.Nickname)
- copy(dAtA[i:], m.Nickname)
- i = encodeVarintOnebotApi(dAtA, i, uint64(len(m.Nickname)))
- i--
- dAtA[i] = 0x12
- }
- if m.UserId != 0 {
- i = encodeVarintOnebotApi(dAtA, i, uint64(m.UserId))
- i--
- dAtA[i] = 0x8
- }
- return len(dAtA) - i, nil
-}
-
-func (m *GetGroupHonorInfoResp_Honor) Marshal() (dAtA []byte, err error) {
- size := m.Size()
- dAtA = make([]byte, size)
- n, err := m.MarshalToSizedBuffer(dAtA[:size])
- if err != nil {
- return nil, err
- }
- return dAtA[:n], nil
-}
-
-func (m *GetGroupHonorInfoResp_Honor) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
-}
-
-func (m *GetGroupHonorInfoResp_Honor) MarshalToSizedBuffer(dAtA []byte) (int, error) {
- i := len(dAtA)
- _ = i
- var l int
- _ = l
- if m.XXX_unrecognized != nil {
- i -= len(m.XXX_unrecognized)
- copy(dAtA[i:], m.XXX_unrecognized)
- }
- if len(m.Description) > 0 {
- i -= len(m.Description)
- copy(dAtA[i:], m.Description)
- i = encodeVarintOnebotApi(dAtA, i, uint64(len(m.Description)))
- i--
- dAtA[i] = 0x22
- }
- if len(m.Avatar) > 0 {
- i -= len(m.Avatar)
- copy(dAtA[i:], m.Avatar)
- i = encodeVarintOnebotApi(dAtA, i, uint64(len(m.Avatar)))
- i--
- dAtA[i] = 0x1a
- }
- if len(m.Nickname) > 0 {
- i -= len(m.Nickname)
- copy(dAtA[i:], m.Nickname)
- i = encodeVarintOnebotApi(dAtA, i, uint64(len(m.Nickname)))
- i--
- dAtA[i] = 0x12
- }
- if m.UserId != 0 {
- i = encodeVarintOnebotApi(dAtA, i, uint64(m.UserId))
- i--
- dAtA[i] = 0x8
- }
- return len(dAtA) - i, nil
-}
-
-func (m *GetCookiesReq) Marshal() (dAtA []byte, err error) {
- size := m.Size()
- dAtA = make([]byte, size)
- n, err := m.MarshalToSizedBuffer(dAtA[:size])
- if err != nil {
- return nil, err
- }
- return dAtA[:n], nil
-}
-
-func (m *GetCookiesReq) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
-}
-
-func (m *GetCookiesReq) MarshalToSizedBuffer(dAtA []byte) (int, error) {
- i := len(dAtA)
- _ = i
- var l int
- _ = l
- if m.XXX_unrecognized != nil {
- i -= len(m.XXX_unrecognized)
- copy(dAtA[i:], m.XXX_unrecognized)
- }
- if len(m.Domain) > 0 {
- i -= len(m.Domain)
- copy(dAtA[i:], m.Domain)
- i = encodeVarintOnebotApi(dAtA, i, uint64(len(m.Domain)))
- i--
- dAtA[i] = 0xa
- }
- return len(dAtA) - i, nil
-}
-
-func (m *GetCookiesResp) Marshal() (dAtA []byte, err error) {
- size := m.Size()
- dAtA = make([]byte, size)
- n, err := m.MarshalToSizedBuffer(dAtA[:size])
- if err != nil {
- return nil, err
- }
- return dAtA[:n], nil
-}
-
-func (m *GetCookiesResp) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
-}
-
-func (m *GetCookiesResp) MarshalToSizedBuffer(dAtA []byte) (int, error) {
- i := len(dAtA)
- _ = i
- var l int
- _ = l
- if m.XXX_unrecognized != nil {
- i -= len(m.XXX_unrecognized)
- copy(dAtA[i:], m.XXX_unrecognized)
- }
- if len(m.Cookies) > 0 {
- i -= len(m.Cookies)
- copy(dAtA[i:], m.Cookies)
- i = encodeVarintOnebotApi(dAtA, i, uint64(len(m.Cookies)))
- i--
- dAtA[i] = 0xa
- }
- return len(dAtA) - i, nil
-}
-
-func (m *GetCsrfTokenReq) Marshal() (dAtA []byte, err error) {
- size := m.Size()
- dAtA = make([]byte, size)
- n, err := m.MarshalToSizedBuffer(dAtA[:size])
- if err != nil {
- return nil, err
- }
- return dAtA[:n], nil
-}
-
-func (m *GetCsrfTokenReq) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
-}
-
-func (m *GetCsrfTokenReq) MarshalToSizedBuffer(dAtA []byte) (int, error) {
- i := len(dAtA)
- _ = i
- var l int
- _ = l
- if m.XXX_unrecognized != nil {
- i -= len(m.XXX_unrecognized)
- copy(dAtA[i:], m.XXX_unrecognized)
- }
- return len(dAtA) - i, nil
-}
-
-func (m *GetCsrfTokenResp) Marshal() (dAtA []byte, err error) {
- size := m.Size()
- dAtA = make([]byte, size)
- n, err := m.MarshalToSizedBuffer(dAtA[:size])
- if err != nil {
- return nil, err
- }
- return dAtA[:n], nil
-}
-
-func (m *GetCsrfTokenResp) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
-}
-
-func (m *GetCsrfTokenResp) MarshalToSizedBuffer(dAtA []byte) (int, error) {
- i := len(dAtA)
- _ = i
- var l int
- _ = l
- if m.XXX_unrecognized != nil {
- i -= len(m.XXX_unrecognized)
- copy(dAtA[i:], m.XXX_unrecognized)
- }
- if m.Token != 0 {
- i = encodeVarintOnebotApi(dAtA, i, uint64(m.Token))
- i--
- dAtA[i] = 0x8
- }
- return len(dAtA) - i, nil
-}
-
-func (m *GetCredentialsReq) Marshal() (dAtA []byte, err error) {
- size := m.Size()
- dAtA = make([]byte, size)
- n, err := m.MarshalToSizedBuffer(dAtA[:size])
- if err != nil {
- return nil, err
- }
- return dAtA[:n], nil
-}
-
-func (m *GetCredentialsReq) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
-}
-
-func (m *GetCredentialsReq) MarshalToSizedBuffer(dAtA []byte) (int, error) {
- i := len(dAtA)
- _ = i
- var l int
- _ = l
- if m.XXX_unrecognized != nil {
- i -= len(m.XXX_unrecognized)
- copy(dAtA[i:], m.XXX_unrecognized)
- }
- if len(m.Domain) > 0 {
- i -= len(m.Domain)
- copy(dAtA[i:], m.Domain)
- i = encodeVarintOnebotApi(dAtA, i, uint64(len(m.Domain)))
- i--
- dAtA[i] = 0xa
- }
- return len(dAtA) - i, nil
-}
-
-func (m *GetCredentialsResp) Marshal() (dAtA []byte, err error) {
- size := m.Size()
- dAtA = make([]byte, size)
- n, err := m.MarshalToSizedBuffer(dAtA[:size])
- if err != nil {
- return nil, err
- }
- return dAtA[:n], nil
-}
-
-func (m *GetCredentialsResp) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
-}
-
-func (m *GetCredentialsResp) MarshalToSizedBuffer(dAtA []byte) (int, error) {
- i := len(dAtA)
- _ = i
- var l int
- _ = l
- if m.XXX_unrecognized != nil {
- i -= len(m.XXX_unrecognized)
- copy(dAtA[i:], m.XXX_unrecognized)
- }
- if m.CsrfToken != 0 {
- i = encodeVarintOnebotApi(dAtA, i, uint64(m.CsrfToken))
- i--
- dAtA[i] = 0x10
- }
- if len(m.Cookies) > 0 {
- i -= len(m.Cookies)
- copy(dAtA[i:], m.Cookies)
- i = encodeVarintOnebotApi(dAtA, i, uint64(len(m.Cookies)))
- i--
- dAtA[i] = 0xa
- }
- return len(dAtA) - i, nil
-}
-
-func (m *GetRecordReq) Marshal() (dAtA []byte, err error) {
- size := m.Size()
- dAtA = make([]byte, size)
- n, err := m.MarshalToSizedBuffer(dAtA[:size])
- if err != nil {
- return nil, err
- }
- return dAtA[:n], nil
-}
-
-func (m *GetRecordReq) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
-}
-
-func (m *GetRecordReq) MarshalToSizedBuffer(dAtA []byte) (int, error) {
- i := len(dAtA)
- _ = i
- var l int
- _ = l
- if m.XXX_unrecognized != nil {
- i -= len(m.XXX_unrecognized)
- copy(dAtA[i:], m.XXX_unrecognized)
- }
- if len(m.OutFormat) > 0 {
- i -= len(m.OutFormat)
- copy(dAtA[i:], m.OutFormat)
- i = encodeVarintOnebotApi(dAtA, i, uint64(len(m.OutFormat)))
- i--
- dAtA[i] = 0x12
- }
- if len(m.File) > 0 {
- i -= len(m.File)
- copy(dAtA[i:], m.File)
- i = encodeVarintOnebotApi(dAtA, i, uint64(len(m.File)))
- i--
- dAtA[i] = 0xa
- }
- return len(dAtA) - i, nil
-}
-
-func (m *GetRecordResp) Marshal() (dAtA []byte, err error) {
- size := m.Size()
- dAtA = make([]byte, size)
- n, err := m.MarshalToSizedBuffer(dAtA[:size])
- if err != nil {
- return nil, err
- }
- return dAtA[:n], nil
-}
-
-func (m *GetRecordResp) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
-}
-
-func (m *GetRecordResp) MarshalToSizedBuffer(dAtA []byte) (int, error) {
- i := len(dAtA)
- _ = i
- var l int
- _ = l
- if m.XXX_unrecognized != nil {
- i -= len(m.XXX_unrecognized)
- copy(dAtA[i:], m.XXX_unrecognized)
- }
- if len(m.File) > 0 {
- i -= len(m.File)
- copy(dAtA[i:], m.File)
- i = encodeVarintOnebotApi(dAtA, i, uint64(len(m.File)))
- i--
- dAtA[i] = 0xa
- }
- return len(dAtA) - i, nil
-}
-
-func (m *GetImageReq) Marshal() (dAtA []byte, err error) {
- size := m.Size()
- dAtA = make([]byte, size)
- n, err := m.MarshalToSizedBuffer(dAtA[:size])
- if err != nil {
- return nil, err
- }
- return dAtA[:n], nil
-}
-
-func (m *GetImageReq) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
-}
-
-func (m *GetImageReq) MarshalToSizedBuffer(dAtA []byte) (int, error) {
- i := len(dAtA)
- _ = i
- var l int
- _ = l
- if m.XXX_unrecognized != nil {
- i -= len(m.XXX_unrecognized)
- copy(dAtA[i:], m.XXX_unrecognized)
- }
- if len(m.File) > 0 {
- i -= len(m.File)
- copy(dAtA[i:], m.File)
- i = encodeVarintOnebotApi(dAtA, i, uint64(len(m.File)))
- i--
- dAtA[i] = 0xa
- }
- return len(dAtA) - i, nil
-}
-
-func (m *GetImageResp) Marshal() (dAtA []byte, err error) {
- size := m.Size()
- dAtA = make([]byte, size)
- n, err := m.MarshalToSizedBuffer(dAtA[:size])
- if err != nil {
- return nil, err
- }
- return dAtA[:n], nil
-}
-
-func (m *GetImageResp) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
-}
-
-func (m *GetImageResp) MarshalToSizedBuffer(dAtA []byte) (int, error) {
- i := len(dAtA)
- _ = i
- var l int
- _ = l
- if m.XXX_unrecognized != nil {
- i -= len(m.XXX_unrecognized)
- copy(dAtA[i:], m.XXX_unrecognized)
- }
- if len(m.File) > 0 {
- i -= len(m.File)
- copy(dAtA[i:], m.File)
- i = encodeVarintOnebotApi(dAtA, i, uint64(len(m.File)))
- i--
- dAtA[i] = 0xa
- }
- return len(dAtA) - i, nil
-}
-
-func (m *CanSendImageReq) Marshal() (dAtA []byte, err error) {
- size := m.Size()
- dAtA = make([]byte, size)
- n, err := m.MarshalToSizedBuffer(dAtA[:size])
- if err != nil {
- return nil, err
- }
- return dAtA[:n], nil
-}
-
-func (m *CanSendImageReq) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
-}
-
-func (m *CanSendImageReq) MarshalToSizedBuffer(dAtA []byte) (int, error) {
- i := len(dAtA)
- _ = i
- var l int
- _ = l
- if m.XXX_unrecognized != nil {
- i -= len(m.XXX_unrecognized)
- copy(dAtA[i:], m.XXX_unrecognized)
- }
- return len(dAtA) - i, nil
-}
-
-func (m *CanSendImageResp) Marshal() (dAtA []byte, err error) {
- size := m.Size()
- dAtA = make([]byte, size)
- n, err := m.MarshalToSizedBuffer(dAtA[:size])
- if err != nil {
- return nil, err
- }
- return dAtA[:n], nil
-}
-
-func (m *CanSendImageResp) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
-}
-
-func (m *CanSendImageResp) MarshalToSizedBuffer(dAtA []byte) (int, error) {
- i := len(dAtA)
- _ = i
- var l int
- _ = l
- if m.XXX_unrecognized != nil {
- i -= len(m.XXX_unrecognized)
- copy(dAtA[i:], m.XXX_unrecognized)
- }
- if m.Yes {
- i--
- if m.Yes {
- dAtA[i] = 1
- } else {
- dAtA[i] = 0
- }
- i--
- dAtA[i] = 0x8
- }
- return len(dAtA) - i, nil
-}
-
-func (m *CanSendRecordReq) Marshal() (dAtA []byte, err error) {
- size := m.Size()
- dAtA = make([]byte, size)
- n, err := m.MarshalToSizedBuffer(dAtA[:size])
- if err != nil {
- return nil, err
- }
- return dAtA[:n], nil
-}
-
-func (m *CanSendRecordReq) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
-}
-
-func (m *CanSendRecordReq) MarshalToSizedBuffer(dAtA []byte) (int, error) {
- i := len(dAtA)
- _ = i
- var l int
- _ = l
- if m.XXX_unrecognized != nil {
- i -= len(m.XXX_unrecognized)
- copy(dAtA[i:], m.XXX_unrecognized)
- }
- return len(dAtA) - i, nil
-}
-
-func (m *CanSendRecordResp) Marshal() (dAtA []byte, err error) {
- size := m.Size()
- dAtA = make([]byte, size)
- n, err := m.MarshalToSizedBuffer(dAtA[:size])
- if err != nil {
- return nil, err
- }
- return dAtA[:n], nil
-}
-
-func (m *CanSendRecordResp) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
-}
-
-func (m *CanSendRecordResp) MarshalToSizedBuffer(dAtA []byte) (int, error) {
- i := len(dAtA)
- _ = i
- var l int
- _ = l
- if m.XXX_unrecognized != nil {
- i -= len(m.XXX_unrecognized)
- copy(dAtA[i:], m.XXX_unrecognized)
- }
- if m.Yes {
- i--
- if m.Yes {
- dAtA[i] = 1
- } else {
- dAtA[i] = 0
- }
- i--
- dAtA[i] = 0x8
- }
- return len(dAtA) - i, nil
-}
-
-func (m *GetStatusReq) Marshal() (dAtA []byte, err error) {
- size := m.Size()
- dAtA = make([]byte, size)
- n, err := m.MarshalToSizedBuffer(dAtA[:size])
- if err != nil {
- return nil, err
- }
- return dAtA[:n], nil
-}
-
-func (m *GetStatusReq) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
-}
-
-func (m *GetStatusReq) MarshalToSizedBuffer(dAtA []byte) (int, error) {
- i := len(dAtA)
- _ = i
- var l int
- _ = l
- if m.XXX_unrecognized != nil {
- i -= len(m.XXX_unrecognized)
- copy(dAtA[i:], m.XXX_unrecognized)
- }
- return len(dAtA) - i, nil
-}
-
-func (m *GetStatusResp) Marshal() (dAtA []byte, err error) {
- size := m.Size()
- dAtA = make([]byte, size)
- n, err := m.MarshalToSizedBuffer(dAtA[:size])
- if err != nil {
- return nil, err
- }
- return dAtA[:n], nil
-}
-
-func (m *GetStatusResp) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
-}
-
-func (m *GetStatusResp) MarshalToSizedBuffer(dAtA []byte) (int, error) {
- i := len(dAtA)
- _ = i
- var l int
- _ = l
- if m.XXX_unrecognized != nil {
- i -= len(m.XXX_unrecognized)
- copy(dAtA[i:], m.XXX_unrecognized)
- }
- if m.Good {
- i--
- if m.Good {
- dAtA[i] = 1
- } else {
- dAtA[i] = 0
- }
- i--
- dAtA[i] = 0x10
- }
- if m.Online {
- i--
- if m.Online {
- dAtA[i] = 1
- } else {
- dAtA[i] = 0
- }
- i--
- dAtA[i] = 0x8
- }
- return len(dAtA) - i, nil
-}
-
-func (m *GetVersionInfoReq) Marshal() (dAtA []byte, err error) {
- size := m.Size()
- dAtA = make([]byte, size)
- n, err := m.MarshalToSizedBuffer(dAtA[:size])
- if err != nil {
- return nil, err
- }
- return dAtA[:n], nil
-}
-
-func (m *GetVersionInfoReq) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
-}
-
-func (m *GetVersionInfoReq) MarshalToSizedBuffer(dAtA []byte) (int, error) {
- i := len(dAtA)
- _ = i
- var l int
- _ = l
- if m.XXX_unrecognized != nil {
- i -= len(m.XXX_unrecognized)
- copy(dAtA[i:], m.XXX_unrecognized)
- }
- return len(dAtA) - i, nil
-}
-
-func (m *GetVersionInfoResp) Marshal() (dAtA []byte, err error) {
- size := m.Size()
- dAtA = make([]byte, size)
- n, err := m.MarshalToSizedBuffer(dAtA[:size])
- if err != nil {
- return nil, err
- }
- return dAtA[:n], nil
-}
-
-func (m *GetVersionInfoResp) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
-}
-
-func (m *GetVersionInfoResp) MarshalToSizedBuffer(dAtA []byte) (int, error) {
- i := len(dAtA)
- _ = i
- var l int
- _ = l
- if m.XXX_unrecognized != nil {
- i -= len(m.XXX_unrecognized)
- copy(dAtA[i:], m.XXX_unrecognized)
- }
- if len(m.Extra) > 0 {
- for k := range m.Extra {
- v := m.Extra[k]
- baseI := i
- i -= len(v)
- copy(dAtA[i:], v)
- i = encodeVarintOnebotApi(dAtA, i, uint64(len(v)))
- i--
- dAtA[i] = 0x12
- i -= len(k)
- copy(dAtA[i:], k)
- i = encodeVarintOnebotApi(dAtA, i, uint64(len(k)))
- i--
- dAtA[i] = 0xa
- i = encodeVarintOnebotApi(dAtA, i, uint64(baseI-i))
- i--
- dAtA[i] = 0x22
- }
- }
- if len(m.ProtocolVersion) > 0 {
- i -= len(m.ProtocolVersion)
- copy(dAtA[i:], m.ProtocolVersion)
- i = encodeVarintOnebotApi(dAtA, i, uint64(len(m.ProtocolVersion)))
- i--
- dAtA[i] = 0x1a
- }
- if len(m.AppVersion) > 0 {
- i -= len(m.AppVersion)
- copy(dAtA[i:], m.AppVersion)
- i = encodeVarintOnebotApi(dAtA, i, uint64(len(m.AppVersion)))
- i--
- dAtA[i] = 0x12
- }
- if len(m.AppName) > 0 {
- i -= len(m.AppName)
- copy(dAtA[i:], m.AppName)
- i = encodeVarintOnebotApi(dAtA, i, uint64(len(m.AppName)))
- i--
- dAtA[i] = 0xa
- }
- return len(dAtA) - i, nil
-}
-
-func (m *SetRestartReq) Marshal() (dAtA []byte, err error) {
- size := m.Size()
- dAtA = make([]byte, size)
- n, err := m.MarshalToSizedBuffer(dAtA[:size])
- if err != nil {
- return nil, err
- }
- return dAtA[:n], nil
-}
-
-func (m *SetRestartReq) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
-}
-
-func (m *SetRestartReq) MarshalToSizedBuffer(dAtA []byte) (int, error) {
- i := len(dAtA)
- _ = i
- var l int
- _ = l
- if m.XXX_unrecognized != nil {
- i -= len(m.XXX_unrecognized)
- copy(dAtA[i:], m.XXX_unrecognized)
- }
- if m.Delay != 0 {
- i = encodeVarintOnebotApi(dAtA, i, uint64(m.Delay))
- i--
- dAtA[i] = 0x8
- }
- return len(dAtA) - i, nil
-}
-
-func (m *SetRestartResp) Marshal() (dAtA []byte, err error) {
- size := m.Size()
- dAtA = make([]byte, size)
- n, err := m.MarshalToSizedBuffer(dAtA[:size])
- if err != nil {
- return nil, err
- }
- return dAtA[:n], nil
-}
-
-func (m *SetRestartResp) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
-}
-
-func (m *SetRestartResp) MarshalToSizedBuffer(dAtA []byte) (int, error) {
- i := len(dAtA)
- _ = i
- var l int
- _ = l
- if m.XXX_unrecognized != nil {
- i -= len(m.XXX_unrecognized)
- copy(dAtA[i:], m.XXX_unrecognized)
- }
- return len(dAtA) - i, nil
-}
-
-func (m *CleanCacheReq) Marshal() (dAtA []byte, err error) {
- size := m.Size()
- dAtA = make([]byte, size)
- n, err := m.MarshalToSizedBuffer(dAtA[:size])
- if err != nil {
- return nil, err
- }
- return dAtA[:n], nil
-}
-
-func (m *CleanCacheReq) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
-}
-
-func (m *CleanCacheReq) MarshalToSizedBuffer(dAtA []byte) (int, error) {
- i := len(dAtA)
- _ = i
- var l int
- _ = l
- if m.XXX_unrecognized != nil {
- i -= len(m.XXX_unrecognized)
- copy(dAtA[i:], m.XXX_unrecognized)
- }
- return len(dAtA) - i, nil
-}
-
-func (m *CleanCacheResp) Marshal() (dAtA []byte, err error) {
- size := m.Size()
- dAtA = make([]byte, size)
- n, err := m.MarshalToSizedBuffer(dAtA[:size])
- if err != nil {
- return nil, err
- }
- return dAtA[:n], nil
-}
-
-func (m *CleanCacheResp) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
-}
-
-func (m *CleanCacheResp) MarshalToSizedBuffer(dAtA []byte) (int, error) {
- i := len(dAtA)
- _ = i
- var l int
- _ = l
- if m.XXX_unrecognized != nil {
- i -= len(m.XXX_unrecognized)
- copy(dAtA[i:], m.XXX_unrecognized)
- }
- return len(dAtA) - i, nil
-}
-
-func (m *SetGroupSignInReq) Marshal() (dAtA []byte, err error) {
- size := m.Size()
- dAtA = make([]byte, size)
- n, err := m.MarshalToSizedBuffer(dAtA[:size])
- if err != nil {
- return nil, err
- }
- return dAtA[:n], nil
-}
-
-func (m *SetGroupSignInReq) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
-}
-
-func (m *SetGroupSignInReq) MarshalToSizedBuffer(dAtA []byte) (int, error) {
- i := len(dAtA)
- _ = i
- var l int
- _ = l
- if m.XXX_unrecognized != nil {
- i -= len(m.XXX_unrecognized)
- copy(dAtA[i:], m.XXX_unrecognized)
- }
- if m.GroupId != 0 {
- i = encodeVarintOnebotApi(dAtA, i, uint64(m.GroupId))
- i--
- dAtA[i] = 0x8
- }
- return len(dAtA) - i, nil
-}
-
-func (m *SetGroupSignInResp) Marshal() (dAtA []byte, err error) {
- size := m.Size()
- dAtA = make([]byte, size)
- n, err := m.MarshalToSizedBuffer(dAtA[:size])
- if err != nil {
- return nil, err
- }
- return dAtA[:n], nil
-}
-
-func (m *SetGroupSignInResp) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
-}
-
-func (m *SetGroupSignInResp) MarshalToSizedBuffer(dAtA []byte) (int, error) {
- i := len(dAtA)
- _ = i
- var l int
- _ = l
- if m.XXX_unrecognized != nil {
- i -= len(m.XXX_unrecognized)
- copy(dAtA[i:], m.XXX_unrecognized)
- }
- return len(dAtA) - i, nil
-}
-
-func (m *SendMusicReq) Marshal() (dAtA []byte, err error) {
- size := m.Size()
- dAtA = make([]byte, size)
- n, err := m.MarshalToSizedBuffer(dAtA[:size])
- if err != nil {
- return nil, err
- }
- return dAtA[:n], nil
-}
-
-func (m *SendMusicReq) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
-}
-
-func (m *SendMusicReq) MarshalToSizedBuffer(dAtA []byte) (int, error) {
- i := len(dAtA)
- _ = i
- var l int
- _ = l
- if m.XXX_unrecognized != nil {
- i -= len(m.XXX_unrecognized)
- copy(dAtA[i:], m.XXX_unrecognized)
- }
- if len(m.MusicUrl) > 0 {
- i -= len(m.MusicUrl)
- copy(dAtA[i:], m.MusicUrl)
- i = encodeVarintOnebotApi(dAtA, i, uint64(len(m.MusicUrl)))
- i--
- dAtA[i] = 0x4a
- }
- if len(m.PictureUrl) > 0 {
- i -= len(m.PictureUrl)
- copy(dAtA[i:], m.PictureUrl)
- i = encodeVarintOnebotApi(dAtA, i, uint64(len(m.PictureUrl)))
- i--
- dAtA[i] = 0x42
- }
- if len(m.Url) > 0 {
- i -= len(m.Url)
- copy(dAtA[i:], m.Url)
- i = encodeVarintOnebotApi(dAtA, i, uint64(len(m.Url)))
- i--
- dAtA[i] = 0x3a
- }
- if len(m.Summary) > 0 {
- i -= len(m.Summary)
- copy(dAtA[i:], m.Summary)
- i = encodeVarintOnebotApi(dAtA, i, uint64(len(m.Summary)))
- i--
- dAtA[i] = 0x32
- }
- if len(m.Brief) > 0 {
- i -= len(m.Brief)
- copy(dAtA[i:], m.Brief)
- i = encodeVarintOnebotApi(dAtA, i, uint64(len(m.Brief)))
- i--
- dAtA[i] = 0x2a
- }
- if len(m.Title) > 0 {
- i -= len(m.Title)
- copy(dAtA[i:], m.Title)
- i = encodeVarintOnebotApi(dAtA, i, uint64(len(m.Title)))
- i--
- dAtA[i] = 0x22
- }
- if len(m.Type) > 0 {
- i -= len(m.Type)
- copy(dAtA[i:], m.Type)
- i = encodeVarintOnebotApi(dAtA, i, uint64(len(m.Type)))
- i--
- dAtA[i] = 0x1a
- }
- if m.UserId != 0 {
- i = encodeVarintOnebotApi(dAtA, i, uint64(m.UserId))
- i--
- dAtA[i] = 0x10
- }
- if m.GroupId != 0 {
- i = encodeVarintOnebotApi(dAtA, i, uint64(m.GroupId))
- i--
- dAtA[i] = 0x8
- }
- return len(dAtA) - i, nil
-}
-
-func (m *SendMusicResp) Marshal() (dAtA []byte, err error) {
- size := m.Size()
- dAtA = make([]byte, size)
- n, err := m.MarshalToSizedBuffer(dAtA[:size])
- if err != nil {
- return nil, err
- }
- return dAtA[:n], nil
-}
-
-func (m *SendMusicResp) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
-}
-
-func (m *SendMusicResp) MarshalToSizedBuffer(dAtA []byte) (int, error) {
- i := len(dAtA)
- _ = i
- var l int
- _ = l
- if m.XXX_unrecognized != nil {
- i -= len(m.XXX_unrecognized)
- copy(dAtA[i:], m.XXX_unrecognized)
- }
- return len(dAtA) - i, nil
-}
-
-func (m *SendGroupPokeReq) Marshal() (dAtA []byte, err error) {
- size := m.Size()
- dAtA = make([]byte, size)
- n, err := m.MarshalToSizedBuffer(dAtA[:size])
- if err != nil {
- return nil, err
- }
- return dAtA[:n], nil
-}
-
-func (m *SendGroupPokeReq) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
-}
-
-func (m *SendGroupPokeReq) MarshalToSizedBuffer(dAtA []byte) (int, error) {
- i := len(dAtA)
- _ = i
- var l int
- _ = l
- if m.XXX_unrecognized != nil {
- i -= len(m.XXX_unrecognized)
- copy(dAtA[i:], m.XXX_unrecognized)
- }
- if m.UserId != 0 {
- i = encodeVarintOnebotApi(dAtA, i, uint64(m.UserId))
- i--
- dAtA[i] = 0x10
- }
- if m.GroupId != 0 {
- i = encodeVarintOnebotApi(dAtA, i, uint64(m.GroupId))
- i--
- dAtA[i] = 0x8
- }
- return len(dAtA) - i, nil
-}
-
-func (m *SendGroupPokeResp) Marshal() (dAtA []byte, err error) {
- size := m.Size()
- dAtA = make([]byte, size)
- n, err := m.MarshalToSizedBuffer(dAtA[:size])
- if err != nil {
- return nil, err
- }
- return dAtA[:n], nil
-}
-
-func (m *SendGroupPokeResp) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
-}
-
-func (m *SendGroupPokeResp) MarshalToSizedBuffer(dAtA []byte) (int, error) {
- i := len(dAtA)
- _ = i
- var l int
- _ = l
- if m.XXX_unrecognized != nil {
- i -= len(m.XXX_unrecognized)
- copy(dAtA[i:], m.XXX_unrecognized)
- }
- return len(dAtA) - i, nil
-}
-
-func (m *SendFriendPokeReq) Marshal() (dAtA []byte, err error) {
- size := m.Size()
- dAtA = make([]byte, size)
- n, err := m.MarshalToSizedBuffer(dAtA[:size])
- if err != nil {
- return nil, err
- }
- return dAtA[:n], nil
-}
-
-func (m *SendFriendPokeReq) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
-}
-
-func (m *SendFriendPokeReq) MarshalToSizedBuffer(dAtA []byte) (int, error) {
- i := len(dAtA)
- _ = i
- var l int
- _ = l
- if m.XXX_unrecognized != nil {
- i -= len(m.XXX_unrecognized)
- copy(dAtA[i:], m.XXX_unrecognized)
- }
- if m.UserId != 0 {
- i = encodeVarintOnebotApi(dAtA, i, uint64(m.UserId))
- i--
- dAtA[i] = 0x10
- }
- return len(dAtA) - i, nil
-}
-
-func (m *SendFriendPokeResp) Marshal() (dAtA []byte, err error) {
- size := m.Size()
- dAtA = make([]byte, size)
- n, err := m.MarshalToSizedBuffer(dAtA[:size])
- if err != nil {
- return nil, err
- }
- return dAtA[:n], nil
-}
-
-func (m *SendFriendPokeResp) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
-}
-
-func (m *SendFriendPokeResp) MarshalToSizedBuffer(dAtA []byte) (int, error) {
- i := len(dAtA)
- _ = i
- var l int
- _ = l
- if m.XXX_unrecognized != nil {
- i -= len(m.XXX_unrecognized)
- copy(dAtA[i:], m.XXX_unrecognized)
- }
- return len(dAtA) - i, nil
-}
-
-func encodeVarintOnebotApi(dAtA []byte, offset int, v uint64) int {
- offset -= sovOnebotApi(v)
- base := offset
- for v >= 1<<7 {
- dAtA[offset] = uint8(v&0x7f | 0x80)
- v >>= 7
- offset++
- }
- dAtA[offset] = uint8(v)
- return base
-}
-func (m *SendPrivateMsgReq) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- if m.UserId != 0 {
- n += 1 + sovOnebotApi(uint64(m.UserId))
- }
- if len(m.Message) > 0 {
- for _, e := range m.Message {
- l = e.Size()
- n += 1 + l + sovOnebotApi(uint64(l))
- }
- }
- if m.AutoEscape {
- n += 2
- }
- if m.XXX_unrecognized != nil {
- n += len(m.XXX_unrecognized)
- }
- return n
-}
-
-func (m *SendPrivateMsgResp) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- if m.MessageId != nil {
- l = m.MessageId.Size()
- n += 1 + l + sovOnebotApi(uint64(l))
- }
- if m.XXX_unrecognized != nil {
- n += len(m.XXX_unrecognized)
- }
- return n
-}
-
-func (m *SendGroupMsgReq) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- if m.GroupId != 0 {
- n += 1 + sovOnebotApi(uint64(m.GroupId))
- }
- if len(m.Message) > 0 {
- for _, e := range m.Message {
- l = e.Size()
- n += 1 + l + sovOnebotApi(uint64(l))
- }
- }
- if m.AutoEscape {
- n += 2
- }
- if m.XXX_unrecognized != nil {
- n += len(m.XXX_unrecognized)
- }
- return n
-}
-
-func (m *SendGroupMsgResp) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- if m.MessageId != nil {
- l = m.MessageId.Size()
- n += 1 + l + sovOnebotApi(uint64(l))
- }
- if m.XXX_unrecognized != nil {
- n += len(m.XXX_unrecognized)
- }
- return n
-}
-
-func (m *SendMsgReq) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- l = len(m.MessageType)
- if l > 0 {
- n += 1 + l + sovOnebotApi(uint64(l))
- }
- if m.UserId != 0 {
- n += 1 + sovOnebotApi(uint64(m.UserId))
- }
- if m.GroupId != 0 {
- n += 1 + sovOnebotApi(uint64(m.GroupId))
- }
- if len(m.Message) > 0 {
- for _, e := range m.Message {
- l = e.Size()
- n += 1 + l + sovOnebotApi(uint64(l))
- }
- }
- if m.AutoEscape {
- n += 2
- }
- if m.XXX_unrecognized != nil {
- n += len(m.XXX_unrecognized)
- }
- return n
-}
-
-func (m *SendMsgResp) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- if m.MessageId != nil {
- l = m.MessageId.Size()
- n += 1 + l + sovOnebotApi(uint64(l))
- }
- if m.XXX_unrecognized != nil {
- n += len(m.XXX_unrecognized)
- }
- return n
-}
-
-func (m *DeleteMsgReq) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- if m.MessageId != nil {
- l = m.MessageId.Size()
- n += 1 + l + sovOnebotApi(uint64(l))
- }
- if m.XXX_unrecognized != nil {
- n += len(m.XXX_unrecognized)
- }
- return n
-}
-
-func (m *DeleteMsgResp) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- if m.XXX_unrecognized != nil {
- n += len(m.XXX_unrecognized)
- }
- return n
-}
-
-func (m *GetMsgReq) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- if m.MessageId != 0 {
- n += 1 + sovOnebotApi(uint64(m.MessageId))
- }
- if m.XXX_unrecognized != nil {
- n += len(m.XXX_unrecognized)
- }
- return n
-}
-
-func (m *GetMsgResp) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- if m.Time != 0 {
- n += 1 + sovOnebotApi(uint64(m.Time))
- }
- l = len(m.MessageType)
- if l > 0 {
- n += 1 + l + sovOnebotApi(uint64(l))
- }
- if m.MessageId != 0 {
- n += 1 + sovOnebotApi(uint64(m.MessageId))
- }
- if m.RealId != 0 {
- n += 1 + sovOnebotApi(uint64(m.RealId))
- }
- if m.Sender != nil {
- l = m.Sender.Size()
- n += 1 + l + sovOnebotApi(uint64(l))
- }
- if len(m.Message) > 0 {
- for _, e := range m.Message {
- l = e.Size()
- n += 1 + l + sovOnebotApi(uint64(l))
- }
- }
- l = len(m.RawMessage)
- if l > 0 {
- n += 1 + l + sovOnebotApi(uint64(l))
- }
- if m.XXX_unrecognized != nil {
- n += len(m.XXX_unrecognized)
- }
- return n
-}
-
-func (m *GetMsgResp_Sender) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- if m.UserId != 0 {
- n += 1 + sovOnebotApi(uint64(m.UserId))
- }
- l = len(m.Nickname)
- if l > 0 {
- n += 1 + l + sovOnebotApi(uint64(l))
- }
- l = len(m.Card)
- if l > 0 {
- n += 1 + l + sovOnebotApi(uint64(l))
- }
- l = len(m.Sex)
- if l > 0 {
- n += 1 + l + sovOnebotApi(uint64(l))
- }
- if m.Age != 0 {
- n += 1 + sovOnebotApi(uint64(m.Age))
- }
- l = len(m.Area)
- if l > 0 {
- n += 1 + l + sovOnebotApi(uint64(l))
- }
- l = len(m.Level)
- if l > 0 {
- n += 1 + l + sovOnebotApi(uint64(l))
- }
- l = len(m.Role)
- if l > 0 {
- n += 1 + l + sovOnebotApi(uint64(l))
- }
- l = len(m.Title)
- if l > 0 {
- n += 1 + l + sovOnebotApi(uint64(l))
- }
- if m.XXX_unrecognized != nil {
- n += len(m.XXX_unrecognized)
- }
- return n
-}
-
-func (m *GetForwardMsgReq) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- l = len(m.Id)
- if l > 0 {
- n += 1 + l + sovOnebotApi(uint64(l))
- }
- if m.XXX_unrecognized != nil {
- n += len(m.XXX_unrecognized)
- }
- return n
-}
-
-func (m *GetForwardMsgResp) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- if m.XXX_unrecognized != nil {
- n += len(m.XXX_unrecognized)
- }
- return n
-}
-
-func (m *SendLikeReq) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- if m.UserId != 0 {
- n += 1 + sovOnebotApi(uint64(m.UserId))
- }
- if m.Times != 0 {
- n += 1 + sovOnebotApi(uint64(m.Times))
- }
- if m.XXX_unrecognized != nil {
- n += len(m.XXX_unrecognized)
- }
- return n
-}
-
-func (m *SendLikeResp) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- if m.XXX_unrecognized != nil {
- n += len(m.XXX_unrecognized)
- }
- return n
-}
-
-func (m *SetGroupKickReq) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- if m.GroupId != 0 {
- n += 1 + sovOnebotApi(uint64(m.GroupId))
- }
- if m.UserId != 0 {
- n += 1 + sovOnebotApi(uint64(m.UserId))
- }
- if m.RejectAddRequest {
- n += 2
- }
- if len(m.UserIds) > 0 {
- l = 0
- for _, e := range m.UserIds {
- l += sovOnebotApi(uint64(e))
- }
- n += 1 + sovOnebotApi(uint64(l)) + l
- }
- if m.XXX_unrecognized != nil {
- n += len(m.XXX_unrecognized)
- }
- return n
-}
-
-func (m *SetGroupKickResp) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- if m.XXX_unrecognized != nil {
- n += len(m.XXX_unrecognized)
- }
- return n
-}
-
-func (m *SetGroupBanReq) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- if m.GroupId != 0 {
- n += 1 + sovOnebotApi(uint64(m.GroupId))
- }
- if m.UserId != 0 {
- n += 1 + sovOnebotApi(uint64(m.UserId))
- }
- if m.Duration != 0 {
- n += 1 + sovOnebotApi(uint64(m.Duration))
- }
- if m.XXX_unrecognized != nil {
- n += len(m.XXX_unrecognized)
- }
- return n
-}
-
-func (m *SetGroupBanResp) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- if m.XXX_unrecognized != nil {
- n += len(m.XXX_unrecognized)
- }
- return n
-}
-
-func (m *SetGroupAnonymousBanReq) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- if m.GroupId != 0 {
- n += 1 + sovOnebotApi(uint64(m.GroupId))
- }
- if m.Anonymous != nil {
- l = m.Anonymous.Size()
- n += 1 + l + sovOnebotApi(uint64(l))
- }
- l = len(m.AnonymousFlag)
- if l > 0 {
- n += 1 + l + sovOnebotApi(uint64(l))
- }
- l = len(m.Flag)
- if l > 0 {
- n += 1 + l + sovOnebotApi(uint64(l))
- }
- if m.Duration != 0 {
- n += 1 + sovOnebotApi(uint64(m.Duration))
- }
- if m.XXX_unrecognized != nil {
- n += len(m.XXX_unrecognized)
- }
- return n
-}
-
-func (m *SetGroupAnonymousBanReq_Anonymous) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- if m.Id != 0 {
- n += 1 + sovOnebotApi(uint64(m.Id))
- }
- l = len(m.Name)
- if l > 0 {
- n += 1 + l + sovOnebotApi(uint64(l))
- }
- l = len(m.Flag)
- if l > 0 {
- n += 1 + l + sovOnebotApi(uint64(l))
- }
- if m.XXX_unrecognized != nil {
- n += len(m.XXX_unrecognized)
- }
- return n
-}
-
-func (m *SetGroupAnonymousBanResp) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- if m.XXX_unrecognized != nil {
- n += len(m.XXX_unrecognized)
- }
- return n
-}
-
-func (m *SetGroupWholeBanReq) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- if m.GroupId != 0 {
- n += 1 + sovOnebotApi(uint64(m.GroupId))
- }
- if m.Enable {
- n += 2
- }
- if m.XXX_unrecognized != nil {
- n += len(m.XXX_unrecognized)
- }
- return n
-}
-
-func (m *SetGroupWholeBanResp) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- if m.XXX_unrecognized != nil {
- n += len(m.XXX_unrecognized)
- }
- return n
-}
-
-func (m *SetGroupAdminReq) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- if m.GroupId != 0 {
- n += 1 + sovOnebotApi(uint64(m.GroupId))
- }
- if m.UserId != 0 {
- n += 1 + sovOnebotApi(uint64(m.UserId))
- }
- if m.Enable {
- n += 2
- }
- if m.XXX_unrecognized != nil {
- n += len(m.XXX_unrecognized)
- }
- return n
-}
-
-func (m *SetGroupAdminResp) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- if m.XXX_unrecognized != nil {
- n += len(m.XXX_unrecognized)
- }
- return n
-}
-
-func (m *SetGroupAnonymousReq) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- if m.GroupId != 0 {
- n += 1 + sovOnebotApi(uint64(m.GroupId))
- }
- if m.Enable {
- n += 2
- }
- if m.XXX_unrecognized != nil {
- n += len(m.XXX_unrecognized)
- }
- return n
-}
-
-func (m *SetGroupAnonymousResp) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- if m.XXX_unrecognized != nil {
- n += len(m.XXX_unrecognized)
- }
- return n
-}
-
-func (m *SetGroupCardReq) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- if m.GroupId != 0 {
- n += 1 + sovOnebotApi(uint64(m.GroupId))
- }
- if m.UserId != 0 {
- n += 1 + sovOnebotApi(uint64(m.UserId))
- }
- l = len(m.Card)
- if l > 0 {
- n += 1 + l + sovOnebotApi(uint64(l))
- }
- if m.XXX_unrecognized != nil {
- n += len(m.XXX_unrecognized)
- }
- return n
-}
-
-func (m *SetGroupCardResp) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- if m.XXX_unrecognized != nil {
- n += len(m.XXX_unrecognized)
- }
- return n
-}
-
-func (m *SetGroupNameReq) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- if m.GroupId != 0 {
- n += 1 + sovOnebotApi(uint64(m.GroupId))
- }
- l = len(m.GroupName)
- if l > 0 {
- n += 1 + l + sovOnebotApi(uint64(l))
- }
- if m.XXX_unrecognized != nil {
- n += len(m.XXX_unrecognized)
- }
- return n
-}
-
-func (m *SetGroupNameResp) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- if m.XXX_unrecognized != nil {
- n += len(m.XXX_unrecognized)
- }
- return n
-}
-
-func (m *SetGroupLeaveReq) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- if m.GroupId != 0 {
- n += 1 + sovOnebotApi(uint64(m.GroupId))
- }
- if m.IsDismiss {
- n += 2
- }
- if m.XXX_unrecognized != nil {
- n += len(m.XXX_unrecognized)
- }
- return n
-}
-
-func (m *SetGroupLeaveResp) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- if m.XXX_unrecognized != nil {
- n += len(m.XXX_unrecognized)
- }
- return n
-}
-
-func (m *SetGroupSpecialTitleReq) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- if m.GroupId != 0 {
- n += 1 + sovOnebotApi(uint64(m.GroupId))
- }
- if m.UserId != 0 {
- n += 1 + sovOnebotApi(uint64(m.UserId))
- }
- l = len(m.SpecialTitle)
- if l > 0 {
- n += 1 + l + sovOnebotApi(uint64(l))
- }
- if m.Duration != 0 {
- n += 1 + sovOnebotApi(uint64(m.Duration))
- }
- if m.XXX_unrecognized != nil {
- n += len(m.XXX_unrecognized)
- }
- return n
-}
-
-func (m *SetGroupSpecialTitleResp) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- if m.XXX_unrecognized != nil {
- n += len(m.XXX_unrecognized)
- }
- return n
-}
-
-func (m *SetFriendAddRequestReq) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- l = len(m.Flag)
- if l > 0 {
- n += 1 + l + sovOnebotApi(uint64(l))
- }
- if m.Approve {
- n += 2
- }
- l = len(m.Remark)
- if l > 0 {
- n += 1 + l + sovOnebotApi(uint64(l))
- }
- if m.XXX_unrecognized != nil {
- n += len(m.XXX_unrecognized)
- }
- return n
-}
-
-func (m *SetFriendAddRequestResp) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- if m.XXX_unrecognized != nil {
- n += len(m.XXX_unrecognized)
- }
- return n
-}
-
-func (m *SetGroupAddRequestReq) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- l = len(m.Flag)
- if l > 0 {
- n += 1 + l + sovOnebotApi(uint64(l))
- }
- l = len(m.SubType)
- if l > 0 {
- n += 1 + l + sovOnebotApi(uint64(l))
- }
- l = len(m.Type)
- if l > 0 {
- n += 1 + l + sovOnebotApi(uint64(l))
- }
- if m.Approve {
- n += 2
- }
- l = len(m.Reason)
- if l > 0 {
- n += 1 + l + sovOnebotApi(uint64(l))
- }
- if m.XXX_unrecognized != nil {
- n += len(m.XXX_unrecognized)
- }
- return n
-}
-
-func (m *SetGroupAddRequestResp) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- if m.XXX_unrecognized != nil {
- n += len(m.XXX_unrecognized)
- }
- return n
-}
-
-func (m *GetLoginInfoReq) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- if m.XXX_unrecognized != nil {
- n += len(m.XXX_unrecognized)
- }
- return n
-}
-
-func (m *GetLoginInfoResp) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- if m.UserId != 0 {
- n += 1 + sovOnebotApi(uint64(m.UserId))
- }
- l = len(m.Nickname)
- if l > 0 {
- n += 1 + l + sovOnebotApi(uint64(l))
- }
- if m.XXX_unrecognized != nil {
- n += len(m.XXX_unrecognized)
- }
- return n
-}
-
-func (m *GetStrangerInfoReq) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- if m.UserId != 0 {
- n += 1 + sovOnebotApi(uint64(m.UserId))
- }
- if m.NoCache {
- n += 2
- }
- if m.XXX_unrecognized != nil {
- n += len(m.XXX_unrecognized)
- }
- return n
-}
-
-func (m *GetStrangerInfoResp) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- if m.UserId != 0 {
- n += 1 + sovOnebotApi(uint64(m.UserId))
- }
- l = len(m.Nickname)
- if l > 0 {
- n += 1 + l + sovOnebotApi(uint64(l))
- }
- l = len(m.Sex)
- if l > 0 {
- n += 1 + l + sovOnebotApi(uint64(l))
- }
- if m.Age != 0 {
- n += 1 + sovOnebotApi(uint64(m.Age))
- }
- if m.Level != 0 {
- n += 1 + sovOnebotApi(uint64(m.Level))
- }
- if m.LoginDays != 0 {
- n += 1 + sovOnebotApi(uint64(m.LoginDays))
- }
- if m.XXX_unrecognized != nil {
- n += len(m.XXX_unrecognized)
- }
- return n
-}
-
-func (m *GetFriendListReq) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- if m.XXX_unrecognized != nil {
- n += len(m.XXX_unrecognized)
- }
- return n
-}
-
-func (m *GetFriendListResp) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- if len(m.Friend) > 0 {
- for _, e := range m.Friend {
- l = e.Size()
- n += 1 + l + sovOnebotApi(uint64(l))
- }
- }
- if m.XXX_unrecognized != nil {
- n += len(m.XXX_unrecognized)
- }
- return n
-}
-
-func (m *GetFriendListResp_Friend) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- if m.UserId != 0 {
- n += 1 + sovOnebotApi(uint64(m.UserId))
- }
- l = len(m.Nickname)
- if l > 0 {
- n += 1 + l + sovOnebotApi(uint64(l))
- }
- l = len(m.Remark)
- if l > 0 {
- n += 1 + l + sovOnebotApi(uint64(l))
- }
- if m.XXX_unrecognized != nil {
- n += len(m.XXX_unrecognized)
- }
- return n
-}
-
-func (m *GetGroupInfoReq) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- if m.GroupId != 0 {
- n += 1 + sovOnebotApi(uint64(m.GroupId))
- }
- if m.NoCache {
- n += 2
- }
- if m.XXX_unrecognized != nil {
- n += len(m.XXX_unrecognized)
- }
- return n
-}
-
-func (m *GetGroupInfoResp) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- if m.GroupId != 0 {
- n += 1 + sovOnebotApi(uint64(m.GroupId))
- }
- l = len(m.GroupName)
- if l > 0 {
- n += 1 + l + sovOnebotApi(uint64(l))
- }
- if m.MemberCount != 0 {
- n += 1 + sovOnebotApi(uint64(m.MemberCount))
- }
- if m.MaxMemberCount != 0 {
- n += 1 + sovOnebotApi(uint64(m.MaxMemberCount))
- }
- if m.XXX_unrecognized != nil {
- n += len(m.XXX_unrecognized)
- }
- return n
-}
-
-func (m *GetGroupListReq) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- if m.XXX_unrecognized != nil {
- n += len(m.XXX_unrecognized)
- }
- return n
-}
-
-func (m *GetGroupListResp) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- if len(m.Group) > 0 {
- for _, e := range m.Group {
- l = e.Size()
- n += 1 + l + sovOnebotApi(uint64(l))
- }
- }
- if m.XXX_unrecognized != nil {
- n += len(m.XXX_unrecognized)
- }
- return n
-}
-
-func (m *GetGroupListResp_Group) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- if m.GroupId != 0 {
- n += 1 + sovOnebotApi(uint64(m.GroupId))
- }
- l = len(m.GroupName)
- if l > 0 {
- n += 1 + l + sovOnebotApi(uint64(l))
- }
- if m.MemberCount != 0 {
- n += 1 + sovOnebotApi(uint64(m.MemberCount))
- }
- if m.MaxMemberCount != 0 {
- n += 1 + sovOnebotApi(uint64(m.MaxMemberCount))
- }
- if m.XXX_unrecognized != nil {
- n += len(m.XXX_unrecognized)
- }
- return n
-}
-
-func (m *GetGroupMemberInfoReq) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- if m.GroupId != 0 {
- n += 1 + sovOnebotApi(uint64(m.GroupId))
- }
- if m.UserId != 0 {
- n += 1 + sovOnebotApi(uint64(m.UserId))
- }
- if m.NoCache {
- n += 2
- }
- if m.XXX_unrecognized != nil {
- n += len(m.XXX_unrecognized)
- }
- return n
-}
-
-func (m *GetGroupMemberInfoResp) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- if m.GroupId != 0 {
- n += 1 + sovOnebotApi(uint64(m.GroupId))
- }
- if m.UserId != 0 {
- n += 1 + sovOnebotApi(uint64(m.UserId))
- }
- l = len(m.Nickname)
- if l > 0 {
- n += 1 + l + sovOnebotApi(uint64(l))
- }
- l = len(m.Card)
- if l > 0 {
- n += 1 + l + sovOnebotApi(uint64(l))
- }
- l = len(m.Sex)
- if l > 0 {
- n += 1 + l + sovOnebotApi(uint64(l))
- }
- if m.Age != 0 {
- n += 1 + sovOnebotApi(uint64(m.Age))
- }
- l = len(m.Area)
- if l > 0 {
- n += 1 + l + sovOnebotApi(uint64(l))
- }
- if m.JoinTime != 0 {
- n += 1 + sovOnebotApi(uint64(m.JoinTime))
- }
- if m.LastSentTime != 0 {
- n += 1 + sovOnebotApi(uint64(m.LastSentTime))
- }
- l = len(m.Level)
- if l > 0 {
- n += 1 + l + sovOnebotApi(uint64(l))
- }
- l = len(m.Role)
- if l > 0 {
- n += 1 + l + sovOnebotApi(uint64(l))
- }
- if m.Unfriendly {
- n += 2
- }
- l = len(m.Title)
- if l > 0 {
- n += 1 + l + sovOnebotApi(uint64(l))
- }
- if m.TitleExpireTime != 0 {
- n += 1 + sovOnebotApi(uint64(m.TitleExpireTime))
- }
- if m.CardChangeable {
- n += 2
- }
- if m.XXX_unrecognized != nil {
- n += len(m.XXX_unrecognized)
- }
- return n
-}
-
-func (m *GetGroupMemberListReq) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- if m.GroupId != 0 {
- n += 1 + sovOnebotApi(uint64(m.GroupId))
- }
- if m.XXX_unrecognized != nil {
- n += len(m.XXX_unrecognized)
- }
- return n
-}
-
-func (m *GetGroupMemberListResp) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- if len(m.GroupMember) > 0 {
- for _, e := range m.GroupMember {
- l = e.Size()
- n += 1 + l + sovOnebotApi(uint64(l))
- }
- }
- if m.XXX_unrecognized != nil {
- n += len(m.XXX_unrecognized)
- }
- return n
-}
-
-func (m *GetGroupMemberListResp_GroupMember) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- if m.GroupId != 0 {
- n += 1 + sovOnebotApi(uint64(m.GroupId))
- }
- if m.UserId != 0 {
- n += 1 + sovOnebotApi(uint64(m.UserId))
- }
- l = len(m.Nickname)
- if l > 0 {
- n += 1 + l + sovOnebotApi(uint64(l))
- }
- l = len(m.Card)
- if l > 0 {
- n += 1 + l + sovOnebotApi(uint64(l))
- }
- l = len(m.Sex)
- if l > 0 {
- n += 1 + l + sovOnebotApi(uint64(l))
- }
- if m.Age != 0 {
- n += 1 + sovOnebotApi(uint64(m.Age))
- }
- l = len(m.Area)
- if l > 0 {
- n += 1 + l + sovOnebotApi(uint64(l))
- }
- if m.JoinTime != 0 {
- n += 1 + sovOnebotApi(uint64(m.JoinTime))
- }
- if m.LastSentTime != 0 {
- n += 1 + sovOnebotApi(uint64(m.LastSentTime))
- }
- l = len(m.Level)
- if l > 0 {
- n += 1 + l + sovOnebotApi(uint64(l))
- }
- l = len(m.Role)
- if l > 0 {
- n += 1 + l + sovOnebotApi(uint64(l))
- }
- if m.Unfriendly {
- n += 2
- }
- l = len(m.Title)
- if l > 0 {
- n += 1 + l + sovOnebotApi(uint64(l))
- }
- if m.TitleExpireTime != 0 {
- n += 1 + sovOnebotApi(uint64(m.TitleExpireTime))
- }
- if m.CardChangeable {
- n += 2
- }
- if m.XXX_unrecognized != nil {
- n += len(m.XXX_unrecognized)
- }
- return n
-}
-
-func (m *GetGroupHonorInfoReq) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- if m.GroupId != 0 {
- n += 1 + sovOnebotApi(uint64(m.GroupId))
- }
- l = len(m.Type)
- if l > 0 {
- n += 1 + l + sovOnebotApi(uint64(l))
- }
- if m.XXX_unrecognized != nil {
- n += len(m.XXX_unrecognized)
- }
- return n
-}
-
-func (m *GetGroupHonorInfoResp) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- if m.GroupId != 0 {
- n += 1 + sovOnebotApi(uint64(m.GroupId))
- }
- if m.CurrentTalkative != nil {
- l = m.CurrentTalkative.Size()
- n += 1 + l + sovOnebotApi(uint64(l))
- }
- if len(m.Talkative) > 0 {
- for _, e := range m.Talkative {
- l = e.Size()
- n += 1 + l + sovOnebotApi(uint64(l))
- }
- }
- if len(m.Performer) > 0 {
- for _, e := range m.Performer {
- l = e.Size()
- n += 1 + l + sovOnebotApi(uint64(l))
- }
- }
- if len(m.Legend) > 0 {
- for _, e := range m.Legend {
- l = e.Size()
- n += 1 + l + sovOnebotApi(uint64(l))
- }
- }
- if len(m.StrongNewbie) > 0 {
- for _, e := range m.StrongNewbie {
- l = e.Size()
- n += 1 + l + sovOnebotApi(uint64(l))
- }
- }
- if len(m.Emotion) > 0 {
- for _, e := range m.Emotion {
- l = e.Size()
- n += 1 + l + sovOnebotApi(uint64(l))
- }
- }
- if m.XXX_unrecognized != nil {
- n += len(m.XXX_unrecognized)
- }
- return n
-}
-
-func (m *GetGroupHonorInfoResp_CurrentTalkative) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- if m.UserId != 0 {
- n += 1 + sovOnebotApi(uint64(m.UserId))
- }
- l = len(m.Nickname)
- if l > 0 {
- n += 1 + l + sovOnebotApi(uint64(l))
- }
- l = len(m.Avatar)
- if l > 0 {
- n += 1 + l + sovOnebotApi(uint64(l))
- }
- if m.DayCount != 0 {
- n += 1 + sovOnebotApi(uint64(m.DayCount))
- }
- if m.XXX_unrecognized != nil {
- n += len(m.XXX_unrecognized)
- }
- return n
-}
-
-func (m *GetGroupHonorInfoResp_Honor) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- if m.UserId != 0 {
- n += 1 + sovOnebotApi(uint64(m.UserId))
- }
- l = len(m.Nickname)
- if l > 0 {
- n += 1 + l + sovOnebotApi(uint64(l))
- }
- l = len(m.Avatar)
- if l > 0 {
- n += 1 + l + sovOnebotApi(uint64(l))
- }
- l = len(m.Description)
- if l > 0 {
- n += 1 + l + sovOnebotApi(uint64(l))
- }
- if m.XXX_unrecognized != nil {
- n += len(m.XXX_unrecognized)
- }
- return n
-}
-
-func (m *GetCookiesReq) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- l = len(m.Domain)
- if l > 0 {
- n += 1 + l + sovOnebotApi(uint64(l))
- }
- if m.XXX_unrecognized != nil {
- n += len(m.XXX_unrecognized)
- }
- return n
-}
-
-func (m *GetCookiesResp) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- l = len(m.Cookies)
- if l > 0 {
- n += 1 + l + sovOnebotApi(uint64(l))
- }
- if m.XXX_unrecognized != nil {
- n += len(m.XXX_unrecognized)
- }
- return n
-}
-
-func (m *GetCsrfTokenReq) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- if m.XXX_unrecognized != nil {
- n += len(m.XXX_unrecognized)
- }
- return n
-}
-
-func (m *GetCsrfTokenResp) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- if m.Token != 0 {
- n += 1 + sovOnebotApi(uint64(m.Token))
- }
- if m.XXX_unrecognized != nil {
- n += len(m.XXX_unrecognized)
- }
- return n
-}
-
-func (m *GetCredentialsReq) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- l = len(m.Domain)
- if l > 0 {
- n += 1 + l + sovOnebotApi(uint64(l))
- }
- if m.XXX_unrecognized != nil {
- n += len(m.XXX_unrecognized)
- }
- return n
-}
-
-func (m *GetCredentialsResp) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- l = len(m.Cookies)
- if l > 0 {
- n += 1 + l + sovOnebotApi(uint64(l))
- }
- if m.CsrfToken != 0 {
- n += 1 + sovOnebotApi(uint64(m.CsrfToken))
- }
- if m.XXX_unrecognized != nil {
- n += len(m.XXX_unrecognized)
- }
- return n
-}
-
-func (m *GetRecordReq) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- l = len(m.File)
- if l > 0 {
- n += 1 + l + sovOnebotApi(uint64(l))
- }
- l = len(m.OutFormat)
- if l > 0 {
- n += 1 + l + sovOnebotApi(uint64(l))
- }
- if m.XXX_unrecognized != nil {
- n += len(m.XXX_unrecognized)
- }
- return n
-}
-
-func (m *GetRecordResp) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- l = len(m.File)
- if l > 0 {
- n += 1 + l + sovOnebotApi(uint64(l))
- }
- if m.XXX_unrecognized != nil {
- n += len(m.XXX_unrecognized)
- }
- return n
-}
-
-func (m *GetImageReq) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- l = len(m.File)
- if l > 0 {
- n += 1 + l + sovOnebotApi(uint64(l))
- }
- if m.XXX_unrecognized != nil {
- n += len(m.XXX_unrecognized)
- }
- return n
-}
-
-func (m *GetImageResp) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- l = len(m.File)
- if l > 0 {
- n += 1 + l + sovOnebotApi(uint64(l))
- }
- if m.XXX_unrecognized != nil {
- n += len(m.XXX_unrecognized)
- }
- return n
-}
-
-func (m *CanSendImageReq) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- if m.XXX_unrecognized != nil {
- n += len(m.XXX_unrecognized)
- }
- return n
-}
-
-func (m *CanSendImageResp) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- if m.Yes {
- n += 2
- }
- if m.XXX_unrecognized != nil {
- n += len(m.XXX_unrecognized)
- }
- return n
-}
-
-func (m *CanSendRecordReq) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- if m.XXX_unrecognized != nil {
- n += len(m.XXX_unrecognized)
- }
- return n
-}
-
-func (m *CanSendRecordResp) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- if m.Yes {
- n += 2
- }
- if m.XXX_unrecognized != nil {
- n += len(m.XXX_unrecognized)
- }
- return n
-}
-
-func (m *GetStatusReq) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- if m.XXX_unrecognized != nil {
- n += len(m.XXX_unrecognized)
- }
- return n
-}
-
-func (m *GetStatusResp) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- if m.Online {
- n += 2
- }
- if m.Good {
- n += 2
- }
- if m.XXX_unrecognized != nil {
- n += len(m.XXX_unrecognized)
- }
- return n
-}
-
-func (m *GetVersionInfoReq) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- if m.XXX_unrecognized != nil {
- n += len(m.XXX_unrecognized)
- }
- return n
-}
-
-func (m *GetVersionInfoResp) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- l = len(m.AppName)
- if l > 0 {
- n += 1 + l + sovOnebotApi(uint64(l))
- }
- l = len(m.AppVersion)
- if l > 0 {
- n += 1 + l + sovOnebotApi(uint64(l))
- }
- l = len(m.ProtocolVersion)
- if l > 0 {
- n += 1 + l + sovOnebotApi(uint64(l))
- }
- if len(m.Extra) > 0 {
- for k, v := range m.Extra {
- _ = k
- _ = v
- mapEntrySize := 1 + len(k) + sovOnebotApi(uint64(len(k))) + 1 + len(v) + sovOnebotApi(uint64(len(v)))
- n += mapEntrySize + 1 + sovOnebotApi(uint64(mapEntrySize))
- }
- }
- if m.XXX_unrecognized != nil {
- n += len(m.XXX_unrecognized)
- }
- return n
-}
-
-func (m *SetRestartReq) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- if m.Delay != 0 {
- n += 1 + sovOnebotApi(uint64(m.Delay))
- }
- if m.XXX_unrecognized != nil {
- n += len(m.XXX_unrecognized)
- }
- return n
-}
-
-func (m *SetRestartResp) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- if m.XXX_unrecognized != nil {
- n += len(m.XXX_unrecognized)
- }
- return n
-}
-
-func (m *CleanCacheReq) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- if m.XXX_unrecognized != nil {
- n += len(m.XXX_unrecognized)
- }
- return n
-}
-
-func (m *CleanCacheResp) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- if m.XXX_unrecognized != nil {
- n += len(m.XXX_unrecognized)
- }
- return n
-}
-
-func (m *SetGroupSignInReq) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- if m.GroupId != 0 {
- n += 1 + sovOnebotApi(uint64(m.GroupId))
- }
- if m.XXX_unrecognized != nil {
- n += len(m.XXX_unrecognized)
- }
- return n
-}
-
-func (m *SetGroupSignInResp) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- if m.XXX_unrecognized != nil {
- n += len(m.XXX_unrecognized)
- }
- return n
-}
-
-func (m *SendMusicReq) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- if m.GroupId != 0 {
- n += 1 + sovOnebotApi(uint64(m.GroupId))
- }
- if m.UserId != 0 {
- n += 1 + sovOnebotApi(uint64(m.UserId))
- }
- l = len(m.Type)
- if l > 0 {
- n += 1 + l + sovOnebotApi(uint64(l))
- }
- l = len(m.Title)
- if l > 0 {
- n += 1 + l + sovOnebotApi(uint64(l))
- }
- l = len(m.Brief)
- if l > 0 {
- n += 1 + l + sovOnebotApi(uint64(l))
- }
- l = len(m.Summary)
- if l > 0 {
- n += 1 + l + sovOnebotApi(uint64(l))
- }
- l = len(m.Url)
- if l > 0 {
- n += 1 + l + sovOnebotApi(uint64(l))
- }
- l = len(m.PictureUrl)
- if l > 0 {
- n += 1 + l + sovOnebotApi(uint64(l))
- }
- l = len(m.MusicUrl)
- if l > 0 {
- n += 1 + l + sovOnebotApi(uint64(l))
- }
- if m.XXX_unrecognized != nil {
- n += len(m.XXX_unrecognized)
- }
- return n
-}
-
-func (m *SendMusicResp) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- if m.XXX_unrecognized != nil {
- n += len(m.XXX_unrecognized)
- }
- return n
-}
-
-func (m *SendGroupPokeReq) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- if m.GroupId != 0 {
- n += 1 + sovOnebotApi(uint64(m.GroupId))
- }
- if m.UserId != 0 {
- n += 1 + sovOnebotApi(uint64(m.UserId))
- }
- if m.XXX_unrecognized != nil {
- n += len(m.XXX_unrecognized)
- }
- return n
-}
-
-func (m *SendGroupPokeResp) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- if m.XXX_unrecognized != nil {
- n += len(m.XXX_unrecognized)
- }
- return n
-}
-
-func (m *SendFriendPokeReq) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- if m.UserId != 0 {
- n += 1 + sovOnebotApi(uint64(m.UserId))
- }
- if m.XXX_unrecognized != nil {
- n += len(m.XXX_unrecognized)
- }
- return n
-}
-
-func (m *SendFriendPokeResp) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- if m.XXX_unrecognized != nil {
- n += len(m.XXX_unrecognized)
- }
- return n
-}
-
-func sovOnebotApi(x uint64) (n int) {
- return (math_bits.Len64(x|1) + 6) / 7
-}
-func sozOnebotApi(x uint64) (n int) {
- return sovOnebotApi(uint64((x << 1) ^ uint64((int64(x) >> 63))))
-}
-func (m *SendPrivateMsgReq) Unmarshal(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotApi
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: SendPrivateMsgReq: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: SendPrivateMsgReq: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- case 1:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field UserId", wireType)
- }
- m.UserId = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotApi
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.UserId |= int64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 2:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Message", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotApi
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return ErrInvalidLengthOnebotApi
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return ErrInvalidLengthOnebotApi
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.Message = append(m.Message, &Message{})
- if err := m.Message[len(m.Message)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- iNdEx = postIndex
- case 3:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field AutoEscape", wireType)
- }
- var v int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotApi
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- v |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- m.AutoEscape = bool(v != 0)
- default:
- iNdEx = preIndex
- skippy, err := skipOnebotApi(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if skippy < 0 {
- return ErrInvalidLengthOnebotApi
- }
- if (iNdEx + skippy) < 0 {
- return ErrInvalidLengthOnebotApi
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
- iNdEx += skippy
- }
- }
-
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
-}
-func (m *SendPrivateMsgResp) Unmarshal(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotApi
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: SendPrivateMsgResp: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: SendPrivateMsgResp: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- case 2:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field MessageId", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotApi
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return ErrInvalidLengthOnebotApi
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return ErrInvalidLengthOnebotApi
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- if m.MessageId == nil {
- m.MessageId = &MessageReceipt{}
- }
- if err := m.MessageId.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- iNdEx = postIndex
- default:
- iNdEx = preIndex
- skippy, err := skipOnebotApi(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if skippy < 0 {
- return ErrInvalidLengthOnebotApi
- }
- if (iNdEx + skippy) < 0 {
- return ErrInvalidLengthOnebotApi
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
- iNdEx += skippy
- }
- }
-
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
-}
-func (m *SendGroupMsgReq) Unmarshal(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotApi
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: SendGroupMsgReq: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: SendGroupMsgReq: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- case 1:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field GroupId", wireType)
- }
- m.GroupId = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotApi
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.GroupId |= int64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 2:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Message", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotApi
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return ErrInvalidLengthOnebotApi
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return ErrInvalidLengthOnebotApi
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.Message = append(m.Message, &Message{})
- if err := m.Message[len(m.Message)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- iNdEx = postIndex
- case 3:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field AutoEscape", wireType)
- }
- var v int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotApi
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- v |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- m.AutoEscape = bool(v != 0)
- default:
- iNdEx = preIndex
- skippy, err := skipOnebotApi(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if skippy < 0 {
- return ErrInvalidLengthOnebotApi
- }
- if (iNdEx + skippy) < 0 {
- return ErrInvalidLengthOnebotApi
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
- iNdEx += skippy
- }
- }
-
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
-}
-func (m *SendGroupMsgResp) Unmarshal(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotApi
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: SendGroupMsgResp: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: SendGroupMsgResp: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- case 2:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field MessageId", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotApi
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return ErrInvalidLengthOnebotApi
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return ErrInvalidLengthOnebotApi
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- if m.MessageId == nil {
- m.MessageId = &MessageReceipt{}
- }
- if err := m.MessageId.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- iNdEx = postIndex
- default:
- iNdEx = preIndex
- skippy, err := skipOnebotApi(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if skippy < 0 {
- return ErrInvalidLengthOnebotApi
- }
- if (iNdEx + skippy) < 0 {
- return ErrInvalidLengthOnebotApi
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
- iNdEx += skippy
- }
- }
-
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
-}
-func (m *SendMsgReq) Unmarshal(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotApi
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: SendMsgReq: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: SendMsgReq: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- case 1:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field MessageType", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotApi
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthOnebotApi
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthOnebotApi
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.MessageType = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- case 2:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field UserId", wireType)
- }
- m.UserId = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotApi
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.UserId |= int64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 3:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field GroupId", wireType)
- }
- m.GroupId = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotApi
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.GroupId |= int64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 4:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Message", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotApi
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return ErrInvalidLengthOnebotApi
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return ErrInvalidLengthOnebotApi
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.Message = append(m.Message, &Message{})
- if err := m.Message[len(m.Message)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- iNdEx = postIndex
- case 5:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field AutoEscape", wireType)
- }
- var v int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotApi
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- v |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- m.AutoEscape = bool(v != 0)
- default:
- iNdEx = preIndex
- skippy, err := skipOnebotApi(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if skippy < 0 {
- return ErrInvalidLengthOnebotApi
- }
- if (iNdEx + skippy) < 0 {
- return ErrInvalidLengthOnebotApi
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
- iNdEx += skippy
- }
- }
-
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
-}
-func (m *SendMsgResp) Unmarshal(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotApi
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: SendMsgResp: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: SendMsgResp: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- case 2:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field MessageId", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotApi
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return ErrInvalidLengthOnebotApi
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return ErrInvalidLengthOnebotApi
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- if m.MessageId == nil {
- m.MessageId = &MessageReceipt{}
- }
- if err := m.MessageId.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- iNdEx = postIndex
- default:
- iNdEx = preIndex
- skippy, err := skipOnebotApi(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if skippy < 0 {
- return ErrInvalidLengthOnebotApi
- }
- if (iNdEx + skippy) < 0 {
- return ErrInvalidLengthOnebotApi
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
- iNdEx += skippy
- }
- }
-
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
-}
-func (m *DeleteMsgReq) Unmarshal(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotApi
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: DeleteMsgReq: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: DeleteMsgReq: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- case 2:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field MessageId", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotApi
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return ErrInvalidLengthOnebotApi
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return ErrInvalidLengthOnebotApi
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- if m.MessageId == nil {
- m.MessageId = &MessageReceipt{}
- }
- if err := m.MessageId.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- iNdEx = postIndex
- default:
- iNdEx = preIndex
- skippy, err := skipOnebotApi(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if skippy < 0 {
- return ErrInvalidLengthOnebotApi
- }
- if (iNdEx + skippy) < 0 {
- return ErrInvalidLengthOnebotApi
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
- iNdEx += skippy
- }
- }
-
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
-}
-func (m *DeleteMsgResp) Unmarshal(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotApi
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: DeleteMsgResp: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: DeleteMsgResp: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- default:
- iNdEx = preIndex
- skippy, err := skipOnebotApi(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if skippy < 0 {
- return ErrInvalidLengthOnebotApi
- }
- if (iNdEx + skippy) < 0 {
- return ErrInvalidLengthOnebotApi
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
- iNdEx += skippy
- }
- }
-
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
-}
-func (m *GetMsgReq) Unmarshal(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotApi
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: GetMsgReq: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: GetMsgReq: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- case 1:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field MessageId", wireType)
- }
- m.MessageId = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotApi
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.MessageId |= int32(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- default:
- iNdEx = preIndex
- skippy, err := skipOnebotApi(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if skippy < 0 {
- return ErrInvalidLengthOnebotApi
- }
- if (iNdEx + skippy) < 0 {
- return ErrInvalidLengthOnebotApi
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
- iNdEx += skippy
- }
- }
-
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
-}
-func (m *GetMsgResp) Unmarshal(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotApi
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: GetMsgResp: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: GetMsgResp: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- case 1:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field Time", wireType)
- }
- m.Time = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotApi
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.Time |= int32(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 2:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field MessageType", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotApi
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthOnebotApi
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthOnebotApi
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.MessageType = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- case 3:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field MessageId", wireType)
- }
- m.MessageId = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotApi
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.MessageId |= int32(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 4:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field RealId", wireType)
- }
- m.RealId = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotApi
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.RealId |= int32(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 5:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Sender", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotApi
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return ErrInvalidLengthOnebotApi
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return ErrInvalidLengthOnebotApi
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- if m.Sender == nil {
- m.Sender = &GetMsgResp_Sender{}
- }
- if err := m.Sender.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- iNdEx = postIndex
- case 6:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Message", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotApi
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return ErrInvalidLengthOnebotApi
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return ErrInvalidLengthOnebotApi
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.Message = append(m.Message, &Message{})
- if err := m.Message[len(m.Message)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- iNdEx = postIndex
- case 7:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field RawMessage", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotApi
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthOnebotApi
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthOnebotApi
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.RawMessage = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- default:
- iNdEx = preIndex
- skippy, err := skipOnebotApi(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if skippy < 0 {
- return ErrInvalidLengthOnebotApi
- }
- if (iNdEx + skippy) < 0 {
- return ErrInvalidLengthOnebotApi
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
- iNdEx += skippy
- }
- }
-
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
-}
-func (m *GetMsgResp_Sender) Unmarshal(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotApi
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: Sender: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: Sender: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- case 1:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field UserId", wireType)
- }
- m.UserId = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotApi
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.UserId |= int64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 2:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Nickname", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotApi
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthOnebotApi
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthOnebotApi
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.Nickname = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- case 3:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Card", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotApi
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthOnebotApi
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthOnebotApi
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.Card = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- case 4:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Sex", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotApi
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthOnebotApi
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthOnebotApi
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.Sex = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- case 5:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field Age", wireType)
- }
- m.Age = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotApi
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.Age |= int32(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 6:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Area", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotApi
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthOnebotApi
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthOnebotApi
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.Area = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- case 7:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Level", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotApi
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthOnebotApi
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthOnebotApi
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.Level = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- case 8:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Role", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotApi
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthOnebotApi
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthOnebotApi
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.Role = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- case 9:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Title", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotApi
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthOnebotApi
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthOnebotApi
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.Title = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- default:
- iNdEx = preIndex
- skippy, err := skipOnebotApi(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if skippy < 0 {
- return ErrInvalidLengthOnebotApi
- }
- if (iNdEx + skippy) < 0 {
- return ErrInvalidLengthOnebotApi
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
- iNdEx += skippy
- }
- }
-
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
-}
-func (m *GetForwardMsgReq) Unmarshal(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotApi
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: GetForwardMsgReq: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: GetForwardMsgReq: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- case 1:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotApi
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthOnebotApi
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthOnebotApi
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.Id = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- default:
- iNdEx = preIndex
- skippy, err := skipOnebotApi(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if skippy < 0 {
- return ErrInvalidLengthOnebotApi
- }
- if (iNdEx + skippy) < 0 {
- return ErrInvalidLengthOnebotApi
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
- iNdEx += skippy
- }
- }
-
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
-}
-func (m *GetForwardMsgResp) Unmarshal(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotApi
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: GetForwardMsgResp: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: GetForwardMsgResp: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- default:
- iNdEx = preIndex
- skippy, err := skipOnebotApi(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if skippy < 0 {
- return ErrInvalidLengthOnebotApi
- }
- if (iNdEx + skippy) < 0 {
- return ErrInvalidLengthOnebotApi
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
- iNdEx += skippy
- }
- }
-
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
-}
-func (m *SendLikeReq) Unmarshal(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotApi
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: SendLikeReq: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: SendLikeReq: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- case 1:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field UserId", wireType)
- }
- m.UserId = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotApi
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.UserId |= int64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 2:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field Times", wireType)
- }
- m.Times = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotApi
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.Times |= int32(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- default:
- iNdEx = preIndex
- skippy, err := skipOnebotApi(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if skippy < 0 {
- return ErrInvalidLengthOnebotApi
- }
- if (iNdEx + skippy) < 0 {
- return ErrInvalidLengthOnebotApi
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
- iNdEx += skippy
- }
- }
-
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
-}
-func (m *SendLikeResp) Unmarshal(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotApi
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: SendLikeResp: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: SendLikeResp: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- default:
- iNdEx = preIndex
- skippy, err := skipOnebotApi(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if skippy < 0 {
- return ErrInvalidLengthOnebotApi
- }
- if (iNdEx + skippy) < 0 {
- return ErrInvalidLengthOnebotApi
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
- iNdEx += skippy
- }
- }
-
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
-}
-func (m *SetGroupKickReq) Unmarshal(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotApi
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: SetGroupKickReq: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: SetGroupKickReq: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- case 1:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field GroupId", wireType)
- }
- m.GroupId = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotApi
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.GroupId |= int64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 2:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field UserId", wireType)
- }
- m.UserId = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotApi
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.UserId |= int64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 3:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field RejectAddRequest", wireType)
- }
- var v int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotApi
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- v |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- m.RejectAddRequest = bool(v != 0)
- case 4:
- if wireType == 0 {
- var v int64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotApi
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- v |= int64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- m.UserIds = append(m.UserIds, v)
- } else if wireType == 2 {
- var packedLen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotApi
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- packedLen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if packedLen < 0 {
- return ErrInvalidLengthOnebotApi
- }
- postIndex := iNdEx + packedLen
- if postIndex < 0 {
- return ErrInvalidLengthOnebotApi
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- var elementCount int
- var count int
- for _, integer := range dAtA[iNdEx:postIndex] {
- if integer < 128 {
- count++
- }
- }
- elementCount = count
- if elementCount != 0 && len(m.UserIds) == 0 {
- m.UserIds = make([]int64, 0, elementCount)
- }
- for iNdEx < postIndex {
- var v int64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotApi
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- v |= int64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- m.UserIds = append(m.UserIds, v)
- }
- } else {
- return fmt.Errorf("proto: wrong wireType = %d for field UserIds", wireType)
- }
- default:
- iNdEx = preIndex
- skippy, err := skipOnebotApi(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if skippy < 0 {
- return ErrInvalidLengthOnebotApi
- }
- if (iNdEx + skippy) < 0 {
- return ErrInvalidLengthOnebotApi
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
- iNdEx += skippy
- }
- }
-
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
-}
-func (m *SetGroupKickResp) Unmarshal(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotApi
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: SetGroupKickResp: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: SetGroupKickResp: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- default:
- iNdEx = preIndex
- skippy, err := skipOnebotApi(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if skippy < 0 {
- return ErrInvalidLengthOnebotApi
- }
- if (iNdEx + skippy) < 0 {
- return ErrInvalidLengthOnebotApi
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
- iNdEx += skippy
- }
- }
-
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
-}
-func (m *SetGroupBanReq) Unmarshal(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotApi
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: SetGroupBanReq: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: SetGroupBanReq: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- case 1:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field GroupId", wireType)
- }
- m.GroupId = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotApi
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.GroupId |= int64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 2:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field UserId", wireType)
- }
- m.UserId = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotApi
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.UserId |= int64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 3:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field Duration", wireType)
- }
- m.Duration = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotApi
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.Duration |= int32(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- default:
- iNdEx = preIndex
- skippy, err := skipOnebotApi(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if skippy < 0 {
- return ErrInvalidLengthOnebotApi
- }
- if (iNdEx + skippy) < 0 {
- return ErrInvalidLengthOnebotApi
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
- iNdEx += skippy
- }
- }
-
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
-}
-func (m *SetGroupBanResp) Unmarshal(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotApi
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: SetGroupBanResp: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: SetGroupBanResp: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- default:
- iNdEx = preIndex
- skippy, err := skipOnebotApi(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if skippy < 0 {
- return ErrInvalidLengthOnebotApi
- }
- if (iNdEx + skippy) < 0 {
- return ErrInvalidLengthOnebotApi
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
- iNdEx += skippy
- }
- }
-
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
-}
-func (m *SetGroupAnonymousBanReq) Unmarshal(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotApi
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: SetGroupAnonymousBanReq: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: SetGroupAnonymousBanReq: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- case 1:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field GroupId", wireType)
- }
- m.GroupId = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotApi
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.GroupId |= int64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 2:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Anonymous", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotApi
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return ErrInvalidLengthOnebotApi
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return ErrInvalidLengthOnebotApi
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- if m.Anonymous == nil {
- m.Anonymous = &SetGroupAnonymousBanReq_Anonymous{}
- }
- if err := m.Anonymous.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- iNdEx = postIndex
- case 3:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field AnonymousFlag", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotApi
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthOnebotApi
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthOnebotApi
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.AnonymousFlag = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- case 4:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Flag", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotApi
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthOnebotApi
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthOnebotApi
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.Flag = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- case 5:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field Duration", wireType)
- }
- m.Duration = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotApi
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.Duration |= int64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- default:
- iNdEx = preIndex
- skippy, err := skipOnebotApi(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if skippy < 0 {
- return ErrInvalidLengthOnebotApi
- }
- if (iNdEx + skippy) < 0 {
- return ErrInvalidLengthOnebotApi
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
- iNdEx += skippy
- }
- }
-
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
-}
-func (m *SetGroupAnonymousBanReq_Anonymous) Unmarshal(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotApi
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: Anonymous: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: Anonymous: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- case 1:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType)
- }
- m.Id = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotApi
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.Id |= int64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 2:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotApi
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthOnebotApi
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthOnebotApi
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.Name = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- case 3:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Flag", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotApi
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthOnebotApi
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthOnebotApi
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.Flag = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- default:
- iNdEx = preIndex
- skippy, err := skipOnebotApi(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if skippy < 0 {
- return ErrInvalidLengthOnebotApi
- }
- if (iNdEx + skippy) < 0 {
- return ErrInvalidLengthOnebotApi
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
- iNdEx += skippy
- }
- }
-
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
-}
-func (m *SetGroupAnonymousBanResp) Unmarshal(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotApi
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: SetGroupAnonymousBanResp: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: SetGroupAnonymousBanResp: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- default:
- iNdEx = preIndex
- skippy, err := skipOnebotApi(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if skippy < 0 {
- return ErrInvalidLengthOnebotApi
- }
- if (iNdEx + skippy) < 0 {
- return ErrInvalidLengthOnebotApi
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
- iNdEx += skippy
- }
- }
-
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
-}
-func (m *SetGroupWholeBanReq) Unmarshal(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotApi
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: SetGroupWholeBanReq: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: SetGroupWholeBanReq: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- case 1:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field GroupId", wireType)
- }
- m.GroupId = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotApi
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.GroupId |= int64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 2:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field Enable", wireType)
- }
- var v int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotApi
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- v |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- m.Enable = bool(v != 0)
- default:
- iNdEx = preIndex
- skippy, err := skipOnebotApi(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if skippy < 0 {
- return ErrInvalidLengthOnebotApi
- }
- if (iNdEx + skippy) < 0 {
- return ErrInvalidLengthOnebotApi
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
- iNdEx += skippy
- }
- }
-
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
-}
-func (m *SetGroupWholeBanResp) Unmarshal(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotApi
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: SetGroupWholeBanResp: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: SetGroupWholeBanResp: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- default:
- iNdEx = preIndex
- skippy, err := skipOnebotApi(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if skippy < 0 {
- return ErrInvalidLengthOnebotApi
- }
- if (iNdEx + skippy) < 0 {
- return ErrInvalidLengthOnebotApi
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
- iNdEx += skippy
- }
- }
-
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
-}
-func (m *SetGroupAdminReq) Unmarshal(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotApi
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: SetGroupAdminReq: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: SetGroupAdminReq: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- case 1:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field GroupId", wireType)
- }
- m.GroupId = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotApi
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.GroupId |= int64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 2:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field UserId", wireType)
- }
- m.UserId = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotApi
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.UserId |= int64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 3:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field Enable", wireType)
- }
- var v int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotApi
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- v |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- m.Enable = bool(v != 0)
- default:
- iNdEx = preIndex
- skippy, err := skipOnebotApi(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if skippy < 0 {
- return ErrInvalidLengthOnebotApi
- }
- if (iNdEx + skippy) < 0 {
- return ErrInvalidLengthOnebotApi
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
- iNdEx += skippy
- }
- }
-
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
-}
-func (m *SetGroupAdminResp) Unmarshal(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotApi
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: SetGroupAdminResp: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: SetGroupAdminResp: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- default:
- iNdEx = preIndex
- skippy, err := skipOnebotApi(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if skippy < 0 {
- return ErrInvalidLengthOnebotApi
- }
- if (iNdEx + skippy) < 0 {
- return ErrInvalidLengthOnebotApi
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
- iNdEx += skippy
- }
- }
-
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
-}
-func (m *SetGroupAnonymousReq) Unmarshal(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotApi
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: SetGroupAnonymousReq: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: SetGroupAnonymousReq: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- case 1:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field GroupId", wireType)
- }
- m.GroupId = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotApi
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.GroupId |= int64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 2:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field Enable", wireType)
- }
- var v int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotApi
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- v |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- m.Enable = bool(v != 0)
- default:
- iNdEx = preIndex
- skippy, err := skipOnebotApi(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if skippy < 0 {
- return ErrInvalidLengthOnebotApi
- }
- if (iNdEx + skippy) < 0 {
- return ErrInvalidLengthOnebotApi
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
- iNdEx += skippy
- }
- }
-
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
-}
-func (m *SetGroupAnonymousResp) Unmarshal(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotApi
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: SetGroupAnonymousResp: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: SetGroupAnonymousResp: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- default:
- iNdEx = preIndex
- skippy, err := skipOnebotApi(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if skippy < 0 {
- return ErrInvalidLengthOnebotApi
- }
- if (iNdEx + skippy) < 0 {
- return ErrInvalidLengthOnebotApi
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
- iNdEx += skippy
- }
- }
-
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
-}
-func (m *SetGroupCardReq) Unmarshal(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotApi
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: SetGroupCardReq: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: SetGroupCardReq: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- case 1:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field GroupId", wireType)
- }
- m.GroupId = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotApi
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.GroupId |= int64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 2:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field UserId", wireType)
- }
- m.UserId = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotApi
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.UserId |= int64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 3:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Card", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotApi
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthOnebotApi
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthOnebotApi
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.Card = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- default:
- iNdEx = preIndex
- skippy, err := skipOnebotApi(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if skippy < 0 {
- return ErrInvalidLengthOnebotApi
- }
- if (iNdEx + skippy) < 0 {
- return ErrInvalidLengthOnebotApi
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
- iNdEx += skippy
- }
- }
-
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
-}
-func (m *SetGroupCardResp) Unmarshal(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotApi
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: SetGroupCardResp: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: SetGroupCardResp: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- default:
- iNdEx = preIndex
- skippy, err := skipOnebotApi(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if skippy < 0 {
- return ErrInvalidLengthOnebotApi
- }
- if (iNdEx + skippy) < 0 {
- return ErrInvalidLengthOnebotApi
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
- iNdEx += skippy
- }
- }
-
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
-}
-func (m *SetGroupNameReq) Unmarshal(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotApi
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: SetGroupNameReq: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: SetGroupNameReq: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- case 1:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field GroupId", wireType)
- }
- m.GroupId = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotApi
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.GroupId |= int64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 2:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field GroupName", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotApi
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthOnebotApi
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthOnebotApi
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.GroupName = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- default:
- iNdEx = preIndex
- skippy, err := skipOnebotApi(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if skippy < 0 {
- return ErrInvalidLengthOnebotApi
- }
- if (iNdEx + skippy) < 0 {
- return ErrInvalidLengthOnebotApi
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
- iNdEx += skippy
- }
- }
-
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
-}
-func (m *SetGroupNameResp) Unmarshal(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotApi
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: SetGroupNameResp: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: SetGroupNameResp: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- default:
- iNdEx = preIndex
- skippy, err := skipOnebotApi(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if skippy < 0 {
- return ErrInvalidLengthOnebotApi
- }
- if (iNdEx + skippy) < 0 {
- return ErrInvalidLengthOnebotApi
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
- iNdEx += skippy
- }
- }
-
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
-}
-func (m *SetGroupLeaveReq) Unmarshal(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotApi
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: SetGroupLeaveReq: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: SetGroupLeaveReq: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- case 1:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field GroupId", wireType)
- }
- m.GroupId = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotApi
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.GroupId |= int64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 2:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field IsDismiss", wireType)
- }
- var v int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotApi
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- v |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- m.IsDismiss = bool(v != 0)
- default:
- iNdEx = preIndex
- skippy, err := skipOnebotApi(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if skippy < 0 {
- return ErrInvalidLengthOnebotApi
- }
- if (iNdEx + skippy) < 0 {
- return ErrInvalidLengthOnebotApi
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
- iNdEx += skippy
- }
- }
-
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
-}
-func (m *SetGroupLeaveResp) Unmarshal(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotApi
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: SetGroupLeaveResp: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: SetGroupLeaveResp: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- default:
- iNdEx = preIndex
- skippy, err := skipOnebotApi(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if skippy < 0 {
- return ErrInvalidLengthOnebotApi
- }
- if (iNdEx + skippy) < 0 {
- return ErrInvalidLengthOnebotApi
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
- iNdEx += skippy
- }
- }
-
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
-}
-func (m *SetGroupSpecialTitleReq) Unmarshal(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotApi
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: SetGroupSpecialTitleReq: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: SetGroupSpecialTitleReq: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- case 1:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field GroupId", wireType)
- }
- m.GroupId = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotApi
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.GroupId |= int64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 2:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field UserId", wireType)
- }
- m.UserId = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotApi
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.UserId |= int64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 3:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field SpecialTitle", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotApi
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthOnebotApi
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthOnebotApi
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.SpecialTitle = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- case 4:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field Duration", wireType)
- }
- m.Duration = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotApi
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.Duration |= int64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- default:
- iNdEx = preIndex
- skippy, err := skipOnebotApi(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if skippy < 0 {
- return ErrInvalidLengthOnebotApi
- }
- if (iNdEx + skippy) < 0 {
- return ErrInvalidLengthOnebotApi
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
- iNdEx += skippy
- }
- }
-
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
-}
-func (m *SetGroupSpecialTitleResp) Unmarshal(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotApi
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: SetGroupSpecialTitleResp: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: SetGroupSpecialTitleResp: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- default:
- iNdEx = preIndex
- skippy, err := skipOnebotApi(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if skippy < 0 {
- return ErrInvalidLengthOnebotApi
- }
- if (iNdEx + skippy) < 0 {
- return ErrInvalidLengthOnebotApi
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
- iNdEx += skippy
- }
- }
-
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
-}
-func (m *SetFriendAddRequestReq) Unmarshal(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotApi
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: SetFriendAddRequestReq: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: SetFriendAddRequestReq: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- case 1:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Flag", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotApi
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthOnebotApi
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthOnebotApi
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.Flag = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- case 2:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field Approve", wireType)
- }
- var v int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotApi
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- v |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- m.Approve = bool(v != 0)
- case 3:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Remark", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotApi
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthOnebotApi
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthOnebotApi
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.Remark = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- default:
- iNdEx = preIndex
- skippy, err := skipOnebotApi(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if skippy < 0 {
- return ErrInvalidLengthOnebotApi
- }
- if (iNdEx + skippy) < 0 {
- return ErrInvalidLengthOnebotApi
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
- iNdEx += skippy
- }
- }
-
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
-}
-func (m *SetFriendAddRequestResp) Unmarshal(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotApi
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: SetFriendAddRequestResp: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: SetFriendAddRequestResp: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- default:
- iNdEx = preIndex
- skippy, err := skipOnebotApi(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if skippy < 0 {
- return ErrInvalidLengthOnebotApi
- }
- if (iNdEx + skippy) < 0 {
- return ErrInvalidLengthOnebotApi
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
- iNdEx += skippy
- }
- }
-
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
-}
-func (m *SetGroupAddRequestReq) Unmarshal(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotApi
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: SetGroupAddRequestReq: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: SetGroupAddRequestReq: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- case 1:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Flag", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotApi
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthOnebotApi
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthOnebotApi
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.Flag = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- case 2:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field SubType", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotApi
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthOnebotApi
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthOnebotApi
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.SubType = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- case 3:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotApi
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthOnebotApi
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthOnebotApi
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.Type = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- case 4:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field Approve", wireType)
- }
- var v int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotApi
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- v |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- m.Approve = bool(v != 0)
- case 5:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Reason", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotApi
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthOnebotApi
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthOnebotApi
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.Reason = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- default:
- iNdEx = preIndex
- skippy, err := skipOnebotApi(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if skippy < 0 {
- return ErrInvalidLengthOnebotApi
- }
- if (iNdEx + skippy) < 0 {
- return ErrInvalidLengthOnebotApi
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
- iNdEx += skippy
- }
- }
-
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
-}
-func (m *SetGroupAddRequestResp) Unmarshal(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotApi
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: SetGroupAddRequestResp: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: SetGroupAddRequestResp: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- default:
- iNdEx = preIndex
- skippy, err := skipOnebotApi(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if skippy < 0 {
- return ErrInvalidLengthOnebotApi
- }
- if (iNdEx + skippy) < 0 {
- return ErrInvalidLengthOnebotApi
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
- iNdEx += skippy
- }
- }
-
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
-}
-func (m *GetLoginInfoReq) Unmarshal(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotApi
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: GetLoginInfoReq: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: GetLoginInfoReq: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- default:
- iNdEx = preIndex
- skippy, err := skipOnebotApi(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if skippy < 0 {
- return ErrInvalidLengthOnebotApi
- }
- if (iNdEx + skippy) < 0 {
- return ErrInvalidLengthOnebotApi
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
- iNdEx += skippy
- }
- }
-
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
-}
-func (m *GetLoginInfoResp) Unmarshal(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotApi
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: GetLoginInfoResp: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: GetLoginInfoResp: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- case 1:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field UserId", wireType)
- }
- m.UserId = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotApi
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.UserId |= int64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 2:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Nickname", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotApi
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthOnebotApi
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthOnebotApi
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.Nickname = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- default:
- iNdEx = preIndex
- skippy, err := skipOnebotApi(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if skippy < 0 {
- return ErrInvalidLengthOnebotApi
- }
- if (iNdEx + skippy) < 0 {
- return ErrInvalidLengthOnebotApi
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
- iNdEx += skippy
- }
- }
-
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
-}
-func (m *GetStrangerInfoReq) Unmarshal(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotApi
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: GetStrangerInfoReq: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: GetStrangerInfoReq: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- case 1:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field UserId", wireType)
- }
- m.UserId = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotApi
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.UserId |= int64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 2:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field NoCache", wireType)
- }
- var v int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotApi
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- v |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- m.NoCache = bool(v != 0)
- default:
- iNdEx = preIndex
- skippy, err := skipOnebotApi(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if skippy < 0 {
- return ErrInvalidLengthOnebotApi
- }
- if (iNdEx + skippy) < 0 {
- return ErrInvalidLengthOnebotApi
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
- iNdEx += skippy
- }
- }
-
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
-}
-func (m *GetStrangerInfoResp) Unmarshal(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotApi
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: GetStrangerInfoResp: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: GetStrangerInfoResp: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- case 1:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field UserId", wireType)
- }
- m.UserId = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotApi
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.UserId |= int64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 2:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Nickname", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotApi
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthOnebotApi
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthOnebotApi
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.Nickname = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- case 3:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Sex", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotApi
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthOnebotApi
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthOnebotApi
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.Sex = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- case 4:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field Age", wireType)
- }
- m.Age = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotApi
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.Age |= int32(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 5:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field Level", wireType)
- }
- m.Level = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotApi
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.Level |= int32(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 6:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field LoginDays", wireType)
- }
- m.LoginDays = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotApi
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.LoginDays |= int64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- default:
- iNdEx = preIndex
- skippy, err := skipOnebotApi(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if skippy < 0 {
- return ErrInvalidLengthOnebotApi
- }
- if (iNdEx + skippy) < 0 {
- return ErrInvalidLengthOnebotApi
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
- iNdEx += skippy
- }
- }
-
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
-}
-func (m *GetFriendListReq) Unmarshal(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotApi
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: GetFriendListReq: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: GetFriendListReq: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- default:
- iNdEx = preIndex
- skippy, err := skipOnebotApi(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if skippy < 0 {
- return ErrInvalidLengthOnebotApi
- }
- if (iNdEx + skippy) < 0 {
- return ErrInvalidLengthOnebotApi
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
- iNdEx += skippy
- }
- }
-
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
-}
-func (m *GetFriendListResp) Unmarshal(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotApi
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: GetFriendListResp: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: GetFriendListResp: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- case 1:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Friend", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotApi
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return ErrInvalidLengthOnebotApi
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return ErrInvalidLengthOnebotApi
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.Friend = append(m.Friend, &GetFriendListResp_Friend{})
- if err := m.Friend[len(m.Friend)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- iNdEx = postIndex
- default:
- iNdEx = preIndex
- skippy, err := skipOnebotApi(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if skippy < 0 {
- return ErrInvalidLengthOnebotApi
- }
- if (iNdEx + skippy) < 0 {
- return ErrInvalidLengthOnebotApi
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
- iNdEx += skippy
- }
- }
-
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
-}
-func (m *GetFriendListResp_Friend) Unmarshal(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotApi
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: Friend: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: Friend: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- case 1:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field UserId", wireType)
- }
- m.UserId = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotApi
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.UserId |= int64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 2:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Nickname", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotApi
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthOnebotApi
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthOnebotApi
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.Nickname = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- case 3:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Remark", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotApi
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthOnebotApi
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthOnebotApi
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.Remark = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- default:
- iNdEx = preIndex
- skippy, err := skipOnebotApi(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if skippy < 0 {
- return ErrInvalidLengthOnebotApi
- }
- if (iNdEx + skippy) < 0 {
- return ErrInvalidLengthOnebotApi
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
- iNdEx += skippy
- }
- }
-
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
-}
-func (m *GetGroupInfoReq) Unmarshal(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotApi
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: GetGroupInfoReq: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: GetGroupInfoReq: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- case 1:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field GroupId", wireType)
- }
- m.GroupId = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotApi
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.GroupId |= int64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 2:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field NoCache", wireType)
- }
- var v int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotApi
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- v |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- m.NoCache = bool(v != 0)
- default:
- iNdEx = preIndex
- skippy, err := skipOnebotApi(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if skippy < 0 {
- return ErrInvalidLengthOnebotApi
- }
- if (iNdEx + skippy) < 0 {
- return ErrInvalidLengthOnebotApi
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
- iNdEx += skippy
- }
- }
-
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
-}
-func (m *GetGroupInfoResp) Unmarshal(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotApi
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: GetGroupInfoResp: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: GetGroupInfoResp: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- case 1:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field GroupId", wireType)
- }
- m.GroupId = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotApi
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.GroupId |= int64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 2:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field GroupName", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotApi
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthOnebotApi
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthOnebotApi
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.GroupName = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- case 3:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field MemberCount", wireType)
- }
- m.MemberCount = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotApi
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.MemberCount |= int32(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 4:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field MaxMemberCount", wireType)
- }
- m.MaxMemberCount = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotApi
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.MaxMemberCount |= int32(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- default:
- iNdEx = preIndex
- skippy, err := skipOnebotApi(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if skippy < 0 {
- return ErrInvalidLengthOnebotApi
- }
- if (iNdEx + skippy) < 0 {
- return ErrInvalidLengthOnebotApi
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
- iNdEx += skippy
- }
- }
-
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
-}
-func (m *GetGroupListReq) Unmarshal(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotApi
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: GetGroupListReq: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: GetGroupListReq: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- default:
- iNdEx = preIndex
- skippy, err := skipOnebotApi(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if skippy < 0 {
- return ErrInvalidLengthOnebotApi
- }
- if (iNdEx + skippy) < 0 {
- return ErrInvalidLengthOnebotApi
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
- iNdEx += skippy
- }
- }
-
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
-}
-func (m *GetGroupListResp) Unmarshal(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotApi
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: GetGroupListResp: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: GetGroupListResp: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- case 1:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Group", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotApi
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return ErrInvalidLengthOnebotApi
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return ErrInvalidLengthOnebotApi
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.Group = append(m.Group, &GetGroupListResp_Group{})
- if err := m.Group[len(m.Group)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- iNdEx = postIndex
- default:
- iNdEx = preIndex
- skippy, err := skipOnebotApi(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if skippy < 0 {
- return ErrInvalidLengthOnebotApi
- }
- if (iNdEx + skippy) < 0 {
- return ErrInvalidLengthOnebotApi
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
- iNdEx += skippy
- }
- }
-
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
-}
-func (m *GetGroupListResp_Group) Unmarshal(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotApi
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: Group: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: Group: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- case 1:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field GroupId", wireType)
- }
- m.GroupId = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotApi
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.GroupId |= int64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 2:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field GroupName", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotApi
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthOnebotApi
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthOnebotApi
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.GroupName = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- case 3:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field MemberCount", wireType)
- }
- m.MemberCount = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotApi
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.MemberCount |= int32(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 4:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field MaxMemberCount", wireType)
- }
- m.MaxMemberCount = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotApi
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.MaxMemberCount |= int32(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- default:
- iNdEx = preIndex
- skippy, err := skipOnebotApi(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if skippy < 0 {
- return ErrInvalidLengthOnebotApi
- }
- if (iNdEx + skippy) < 0 {
- return ErrInvalidLengthOnebotApi
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
- iNdEx += skippy
- }
- }
-
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
-}
-func (m *GetGroupMemberInfoReq) Unmarshal(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotApi
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: GetGroupMemberInfoReq: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: GetGroupMemberInfoReq: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- case 1:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field GroupId", wireType)
- }
- m.GroupId = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotApi
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.GroupId |= int64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 2:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field UserId", wireType)
- }
- m.UserId = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotApi
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.UserId |= int64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 3:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field NoCache", wireType)
- }
- var v int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotApi
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- v |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- m.NoCache = bool(v != 0)
- default:
- iNdEx = preIndex
- skippy, err := skipOnebotApi(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if skippy < 0 {
- return ErrInvalidLengthOnebotApi
- }
- if (iNdEx + skippy) < 0 {
- return ErrInvalidLengthOnebotApi
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
- iNdEx += skippy
- }
- }
-
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
-}
-func (m *GetGroupMemberInfoResp) Unmarshal(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotApi
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: GetGroupMemberInfoResp: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: GetGroupMemberInfoResp: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- case 1:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field GroupId", wireType)
- }
- m.GroupId = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotApi
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.GroupId |= int64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 2:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field UserId", wireType)
- }
- m.UserId = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotApi
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.UserId |= int64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 3:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Nickname", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotApi
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthOnebotApi
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthOnebotApi
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.Nickname = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- case 4:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Card", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotApi
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthOnebotApi
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthOnebotApi
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.Card = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- case 5:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Sex", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotApi
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthOnebotApi
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthOnebotApi
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.Sex = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- case 6:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field Age", wireType)
- }
- m.Age = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotApi
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.Age |= int32(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 7:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Area", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotApi
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthOnebotApi
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthOnebotApi
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.Area = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- case 8:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field JoinTime", wireType)
- }
- m.JoinTime = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotApi
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.JoinTime |= int64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 9:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field LastSentTime", wireType)
- }
- m.LastSentTime = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotApi
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.LastSentTime |= int64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 10:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Level", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotApi
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthOnebotApi
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthOnebotApi
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.Level = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- case 11:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Role", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotApi
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthOnebotApi
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthOnebotApi
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.Role = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- case 12:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field Unfriendly", wireType)
- }
- var v int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotApi
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- v |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- m.Unfriendly = bool(v != 0)
- case 13:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Title", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotApi
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthOnebotApi
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthOnebotApi
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.Title = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- case 14:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field TitleExpireTime", wireType)
- }
- m.TitleExpireTime = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotApi
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.TitleExpireTime |= int64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 15:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field CardChangeable", wireType)
- }
- var v int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotApi
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- v |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- m.CardChangeable = bool(v != 0)
- default:
- iNdEx = preIndex
- skippy, err := skipOnebotApi(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if skippy < 0 {
- return ErrInvalidLengthOnebotApi
- }
- if (iNdEx + skippy) < 0 {
- return ErrInvalidLengthOnebotApi
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
- iNdEx += skippy
- }
- }
-
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
-}
-func (m *GetGroupMemberListReq) Unmarshal(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotApi
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: GetGroupMemberListReq: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: GetGroupMemberListReq: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- case 1:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field GroupId", wireType)
- }
- m.GroupId = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotApi
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.GroupId |= int64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- default:
- iNdEx = preIndex
- skippy, err := skipOnebotApi(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if skippy < 0 {
- return ErrInvalidLengthOnebotApi
- }
- if (iNdEx + skippy) < 0 {
- return ErrInvalidLengthOnebotApi
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
- iNdEx += skippy
- }
- }
-
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
-}
-func (m *GetGroupMemberListResp) Unmarshal(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotApi
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: GetGroupMemberListResp: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: GetGroupMemberListResp: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- case 1:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field GroupMember", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotApi
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return ErrInvalidLengthOnebotApi
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return ErrInvalidLengthOnebotApi
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.GroupMember = append(m.GroupMember, &GetGroupMemberListResp_GroupMember{})
- if err := m.GroupMember[len(m.GroupMember)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- iNdEx = postIndex
- default:
- iNdEx = preIndex
- skippy, err := skipOnebotApi(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if skippy < 0 {
- return ErrInvalidLengthOnebotApi
- }
- if (iNdEx + skippy) < 0 {
- return ErrInvalidLengthOnebotApi
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
- iNdEx += skippy
- }
- }
-
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
-}
-func (m *GetGroupMemberListResp_GroupMember) Unmarshal(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotApi
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: GroupMember: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: GroupMember: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- case 1:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field GroupId", wireType)
- }
- m.GroupId = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotApi
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.GroupId |= int64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 2:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field UserId", wireType)
- }
- m.UserId = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotApi
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.UserId |= int64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 3:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Nickname", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotApi
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthOnebotApi
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthOnebotApi
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.Nickname = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- case 4:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Card", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotApi
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthOnebotApi
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthOnebotApi
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.Card = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- case 5:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Sex", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotApi
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthOnebotApi
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthOnebotApi
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.Sex = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- case 6:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field Age", wireType)
- }
- m.Age = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotApi
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.Age |= int32(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 7:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Area", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotApi
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthOnebotApi
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthOnebotApi
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.Area = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- case 8:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field JoinTime", wireType)
- }
- m.JoinTime = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotApi
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.JoinTime |= int64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 9:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field LastSentTime", wireType)
- }
- m.LastSentTime = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotApi
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.LastSentTime |= int64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 10:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Level", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotApi
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthOnebotApi
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthOnebotApi
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.Level = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- case 11:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Role", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotApi
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthOnebotApi
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthOnebotApi
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.Role = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- case 12:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field Unfriendly", wireType)
- }
- var v int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotApi
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- v |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- m.Unfriendly = bool(v != 0)
- case 13:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Title", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotApi
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthOnebotApi
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthOnebotApi
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.Title = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- case 14:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field TitleExpireTime", wireType)
- }
- m.TitleExpireTime = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotApi
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.TitleExpireTime |= int64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 15:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field CardChangeable", wireType)
- }
- var v int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotApi
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- v |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- m.CardChangeable = bool(v != 0)
- default:
- iNdEx = preIndex
- skippy, err := skipOnebotApi(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if skippy < 0 {
- return ErrInvalidLengthOnebotApi
- }
- if (iNdEx + skippy) < 0 {
- return ErrInvalidLengthOnebotApi
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
- iNdEx += skippy
- }
- }
-
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
-}
-func (m *GetGroupHonorInfoReq) Unmarshal(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotApi
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: GetGroupHonorInfoReq: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: GetGroupHonorInfoReq: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- case 1:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field GroupId", wireType)
- }
- m.GroupId = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotApi
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.GroupId |= int64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 2:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotApi
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthOnebotApi
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthOnebotApi
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.Type = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- default:
- iNdEx = preIndex
- skippy, err := skipOnebotApi(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if skippy < 0 {
- return ErrInvalidLengthOnebotApi
- }
- if (iNdEx + skippy) < 0 {
- return ErrInvalidLengthOnebotApi
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
- iNdEx += skippy
- }
- }
-
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
-}
-func (m *GetGroupHonorInfoResp) Unmarshal(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotApi
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: GetGroupHonorInfoResp: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: GetGroupHonorInfoResp: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- case 1:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field GroupId", wireType)
- }
- m.GroupId = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotApi
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.GroupId |= int64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 2:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field CurrentTalkative", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotApi
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return ErrInvalidLengthOnebotApi
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return ErrInvalidLengthOnebotApi
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- if m.CurrentTalkative == nil {
- m.CurrentTalkative = &GetGroupHonorInfoResp_CurrentTalkative{}
- }
- if err := m.CurrentTalkative.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- iNdEx = postIndex
- case 3:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Talkative", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotApi
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return ErrInvalidLengthOnebotApi
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return ErrInvalidLengthOnebotApi
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.Talkative = append(m.Talkative, &GetGroupHonorInfoResp_Honor{})
- if err := m.Talkative[len(m.Talkative)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- iNdEx = postIndex
- case 4:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Performer", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotApi
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return ErrInvalidLengthOnebotApi
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return ErrInvalidLengthOnebotApi
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.Performer = append(m.Performer, &GetGroupHonorInfoResp_Honor{})
- if err := m.Performer[len(m.Performer)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- iNdEx = postIndex
- case 5:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Legend", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotApi
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return ErrInvalidLengthOnebotApi
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return ErrInvalidLengthOnebotApi
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.Legend = append(m.Legend, &GetGroupHonorInfoResp_Honor{})
- if err := m.Legend[len(m.Legend)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- iNdEx = postIndex
- case 6:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field StrongNewbie", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotApi
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return ErrInvalidLengthOnebotApi
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return ErrInvalidLengthOnebotApi
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.StrongNewbie = append(m.StrongNewbie, &GetGroupHonorInfoResp_Honor{})
- if err := m.StrongNewbie[len(m.StrongNewbie)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- iNdEx = postIndex
- case 7:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Emotion", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotApi
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return ErrInvalidLengthOnebotApi
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return ErrInvalidLengthOnebotApi
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.Emotion = append(m.Emotion, &GetGroupHonorInfoResp_Honor{})
- if err := m.Emotion[len(m.Emotion)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- iNdEx = postIndex
- default:
- iNdEx = preIndex
- skippy, err := skipOnebotApi(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if skippy < 0 {
- return ErrInvalidLengthOnebotApi
- }
- if (iNdEx + skippy) < 0 {
- return ErrInvalidLengthOnebotApi
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
- iNdEx += skippy
- }
- }
-
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
-}
-func (m *GetGroupHonorInfoResp_CurrentTalkative) Unmarshal(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotApi
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: CurrentTalkative: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: CurrentTalkative: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- case 1:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field UserId", wireType)
- }
- m.UserId = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotApi
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.UserId |= int64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 2:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Nickname", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotApi
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthOnebotApi
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthOnebotApi
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.Nickname = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- case 3:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Avatar", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotApi
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthOnebotApi
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthOnebotApi
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.Avatar = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- case 4:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field DayCount", wireType)
- }
- m.DayCount = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotApi
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.DayCount |= int32(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- default:
- iNdEx = preIndex
- skippy, err := skipOnebotApi(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if skippy < 0 {
- return ErrInvalidLengthOnebotApi
- }
- if (iNdEx + skippy) < 0 {
- return ErrInvalidLengthOnebotApi
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
- iNdEx += skippy
- }
- }
-
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
-}
-func (m *GetGroupHonorInfoResp_Honor) Unmarshal(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotApi
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: Honor: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: Honor: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- case 1:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field UserId", wireType)
- }
- m.UserId = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotApi
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.UserId |= int64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 2:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Nickname", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotApi
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthOnebotApi
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthOnebotApi
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.Nickname = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- case 3:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Avatar", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotApi
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthOnebotApi
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthOnebotApi
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.Avatar = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- case 4:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Description", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotApi
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthOnebotApi
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthOnebotApi
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.Description = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- default:
- iNdEx = preIndex
- skippy, err := skipOnebotApi(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if skippy < 0 {
- return ErrInvalidLengthOnebotApi
- }
- if (iNdEx + skippy) < 0 {
- return ErrInvalidLengthOnebotApi
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
- iNdEx += skippy
- }
- }
-
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
-}
-func (m *GetCookiesReq) Unmarshal(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotApi
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: GetCookiesReq: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: GetCookiesReq: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- case 1:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Domain", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotApi
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthOnebotApi
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthOnebotApi
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.Domain = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- default:
- iNdEx = preIndex
- skippy, err := skipOnebotApi(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if skippy < 0 {
- return ErrInvalidLengthOnebotApi
- }
- if (iNdEx + skippy) < 0 {
- return ErrInvalidLengthOnebotApi
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
- iNdEx += skippy
- }
- }
-
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
-}
-func (m *GetCookiesResp) Unmarshal(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotApi
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: GetCookiesResp: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: GetCookiesResp: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- case 1:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Cookies", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotApi
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthOnebotApi
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthOnebotApi
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.Cookies = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- default:
- iNdEx = preIndex
- skippy, err := skipOnebotApi(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if skippy < 0 {
- return ErrInvalidLengthOnebotApi
- }
- if (iNdEx + skippy) < 0 {
- return ErrInvalidLengthOnebotApi
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
- iNdEx += skippy
- }
- }
-
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
-}
-func (m *GetCsrfTokenReq) Unmarshal(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotApi
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: GetCsrfTokenReq: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: GetCsrfTokenReq: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- default:
- iNdEx = preIndex
- skippy, err := skipOnebotApi(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if skippy < 0 {
- return ErrInvalidLengthOnebotApi
- }
- if (iNdEx + skippy) < 0 {
- return ErrInvalidLengthOnebotApi
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
- iNdEx += skippy
- }
- }
-
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
-}
-func (m *GetCsrfTokenResp) Unmarshal(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotApi
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: GetCsrfTokenResp: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: GetCsrfTokenResp: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- case 1:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field Token", wireType)
- }
- m.Token = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotApi
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.Token |= int32(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- default:
- iNdEx = preIndex
- skippy, err := skipOnebotApi(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if skippy < 0 {
- return ErrInvalidLengthOnebotApi
- }
- if (iNdEx + skippy) < 0 {
- return ErrInvalidLengthOnebotApi
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
- iNdEx += skippy
- }
- }
-
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
-}
-func (m *GetCredentialsReq) Unmarshal(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotApi
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: GetCredentialsReq: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: GetCredentialsReq: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- case 1:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Domain", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotApi
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthOnebotApi
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthOnebotApi
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.Domain = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- default:
- iNdEx = preIndex
- skippy, err := skipOnebotApi(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if skippy < 0 {
- return ErrInvalidLengthOnebotApi
- }
- if (iNdEx + skippy) < 0 {
- return ErrInvalidLengthOnebotApi
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
- iNdEx += skippy
- }
- }
-
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
-}
-func (m *GetCredentialsResp) Unmarshal(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotApi
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: GetCredentialsResp: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: GetCredentialsResp: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- case 1:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Cookies", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotApi
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthOnebotApi
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthOnebotApi
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.Cookies = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- case 2:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field CsrfToken", wireType)
- }
- m.CsrfToken = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotApi
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.CsrfToken |= int32(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- default:
- iNdEx = preIndex
- skippy, err := skipOnebotApi(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if skippy < 0 {
- return ErrInvalidLengthOnebotApi
- }
- if (iNdEx + skippy) < 0 {
- return ErrInvalidLengthOnebotApi
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
- iNdEx += skippy
- }
- }
-
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
-}
-func (m *GetRecordReq) Unmarshal(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotApi
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: GetRecordReq: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: GetRecordReq: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- case 1:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field File", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotApi
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthOnebotApi
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthOnebotApi
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.File = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- case 2:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field OutFormat", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotApi
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthOnebotApi
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthOnebotApi
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.OutFormat = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- default:
- iNdEx = preIndex
- skippy, err := skipOnebotApi(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if skippy < 0 {
- return ErrInvalidLengthOnebotApi
- }
- if (iNdEx + skippy) < 0 {
- return ErrInvalidLengthOnebotApi
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
- iNdEx += skippy
- }
- }
-
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
-}
-func (m *GetRecordResp) Unmarshal(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotApi
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: GetRecordResp: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: GetRecordResp: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- case 1:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field File", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotApi
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthOnebotApi
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthOnebotApi
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.File = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- default:
- iNdEx = preIndex
- skippy, err := skipOnebotApi(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if skippy < 0 {
- return ErrInvalidLengthOnebotApi
- }
- if (iNdEx + skippy) < 0 {
- return ErrInvalidLengthOnebotApi
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
- iNdEx += skippy
- }
- }
-
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
-}
-func (m *GetImageReq) Unmarshal(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotApi
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: GetImageReq: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: GetImageReq: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- case 1:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field File", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotApi
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthOnebotApi
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthOnebotApi
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.File = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- default:
- iNdEx = preIndex
- skippy, err := skipOnebotApi(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if skippy < 0 {
- return ErrInvalidLengthOnebotApi
- }
- if (iNdEx + skippy) < 0 {
- return ErrInvalidLengthOnebotApi
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
- iNdEx += skippy
- }
- }
-
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
-}
-func (m *GetImageResp) Unmarshal(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotApi
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: GetImageResp: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: GetImageResp: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- case 1:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field File", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotApi
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthOnebotApi
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthOnebotApi
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.File = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- default:
- iNdEx = preIndex
- skippy, err := skipOnebotApi(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if skippy < 0 {
- return ErrInvalidLengthOnebotApi
- }
- if (iNdEx + skippy) < 0 {
- return ErrInvalidLengthOnebotApi
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
- iNdEx += skippy
- }
- }
-
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
-}
-func (m *CanSendImageReq) Unmarshal(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotApi
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: CanSendImageReq: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: CanSendImageReq: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- default:
- iNdEx = preIndex
- skippy, err := skipOnebotApi(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if skippy < 0 {
- return ErrInvalidLengthOnebotApi
- }
- if (iNdEx + skippy) < 0 {
- return ErrInvalidLengthOnebotApi
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
- iNdEx += skippy
- }
- }
-
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
-}
-func (m *CanSendImageResp) Unmarshal(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotApi
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: CanSendImageResp: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: CanSendImageResp: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- case 1:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field Yes", wireType)
- }
- var v int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotApi
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- v |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- m.Yes = bool(v != 0)
- default:
- iNdEx = preIndex
- skippy, err := skipOnebotApi(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if skippy < 0 {
- return ErrInvalidLengthOnebotApi
- }
- if (iNdEx + skippy) < 0 {
- return ErrInvalidLengthOnebotApi
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
- iNdEx += skippy
- }
- }
-
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
-}
-func (m *CanSendRecordReq) Unmarshal(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotApi
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: CanSendRecordReq: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: CanSendRecordReq: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- default:
- iNdEx = preIndex
- skippy, err := skipOnebotApi(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if skippy < 0 {
- return ErrInvalidLengthOnebotApi
- }
- if (iNdEx + skippy) < 0 {
- return ErrInvalidLengthOnebotApi
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
- iNdEx += skippy
- }
- }
-
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
-}
-func (m *CanSendRecordResp) Unmarshal(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotApi
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: CanSendRecordResp: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: CanSendRecordResp: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- case 1:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field Yes", wireType)
- }
- var v int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotApi
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- v |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- m.Yes = bool(v != 0)
- default:
- iNdEx = preIndex
- skippy, err := skipOnebotApi(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if skippy < 0 {
- return ErrInvalidLengthOnebotApi
- }
- if (iNdEx + skippy) < 0 {
- return ErrInvalidLengthOnebotApi
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
- iNdEx += skippy
- }
- }
-
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
-}
-func (m *GetStatusReq) Unmarshal(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotApi
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: GetStatusReq: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: GetStatusReq: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- default:
- iNdEx = preIndex
- skippy, err := skipOnebotApi(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if skippy < 0 {
- return ErrInvalidLengthOnebotApi
- }
- if (iNdEx + skippy) < 0 {
- return ErrInvalidLengthOnebotApi
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
- iNdEx += skippy
- }
- }
-
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
-}
-func (m *GetStatusResp) Unmarshal(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotApi
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: GetStatusResp: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: GetStatusResp: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- case 1:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field Online", wireType)
- }
- var v int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotApi
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- v |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- m.Online = bool(v != 0)
- case 2:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field Good", wireType)
- }
- var v int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotApi
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- v |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- m.Good = bool(v != 0)
- default:
- iNdEx = preIndex
- skippy, err := skipOnebotApi(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if skippy < 0 {
- return ErrInvalidLengthOnebotApi
- }
- if (iNdEx + skippy) < 0 {
- return ErrInvalidLengthOnebotApi
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
- iNdEx += skippy
- }
- }
-
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
-}
-func (m *GetVersionInfoReq) Unmarshal(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotApi
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: GetVersionInfoReq: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: GetVersionInfoReq: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- default:
- iNdEx = preIndex
- skippy, err := skipOnebotApi(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if skippy < 0 {
- return ErrInvalidLengthOnebotApi
- }
- if (iNdEx + skippy) < 0 {
- return ErrInvalidLengthOnebotApi
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
- iNdEx += skippy
- }
- }
-
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
-}
-func (m *GetVersionInfoResp) Unmarshal(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotApi
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: GetVersionInfoResp: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: GetVersionInfoResp: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- case 1:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field AppName", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotApi
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthOnebotApi
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthOnebotApi
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.AppName = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- case 2:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field AppVersion", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotApi
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthOnebotApi
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthOnebotApi
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.AppVersion = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- case 3:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field ProtocolVersion", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotApi
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthOnebotApi
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthOnebotApi
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.ProtocolVersion = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- case 4:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Extra", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotApi
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return ErrInvalidLengthOnebotApi
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return ErrInvalidLengthOnebotApi
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- if m.Extra == nil {
- m.Extra = make(map[string]string)
- }
- var mapkey string
- var mapvalue string
- for iNdEx < postIndex {
- entryPreIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotApi
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- if fieldNum == 1 {
- var stringLenmapkey uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotApi
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLenmapkey |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLenmapkey := int(stringLenmapkey)
- if intStringLenmapkey < 0 {
- return ErrInvalidLengthOnebotApi
- }
- postStringIndexmapkey := iNdEx + intStringLenmapkey
- if postStringIndexmapkey < 0 {
- return ErrInvalidLengthOnebotApi
- }
- if postStringIndexmapkey > l {
- return io.ErrUnexpectedEOF
- }
- mapkey = string(dAtA[iNdEx:postStringIndexmapkey])
- iNdEx = postStringIndexmapkey
- } else if fieldNum == 2 {
- var stringLenmapvalue uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotApi
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLenmapvalue |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLenmapvalue := int(stringLenmapvalue)
- if intStringLenmapvalue < 0 {
- return ErrInvalidLengthOnebotApi
- }
- postStringIndexmapvalue := iNdEx + intStringLenmapvalue
- if postStringIndexmapvalue < 0 {
- return ErrInvalidLengthOnebotApi
- }
- if postStringIndexmapvalue > l {
- return io.ErrUnexpectedEOF
- }
- mapvalue = string(dAtA[iNdEx:postStringIndexmapvalue])
- iNdEx = postStringIndexmapvalue
- } else {
- iNdEx = entryPreIndex
- skippy, err := skipOnebotApi(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if skippy < 0 {
- return ErrInvalidLengthOnebotApi
- }
- if (iNdEx + skippy) > postIndex {
- return io.ErrUnexpectedEOF
- }
- iNdEx += skippy
- }
- }
- m.Extra[mapkey] = mapvalue
- iNdEx = postIndex
- default:
- iNdEx = preIndex
- skippy, err := skipOnebotApi(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if skippy < 0 {
- return ErrInvalidLengthOnebotApi
- }
- if (iNdEx + skippy) < 0 {
- return ErrInvalidLengthOnebotApi
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
- iNdEx += skippy
- }
- }
-
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
-}
-func (m *SetRestartReq) Unmarshal(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotApi
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: SetRestartReq: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: SetRestartReq: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- case 1:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field Delay", wireType)
- }
- m.Delay = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotApi
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.Delay |= int32(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- default:
- iNdEx = preIndex
- skippy, err := skipOnebotApi(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if skippy < 0 {
- return ErrInvalidLengthOnebotApi
- }
- if (iNdEx + skippy) < 0 {
- return ErrInvalidLengthOnebotApi
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
- iNdEx += skippy
- }
- }
-
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
-}
-func (m *SetRestartResp) Unmarshal(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotApi
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: SetRestartResp: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: SetRestartResp: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- default:
- iNdEx = preIndex
- skippy, err := skipOnebotApi(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if skippy < 0 {
- return ErrInvalidLengthOnebotApi
- }
- if (iNdEx + skippy) < 0 {
- return ErrInvalidLengthOnebotApi
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
- iNdEx += skippy
- }
- }
-
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
-}
-func (m *CleanCacheReq) Unmarshal(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotApi
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: CleanCacheReq: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: CleanCacheReq: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- default:
- iNdEx = preIndex
- skippy, err := skipOnebotApi(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if skippy < 0 {
- return ErrInvalidLengthOnebotApi
- }
- if (iNdEx + skippy) < 0 {
- return ErrInvalidLengthOnebotApi
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
- iNdEx += skippy
- }
- }
-
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
-}
-func (m *CleanCacheResp) Unmarshal(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotApi
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: CleanCacheResp: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: CleanCacheResp: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- default:
- iNdEx = preIndex
- skippy, err := skipOnebotApi(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if skippy < 0 {
- return ErrInvalidLengthOnebotApi
- }
- if (iNdEx + skippy) < 0 {
- return ErrInvalidLengthOnebotApi
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
- iNdEx += skippy
- }
- }
-
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
-}
-func (m *SetGroupSignInReq) Unmarshal(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotApi
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: SetGroupSignInReq: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: SetGroupSignInReq: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- case 1:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field GroupId", wireType)
- }
- m.GroupId = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotApi
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.GroupId |= int64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- default:
- iNdEx = preIndex
- skippy, err := skipOnebotApi(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if skippy < 0 {
- return ErrInvalidLengthOnebotApi
- }
- if (iNdEx + skippy) < 0 {
- return ErrInvalidLengthOnebotApi
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
- iNdEx += skippy
- }
- }
-
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
-}
-func (m *SetGroupSignInResp) Unmarshal(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotApi
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: SetGroupSignInResp: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: SetGroupSignInResp: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- default:
- iNdEx = preIndex
- skippy, err := skipOnebotApi(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if skippy < 0 {
- return ErrInvalidLengthOnebotApi
- }
- if (iNdEx + skippy) < 0 {
- return ErrInvalidLengthOnebotApi
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
- iNdEx += skippy
- }
- }
-
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
-}
-func (m *SendMusicReq) Unmarshal(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotApi
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: SendMusicReq: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: SendMusicReq: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- case 1:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field GroupId", wireType)
- }
- m.GroupId = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotApi
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.GroupId |= int64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 2:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field UserId", wireType)
- }
- m.UserId = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotApi
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.UserId |= int64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 3:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotApi
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthOnebotApi
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthOnebotApi
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.Type = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- case 4:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Title", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotApi
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthOnebotApi
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthOnebotApi
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.Title = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- case 5:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Brief", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotApi
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthOnebotApi
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthOnebotApi
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.Brief = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- case 6:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Summary", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotApi
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthOnebotApi
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthOnebotApi
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.Summary = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- case 7:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Url", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotApi
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthOnebotApi
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthOnebotApi
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.Url = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- case 8:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field PictureUrl", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotApi
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthOnebotApi
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthOnebotApi
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.PictureUrl = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- case 9:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field MusicUrl", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotApi
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthOnebotApi
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthOnebotApi
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.MusicUrl = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- default:
- iNdEx = preIndex
- skippy, err := skipOnebotApi(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if skippy < 0 {
- return ErrInvalidLengthOnebotApi
- }
- if (iNdEx + skippy) < 0 {
- return ErrInvalidLengthOnebotApi
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
- iNdEx += skippy
- }
- }
-
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
-}
-func (m *SendMusicResp) Unmarshal(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotApi
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: SendMusicResp: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: SendMusicResp: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- default:
- iNdEx = preIndex
- skippy, err := skipOnebotApi(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if skippy < 0 {
- return ErrInvalidLengthOnebotApi
- }
- if (iNdEx + skippy) < 0 {
- return ErrInvalidLengthOnebotApi
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
- iNdEx += skippy
- }
- }
-
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
-}
-func (m *SendGroupPokeReq) Unmarshal(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotApi
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: SendGroupPokeReq: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: SendGroupPokeReq: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- case 1:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field GroupId", wireType)
- }
- m.GroupId = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotApi
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.GroupId |= int64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 2:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field UserId", wireType)
- }
- m.UserId = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotApi
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.UserId |= int64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- default:
- iNdEx = preIndex
- skippy, err := skipOnebotApi(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if skippy < 0 {
- return ErrInvalidLengthOnebotApi
- }
- if (iNdEx + skippy) < 0 {
- return ErrInvalidLengthOnebotApi
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
- iNdEx += skippy
- }
- }
-
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
-}
-func (m *SendGroupPokeResp) Unmarshal(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotApi
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: SendGroupPokeResp: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: SendGroupPokeResp: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- default:
- iNdEx = preIndex
- skippy, err := skipOnebotApi(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if skippy < 0 {
- return ErrInvalidLengthOnebotApi
- }
- if (iNdEx + skippy) < 0 {
- return ErrInvalidLengthOnebotApi
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
- iNdEx += skippy
- }
- }
-
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
-}
-func (m *SendFriendPokeReq) Unmarshal(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotApi
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: SendFriendPokeReq: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: SendFriendPokeReq: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- case 2:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field UserId", wireType)
- }
- m.UserId = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotApi
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.UserId |= int64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- default:
- iNdEx = preIndex
- skippy, err := skipOnebotApi(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if skippy < 0 {
- return ErrInvalidLengthOnebotApi
- }
- if (iNdEx + skippy) < 0 {
- return ErrInvalidLengthOnebotApi
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
- iNdEx += skippy
- }
- }
-
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
-}
-func (m *SendFriendPokeResp) Unmarshal(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotApi
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: SendFriendPokeResp: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: SendFriendPokeResp: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- default:
- iNdEx = preIndex
- skippy, err := skipOnebotApi(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if skippy < 0 {
- return ErrInvalidLengthOnebotApi
- }
- if (iNdEx + skippy) < 0 {
- return ErrInvalidLengthOnebotApi
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
- iNdEx += skippy
- }
- }
-
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
-}
-func skipOnebotApi(dAtA []byte) (n int, err error) {
- l := len(dAtA)
- iNdEx := 0
- depth := 0
- for iNdEx < l {
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return 0, ErrIntOverflowOnebotApi
- }
- if iNdEx >= l {
- return 0, io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= (uint64(b) & 0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- wireType := int(wire & 0x7)
- switch wireType {
- case 0:
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return 0, ErrIntOverflowOnebotApi
- }
- if iNdEx >= l {
- return 0, io.ErrUnexpectedEOF
- }
- iNdEx++
- if dAtA[iNdEx-1] < 0x80 {
- break
- }
- }
- case 1:
- iNdEx += 8
- case 2:
- var length int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return 0, ErrIntOverflowOnebotApi
- }
- if iNdEx >= l {
- return 0, io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- length |= (int(b) & 0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if length < 0 {
- return 0, ErrInvalidLengthOnebotApi
- }
- iNdEx += length
- case 3:
- depth++
- case 4:
- if depth == 0 {
- return 0, ErrUnexpectedEndOfGroupOnebotApi
- }
- depth--
- case 5:
- iNdEx += 4
- default:
- return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
- }
- if iNdEx < 0 {
- return 0, ErrInvalidLengthOnebotApi
- }
- if depth == 0 {
- return iNdEx, nil
- }
- }
- return 0, io.ErrUnexpectedEOF
-}
-
-var (
- ErrInvalidLengthOnebotApi = fmt.Errorf("proto: negative length found during unmarshaling")
- ErrIntOverflowOnebotApi = fmt.Errorf("proto: integer overflow")
- ErrUnexpectedEndOfGroupOnebotApi = fmt.Errorf("proto: unexpected end of group")
-)
diff --git a/proto_gen/onebot/onebot_base.pb.go b/proto_gen/onebot/onebot_base.pb.go
index c7c1e93..79d6fde 100644
--- a/proto_gen/onebot/onebot_base.pb.go
+++ b/proto_gen/onebot/onebot_base.pb.go
@@ -1,956 +1,258 @@
-// Code generated by protoc-gen-gogo. DO NOT EDIT.
+// Code generated by protoc-gen-go. DO NOT EDIT.
+// versions:
+// protoc-gen-go v1.29.0
+// protoc v4.22.2
// source: onebot_base.proto
package onebot
import (
- fmt "fmt"
- proto "github.com/golang/protobuf/proto"
- io "io"
- math "math"
- math_bits "math/bits"
+ protoreflect "google.golang.org/protobuf/reflect/protoreflect"
+ protoimpl "google.golang.org/protobuf/runtime/protoimpl"
+ reflect "reflect"
+ sync "sync"
)
-// 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
+const (
+ // Verify that this generated code is sufficiently up-to-date.
+ _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
+ // Verify that runtime/protoimpl is sufficiently up-to-date.
+ _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
+)
type Message struct {
- Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"`
- Data map[string]string `protobuf:"bytes,2,rep,name=data,proto3" json:"data,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
- XXX_NoUnkeyedLiteral struct{} `json:"-"`
- XXX_unrecognized []byte `json:"-"`
- XXX_sizecache int32 `json:"-"`
-}
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
-func (m *Message) Reset() { *m = Message{} }
-func (m *Message) String() string { return proto.CompactTextString(m) }
-func (*Message) ProtoMessage() {}
-func (*Message) Descriptor() ([]byte, []int) {
- return fileDescriptor_083879318c1bda18, []int{0}
-}
-func (m *Message) XXX_Unmarshal(b []byte) error {
- return m.Unmarshal(b)
-}
-func (m *Message) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- if deterministic {
- return xxx_messageInfo_Message.Marshal(b, m, deterministic)
- } else {
- b = b[:cap(b)]
- n, err := m.MarshalToSizedBuffer(b)
- if err != nil {
- return nil, err
- }
- return b[:n], nil
- }
-}
-func (m *Message) XXX_Merge(src proto.Message) {
- xxx_messageInfo_Message.Merge(m, src)
-}
-func (m *Message) XXX_Size() int {
- return m.Size()
-}
-func (m *Message) XXX_DiscardUnknown() {
- xxx_messageInfo_Message.DiscardUnknown(m)
+ Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"`
+ Data map[string]string `protobuf:"bytes,2,rep,name=data,proto3" json:"data,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
}
-var xxx_messageInfo_Message proto.InternalMessageInfo
-
-func (m *Message) GetType() string {
- if m != nil {
- return m.Type
+func (x *Message) Reset() {
+ *x = Message{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_onebot_base_proto_msgTypes[0]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
}
- return ""
}
-func (m *Message) GetData() map[string]string {
- if m != nil {
- return m.Data
- }
- return nil
+func (x *Message) String() string {
+ return protoimpl.X.MessageStringOf(x)
}
-type MessageReceipt struct {
- SenderId int64 `protobuf:"varint,1,opt,name=sender_id,json=senderId,proto3" json:"sender_id,omitempty"`
- Time int64 `protobuf:"varint,2,opt,name=time,proto3" json:"time,omitempty"`
- Seqs []int32 `protobuf:"varint,3,rep,packed,name=seqs,proto3" json:"seqs,omitempty"`
- Rands []int32 `protobuf:"varint,4,rep,packed,name=rands,proto3" json:"rands,omitempty"`
- GroupId int64 `protobuf:"varint,5,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty"`
- XXX_NoUnkeyedLiteral struct{} `json:"-"`
- XXX_unrecognized []byte `json:"-"`
- XXX_sizecache int32 `json:"-"`
-}
+func (*Message) ProtoMessage() {}
-func (m *MessageReceipt) Reset() { *m = MessageReceipt{} }
-func (m *MessageReceipt) String() string { return proto.CompactTextString(m) }
-func (*MessageReceipt) ProtoMessage() {}
-func (*MessageReceipt) Descriptor() ([]byte, []int) {
- return fileDescriptor_083879318c1bda18, []int{1}
-}
-func (m *MessageReceipt) XXX_Unmarshal(b []byte) error {
- return m.Unmarshal(b)
-}
-func (m *MessageReceipt) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- if deterministic {
- return xxx_messageInfo_MessageReceipt.Marshal(b, m, deterministic)
- } else {
- b = b[:cap(b)]
- n, err := m.MarshalToSizedBuffer(b)
- if err != nil {
- return nil, err
+func (x *Message) ProtoReflect() protoreflect.Message {
+ mi := &file_onebot_base_proto_msgTypes[0]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
}
- return b[:n], nil
+ return ms
}
+ return mi.MessageOf(x)
}
-func (m *MessageReceipt) XXX_Merge(src proto.Message) {
- xxx_messageInfo_MessageReceipt.Merge(m, src)
-}
-func (m *MessageReceipt) XXX_Size() int {
- return m.Size()
-}
-func (m *MessageReceipt) XXX_DiscardUnknown() {
- xxx_messageInfo_MessageReceipt.DiscardUnknown(m)
-}
-
-var xxx_messageInfo_MessageReceipt proto.InternalMessageInfo
-func (m *MessageReceipt) GetSenderId() int64 {
- if m != nil {
- return m.SenderId
- }
- return 0
+// Deprecated: Use Message.ProtoReflect.Descriptor instead.
+func (*Message) Descriptor() ([]byte, []int) {
+ return file_onebot_base_proto_rawDescGZIP(), []int{0}
}
-func (m *MessageReceipt) GetTime() int64 {
- if m != nil {
- return m.Time
+func (x *Message) GetType() string {
+ if x != nil {
+ return x.Type
}
- return 0
+ return ""
}
-func (m *MessageReceipt) GetSeqs() []int32 {
- if m != nil {
- return m.Seqs
+func (x *Message) GetData() map[string]string {
+ if x != nil {
+ return x.Data
}
return nil
}
-func (m *MessageReceipt) GetRands() []int32 {
- if m != nil {
- return m.Rands
- }
- return nil
+type MessageReceipt struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ SenderId int64 `protobuf:"varint,1,opt,name=sender_id,json=senderId,proto3" json:"sender_id,omitempty"`
+ Time int64 `protobuf:"varint,2,opt,name=time,proto3" json:"time,omitempty"`
+ Seqs []int32 `protobuf:"varint,3,rep,packed,name=seqs,proto3" json:"seqs,omitempty"`
+ Rands []int32 `protobuf:"varint,4,rep,packed,name=rands,proto3" json:"rands,omitempty"`
+ GroupId int64 `protobuf:"varint,5,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty"`
}
-func (m *MessageReceipt) GetGroupId() int64 {
- if m != nil {
- return m.GroupId
+func (x *MessageReceipt) Reset() {
+ *x = MessageReceipt{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_onebot_base_proto_msgTypes[1]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
}
- return 0
}
-func init() {
- proto.RegisterType((*Message)(nil), "onebot.Message")
- proto.RegisterMapType((map[string]string)(nil), "onebot.Message.DataEntry")
- proto.RegisterType((*MessageReceipt)(nil), "onebot.MessageReceipt")
+func (x *MessageReceipt) String() string {
+ return protoimpl.X.MessageStringOf(x)
}
-func init() { proto.RegisterFile("onebot_base.proto", fileDescriptor_083879318c1bda18) }
+func (*MessageReceipt) ProtoMessage() {}
-var fileDescriptor_083879318c1bda18 = []byte{
- // 260 bytes of a gzipped FileDescriptorProto
- 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x3c, 0x90, 0x41, 0x4a, 0xc4, 0x30,
- 0x14, 0x86, 0x4d, 0xd3, 0xce, 0x4c, 0x9f, 0x20, 0x63, 0x70, 0xd1, 0x51, 0x28, 0x65, 0x56, 0xdd,
- 0xd8, 0x85, 0x2e, 0x14, 0x97, 0xa2, 0x8b, 0x59, 0xb8, 0xc9, 0x05, 0x86, 0xd4, 0x3c, 0x86, 0xa2,
- 0x36, 0x35, 0xc9, 0x08, 0x3d, 0x80, 0x9e, 0xc1, 0x23, 0xb9, 0xf4, 0x08, 0x52, 0x2f, 0x22, 0x7d,
- 0x29, 0xee, 0xfe, 0xff, 0x23, 0xff, 0x97, 0x10, 0x38, 0x36, 0x2d, 0xd6, 0xc6, 0x6f, 0x6b, 0xe5,
- 0xb0, 0xea, 0xac, 0xf1, 0x46, 0xcc, 0x02, 0x5a, 0xbf, 0x33, 0x98, 0x3f, 0xa0, 0x73, 0x6a, 0x87,
- 0x42, 0x40, 0xec, 0xfb, 0x0e, 0x33, 0x56, 0xb0, 0x32, 0x95, 0x94, 0xc5, 0x39, 0xc4, 0x5a, 0x79,
- 0x95, 0x45, 0x05, 0x2f, 0x0f, 0x2f, 0x56, 0x55, 0x98, 0x55, 0xd3, 0xa4, 0xba, 0x53, 0x5e, 0xdd,
- 0xb7, 0xde, 0xf6, 0x92, 0x8e, 0x9d, 0x5e, 0x41, 0xfa, 0x8f, 0xc4, 0x12, 0xf8, 0x13, 0xf6, 0x93,
- 0x6e, 0x8c, 0xe2, 0x04, 0x92, 0x37, 0xf5, 0xbc, 0xc7, 0x2c, 0x22, 0x16, 0xca, 0x4d, 0x74, 0xcd,
- 0xd6, 0x1f, 0x0c, 0x8e, 0x26, 0xa9, 0xc4, 0x47, 0x6c, 0x3a, 0x2f, 0xce, 0x20, 0x75, 0xd8, 0x6a,
- 0xb4, 0xdb, 0x46, 0x93, 0x84, 0xcb, 0x45, 0x00, 0x1b, 0x4d, 0x6f, 0x6d, 0x5e, 0x82, 0x88, 0x4b,
- 0xca, 0x23, 0x73, 0xf8, 0xea, 0x32, 0x5e, 0xf0, 0x32, 0x91, 0x94, 0xc7, 0x1b, 0xad, 0x6a, 0xb5,
- 0xcb, 0x62, 0x82, 0xa1, 0x88, 0x15, 0x2c, 0x76, 0xd6, 0xec, 0xbb, 0xd1, 0x9c, 0x90, 0x61, 0x4e,
- 0x7d, 0xa3, 0x6f, 0x97, 0x5f, 0x43, 0xce, 0xbe, 0x87, 0x9c, 0xfd, 0x0c, 0x39, 0xfb, 0xfc, 0xcd,
- 0x0f, 0xea, 0x19, 0xfd, 0xd8, 0xe5, 0x5f, 0x00, 0x00, 0x00, 0xff, 0xff, 0x3c, 0xf0, 0x26, 0xbd,
- 0x46, 0x01, 0x00, 0x00,
-}
-
-func (m *Message) Marshal() (dAtA []byte, err error) {
- size := m.Size()
- dAtA = make([]byte, size)
- n, err := m.MarshalToSizedBuffer(dAtA[:size])
- if err != nil {
- return nil, err
+func (x *MessageReceipt) ProtoReflect() protoreflect.Message {
+ mi := &file_onebot_base_proto_msgTypes[1]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
}
- return dAtA[:n], nil
+ return mi.MessageOf(x)
}
-func (m *Message) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
+// Deprecated: Use MessageReceipt.ProtoReflect.Descriptor instead.
+func (*MessageReceipt) Descriptor() ([]byte, []int) {
+ return file_onebot_base_proto_rawDescGZIP(), []int{1}
}
-func (m *Message) MarshalToSizedBuffer(dAtA []byte) (int, error) {
- i := len(dAtA)
- _ = i
- var l int
- _ = l
- if m.XXX_unrecognized != nil {
- i -= len(m.XXX_unrecognized)
- copy(dAtA[i:], m.XXX_unrecognized)
+func (x *MessageReceipt) GetSenderId() int64 {
+ if x != nil {
+ return x.SenderId
}
- if len(m.Data) > 0 {
- for k := range m.Data {
- v := m.Data[k]
- baseI := i
- i -= len(v)
- copy(dAtA[i:], v)
- i = encodeVarintOnebotBase(dAtA, i, uint64(len(v)))
- i--
- dAtA[i] = 0x12
- i -= len(k)
- copy(dAtA[i:], k)
- i = encodeVarintOnebotBase(dAtA, i, uint64(len(k)))
- i--
- dAtA[i] = 0xa
- i = encodeVarintOnebotBase(dAtA, i, uint64(baseI-i))
- i--
- dAtA[i] = 0x12
- }
- }
- if len(m.Type) > 0 {
- i -= len(m.Type)
- copy(dAtA[i:], m.Type)
- i = encodeVarintOnebotBase(dAtA, i, uint64(len(m.Type)))
- i--
- dAtA[i] = 0xa
- }
- return len(dAtA) - i, nil
+ return 0
}
-func (m *MessageReceipt) Marshal() (dAtA []byte, err error) {
- size := m.Size()
- dAtA = make([]byte, size)
- n, err := m.MarshalToSizedBuffer(dAtA[:size])
- if err != nil {
- return nil, err
+func (x *MessageReceipt) GetTime() int64 {
+ if x != nil {
+ return x.Time
}
- return dAtA[:n], nil
-}
-
-func (m *MessageReceipt) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
+ return 0
}
-func (m *MessageReceipt) MarshalToSizedBuffer(dAtA []byte) (int, error) {
- i := len(dAtA)
- _ = i
- var l int
- _ = l
- if m.XXX_unrecognized != nil {
- i -= len(m.XXX_unrecognized)
- copy(dAtA[i:], m.XXX_unrecognized)
- }
- if m.GroupId != 0 {
- i = encodeVarintOnebotBase(dAtA, i, uint64(m.GroupId))
- i--
- dAtA[i] = 0x28
- }
- if len(m.Rands) > 0 {
- dAtA2 := make([]byte, len(m.Rands)*10)
- var j1 int
- for _, num1 := range m.Rands {
- num := uint64(num1)
- for num >= 1<<7 {
- dAtA2[j1] = uint8(uint64(num)&0x7f | 0x80)
- num >>= 7
- j1++
- }
- dAtA2[j1] = uint8(num)
- j1++
- }
- i -= j1
- copy(dAtA[i:], dAtA2[:j1])
- i = encodeVarintOnebotBase(dAtA, i, uint64(j1))
- i--
- dAtA[i] = 0x22
+func (x *MessageReceipt) GetSeqs() []int32 {
+ if x != nil {
+ return x.Seqs
}
- if len(m.Seqs) > 0 {
- dAtA4 := make([]byte, len(m.Seqs)*10)
- var j3 int
- for _, num1 := range m.Seqs {
- num := uint64(num1)
- for num >= 1<<7 {
- dAtA4[j3] = uint8(uint64(num)&0x7f | 0x80)
- num >>= 7
- j3++
- }
- dAtA4[j3] = uint8(num)
- j3++
- }
- i -= j3
- copy(dAtA[i:], dAtA4[:j3])
- i = encodeVarintOnebotBase(dAtA, i, uint64(j3))
- i--
- dAtA[i] = 0x1a
- }
- if m.Time != 0 {
- i = encodeVarintOnebotBase(dAtA, i, uint64(m.Time))
- i--
- dAtA[i] = 0x10
- }
- if m.SenderId != 0 {
- i = encodeVarintOnebotBase(dAtA, i, uint64(m.SenderId))
- i--
- dAtA[i] = 0x8
- }
- return len(dAtA) - i, nil
+ return nil
}
-func encodeVarintOnebotBase(dAtA []byte, offset int, v uint64) int {
- offset -= sovOnebotBase(v)
- base := offset
- for v >= 1<<7 {
- dAtA[offset] = uint8(v&0x7f | 0x80)
- v >>= 7
- offset++
- }
- dAtA[offset] = uint8(v)
- return base
-}
-func (m *Message) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- l = len(m.Type)
- if l > 0 {
- n += 1 + l + sovOnebotBase(uint64(l))
- }
- if len(m.Data) > 0 {
- for k, v := range m.Data {
- _ = k
- _ = v
- mapEntrySize := 1 + len(k) + sovOnebotBase(uint64(len(k))) + 1 + len(v) + sovOnebotBase(uint64(len(v)))
- n += mapEntrySize + 1 + sovOnebotBase(uint64(mapEntrySize))
- }
- }
- if m.XXX_unrecognized != nil {
- n += len(m.XXX_unrecognized)
+func (x *MessageReceipt) GetRands() []int32 {
+ if x != nil {
+ return x.Rands
}
- return n
+ return nil
}
-func (m *MessageReceipt) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- if m.SenderId != 0 {
- n += 1 + sovOnebotBase(uint64(m.SenderId))
- }
- if m.Time != 0 {
- n += 1 + sovOnebotBase(uint64(m.Time))
- }
- if len(m.Seqs) > 0 {
- l = 0
- for _, e := range m.Seqs {
- l += sovOnebotBase(uint64(e))
- }
- n += 1 + sovOnebotBase(uint64(l)) + l
- }
- if len(m.Rands) > 0 {
- l = 0
- for _, e := range m.Rands {
- l += sovOnebotBase(uint64(e))
- }
- n += 1 + sovOnebotBase(uint64(l)) + l
- }
- if m.GroupId != 0 {
- n += 1 + sovOnebotBase(uint64(m.GroupId))
- }
- if m.XXX_unrecognized != nil {
- n += len(m.XXX_unrecognized)
+func (x *MessageReceipt) GetGroupId() int64 {
+ if x != nil {
+ return x.GroupId
}
- return n
+ return 0
}
-func sovOnebotBase(x uint64) (n int) {
- return (math_bits.Len64(x|1) + 6) / 7
-}
-func sozOnebotBase(x uint64) (n int) {
- return sovOnebotBase(uint64((x << 1) ^ uint64((int64(x) >> 63))))
+var File_onebot_base_proto protoreflect.FileDescriptor
+
+var file_onebot_base_proto_rawDesc = []byte{
+ 0x0a, 0x11, 0x6f, 0x6e, 0x65, 0x62, 0x6f, 0x74, 0x5f, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x70, 0x72,
+ 0x6f, 0x74, 0x6f, 0x12, 0x06, 0x6f, 0x6e, 0x65, 0x62, 0x6f, 0x74, 0x22, 0x85, 0x01, 0x0a, 0x07,
+ 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18,
+ 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x2d, 0x0a, 0x04, 0x64,
+ 0x61, 0x74, 0x61, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x6f, 0x6e, 0x65, 0x62,
+ 0x6f, 0x74, 0x2e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x45,
+ 0x6e, 0x74, 0x72, 0x79, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x1a, 0x37, 0x0a, 0x09, 0x44, 0x61,
+ 0x74, 0x61, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01,
+ 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c,
+ 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a,
+ 0x02, 0x38, 0x01, 0x22, 0x86, 0x01, 0x0a, 0x0e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52,
+ 0x65, 0x63, 0x65, 0x69, 0x70, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x73, 0x65, 0x6e, 0x64, 0x65, 0x72,
+ 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x08, 0x73, 0x65, 0x6e, 0x64, 0x65,
+ 0x72, 0x49, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28,
+ 0x03, 0x52, 0x04, 0x74, 0x69, 0x6d, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x73, 0x65, 0x71, 0x73, 0x18,
+ 0x03, 0x20, 0x03, 0x28, 0x05, 0x52, 0x04, 0x73, 0x65, 0x71, 0x73, 0x12, 0x14, 0x0a, 0x05, 0x72,
+ 0x61, 0x6e, 0x64, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x05, 0x52, 0x05, 0x72, 0x61, 0x6e, 0x64,
+ 0x73, 0x12, 0x19, 0x0a, 0x08, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x5f, 0x69, 0x64, 0x18, 0x05, 0x20,
+ 0x01, 0x28, 0x03, 0x52, 0x07, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x49, 0x64, 0x42, 0x0a, 0x5a, 0x08,
+ 0x2e, 0x2f, 0x6f, 0x6e, 0x65, 0x62, 0x6f, 0x74, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
}
-func (m *Message) Unmarshal(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotBase
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: Message: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: Message: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- case 1:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotBase
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthOnebotBase
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthOnebotBase
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.Type = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- case 2:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Data", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotBase
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return ErrInvalidLengthOnebotBase
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return ErrInvalidLengthOnebotBase
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- if m.Data == nil {
- m.Data = make(map[string]string)
- }
- var mapkey string
- var mapvalue string
- for iNdEx < postIndex {
- entryPreIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotBase
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- if fieldNum == 1 {
- var stringLenmapkey uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotBase
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLenmapkey |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLenmapkey := int(stringLenmapkey)
- if intStringLenmapkey < 0 {
- return ErrInvalidLengthOnebotBase
- }
- postStringIndexmapkey := iNdEx + intStringLenmapkey
- if postStringIndexmapkey < 0 {
- return ErrInvalidLengthOnebotBase
- }
- if postStringIndexmapkey > l {
- return io.ErrUnexpectedEOF
- }
- mapkey = string(dAtA[iNdEx:postStringIndexmapkey])
- iNdEx = postStringIndexmapkey
- } else if fieldNum == 2 {
- var stringLenmapvalue uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotBase
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLenmapvalue |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLenmapvalue := int(stringLenmapvalue)
- if intStringLenmapvalue < 0 {
- return ErrInvalidLengthOnebotBase
- }
- postStringIndexmapvalue := iNdEx + intStringLenmapvalue
- if postStringIndexmapvalue < 0 {
- return ErrInvalidLengthOnebotBase
- }
- if postStringIndexmapvalue > l {
- return io.ErrUnexpectedEOF
- }
- mapvalue = string(dAtA[iNdEx:postStringIndexmapvalue])
- iNdEx = postStringIndexmapvalue
- } else {
- iNdEx = entryPreIndex
- skippy, err := skipOnebotBase(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if skippy < 0 {
- return ErrInvalidLengthOnebotBase
- }
- if (iNdEx + skippy) > postIndex {
- return io.ErrUnexpectedEOF
- }
- iNdEx += skippy
- }
- }
- m.Data[mapkey] = mapvalue
- iNdEx = postIndex
- default:
- iNdEx = preIndex
- skippy, err := skipOnebotBase(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if skippy < 0 {
- return ErrInvalidLengthOnebotBase
- }
- if (iNdEx + skippy) < 0 {
- return ErrInvalidLengthOnebotBase
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
- iNdEx += skippy
- }
- }
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
-}
-func (m *MessageReceipt) Unmarshal(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotBase
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: MessageReceipt: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: MessageReceipt: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- case 1:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field SenderId", wireType)
- }
- m.SenderId = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotBase
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.SenderId |= int64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 2:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field Time", wireType)
- }
- m.Time = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotBase
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.Time |= int64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 3:
- if wireType == 0 {
- var v int32
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotBase
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- v |= int32(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- m.Seqs = append(m.Seqs, v)
- } else if wireType == 2 {
- var packedLen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotBase
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- packedLen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if packedLen < 0 {
- return ErrInvalidLengthOnebotBase
- }
- postIndex := iNdEx + packedLen
- if postIndex < 0 {
- return ErrInvalidLengthOnebotBase
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- var elementCount int
- var count int
- for _, integer := range dAtA[iNdEx:postIndex] {
- if integer < 128 {
- count++
- }
- }
- elementCount = count
- if elementCount != 0 && len(m.Seqs) == 0 {
- m.Seqs = make([]int32, 0, elementCount)
- }
- for iNdEx < postIndex {
- var v int32
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotBase
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- v |= int32(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- m.Seqs = append(m.Seqs, v)
- }
- } else {
- return fmt.Errorf("proto: wrong wireType = %d for field Seqs", wireType)
- }
- case 4:
- if wireType == 0 {
- var v int32
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotBase
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- v |= int32(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- m.Rands = append(m.Rands, v)
- } else if wireType == 2 {
- var packedLen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotBase
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- packedLen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if packedLen < 0 {
- return ErrInvalidLengthOnebotBase
- }
- postIndex := iNdEx + packedLen
- if postIndex < 0 {
- return ErrInvalidLengthOnebotBase
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- var elementCount int
- var count int
- for _, integer := range dAtA[iNdEx:postIndex] {
- if integer < 128 {
- count++
- }
- }
- elementCount = count
- if elementCount != 0 && len(m.Rands) == 0 {
- m.Rands = make([]int32, 0, elementCount)
- }
- for iNdEx < postIndex {
- var v int32
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotBase
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- v |= int32(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- m.Rands = append(m.Rands, v)
- }
- } else {
- return fmt.Errorf("proto: wrong wireType = %d for field Rands", wireType)
- }
- case 5:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field GroupId", wireType)
- }
- m.GroupId = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotBase
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.GroupId |= int64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- default:
- iNdEx = preIndex
- skippy, err := skipOnebotBase(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if skippy < 0 {
- return ErrInvalidLengthOnebotBase
- }
- if (iNdEx + skippy) < 0 {
- return ErrInvalidLengthOnebotBase
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
- iNdEx += skippy
- }
- }
+var (
+ file_onebot_base_proto_rawDescOnce sync.Once
+ file_onebot_base_proto_rawDescData = file_onebot_base_proto_rawDesc
+)
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
-}
-func skipOnebotBase(dAtA []byte) (n int, err error) {
- l := len(dAtA)
- iNdEx := 0
- depth := 0
- for iNdEx < l {
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return 0, ErrIntOverflowOnebotBase
- }
- if iNdEx >= l {
- return 0, io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= (uint64(b) & 0x7F) << shift
- if b < 0x80 {
- break
+func file_onebot_base_proto_rawDescGZIP() []byte {
+ file_onebot_base_proto_rawDescOnce.Do(func() {
+ file_onebot_base_proto_rawDescData = protoimpl.X.CompressGZIP(file_onebot_base_proto_rawDescData)
+ })
+ return file_onebot_base_proto_rawDescData
+}
+
+var file_onebot_base_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
+var file_onebot_base_proto_goTypes = []interface{}{
+ (*Message)(nil), // 0: onebot.Message
+ (*MessageReceipt)(nil), // 1: onebot.MessageReceipt
+ nil, // 2: onebot.Message.DataEntry
+}
+var file_onebot_base_proto_depIdxs = []int32{
+ 2, // 0: onebot.Message.data:type_name -> onebot.Message.DataEntry
+ 1, // [1:1] is the sub-list for method output_type
+ 1, // [1:1] is the sub-list for method input_type
+ 1, // [1:1] is the sub-list for extension type_name
+ 1, // [1:1] is the sub-list for extension extendee
+ 0, // [0:1] is the sub-list for field type_name
+}
+
+func init() { file_onebot_base_proto_init() }
+func file_onebot_base_proto_init() {
+ if File_onebot_base_proto != nil {
+ return
+ }
+ if !protoimpl.UnsafeEnabled {
+ file_onebot_base_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*Message); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
}
}
- wireType := int(wire & 0x7)
- switch wireType {
- case 0:
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return 0, ErrIntOverflowOnebotBase
- }
- if iNdEx >= l {
- return 0, io.ErrUnexpectedEOF
- }
- iNdEx++
- if dAtA[iNdEx-1] < 0x80 {
- break
- }
+ file_onebot_base_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*MessageReceipt); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
}
- case 1:
- iNdEx += 8
- case 2:
- var length int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return 0, ErrIntOverflowOnebotBase
- }
- if iNdEx >= l {
- return 0, io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- length |= (int(b) & 0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if length < 0 {
- return 0, ErrInvalidLengthOnebotBase
- }
- iNdEx += length
- case 3:
- depth++
- case 4:
- if depth == 0 {
- return 0, ErrUnexpectedEndOfGroupOnebotBase
- }
- depth--
- case 5:
- iNdEx += 4
- default:
- return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
- }
- if iNdEx < 0 {
- return 0, ErrInvalidLengthOnebotBase
- }
- if depth == 0 {
- return iNdEx, nil
}
}
- return 0, io.ErrUnexpectedEOF
+ type x struct{}
+ out := protoimpl.TypeBuilder{
+ File: protoimpl.DescBuilder{
+ GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
+ RawDescriptor: file_onebot_base_proto_rawDesc,
+ NumEnums: 0,
+ NumMessages: 3,
+ NumExtensions: 0,
+ NumServices: 0,
+ },
+ GoTypes: file_onebot_base_proto_goTypes,
+ DependencyIndexes: file_onebot_base_proto_depIdxs,
+ MessageInfos: file_onebot_base_proto_msgTypes,
+ }.Build()
+ File_onebot_base_proto = out.File
+ file_onebot_base_proto_rawDesc = nil
+ file_onebot_base_proto_goTypes = nil
+ file_onebot_base_proto_depIdxs = nil
}
-
-var (
- ErrInvalidLengthOnebotBase = fmt.Errorf("proto: negative length found during unmarshaling")
- ErrIntOverflowOnebotBase = fmt.Errorf("proto: integer overflow")
- ErrUnexpectedEndOfGroupOnebotBase = fmt.Errorf("proto: unexpected end of group")
-)
diff --git a/proto_gen/onebot/onebot_event.pb.go b/proto_gen/onebot/onebot_event.pb.go
index 71f1553..f3b84a8 100644
--- a/proto_gen/onebot/onebot_event.pb.go
+++ b/proto_gen/onebot/onebot_event.pb.go
@@ -1,10260 +1,3069 @@
-// Code generated by protoc-gen-gogo. DO NOT EDIT.
+// Code generated by protoc-gen-go. DO NOT EDIT.
+// versions:
+// protoc-gen-go v1.29.0
+// protoc v4.22.2
// source: onebot_event.proto
package onebot
import (
- fmt "fmt"
- proto "github.com/golang/protobuf/proto"
- io "io"
- math "math"
- math_bits "math/bits"
+ protoreflect "google.golang.org/protobuf/reflect/protoreflect"
+ protoimpl "google.golang.org/protobuf/runtime/protoimpl"
+ reflect "reflect"
+ sync "sync"
)
-// 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
+const (
+ // Verify that this generated code is sufficiently up-to-date.
+ _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
+ // Verify that runtime/protoimpl is sufficiently up-to-date.
+ _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
+)
type PrivateMessageEvent struct {
- Time int64 `protobuf:"varint,1,opt,name=time,proto3" json:"time,omitempty"`
- SelfId int64 `protobuf:"varint,2,opt,name=self_id,json=selfId,proto3" json:"self_id,omitempty"`
- PostType string `protobuf:"bytes,3,opt,name=post_type,json=postType,proto3" json:"post_type,omitempty"`
- MessageType string `protobuf:"bytes,4,opt,name=message_type,json=messageType,proto3" json:"message_type,omitempty"`
- SubType string `protobuf:"bytes,5,opt,name=sub_type,json=subType,proto3" json:"sub_type,omitempty"`
- // int32 message_id = 6; // 废弃
- UserId int64 `protobuf:"varint,7,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
- Message []*Message `protobuf:"bytes,8,rep,name=message,proto3" json:"message,omitempty"`
- RawMessage string `protobuf:"bytes,9,opt,name=raw_message,json=rawMessage,proto3" json:"raw_message,omitempty"`
- Font int32 `protobuf:"varint,10,opt,name=font,proto3" json:"font,omitempty"`
- Sender *PrivateMessageEvent_Sender `protobuf:"bytes,11,opt,name=sender,proto3" json:"sender,omitempty"`
- MessageId *MessageReceipt `protobuf:"bytes,12,opt,name=message_id,json=messageId,proto3" json:"message_id,omitempty"`
- Extra map[string]string `protobuf:"bytes,255,rep,name=extra,proto3" json:"extra,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
- XXX_NoUnkeyedLiteral struct{} `json:"-"`
- XXX_unrecognized []byte `json:"-"`
- XXX_sizecache int32 `json:"-"`
-}
-
-func (m *PrivateMessageEvent) Reset() { *m = PrivateMessageEvent{} }
-func (m *PrivateMessageEvent) String() string { return proto.CompactTextString(m) }
-func (*PrivateMessageEvent) ProtoMessage() {}
-func (*PrivateMessageEvent) Descriptor() ([]byte, []int) {
- return fileDescriptor_8b4afa4460e98c26, []int{0}
-}
-func (m *PrivateMessageEvent) XXX_Unmarshal(b []byte) error {
- return m.Unmarshal(b)
-}
-func (m *PrivateMessageEvent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- if deterministic {
- return xxx_messageInfo_PrivateMessageEvent.Marshal(b, m, deterministic)
- } else {
- b = b[:cap(b)]
- n, err := m.MarshalToSizedBuffer(b)
- if err != nil {
- return nil, err
- }
- return b[:n], nil
- }
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ Time int64 `protobuf:"varint,1,opt,name=time,proto3" json:"time,omitempty"`
+ SelfId int64 `protobuf:"varint,2,opt,name=self_id,json=selfId,proto3" json:"self_id,omitempty"`
+ PostType string `protobuf:"bytes,3,opt,name=post_type,json=postType,proto3" json:"post_type,omitempty"`
+ MessageType string `protobuf:"bytes,4,opt,name=message_type,json=messageType,proto3" json:"message_type,omitempty"`
+ SubType string `protobuf:"bytes,5,opt,name=sub_type,json=subType,proto3" json:"sub_type,omitempty"`
+ MessageId int32 `protobuf:"varint,6,opt,name=message_id,json=messageId,proto3" json:"message_id,omitempty"`
+ UserId int64 `protobuf:"varint,7,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
+ Message []*Message `protobuf:"bytes,8,rep,name=message,proto3" json:"message,omitempty"`
+ RawMessage string `protobuf:"bytes,9,opt,name=raw_message,json=rawMessage,proto3" json:"raw_message,omitempty"`
+ Font int32 `protobuf:"varint,10,opt,name=font,proto3" json:"font,omitempty"`
+ Sender *PrivateMessageEvent_Sender `protobuf:"bytes,11,opt,name=sender,proto3" json:"sender,omitempty"`
+ MessageReceipt *MessageReceipt `protobuf:"bytes,12,opt,name=message_receipt,json=messageReceipt,proto3" json:"message_receipt,omitempty"`
+ Extra map[string]string `protobuf:"bytes,255,rep,name=extra,proto3" json:"extra,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
}
-func (m *PrivateMessageEvent) XXX_Merge(src proto.Message) {
- xxx_messageInfo_PrivateMessageEvent.Merge(m, src)
+
+func (x *PrivateMessageEvent) Reset() {
+ *x = PrivateMessageEvent{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_onebot_event_proto_msgTypes[0]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
}
-func (m *PrivateMessageEvent) XXX_Size() int {
- return m.Size()
+
+func (x *PrivateMessageEvent) String() string {
+ return protoimpl.X.MessageStringOf(x)
}
-func (m *PrivateMessageEvent) XXX_DiscardUnknown() {
- xxx_messageInfo_PrivateMessageEvent.DiscardUnknown(m)
+
+func (*PrivateMessageEvent) ProtoMessage() {}
+
+func (x *PrivateMessageEvent) ProtoReflect() protoreflect.Message {
+ mi := &file_onebot_event_proto_msgTypes[0]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
}
-var xxx_messageInfo_PrivateMessageEvent proto.InternalMessageInfo
+// Deprecated: Use PrivateMessageEvent.ProtoReflect.Descriptor instead.
+func (*PrivateMessageEvent) Descriptor() ([]byte, []int) {
+ return file_onebot_event_proto_rawDescGZIP(), []int{0}
+}
-func (m *PrivateMessageEvent) GetTime() int64 {
- if m != nil {
- return m.Time
+func (x *PrivateMessageEvent) GetTime() int64 {
+ if x != nil {
+ return x.Time
}
return 0
}
-func (m *PrivateMessageEvent) GetSelfId() int64 {
- if m != nil {
- return m.SelfId
+func (x *PrivateMessageEvent) GetSelfId() int64 {
+ if x != nil {
+ return x.SelfId
}
return 0
}
-func (m *PrivateMessageEvent) GetPostType() string {
- if m != nil {
- return m.PostType
+func (x *PrivateMessageEvent) GetPostType() string {
+ if x != nil {
+ return x.PostType
}
return ""
}
-func (m *PrivateMessageEvent) GetMessageType() string {
- if m != nil {
- return m.MessageType
+func (x *PrivateMessageEvent) GetMessageType() string {
+ if x != nil {
+ return x.MessageType
}
return ""
}
-func (m *PrivateMessageEvent) GetSubType() string {
- if m != nil {
- return m.SubType
+func (x *PrivateMessageEvent) GetSubType() string {
+ if x != nil {
+ return x.SubType
}
return ""
}
-func (m *PrivateMessageEvent) GetUserId() int64 {
- if m != nil {
- return m.UserId
+func (x *PrivateMessageEvent) GetMessageId() int32 {
+ if x != nil {
+ return x.MessageId
+ }
+ return 0
+}
+
+func (x *PrivateMessageEvent) GetUserId() int64 {
+ if x != nil {
+ return x.UserId
}
return 0
}
-func (m *PrivateMessageEvent) GetMessage() []*Message {
- if m != nil {
- return m.Message
+func (x *PrivateMessageEvent) GetMessage() []*Message {
+ if x != nil {
+ return x.Message
}
return nil
}
-func (m *PrivateMessageEvent) GetRawMessage() string {
- if m != nil {
- return m.RawMessage
+func (x *PrivateMessageEvent) GetRawMessage() string {
+ if x != nil {
+ return x.RawMessage
}
return ""
}
-func (m *PrivateMessageEvent) GetFont() int32 {
- if m != nil {
- return m.Font
+func (x *PrivateMessageEvent) GetFont() int32 {
+ if x != nil {
+ return x.Font
}
return 0
}
-func (m *PrivateMessageEvent) GetSender() *PrivateMessageEvent_Sender {
- if m != nil {
- return m.Sender
+func (x *PrivateMessageEvent) GetSender() *PrivateMessageEvent_Sender {
+ if x != nil {
+ return x.Sender
}
return nil
}
-func (m *PrivateMessageEvent) GetMessageId() *MessageReceipt {
- if m != nil {
- return m.MessageId
+func (x *PrivateMessageEvent) GetMessageReceipt() *MessageReceipt {
+ if x != nil {
+ return x.MessageReceipt
}
return nil
}
-func (m *PrivateMessageEvent) GetExtra() map[string]string {
- if m != nil {
- return m.Extra
+func (x *PrivateMessageEvent) GetExtra() map[string]string {
+ if x != nil {
+ return x.Extra
}
return nil
}
-type PrivateMessageEvent_Sender struct {
- UserId int64 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
- Nickname string `protobuf:"bytes,2,opt,name=nickname,proto3" json:"nickname,omitempty"`
- Sex string `protobuf:"bytes,3,opt,name=sex,proto3" json:"sex,omitempty"`
- Age int32 `protobuf:"varint,4,opt,name=age,proto3" json:"age,omitempty"`
- XXX_NoUnkeyedLiteral struct{} `json:"-"`
- XXX_unrecognized []byte `json:"-"`
- XXX_sizecache int32 `json:"-"`
-}
-
-func (m *PrivateMessageEvent_Sender) Reset() { *m = PrivateMessageEvent_Sender{} }
-func (m *PrivateMessageEvent_Sender) String() string { return proto.CompactTextString(m) }
-func (*PrivateMessageEvent_Sender) ProtoMessage() {}
-func (*PrivateMessageEvent_Sender) Descriptor() ([]byte, []int) {
- return fileDescriptor_8b4afa4460e98c26, []int{0, 0}
-}
-func (m *PrivateMessageEvent_Sender) XXX_Unmarshal(b []byte) error {
- return m.Unmarshal(b)
-}
-func (m *PrivateMessageEvent_Sender) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- if deterministic {
- return xxx_messageInfo_PrivateMessageEvent_Sender.Marshal(b, m, deterministic)
- } else {
- b = b[:cap(b)]
- n, err := m.MarshalToSizedBuffer(b)
- if err != nil {
- return nil, err
- }
- return b[:n], nil
- }
-}
-func (m *PrivateMessageEvent_Sender) XXX_Merge(src proto.Message) {
- xxx_messageInfo_PrivateMessageEvent_Sender.Merge(m, src)
-}
-func (m *PrivateMessageEvent_Sender) XXX_Size() int {
- return m.Size()
-}
-func (m *PrivateMessageEvent_Sender) XXX_DiscardUnknown() {
- xxx_messageInfo_PrivateMessageEvent_Sender.DiscardUnknown(m)
-}
-
-var xxx_messageInfo_PrivateMessageEvent_Sender proto.InternalMessageInfo
+type GroupMessageEvent struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
-func (m *PrivateMessageEvent_Sender) GetUserId() int64 {
- if m != nil {
- return m.UserId
- }
- return 0
+ Time int64 `protobuf:"varint,1,opt,name=time,proto3" json:"time,omitempty"`
+ SelfId int64 `protobuf:"varint,2,opt,name=self_id,json=selfId,proto3" json:"self_id,omitempty"`
+ PostType string `protobuf:"bytes,3,opt,name=post_type,json=postType,proto3" json:"post_type,omitempty"`
+ MessageType string `protobuf:"bytes,4,opt,name=message_type,json=messageType,proto3" json:"message_type,omitempty"`
+ SubType string `protobuf:"bytes,5,opt,name=sub_type,json=subType,proto3" json:"sub_type,omitempty"`
+ MessageId int32 `protobuf:"varint,6,opt,name=message_id,json=messageId,proto3" json:"message_id,omitempty"`
+ GroupId int64 `protobuf:"varint,7,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty"`
+ UserId int64 `protobuf:"varint,8,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
+ Anonymous *GroupMessageEvent_Anonymous `protobuf:"bytes,9,opt,name=anonymous,proto3" json:"anonymous,omitempty"`
+ Message []*Message `protobuf:"bytes,10,rep,name=message,proto3" json:"message,omitempty"`
+ RawMessage string `protobuf:"bytes,11,opt,name=raw_message,json=rawMessage,proto3" json:"raw_message,omitempty"`
+ Font int32 `protobuf:"varint,12,opt,name=font,proto3" json:"font,omitempty"`
+ Sender *GroupMessageEvent_Sender `protobuf:"bytes,13,opt,name=sender,proto3" json:"sender,omitempty"`
+ MessageReceipt *MessageReceipt `protobuf:"bytes,14,opt,name=message_receipt,json=messageReceipt,proto3" json:"message_receipt,omitempty"`
+ Extra map[string]string `protobuf:"bytes,255,rep,name=extra,proto3" json:"extra,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
}
-func (m *PrivateMessageEvent_Sender) GetNickname() string {
- if m != nil {
- return m.Nickname
+func (x *GroupMessageEvent) Reset() {
+ *x = GroupMessageEvent{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_onebot_event_proto_msgTypes[1]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
}
- return ""
}
-func (m *PrivateMessageEvent_Sender) GetSex() string {
- if m != nil {
- return m.Sex
- }
- return ""
+func (x *GroupMessageEvent) String() string {
+ return protoimpl.X.MessageStringOf(x)
}
-func (m *PrivateMessageEvent_Sender) GetAge() int32 {
- if m != nil {
- return m.Age
- }
- return 0
-}
+func (*GroupMessageEvent) ProtoMessage() {}
-type GroupMessageEvent struct {
- Time int64 `protobuf:"varint,1,opt,name=time,proto3" json:"time,omitempty"`
- SelfId int64 `protobuf:"varint,2,opt,name=self_id,json=selfId,proto3" json:"self_id,omitempty"`
- PostType string `protobuf:"bytes,3,opt,name=post_type,json=postType,proto3" json:"post_type,omitempty"`
- MessageType string `protobuf:"bytes,4,opt,name=message_type,json=messageType,proto3" json:"message_type,omitempty"`
- SubType string `protobuf:"bytes,5,opt,name=sub_type,json=subType,proto3" json:"sub_type,omitempty"`
- // int32 message_id = 6; // 废弃
- GroupId int64 `protobuf:"varint,7,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty"`
- UserId int64 `protobuf:"varint,8,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
- Anonymous *GroupMessageEvent_Anonymous `protobuf:"bytes,9,opt,name=anonymous,proto3" json:"anonymous,omitempty"`
- Message []*Message `protobuf:"bytes,10,rep,name=message,proto3" json:"message,omitempty"`
- RawMessage string `protobuf:"bytes,11,opt,name=raw_message,json=rawMessage,proto3" json:"raw_message,omitempty"`
- Font int32 `protobuf:"varint,12,opt,name=font,proto3" json:"font,omitempty"`
- Sender *GroupMessageEvent_Sender `protobuf:"bytes,13,opt,name=sender,proto3" json:"sender,omitempty"`
- MessageId *MessageReceipt `protobuf:"bytes,14,opt,name=message_id,json=messageId,proto3" json:"message_id,omitempty"`
- Extra map[string]string `protobuf:"bytes,255,rep,name=extra,proto3" json:"extra,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
- XXX_NoUnkeyedLiteral struct{} `json:"-"`
- XXX_unrecognized []byte `json:"-"`
- XXX_sizecache int32 `json:"-"`
-}
-
-func (m *GroupMessageEvent) Reset() { *m = GroupMessageEvent{} }
-func (m *GroupMessageEvent) String() string { return proto.CompactTextString(m) }
-func (*GroupMessageEvent) ProtoMessage() {}
-func (*GroupMessageEvent) Descriptor() ([]byte, []int) {
- return fileDescriptor_8b4afa4460e98c26, []int{1}
-}
-func (m *GroupMessageEvent) XXX_Unmarshal(b []byte) error {
- return m.Unmarshal(b)
-}
-func (m *GroupMessageEvent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- if deterministic {
- return xxx_messageInfo_GroupMessageEvent.Marshal(b, m, deterministic)
- } else {
- b = b[:cap(b)]
- n, err := m.MarshalToSizedBuffer(b)
- if err != nil {
- return nil, err
+func (x *GroupMessageEvent) ProtoReflect() protoreflect.Message {
+ mi := &file_onebot_event_proto_msgTypes[1]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
}
- return b[:n], nil
+ return ms
}
-}
-func (m *GroupMessageEvent) XXX_Merge(src proto.Message) {
- xxx_messageInfo_GroupMessageEvent.Merge(m, src)
-}
-func (m *GroupMessageEvent) XXX_Size() int {
- return m.Size()
-}
-func (m *GroupMessageEvent) XXX_DiscardUnknown() {
- xxx_messageInfo_GroupMessageEvent.DiscardUnknown(m)
+ return mi.MessageOf(x)
}
-var xxx_messageInfo_GroupMessageEvent proto.InternalMessageInfo
+// Deprecated: Use GroupMessageEvent.ProtoReflect.Descriptor instead.
+func (*GroupMessageEvent) Descriptor() ([]byte, []int) {
+ return file_onebot_event_proto_rawDescGZIP(), []int{1}
+}
-func (m *GroupMessageEvent) GetTime() int64 {
- if m != nil {
- return m.Time
+func (x *GroupMessageEvent) GetTime() int64 {
+ if x != nil {
+ return x.Time
}
return 0
}
-func (m *GroupMessageEvent) GetSelfId() int64 {
- if m != nil {
- return m.SelfId
+func (x *GroupMessageEvent) GetSelfId() int64 {
+ if x != nil {
+ return x.SelfId
}
return 0
}
-func (m *GroupMessageEvent) GetPostType() string {
- if m != nil {
- return m.PostType
+func (x *GroupMessageEvent) GetPostType() string {
+ if x != nil {
+ return x.PostType
}
return ""
}
-func (m *GroupMessageEvent) GetMessageType() string {
- if m != nil {
- return m.MessageType
+func (x *GroupMessageEvent) GetMessageType() string {
+ if x != nil {
+ return x.MessageType
}
return ""
}
-func (m *GroupMessageEvent) GetSubType() string {
- if m != nil {
- return m.SubType
+func (x *GroupMessageEvent) GetSubType() string {
+ if x != nil {
+ return x.SubType
}
return ""
}
-func (m *GroupMessageEvent) GetGroupId() int64 {
- if m != nil {
- return m.GroupId
+func (x *GroupMessageEvent) GetMessageId() int32 {
+ if x != nil {
+ return x.MessageId
+ }
+ return 0
+}
+
+func (x *GroupMessageEvent) GetGroupId() int64 {
+ if x != nil {
+ return x.GroupId
}
return 0
}
-func (m *GroupMessageEvent) GetUserId() int64 {
- if m != nil {
- return m.UserId
+func (x *GroupMessageEvent) GetUserId() int64 {
+ if x != nil {
+ return x.UserId
}
return 0
}
-func (m *GroupMessageEvent) GetAnonymous() *GroupMessageEvent_Anonymous {
- if m != nil {
- return m.Anonymous
+func (x *GroupMessageEvent) GetAnonymous() *GroupMessageEvent_Anonymous {
+ if x != nil {
+ return x.Anonymous
}
return nil
}
-func (m *GroupMessageEvent) GetMessage() []*Message {
- if m != nil {
- return m.Message
+func (x *GroupMessageEvent) GetMessage() []*Message {
+ if x != nil {
+ return x.Message
}
return nil
}
-func (m *GroupMessageEvent) GetRawMessage() string {
- if m != nil {
- return m.RawMessage
+func (x *GroupMessageEvent) GetRawMessage() string {
+ if x != nil {
+ return x.RawMessage
}
return ""
}
-func (m *GroupMessageEvent) GetFont() int32 {
- if m != nil {
- return m.Font
+func (x *GroupMessageEvent) GetFont() int32 {
+ if x != nil {
+ return x.Font
}
return 0
}
-func (m *GroupMessageEvent) GetSender() *GroupMessageEvent_Sender {
- if m != nil {
- return m.Sender
+func (x *GroupMessageEvent) GetSender() *GroupMessageEvent_Sender {
+ if x != nil {
+ return x.Sender
}
return nil
}
-func (m *GroupMessageEvent) GetMessageId() *MessageReceipt {
- if m != nil {
- return m.MessageId
+func (x *GroupMessageEvent) GetMessageReceipt() *MessageReceipt {
+ if x != nil {
+ return x.MessageReceipt
}
return nil
}
-func (m *GroupMessageEvent) GetExtra() map[string]string {
- if m != nil {
- return m.Extra
+func (x *GroupMessageEvent) GetExtra() map[string]string {
+ if x != nil {
+ return x.Extra
}
return nil
}
-type GroupMessageEvent_Anonymous struct {
- Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
- Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
- Flag string `protobuf:"bytes,3,opt,name=flag,proto3" json:"flag,omitempty"`
- XXX_NoUnkeyedLiteral struct{} `json:"-"`
- XXX_unrecognized []byte `json:"-"`
- XXX_sizecache int32 `json:"-"`
+type ChannelMessageEvent struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
+ InternalId uint64 `protobuf:"varint,2,opt,name=internal_id,json=internalId,proto3" json:"internal_id,omitempty"`
+ GuildId uint64 `protobuf:"varint,3,opt,name=guild_id,json=guildId,proto3" json:"guild_id,omitempty"`
+ ChannelId uint64 `protobuf:"varint,4,opt,name=channel_id,json=channelId,proto3" json:"channel_id,omitempty"`
+ Time int64 `protobuf:"varint,5,opt,name=time,proto3" json:"time,omitempty"`
+ SelfId int64 `protobuf:"varint,6,opt,name=self_id,json=selfId,proto3" json:"self_id,omitempty"`
+ PostType string `protobuf:"bytes,7,opt,name=post_type,json=postType,proto3" json:"post_type,omitempty"`
+ MessageType string `protobuf:"bytes,8,opt,name=message_type,json=messageType,proto3" json:"message_type,omitempty"`
+ SubType string `protobuf:"bytes,9,opt,name=sub_type,json=subType,proto3" json:"sub_type,omitempty"`
+ Message []*Message `protobuf:"bytes,10,rep,name=message,proto3" json:"message,omitempty"`
+ RawMessage string `protobuf:"bytes,11,opt,name=raw_message,json=rawMessage,proto3" json:"raw_message,omitempty"`
+ Font int32 `protobuf:"varint,12,opt,name=font,proto3" json:"font,omitempty"`
+ Sender *ChannelMessageEvent_Sender `protobuf:"bytes,13,opt,name=sender,proto3" json:"sender,omitempty"`
+ MessageId uint64 `protobuf:"varint,14,opt,name=message_id,json=messageId,proto3" json:"message_id,omitempty"`
+ Extra map[string]string `protobuf:"bytes,255,rep,name=extra,proto3" json:"extra,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
}
-func (m *GroupMessageEvent_Anonymous) Reset() { *m = GroupMessageEvent_Anonymous{} }
-func (m *GroupMessageEvent_Anonymous) String() string { return proto.CompactTextString(m) }
-func (*GroupMessageEvent_Anonymous) ProtoMessage() {}
-func (*GroupMessageEvent_Anonymous) Descriptor() ([]byte, []int) {
- return fileDescriptor_8b4afa4460e98c26, []int{1, 0}
-}
-func (m *GroupMessageEvent_Anonymous) XXX_Unmarshal(b []byte) error {
- return m.Unmarshal(b)
-}
-func (m *GroupMessageEvent_Anonymous) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- if deterministic {
- return xxx_messageInfo_GroupMessageEvent_Anonymous.Marshal(b, m, deterministic)
- } else {
- b = b[:cap(b)]
- n, err := m.MarshalToSizedBuffer(b)
- if err != nil {
- return nil, err
- }
- return b[:n], nil
+func (x *ChannelMessageEvent) Reset() {
+ *x = ChannelMessageEvent{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_onebot_event_proto_msgTypes[2]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
}
}
-func (m *GroupMessageEvent_Anonymous) XXX_Merge(src proto.Message) {
- xxx_messageInfo_GroupMessageEvent_Anonymous.Merge(m, src)
-}
-func (m *GroupMessageEvent_Anonymous) XXX_Size() int {
- return m.Size()
+
+func (x *ChannelMessageEvent) String() string {
+ return protoimpl.X.MessageStringOf(x)
}
-func (m *GroupMessageEvent_Anonymous) XXX_DiscardUnknown() {
- xxx_messageInfo_GroupMessageEvent_Anonymous.DiscardUnknown(m)
+
+func (*ChannelMessageEvent) ProtoMessage() {}
+
+func (x *ChannelMessageEvent) ProtoReflect() protoreflect.Message {
+ mi := &file_onebot_event_proto_msgTypes[2]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
}
-var xxx_messageInfo_GroupMessageEvent_Anonymous proto.InternalMessageInfo
+// Deprecated: Use ChannelMessageEvent.ProtoReflect.Descriptor instead.
+func (*ChannelMessageEvent) Descriptor() ([]byte, []int) {
+ return file_onebot_event_proto_rawDescGZIP(), []int{2}
+}
-func (m *GroupMessageEvent_Anonymous) GetId() int64 {
- if m != nil {
- return m.Id
+func (x *ChannelMessageEvent) GetId() uint64 {
+ if x != nil {
+ return x.Id
}
return 0
}
-func (m *GroupMessageEvent_Anonymous) GetName() string {
- if m != nil {
- return m.Name
+func (x *ChannelMessageEvent) GetInternalId() uint64 {
+ if x != nil {
+ return x.InternalId
}
- return ""
+ return 0
}
-func (m *GroupMessageEvent_Anonymous) GetFlag() string {
- if m != nil {
- return m.Flag
+func (x *ChannelMessageEvent) GetGuildId() uint64 {
+ if x != nil {
+ return x.GuildId
}
- return ""
+ return 0
}
-type GroupMessageEvent_Sender struct {
- UserId int64 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
- Nickname string `protobuf:"bytes,2,opt,name=nickname,proto3" json:"nickname,omitempty"`
- Card string `protobuf:"bytes,3,opt,name=card,proto3" json:"card,omitempty"`
- Sex string `protobuf:"bytes,4,opt,name=sex,proto3" json:"sex,omitempty"`
- Age int32 `protobuf:"varint,5,opt,name=age,proto3" json:"age,omitempty"`
- Area string `protobuf:"bytes,6,opt,name=area,proto3" json:"area,omitempty"`
- Level string `protobuf:"bytes,7,opt,name=level,proto3" json:"level,omitempty"`
- Role string `protobuf:"bytes,8,opt,name=role,proto3" json:"role,omitempty"`
- Title string `protobuf:"bytes,9,opt,name=title,proto3" json:"title,omitempty"`
- XXX_NoUnkeyedLiteral struct{} `json:"-"`
- XXX_unrecognized []byte `json:"-"`
- XXX_sizecache int32 `json:"-"`
-}
-
-func (m *GroupMessageEvent_Sender) Reset() { *m = GroupMessageEvent_Sender{} }
-func (m *GroupMessageEvent_Sender) String() string { return proto.CompactTextString(m) }
-func (*GroupMessageEvent_Sender) ProtoMessage() {}
-func (*GroupMessageEvent_Sender) Descriptor() ([]byte, []int) {
- return fileDescriptor_8b4afa4460e98c26, []int{1, 1}
-}
-func (m *GroupMessageEvent_Sender) XXX_Unmarshal(b []byte) error {
- return m.Unmarshal(b)
-}
-func (m *GroupMessageEvent_Sender) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- if deterministic {
- return xxx_messageInfo_GroupMessageEvent_Sender.Marshal(b, m, deterministic)
- } else {
- b = b[:cap(b)]
- n, err := m.MarshalToSizedBuffer(b)
- if err != nil {
- return nil, err
- }
- return b[:n], nil
+func (x *ChannelMessageEvent) GetChannelId() uint64 {
+ if x != nil {
+ return x.ChannelId
}
-}
-func (m *GroupMessageEvent_Sender) XXX_Merge(src proto.Message) {
- xxx_messageInfo_GroupMessageEvent_Sender.Merge(m, src)
-}
-func (m *GroupMessageEvent_Sender) XXX_Size() int {
- return m.Size()
-}
-func (m *GroupMessageEvent_Sender) XXX_DiscardUnknown() {
- xxx_messageInfo_GroupMessageEvent_Sender.DiscardUnknown(m)
+ return 0
}
-var xxx_messageInfo_GroupMessageEvent_Sender proto.InternalMessageInfo
+func (x *ChannelMessageEvent) GetTime() int64 {
+ if x != nil {
+ return x.Time
+ }
+ return 0
+}
-func (m *GroupMessageEvent_Sender) GetUserId() int64 {
- if m != nil {
- return m.UserId
+func (x *ChannelMessageEvent) GetSelfId() int64 {
+ if x != nil {
+ return x.SelfId
}
return 0
}
-func (m *GroupMessageEvent_Sender) GetNickname() string {
- if m != nil {
- return m.Nickname
+func (x *ChannelMessageEvent) GetPostType() string {
+ if x != nil {
+ return x.PostType
}
return ""
}
-func (m *GroupMessageEvent_Sender) GetCard() string {
- if m != nil {
- return m.Card
+func (x *ChannelMessageEvent) GetMessageType() string {
+ if x != nil {
+ return x.MessageType
}
return ""
}
-func (m *GroupMessageEvent_Sender) GetSex() string {
- if m != nil {
- return m.Sex
+func (x *ChannelMessageEvent) GetSubType() string {
+ if x != nil {
+ return x.SubType
}
return ""
}
-func (m *GroupMessageEvent_Sender) GetAge() int32 {
- if m != nil {
- return m.Age
+func (x *ChannelMessageEvent) GetMessage() []*Message {
+ if x != nil {
+ return x.Message
}
- return 0
+ return nil
}
-func (m *GroupMessageEvent_Sender) GetArea() string {
- if m != nil {
- return m.Area
+func (x *ChannelMessageEvent) GetRawMessage() string {
+ if x != nil {
+ return x.RawMessage
}
return ""
}
-func (m *GroupMessageEvent_Sender) GetLevel() string {
- if m != nil {
- return m.Level
+func (x *ChannelMessageEvent) GetFont() int32 {
+ if x != nil {
+ return x.Font
}
- return ""
+ return 0
}
-func (m *GroupMessageEvent_Sender) GetRole() string {
- if m != nil {
- return m.Role
+func (x *ChannelMessageEvent) GetSender() *ChannelMessageEvent_Sender {
+ if x != nil {
+ return x.Sender
}
- return ""
+ return nil
}
-func (m *GroupMessageEvent_Sender) GetTitle() string {
- if m != nil {
- return m.Title
+func (x *ChannelMessageEvent) GetMessageId() uint64 {
+ if x != nil {
+ return x.MessageId
}
- return ""
+ return 0
}
-type GroupTempMessageEvent struct {
- Time int64 `protobuf:"varint,1,opt,name=time,proto3" json:"time,omitempty"`
- SelfId int64 `protobuf:"varint,2,opt,name=self_id,json=selfId,proto3" json:"self_id,omitempty"`
- PostType string `protobuf:"bytes,3,opt,name=post_type,json=postType,proto3" json:"post_type,omitempty"`
- MessageType string `protobuf:"bytes,4,opt,name=message_type,json=messageType,proto3" json:"message_type,omitempty"`
- GroupId int64 `protobuf:"varint,7,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty"`
- UserId int64 `protobuf:"varint,8,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
- Message []*Message `protobuf:"bytes,10,rep,name=message,proto3" json:"message,omitempty"`
- RawMessage string `protobuf:"bytes,11,opt,name=raw_message,json=rawMessage,proto3" json:"raw_message,omitempty"`
- MessageId *MessageReceipt `protobuf:"bytes,14,opt,name=message_id,json=messageId,proto3" json:"message_id,omitempty"`
- Extra map[string]string `protobuf:"bytes,255,rep,name=extra,proto3" json:"extra,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
- XXX_NoUnkeyedLiteral struct{} `json:"-"`
- XXX_unrecognized []byte `json:"-"`
- XXX_sizecache int32 `json:"-"`
-}
-
-func (m *GroupTempMessageEvent) Reset() { *m = GroupTempMessageEvent{} }
-func (m *GroupTempMessageEvent) String() string { return proto.CompactTextString(m) }
-func (*GroupTempMessageEvent) ProtoMessage() {}
-func (*GroupTempMessageEvent) Descriptor() ([]byte, []int) {
- return fileDescriptor_8b4afa4460e98c26, []int{2}
-}
-func (m *GroupTempMessageEvent) XXX_Unmarshal(b []byte) error {
- return m.Unmarshal(b)
-}
-func (m *GroupTempMessageEvent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- if deterministic {
- return xxx_messageInfo_GroupTempMessageEvent.Marshal(b, m, deterministic)
- } else {
- b = b[:cap(b)]
- n, err := m.MarshalToSizedBuffer(b)
- if err != nil {
- return nil, err
- }
- return b[:n], nil
+func (x *ChannelMessageEvent) GetExtra() map[string]string {
+ if x != nil {
+ return x.Extra
}
+ return nil
+}
+
+type GroupTempMessageEvent struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ Time int64 `protobuf:"varint,1,opt,name=time,proto3" json:"time,omitempty"`
+ SelfId int64 `protobuf:"varint,2,opt,name=self_id,json=selfId,proto3" json:"self_id,omitempty"`
+ PostType string `protobuf:"bytes,3,opt,name=post_type,json=postType,proto3" json:"post_type,omitempty"`
+ MessageType string `protobuf:"bytes,4,opt,name=message_type,json=messageType,proto3" json:"message_type,omitempty"`
+ GroupId int64 `protobuf:"varint,7,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty"`
+ UserId int64 `protobuf:"varint,8,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
+ Message []*Message `protobuf:"bytes,10,rep,name=message,proto3" json:"message,omitempty"`
+ RawMessage string `protobuf:"bytes,11,opt,name=raw_message,json=rawMessage,proto3" json:"raw_message,omitempty"`
+ MessageReceipt *MessageReceipt `protobuf:"bytes,14,opt,name=message_receipt,json=messageReceipt,proto3" json:"message_receipt,omitempty"`
+ MessageId int32 `protobuf:"varint,15,opt,name=message_id,json=messageId,proto3" json:"message_id,omitempty"`
+ Extra map[string]string `protobuf:"bytes,255,rep,name=extra,proto3" json:"extra,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
}
-func (m *GroupTempMessageEvent) XXX_Merge(src proto.Message) {
- xxx_messageInfo_GroupTempMessageEvent.Merge(m, src)
+
+func (x *GroupTempMessageEvent) Reset() {
+ *x = GroupTempMessageEvent{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_onebot_event_proto_msgTypes[3]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
}
-func (m *GroupTempMessageEvent) XXX_Size() int {
- return m.Size()
+
+func (x *GroupTempMessageEvent) String() string {
+ return protoimpl.X.MessageStringOf(x)
}
-func (m *GroupTempMessageEvent) XXX_DiscardUnknown() {
- xxx_messageInfo_GroupTempMessageEvent.DiscardUnknown(m)
+
+func (*GroupTempMessageEvent) ProtoMessage() {}
+
+func (x *GroupTempMessageEvent) ProtoReflect() protoreflect.Message {
+ mi := &file_onebot_event_proto_msgTypes[3]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
}
-var xxx_messageInfo_GroupTempMessageEvent proto.InternalMessageInfo
+// Deprecated: Use GroupTempMessageEvent.ProtoReflect.Descriptor instead.
+func (*GroupTempMessageEvent) Descriptor() ([]byte, []int) {
+ return file_onebot_event_proto_rawDescGZIP(), []int{3}
+}
-func (m *GroupTempMessageEvent) GetTime() int64 {
- if m != nil {
- return m.Time
+func (x *GroupTempMessageEvent) GetTime() int64 {
+ if x != nil {
+ return x.Time
}
return 0
}
-func (m *GroupTempMessageEvent) GetSelfId() int64 {
- if m != nil {
- return m.SelfId
+func (x *GroupTempMessageEvent) GetSelfId() int64 {
+ if x != nil {
+ return x.SelfId
}
return 0
}
-func (m *GroupTempMessageEvent) GetPostType() string {
- if m != nil {
- return m.PostType
+func (x *GroupTempMessageEvent) GetPostType() string {
+ if x != nil {
+ return x.PostType
}
return ""
}
-func (m *GroupTempMessageEvent) GetMessageType() string {
- if m != nil {
- return m.MessageType
+func (x *GroupTempMessageEvent) GetMessageType() string {
+ if x != nil {
+ return x.MessageType
}
return ""
}
-func (m *GroupTempMessageEvent) GetGroupId() int64 {
- if m != nil {
- return m.GroupId
+func (x *GroupTempMessageEvent) GetGroupId() int64 {
+ if x != nil {
+ return x.GroupId
}
return 0
}
-func (m *GroupTempMessageEvent) GetUserId() int64 {
- if m != nil {
- return m.UserId
+func (x *GroupTempMessageEvent) GetUserId() int64 {
+ if x != nil {
+ return x.UserId
}
return 0
}
-func (m *GroupTempMessageEvent) GetMessage() []*Message {
- if m != nil {
- return m.Message
+func (x *GroupTempMessageEvent) GetMessage() []*Message {
+ if x != nil {
+ return x.Message
}
return nil
}
-func (m *GroupTempMessageEvent) GetRawMessage() string {
- if m != nil {
- return m.RawMessage
+func (x *GroupTempMessageEvent) GetRawMessage() string {
+ if x != nil {
+ return x.RawMessage
}
return ""
}
-func (m *GroupTempMessageEvent) GetMessageId() *MessageReceipt {
- if m != nil {
- return m.MessageId
+func (x *GroupTempMessageEvent) GetMessageReceipt() *MessageReceipt {
+ if x != nil {
+ return x.MessageReceipt
}
return nil
}
-func (m *GroupTempMessageEvent) GetExtra() map[string]string {
- if m != nil {
- return m.Extra
+func (x *GroupTempMessageEvent) GetMessageId() int32 {
+ if x != nil {
+ return x.MessageId
+ }
+ return 0
+}
+
+func (x *GroupTempMessageEvent) GetExtra() map[string]string {
+ if x != nil {
+ return x.Extra
}
return nil
}
type GroupUploadNoticeEvent struct {
- Time int64 `protobuf:"varint,1,opt,name=time,proto3" json:"time,omitempty"`
- SelfId int64 `protobuf:"varint,2,opt,name=self_id,json=selfId,proto3" json:"self_id,omitempty"`
- PostType string `protobuf:"bytes,3,opt,name=post_type,json=postType,proto3" json:"post_type,omitempty"`
- NoticeType string `protobuf:"bytes,4,opt,name=notice_type,json=noticeType,proto3" json:"notice_type,omitempty"`
- GroupId int64 `protobuf:"varint,5,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty"`
- UserId int64 `protobuf:"varint,6,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
- File *GroupUploadNoticeEvent_File `protobuf:"bytes,7,opt,name=file,proto3" json:"file,omitempty"`
- Extra map[string]string `protobuf:"bytes,255,rep,name=extra,proto3" json:"extra,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
- XXX_NoUnkeyedLiteral struct{} `json:"-"`
- XXX_unrecognized []byte `json:"-"`
- XXX_sizecache int32 `json:"-"`
-}
-
-func (m *GroupUploadNoticeEvent) Reset() { *m = GroupUploadNoticeEvent{} }
-func (m *GroupUploadNoticeEvent) String() string { return proto.CompactTextString(m) }
-func (*GroupUploadNoticeEvent) ProtoMessage() {}
-func (*GroupUploadNoticeEvent) Descriptor() ([]byte, []int) {
- return fileDescriptor_8b4afa4460e98c26, []int{3}
-}
-func (m *GroupUploadNoticeEvent) XXX_Unmarshal(b []byte) error {
- return m.Unmarshal(b)
-}
-func (m *GroupUploadNoticeEvent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- if deterministic {
- return xxx_messageInfo_GroupUploadNoticeEvent.Marshal(b, m, deterministic)
- } else {
- b = b[:cap(b)]
- n, err := m.MarshalToSizedBuffer(b)
- if err != nil {
- return nil, err
- }
- return b[:n], nil
- }
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ Time int64 `protobuf:"varint,1,opt,name=time,proto3" json:"time,omitempty"`
+ SelfId int64 `protobuf:"varint,2,opt,name=self_id,json=selfId,proto3" json:"self_id,omitempty"`
+ PostType string `protobuf:"bytes,3,opt,name=post_type,json=postType,proto3" json:"post_type,omitempty"`
+ NoticeType string `protobuf:"bytes,4,opt,name=notice_type,json=noticeType,proto3" json:"notice_type,omitempty"`
+ GroupId int64 `protobuf:"varint,5,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty"`
+ UserId int64 `protobuf:"varint,6,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
+ File *GroupUploadNoticeEvent_File `protobuf:"bytes,7,opt,name=file,proto3" json:"file,omitempty"`
+ Extra map[string]string `protobuf:"bytes,255,rep,name=extra,proto3" json:"extra,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
}
-func (m *GroupUploadNoticeEvent) XXX_Merge(src proto.Message) {
- xxx_messageInfo_GroupUploadNoticeEvent.Merge(m, src)
+
+func (x *GroupUploadNoticeEvent) Reset() {
+ *x = GroupUploadNoticeEvent{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_onebot_event_proto_msgTypes[4]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
}
-func (m *GroupUploadNoticeEvent) XXX_Size() int {
- return m.Size()
+
+func (x *GroupUploadNoticeEvent) String() string {
+ return protoimpl.X.MessageStringOf(x)
}
-func (m *GroupUploadNoticeEvent) XXX_DiscardUnknown() {
- xxx_messageInfo_GroupUploadNoticeEvent.DiscardUnknown(m)
+
+func (*GroupUploadNoticeEvent) ProtoMessage() {}
+
+func (x *GroupUploadNoticeEvent) ProtoReflect() protoreflect.Message {
+ mi := &file_onebot_event_proto_msgTypes[4]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
}
-var xxx_messageInfo_GroupUploadNoticeEvent proto.InternalMessageInfo
+// Deprecated: Use GroupUploadNoticeEvent.ProtoReflect.Descriptor instead.
+func (*GroupUploadNoticeEvent) Descriptor() ([]byte, []int) {
+ return file_onebot_event_proto_rawDescGZIP(), []int{4}
+}
-func (m *GroupUploadNoticeEvent) GetTime() int64 {
- if m != nil {
- return m.Time
+func (x *GroupUploadNoticeEvent) GetTime() int64 {
+ if x != nil {
+ return x.Time
}
return 0
}
-func (m *GroupUploadNoticeEvent) GetSelfId() int64 {
- if m != nil {
- return m.SelfId
+func (x *GroupUploadNoticeEvent) GetSelfId() int64 {
+ if x != nil {
+ return x.SelfId
}
return 0
}
-func (m *GroupUploadNoticeEvent) GetPostType() string {
- if m != nil {
- return m.PostType
+func (x *GroupUploadNoticeEvent) GetPostType() string {
+ if x != nil {
+ return x.PostType
}
return ""
}
-func (m *GroupUploadNoticeEvent) GetNoticeType() string {
- if m != nil {
- return m.NoticeType
+func (x *GroupUploadNoticeEvent) GetNoticeType() string {
+ if x != nil {
+ return x.NoticeType
}
return ""
}
-func (m *GroupUploadNoticeEvent) GetGroupId() int64 {
- if m != nil {
- return m.GroupId
+func (x *GroupUploadNoticeEvent) GetGroupId() int64 {
+ if x != nil {
+ return x.GroupId
}
return 0
}
-func (m *GroupUploadNoticeEvent) GetUserId() int64 {
- if m != nil {
- return m.UserId
+func (x *GroupUploadNoticeEvent) GetUserId() int64 {
+ if x != nil {
+ return x.UserId
}
return 0
}
-func (m *GroupUploadNoticeEvent) GetFile() *GroupUploadNoticeEvent_File {
- if m != nil {
- return m.File
+func (x *GroupUploadNoticeEvent) GetFile() *GroupUploadNoticeEvent_File {
+ if x != nil {
+ return x.File
}
return nil
}
-func (m *GroupUploadNoticeEvent) GetExtra() map[string]string {
- if m != nil {
- return m.Extra
+func (x *GroupUploadNoticeEvent) GetExtra() map[string]string {
+ if x != nil {
+ return x.Extra
}
return nil
}
-type GroupUploadNoticeEvent_File struct {
- Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
- Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
- Size_ int64 `protobuf:"varint,3,opt,name=size,proto3" json:"size,omitempty"`
- Busid int64 `protobuf:"varint,4,opt,name=busid,proto3" json:"busid,omitempty"`
- Url string `protobuf:"bytes,5,opt,name=url,proto3" json:"url,omitempty"`
- XXX_NoUnkeyedLiteral struct{} `json:"-"`
- XXX_unrecognized []byte `json:"-"`
- XXX_sizecache int32 `json:"-"`
-}
-
-func (m *GroupUploadNoticeEvent_File) Reset() { *m = GroupUploadNoticeEvent_File{} }
-func (m *GroupUploadNoticeEvent_File) String() string { return proto.CompactTextString(m) }
-func (*GroupUploadNoticeEvent_File) ProtoMessage() {}
-func (*GroupUploadNoticeEvent_File) Descriptor() ([]byte, []int) {
- return fileDescriptor_8b4afa4460e98c26, []int{3, 0}
-}
-func (m *GroupUploadNoticeEvent_File) XXX_Unmarshal(b []byte) error {
- return m.Unmarshal(b)
-}
-func (m *GroupUploadNoticeEvent_File) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- if deterministic {
- return xxx_messageInfo_GroupUploadNoticeEvent_File.Marshal(b, m, deterministic)
- } else {
- b = b[:cap(b)]
- n, err := m.MarshalToSizedBuffer(b)
- if err != nil {
- return nil, err
+type GroupNotifyEvent struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ Time int64 `protobuf:"varint,1,opt,name=time,proto3" json:"time,omitempty"`
+ SelfId int64 `protobuf:"varint,2,opt,name=self_id,json=selfId,proto3" json:"self_id,omitempty"`
+ PostType string `protobuf:"bytes,3,opt,name=post_type,json=postType,proto3" json:"post_type,omitempty"`
+ NoticeType string `protobuf:"bytes,4,opt,name=notice_type,json=noticeType,proto3" json:"notice_type,omitempty"`
+ GroupId int64 `protobuf:"varint,5,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty"`
+ GroupName string `protobuf:"bytes,6,opt,name=group_name,json=groupName,proto3" json:"group_name,omitempty"`
+ Sender int64 `protobuf:"varint,7,opt,name=sender,proto3" json:"sender,omitempty"`
+ SenderCard string `protobuf:"bytes,8,opt,name=sender_card,json=senderCard,proto3" json:"sender_card,omitempty"`
+ TargetId int64 `protobuf:"varint,9,opt,name=target_id,json=targetId,proto3" json:"target_id,omitempty"`
+ TargetCard string `protobuf:"bytes,10,opt,name=target_card,json=targetCard,proto3" json:"target_card,omitempty"`
+ Honor string `protobuf:"bytes,11,opt,name=honor,proto3" json:"honor,omitempty"`
+}
+
+func (x *GroupNotifyEvent) Reset() {
+ *x = GroupNotifyEvent{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_onebot_event_proto_msgTypes[5]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *GroupNotifyEvent) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*GroupNotifyEvent) ProtoMessage() {}
+
+func (x *GroupNotifyEvent) ProtoReflect() protoreflect.Message {
+ mi := &file_onebot_event_proto_msgTypes[5]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
}
- return b[:n], nil
+ return ms
}
+ return mi.MessageOf(x)
}
-func (m *GroupUploadNoticeEvent_File) XXX_Merge(src proto.Message) {
- xxx_messageInfo_GroupUploadNoticeEvent_File.Merge(m, src)
+
+// Deprecated: Use GroupNotifyEvent.ProtoReflect.Descriptor instead.
+func (*GroupNotifyEvent) Descriptor() ([]byte, []int) {
+ return file_onebot_event_proto_rawDescGZIP(), []int{5}
}
-func (m *GroupUploadNoticeEvent_File) XXX_Size() int {
- return m.Size()
+
+func (x *GroupNotifyEvent) GetTime() int64 {
+ if x != nil {
+ return x.Time
+ }
+ return 0
}
-func (m *GroupUploadNoticeEvent_File) XXX_DiscardUnknown() {
- xxx_messageInfo_GroupUploadNoticeEvent_File.DiscardUnknown(m)
+
+func (x *GroupNotifyEvent) GetSelfId() int64 {
+ if x != nil {
+ return x.SelfId
+ }
+ return 0
}
-var xxx_messageInfo_GroupUploadNoticeEvent_File proto.InternalMessageInfo
+func (x *GroupNotifyEvent) GetPostType() string {
+ if x != nil {
+ return x.PostType
+ }
+ return ""
+}
-func (m *GroupUploadNoticeEvent_File) GetId() string {
- if m != nil {
- return m.Id
+func (x *GroupNotifyEvent) GetNoticeType() string {
+ if x != nil {
+ return x.NoticeType
}
return ""
}
-func (m *GroupUploadNoticeEvent_File) GetName() string {
- if m != nil {
- return m.Name
+func (x *GroupNotifyEvent) GetGroupId() int64 {
+ if x != nil {
+ return x.GroupId
+ }
+ return 0
+}
+
+func (x *GroupNotifyEvent) GetGroupName() string {
+ if x != nil {
+ return x.GroupName
}
return ""
}
-func (m *GroupUploadNoticeEvent_File) GetSize_() int64 {
- if m != nil {
- return m.Size_
+func (x *GroupNotifyEvent) GetSender() int64 {
+ if x != nil {
+ return x.Sender
}
return 0
}
-func (m *GroupUploadNoticeEvent_File) GetBusid() int64 {
- if m != nil {
- return m.Busid
+func (x *GroupNotifyEvent) GetSenderCard() string {
+ if x != nil {
+ return x.SenderCard
+ }
+ return ""
+}
+
+func (x *GroupNotifyEvent) GetTargetId() int64 {
+ if x != nil {
+ return x.TargetId
}
return 0
}
-func (m *GroupUploadNoticeEvent_File) GetUrl() string {
- if m != nil {
- return m.Url
+func (x *GroupNotifyEvent) GetTargetCard() string {
+ if x != nil {
+ return x.TargetCard
}
return ""
}
-type GroupAdminNoticeEvent struct {
- Time int64 `protobuf:"varint,1,opt,name=time,proto3" json:"time,omitempty"`
- SelfId int64 `protobuf:"varint,2,opt,name=self_id,json=selfId,proto3" json:"self_id,omitempty"`
- PostType string `protobuf:"bytes,3,opt,name=post_type,json=postType,proto3" json:"post_type,omitempty"`
- NoticeType string `protobuf:"bytes,4,opt,name=notice_type,json=noticeType,proto3" json:"notice_type,omitempty"`
- SubType string `protobuf:"bytes,5,opt,name=sub_type,json=subType,proto3" json:"sub_type,omitempty"`
- GroupId int64 `protobuf:"varint,6,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty"`
- UserId int64 `protobuf:"varint,7,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
- Extra map[string]string `protobuf:"bytes,255,rep,name=extra,proto3" json:"extra,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
- XXX_NoUnkeyedLiteral struct{} `json:"-"`
- XXX_unrecognized []byte `json:"-"`
- XXX_sizecache int32 `json:"-"`
-}
-
-func (m *GroupAdminNoticeEvent) Reset() { *m = GroupAdminNoticeEvent{} }
-func (m *GroupAdminNoticeEvent) String() string { return proto.CompactTextString(m) }
-func (*GroupAdminNoticeEvent) ProtoMessage() {}
-func (*GroupAdminNoticeEvent) Descriptor() ([]byte, []int) {
- return fileDescriptor_8b4afa4460e98c26, []int{4}
-}
-func (m *GroupAdminNoticeEvent) XXX_Unmarshal(b []byte) error {
- return m.Unmarshal(b)
-}
-func (m *GroupAdminNoticeEvent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- if deterministic {
- return xxx_messageInfo_GroupAdminNoticeEvent.Marshal(b, m, deterministic)
- } else {
- b = b[:cap(b)]
- n, err := m.MarshalToSizedBuffer(b)
- if err != nil {
- return nil, err
- }
- return b[:n], nil
+func (x *GroupNotifyEvent) GetHonor() string {
+ if x != nil {
+ return x.Honor
}
+ return ""
+}
+
+type GroupAdminNoticeEvent struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ Time int64 `protobuf:"varint,1,opt,name=time,proto3" json:"time,omitempty"`
+ SelfId int64 `protobuf:"varint,2,opt,name=self_id,json=selfId,proto3" json:"self_id,omitempty"`
+ PostType string `protobuf:"bytes,3,opt,name=post_type,json=postType,proto3" json:"post_type,omitempty"`
+ NoticeType string `protobuf:"bytes,4,opt,name=notice_type,json=noticeType,proto3" json:"notice_type,omitempty"`
+ SubType string `protobuf:"bytes,5,opt,name=sub_type,json=subType,proto3" json:"sub_type,omitempty"`
+ GroupId int64 `protobuf:"varint,6,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty"`
+ UserId int64 `protobuf:"varint,7,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
+ Extra map[string]string `protobuf:"bytes,255,rep,name=extra,proto3" json:"extra,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
}
-func (m *GroupAdminNoticeEvent) XXX_Merge(src proto.Message) {
- xxx_messageInfo_GroupAdminNoticeEvent.Merge(m, src)
+
+func (x *GroupAdminNoticeEvent) Reset() {
+ *x = GroupAdminNoticeEvent{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_onebot_event_proto_msgTypes[6]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
}
-func (m *GroupAdminNoticeEvent) XXX_Size() int {
- return m.Size()
+
+func (x *GroupAdminNoticeEvent) String() string {
+ return protoimpl.X.MessageStringOf(x)
}
-func (m *GroupAdminNoticeEvent) XXX_DiscardUnknown() {
- xxx_messageInfo_GroupAdminNoticeEvent.DiscardUnknown(m)
+
+func (*GroupAdminNoticeEvent) ProtoMessage() {}
+
+func (x *GroupAdminNoticeEvent) ProtoReflect() protoreflect.Message {
+ mi := &file_onebot_event_proto_msgTypes[6]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
}
-var xxx_messageInfo_GroupAdminNoticeEvent proto.InternalMessageInfo
+// Deprecated: Use GroupAdminNoticeEvent.ProtoReflect.Descriptor instead.
+func (*GroupAdminNoticeEvent) Descriptor() ([]byte, []int) {
+ return file_onebot_event_proto_rawDescGZIP(), []int{6}
+}
-func (m *GroupAdminNoticeEvent) GetTime() int64 {
- if m != nil {
- return m.Time
+func (x *GroupAdminNoticeEvent) GetTime() int64 {
+ if x != nil {
+ return x.Time
}
return 0
}
-func (m *GroupAdminNoticeEvent) GetSelfId() int64 {
- if m != nil {
- return m.SelfId
+func (x *GroupAdminNoticeEvent) GetSelfId() int64 {
+ if x != nil {
+ return x.SelfId
}
return 0
}
-func (m *GroupAdminNoticeEvent) GetPostType() string {
- if m != nil {
- return m.PostType
+func (x *GroupAdminNoticeEvent) GetPostType() string {
+ if x != nil {
+ return x.PostType
}
return ""
}
-func (m *GroupAdminNoticeEvent) GetNoticeType() string {
- if m != nil {
- return m.NoticeType
+func (x *GroupAdminNoticeEvent) GetNoticeType() string {
+ if x != nil {
+ return x.NoticeType
}
return ""
}
-func (m *GroupAdminNoticeEvent) GetSubType() string {
- if m != nil {
- return m.SubType
+func (x *GroupAdminNoticeEvent) GetSubType() string {
+ if x != nil {
+ return x.SubType
}
return ""
}
-func (m *GroupAdminNoticeEvent) GetGroupId() int64 {
- if m != nil {
- return m.GroupId
+func (x *GroupAdminNoticeEvent) GetGroupId() int64 {
+ if x != nil {
+ return x.GroupId
}
return 0
}
-func (m *GroupAdminNoticeEvent) GetUserId() int64 {
- if m != nil {
- return m.UserId
+func (x *GroupAdminNoticeEvent) GetUserId() int64 {
+ if x != nil {
+ return x.UserId
}
return 0
}
-func (m *GroupAdminNoticeEvent) GetExtra() map[string]string {
- if m != nil {
- return m.Extra
+func (x *GroupAdminNoticeEvent) GetExtra() map[string]string {
+ if x != nil {
+ return x.Extra
}
return nil
}
type GroupDecreaseNoticeEvent struct {
- Time int64 `protobuf:"varint,1,opt,name=time,proto3" json:"time,omitempty"`
- SelfId int64 `protobuf:"varint,2,opt,name=self_id,json=selfId,proto3" json:"self_id,omitempty"`
- PostType string `protobuf:"bytes,3,opt,name=post_type,json=postType,proto3" json:"post_type,omitempty"`
- NoticeType string `protobuf:"bytes,4,opt,name=notice_type,json=noticeType,proto3" json:"notice_type,omitempty"`
- SubType string `protobuf:"bytes,5,opt,name=sub_type,json=subType,proto3" json:"sub_type,omitempty"`
- GroupId int64 `protobuf:"varint,6,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty"`
- OperatorId int64 `protobuf:"varint,7,opt,name=operator_id,json=operatorId,proto3" json:"operator_id,omitempty"`
- UserId int64 `protobuf:"varint,8,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
- Extra map[string]string `protobuf:"bytes,255,rep,name=extra,proto3" json:"extra,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
- XXX_NoUnkeyedLiteral struct{} `json:"-"`
- XXX_unrecognized []byte `json:"-"`
- XXX_sizecache int32 `json:"-"`
-}
-
-func (m *GroupDecreaseNoticeEvent) Reset() { *m = GroupDecreaseNoticeEvent{} }
-func (m *GroupDecreaseNoticeEvent) String() string { return proto.CompactTextString(m) }
-func (*GroupDecreaseNoticeEvent) ProtoMessage() {}
-func (*GroupDecreaseNoticeEvent) Descriptor() ([]byte, []int) {
- return fileDescriptor_8b4afa4460e98c26, []int{5}
-}
-func (m *GroupDecreaseNoticeEvent) XXX_Unmarshal(b []byte) error {
- return m.Unmarshal(b)
-}
-func (m *GroupDecreaseNoticeEvent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- if deterministic {
- return xxx_messageInfo_GroupDecreaseNoticeEvent.Marshal(b, m, deterministic)
- } else {
- b = b[:cap(b)]
- n, err := m.MarshalToSizedBuffer(b)
- if err != nil {
- return nil, err
- }
- return b[:n], nil
- }
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ Time int64 `protobuf:"varint,1,opt,name=time,proto3" json:"time,omitempty"`
+ SelfId int64 `protobuf:"varint,2,opt,name=self_id,json=selfId,proto3" json:"self_id,omitempty"`
+ PostType string `protobuf:"bytes,3,opt,name=post_type,json=postType,proto3" json:"post_type,omitempty"`
+ NoticeType string `protobuf:"bytes,4,opt,name=notice_type,json=noticeType,proto3" json:"notice_type,omitempty"`
+ SubType string `protobuf:"bytes,5,opt,name=sub_type,json=subType,proto3" json:"sub_type,omitempty"`
+ GroupId int64 `protobuf:"varint,6,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty"`
+ OperatorId int64 `protobuf:"varint,7,opt,name=operator_id,json=operatorId,proto3" json:"operator_id,omitempty"`
+ UserId int64 `protobuf:"varint,8,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
+ Extra map[string]string `protobuf:"bytes,255,rep,name=extra,proto3" json:"extra,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
}
-func (m *GroupDecreaseNoticeEvent) XXX_Merge(src proto.Message) {
- xxx_messageInfo_GroupDecreaseNoticeEvent.Merge(m, src)
+
+func (x *GroupDecreaseNoticeEvent) Reset() {
+ *x = GroupDecreaseNoticeEvent{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_onebot_event_proto_msgTypes[7]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
}
-func (m *GroupDecreaseNoticeEvent) XXX_Size() int {
- return m.Size()
+
+func (x *GroupDecreaseNoticeEvent) String() string {
+ return protoimpl.X.MessageStringOf(x)
}
-func (m *GroupDecreaseNoticeEvent) XXX_DiscardUnknown() {
- xxx_messageInfo_GroupDecreaseNoticeEvent.DiscardUnknown(m)
+
+func (*GroupDecreaseNoticeEvent) ProtoMessage() {}
+
+func (x *GroupDecreaseNoticeEvent) ProtoReflect() protoreflect.Message {
+ mi := &file_onebot_event_proto_msgTypes[7]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
}
-var xxx_messageInfo_GroupDecreaseNoticeEvent proto.InternalMessageInfo
+// Deprecated: Use GroupDecreaseNoticeEvent.ProtoReflect.Descriptor instead.
+func (*GroupDecreaseNoticeEvent) Descriptor() ([]byte, []int) {
+ return file_onebot_event_proto_rawDescGZIP(), []int{7}
+}
-func (m *GroupDecreaseNoticeEvent) GetTime() int64 {
- if m != nil {
- return m.Time
+func (x *GroupDecreaseNoticeEvent) GetTime() int64 {
+ if x != nil {
+ return x.Time
}
return 0
}
-func (m *GroupDecreaseNoticeEvent) GetSelfId() int64 {
- if m != nil {
- return m.SelfId
+func (x *GroupDecreaseNoticeEvent) GetSelfId() int64 {
+ if x != nil {
+ return x.SelfId
}
return 0
}
-func (m *GroupDecreaseNoticeEvent) GetPostType() string {
- if m != nil {
- return m.PostType
+func (x *GroupDecreaseNoticeEvent) GetPostType() string {
+ if x != nil {
+ return x.PostType
}
return ""
}
-func (m *GroupDecreaseNoticeEvent) GetNoticeType() string {
- if m != nil {
- return m.NoticeType
+func (x *GroupDecreaseNoticeEvent) GetNoticeType() string {
+ if x != nil {
+ return x.NoticeType
}
return ""
}
-func (m *GroupDecreaseNoticeEvent) GetSubType() string {
- if m != nil {
- return m.SubType
+func (x *GroupDecreaseNoticeEvent) GetSubType() string {
+ if x != nil {
+ return x.SubType
}
return ""
}
-func (m *GroupDecreaseNoticeEvent) GetGroupId() int64 {
- if m != nil {
- return m.GroupId
+func (x *GroupDecreaseNoticeEvent) GetGroupId() int64 {
+ if x != nil {
+ return x.GroupId
}
return 0
}
-func (m *GroupDecreaseNoticeEvent) GetOperatorId() int64 {
- if m != nil {
- return m.OperatorId
+func (x *GroupDecreaseNoticeEvent) GetOperatorId() int64 {
+ if x != nil {
+ return x.OperatorId
}
return 0
}
-func (m *GroupDecreaseNoticeEvent) GetUserId() int64 {
- if m != nil {
- return m.UserId
+func (x *GroupDecreaseNoticeEvent) GetUserId() int64 {
+ if x != nil {
+ return x.UserId
}
return 0
}
-func (m *GroupDecreaseNoticeEvent) GetExtra() map[string]string {
- if m != nil {
- return m.Extra
+func (x *GroupDecreaseNoticeEvent) GetExtra() map[string]string {
+ if x != nil {
+ return x.Extra
}
return nil
}
type GroupIncreaseNoticeEvent struct {
- Time int64 `protobuf:"varint,1,opt,name=time,proto3" json:"time,omitempty"`
- SelfId int64 `protobuf:"varint,2,opt,name=self_id,json=selfId,proto3" json:"self_id,omitempty"`
- PostType string `protobuf:"bytes,3,opt,name=post_type,json=postType,proto3" json:"post_type,omitempty"`
- NoticeType string `protobuf:"bytes,4,opt,name=notice_type,json=noticeType,proto3" json:"notice_type,omitempty"`
- SubType string `protobuf:"bytes,5,opt,name=sub_type,json=subType,proto3" json:"sub_type,omitempty"`
- GroupId int64 `protobuf:"varint,6,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty"`
- OperatorId int64 `protobuf:"varint,7,opt,name=operator_id,json=operatorId,proto3" json:"operator_id,omitempty"`
- UserId int64 `protobuf:"varint,8,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
- Extra map[string]string `protobuf:"bytes,255,rep,name=extra,proto3" json:"extra,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
- XXX_NoUnkeyedLiteral struct{} `json:"-"`
- XXX_unrecognized []byte `json:"-"`
- XXX_sizecache int32 `json:"-"`
-}
-
-func (m *GroupIncreaseNoticeEvent) Reset() { *m = GroupIncreaseNoticeEvent{} }
-func (m *GroupIncreaseNoticeEvent) String() string { return proto.CompactTextString(m) }
-func (*GroupIncreaseNoticeEvent) ProtoMessage() {}
-func (*GroupIncreaseNoticeEvent) Descriptor() ([]byte, []int) {
- return fileDescriptor_8b4afa4460e98c26, []int{6}
-}
-func (m *GroupIncreaseNoticeEvent) XXX_Unmarshal(b []byte) error {
- return m.Unmarshal(b)
-}
-func (m *GroupIncreaseNoticeEvent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- if deterministic {
- return xxx_messageInfo_GroupIncreaseNoticeEvent.Marshal(b, m, deterministic)
- } else {
- b = b[:cap(b)]
- n, err := m.MarshalToSizedBuffer(b)
- if err != nil {
- return nil, err
- }
- return b[:n], nil
- }
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ Time int64 `protobuf:"varint,1,opt,name=time,proto3" json:"time,omitempty"`
+ SelfId int64 `protobuf:"varint,2,opt,name=self_id,json=selfId,proto3" json:"self_id,omitempty"`
+ PostType string `protobuf:"bytes,3,opt,name=post_type,json=postType,proto3" json:"post_type,omitempty"`
+ NoticeType string `protobuf:"bytes,4,opt,name=notice_type,json=noticeType,proto3" json:"notice_type,omitempty"`
+ SubType string `protobuf:"bytes,5,opt,name=sub_type,json=subType,proto3" json:"sub_type,omitempty"`
+ GroupId int64 `protobuf:"varint,6,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty"`
+ OperatorId int64 `protobuf:"varint,7,opt,name=operator_id,json=operatorId,proto3" json:"operator_id,omitempty"`
+ UserId int64 `protobuf:"varint,8,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
+ Extra map[string]string `protobuf:"bytes,255,rep,name=extra,proto3" json:"extra,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
}
-func (m *GroupIncreaseNoticeEvent) XXX_Merge(src proto.Message) {
- xxx_messageInfo_GroupIncreaseNoticeEvent.Merge(m, src)
+
+func (x *GroupIncreaseNoticeEvent) Reset() {
+ *x = GroupIncreaseNoticeEvent{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_onebot_event_proto_msgTypes[8]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
}
-func (m *GroupIncreaseNoticeEvent) XXX_Size() int {
- return m.Size()
+
+func (x *GroupIncreaseNoticeEvent) String() string {
+ return protoimpl.X.MessageStringOf(x)
}
-func (m *GroupIncreaseNoticeEvent) XXX_DiscardUnknown() {
- xxx_messageInfo_GroupIncreaseNoticeEvent.DiscardUnknown(m)
+
+func (*GroupIncreaseNoticeEvent) ProtoMessage() {}
+
+func (x *GroupIncreaseNoticeEvent) ProtoReflect() protoreflect.Message {
+ mi := &file_onebot_event_proto_msgTypes[8]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
}
-var xxx_messageInfo_GroupIncreaseNoticeEvent proto.InternalMessageInfo
+// Deprecated: Use GroupIncreaseNoticeEvent.ProtoReflect.Descriptor instead.
+func (*GroupIncreaseNoticeEvent) Descriptor() ([]byte, []int) {
+ return file_onebot_event_proto_rawDescGZIP(), []int{8}
+}
-func (m *GroupIncreaseNoticeEvent) GetTime() int64 {
- if m != nil {
- return m.Time
+func (x *GroupIncreaseNoticeEvent) GetTime() int64 {
+ if x != nil {
+ return x.Time
}
return 0
}
-func (m *GroupIncreaseNoticeEvent) GetSelfId() int64 {
- if m != nil {
- return m.SelfId
+func (x *GroupIncreaseNoticeEvent) GetSelfId() int64 {
+ if x != nil {
+ return x.SelfId
}
return 0
}
-func (m *GroupIncreaseNoticeEvent) GetPostType() string {
- if m != nil {
- return m.PostType
+func (x *GroupIncreaseNoticeEvent) GetPostType() string {
+ if x != nil {
+ return x.PostType
}
return ""
}
-func (m *GroupIncreaseNoticeEvent) GetNoticeType() string {
- if m != nil {
- return m.NoticeType
+func (x *GroupIncreaseNoticeEvent) GetNoticeType() string {
+ if x != nil {
+ return x.NoticeType
}
return ""
}
-func (m *GroupIncreaseNoticeEvent) GetSubType() string {
- if m != nil {
- return m.SubType
+func (x *GroupIncreaseNoticeEvent) GetSubType() string {
+ if x != nil {
+ return x.SubType
}
return ""
}
-func (m *GroupIncreaseNoticeEvent) GetGroupId() int64 {
- if m != nil {
- return m.GroupId
+func (x *GroupIncreaseNoticeEvent) GetGroupId() int64 {
+ if x != nil {
+ return x.GroupId
}
return 0
}
-func (m *GroupIncreaseNoticeEvent) GetOperatorId() int64 {
- if m != nil {
- return m.OperatorId
+func (x *GroupIncreaseNoticeEvent) GetOperatorId() int64 {
+ if x != nil {
+ return x.OperatorId
}
return 0
}
-func (m *GroupIncreaseNoticeEvent) GetUserId() int64 {
- if m != nil {
- return m.UserId
+func (x *GroupIncreaseNoticeEvent) GetUserId() int64 {
+ if x != nil {
+ return x.UserId
}
return 0
}
-func (m *GroupIncreaseNoticeEvent) GetExtra() map[string]string {
- if m != nil {
- return m.Extra
+func (x *GroupIncreaseNoticeEvent) GetExtra() map[string]string {
+ if x != nil {
+ return x.Extra
}
return nil
}
type GroupBanNoticeEvent struct {
- Time int64 `protobuf:"varint,1,opt,name=time,proto3" json:"time,omitempty"`
- SelfId int64 `protobuf:"varint,2,opt,name=self_id,json=selfId,proto3" json:"self_id,omitempty"`
- PostType string `protobuf:"bytes,3,opt,name=post_type,json=postType,proto3" json:"post_type,omitempty"`
- NoticeType string `protobuf:"bytes,4,opt,name=notice_type,json=noticeType,proto3" json:"notice_type,omitempty"`
- SubType string `protobuf:"bytes,5,opt,name=sub_type,json=subType,proto3" json:"sub_type,omitempty"`
- GroupId int64 `protobuf:"varint,6,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty"`
- OperatorId int64 `protobuf:"varint,7,opt,name=operator_id,json=operatorId,proto3" json:"operator_id,omitempty"`
- UserId int64 `protobuf:"varint,8,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
- Duration int64 `protobuf:"varint,9,opt,name=duration,proto3" json:"duration,omitempty"`
- Extra map[string]string `protobuf:"bytes,255,rep,name=extra,proto3" json:"extra,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
- XXX_NoUnkeyedLiteral struct{} `json:"-"`
- XXX_unrecognized []byte `json:"-"`
- XXX_sizecache int32 `json:"-"`
-}
-
-func (m *GroupBanNoticeEvent) Reset() { *m = GroupBanNoticeEvent{} }
-func (m *GroupBanNoticeEvent) String() string { return proto.CompactTextString(m) }
-func (*GroupBanNoticeEvent) ProtoMessage() {}
-func (*GroupBanNoticeEvent) Descriptor() ([]byte, []int) {
- return fileDescriptor_8b4afa4460e98c26, []int{7}
-}
-func (m *GroupBanNoticeEvent) XXX_Unmarshal(b []byte) error {
- return m.Unmarshal(b)
-}
-func (m *GroupBanNoticeEvent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- if deterministic {
- return xxx_messageInfo_GroupBanNoticeEvent.Marshal(b, m, deterministic)
- } else {
- b = b[:cap(b)]
- n, err := m.MarshalToSizedBuffer(b)
- if err != nil {
- return nil, err
- }
- return b[:n], nil
- }
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ Time int64 `protobuf:"varint,1,opt,name=time,proto3" json:"time,omitempty"`
+ SelfId int64 `protobuf:"varint,2,opt,name=self_id,json=selfId,proto3" json:"self_id,omitempty"`
+ PostType string `protobuf:"bytes,3,opt,name=post_type,json=postType,proto3" json:"post_type,omitempty"`
+ NoticeType string `protobuf:"bytes,4,opt,name=notice_type,json=noticeType,proto3" json:"notice_type,omitempty"`
+ SubType string `protobuf:"bytes,5,opt,name=sub_type,json=subType,proto3" json:"sub_type,omitempty"`
+ GroupId int64 `protobuf:"varint,6,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty"`
+ OperatorId int64 `protobuf:"varint,7,opt,name=operator_id,json=operatorId,proto3" json:"operator_id,omitempty"`
+ UserId int64 `protobuf:"varint,8,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
+ Duration int64 `protobuf:"varint,9,opt,name=duration,proto3" json:"duration,omitempty"`
+ Extra map[string]string `protobuf:"bytes,255,rep,name=extra,proto3" json:"extra,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
}
-func (m *GroupBanNoticeEvent) XXX_Merge(src proto.Message) {
- xxx_messageInfo_GroupBanNoticeEvent.Merge(m, src)
+
+func (x *GroupBanNoticeEvent) Reset() {
+ *x = GroupBanNoticeEvent{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_onebot_event_proto_msgTypes[9]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
}
-func (m *GroupBanNoticeEvent) XXX_Size() int {
- return m.Size()
+
+func (x *GroupBanNoticeEvent) String() string {
+ return protoimpl.X.MessageStringOf(x)
}
-func (m *GroupBanNoticeEvent) XXX_DiscardUnknown() {
- xxx_messageInfo_GroupBanNoticeEvent.DiscardUnknown(m)
+
+func (*GroupBanNoticeEvent) ProtoMessage() {}
+
+func (x *GroupBanNoticeEvent) ProtoReflect() protoreflect.Message {
+ mi := &file_onebot_event_proto_msgTypes[9]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
}
-var xxx_messageInfo_GroupBanNoticeEvent proto.InternalMessageInfo
+// Deprecated: Use GroupBanNoticeEvent.ProtoReflect.Descriptor instead.
+func (*GroupBanNoticeEvent) Descriptor() ([]byte, []int) {
+ return file_onebot_event_proto_rawDescGZIP(), []int{9}
+}
-func (m *GroupBanNoticeEvent) GetTime() int64 {
- if m != nil {
- return m.Time
+func (x *GroupBanNoticeEvent) GetTime() int64 {
+ if x != nil {
+ return x.Time
}
return 0
}
-func (m *GroupBanNoticeEvent) GetSelfId() int64 {
- if m != nil {
- return m.SelfId
+func (x *GroupBanNoticeEvent) GetSelfId() int64 {
+ if x != nil {
+ return x.SelfId
}
return 0
}
-func (m *GroupBanNoticeEvent) GetPostType() string {
- if m != nil {
- return m.PostType
+func (x *GroupBanNoticeEvent) GetPostType() string {
+ if x != nil {
+ return x.PostType
}
return ""
}
-func (m *GroupBanNoticeEvent) GetNoticeType() string {
- if m != nil {
- return m.NoticeType
+func (x *GroupBanNoticeEvent) GetNoticeType() string {
+ if x != nil {
+ return x.NoticeType
}
return ""
}
-func (m *GroupBanNoticeEvent) GetSubType() string {
- if m != nil {
- return m.SubType
+func (x *GroupBanNoticeEvent) GetSubType() string {
+ if x != nil {
+ return x.SubType
}
return ""
}
-func (m *GroupBanNoticeEvent) GetGroupId() int64 {
- if m != nil {
- return m.GroupId
+func (x *GroupBanNoticeEvent) GetGroupId() int64 {
+ if x != nil {
+ return x.GroupId
}
return 0
}
-func (m *GroupBanNoticeEvent) GetOperatorId() int64 {
- if m != nil {
- return m.OperatorId
+func (x *GroupBanNoticeEvent) GetOperatorId() int64 {
+ if x != nil {
+ return x.OperatorId
}
return 0
}
-func (m *GroupBanNoticeEvent) GetUserId() int64 {
- if m != nil {
- return m.UserId
+func (x *GroupBanNoticeEvent) GetUserId() int64 {
+ if x != nil {
+ return x.UserId
}
return 0
}
-func (m *GroupBanNoticeEvent) GetDuration() int64 {
- if m != nil {
- return m.Duration
+func (x *GroupBanNoticeEvent) GetDuration() int64 {
+ if x != nil {
+ return x.Duration
}
return 0
}
-func (m *GroupBanNoticeEvent) GetExtra() map[string]string {
- if m != nil {
- return m.Extra
+func (x *GroupBanNoticeEvent) GetExtra() map[string]string {
+ if x != nil {
+ return x.Extra
}
return nil
}
type FriendAddNoticeEvent struct {
- Time int64 `protobuf:"varint,1,opt,name=time,proto3" json:"time,omitempty"`
- SelfId int64 `protobuf:"varint,2,opt,name=self_id,json=selfId,proto3" json:"self_id,omitempty"`
- PostType string `protobuf:"bytes,3,opt,name=post_type,json=postType,proto3" json:"post_type,omitempty"`
- NoticeType string `protobuf:"bytes,4,opt,name=notice_type,json=noticeType,proto3" json:"notice_type,omitempty"`
- UserId int64 `protobuf:"varint,5,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
- Extra map[string]string `protobuf:"bytes,255,rep,name=extra,proto3" json:"extra,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
- XXX_NoUnkeyedLiteral struct{} `json:"-"`
- XXX_unrecognized []byte `json:"-"`
- XXX_sizecache int32 `json:"-"`
-}
-
-func (m *FriendAddNoticeEvent) Reset() { *m = FriendAddNoticeEvent{} }
-func (m *FriendAddNoticeEvent) String() string { return proto.CompactTextString(m) }
-func (*FriendAddNoticeEvent) ProtoMessage() {}
-func (*FriendAddNoticeEvent) Descriptor() ([]byte, []int) {
- return fileDescriptor_8b4afa4460e98c26, []int{8}
-}
-func (m *FriendAddNoticeEvent) XXX_Unmarshal(b []byte) error {
- return m.Unmarshal(b)
-}
-func (m *FriendAddNoticeEvent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- if deterministic {
- return xxx_messageInfo_FriendAddNoticeEvent.Marshal(b, m, deterministic)
- } else {
- b = b[:cap(b)]
- n, err := m.MarshalToSizedBuffer(b)
- if err != nil {
- return nil, err
- }
- return b[:n], nil
- }
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ Time int64 `protobuf:"varint,1,opt,name=time,proto3" json:"time,omitempty"`
+ SelfId int64 `protobuf:"varint,2,opt,name=self_id,json=selfId,proto3" json:"self_id,omitempty"`
+ PostType string `protobuf:"bytes,3,opt,name=post_type,json=postType,proto3" json:"post_type,omitempty"`
+ NoticeType string `protobuf:"bytes,4,opt,name=notice_type,json=noticeType,proto3" json:"notice_type,omitempty"`
+ UserId int64 `protobuf:"varint,5,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
+ Extra map[string]string `protobuf:"bytes,255,rep,name=extra,proto3" json:"extra,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
}
-func (m *FriendAddNoticeEvent) XXX_Merge(src proto.Message) {
- xxx_messageInfo_FriendAddNoticeEvent.Merge(m, src)
+
+func (x *FriendAddNoticeEvent) Reset() {
+ *x = FriendAddNoticeEvent{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_onebot_event_proto_msgTypes[10]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
}
-func (m *FriendAddNoticeEvent) XXX_Size() int {
- return m.Size()
+
+func (x *FriendAddNoticeEvent) String() string {
+ return protoimpl.X.MessageStringOf(x)
}
-func (m *FriendAddNoticeEvent) XXX_DiscardUnknown() {
- xxx_messageInfo_FriendAddNoticeEvent.DiscardUnknown(m)
+
+func (*FriendAddNoticeEvent) ProtoMessage() {}
+
+func (x *FriendAddNoticeEvent) ProtoReflect() protoreflect.Message {
+ mi := &file_onebot_event_proto_msgTypes[10]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
}
-var xxx_messageInfo_FriendAddNoticeEvent proto.InternalMessageInfo
+// Deprecated: Use FriendAddNoticeEvent.ProtoReflect.Descriptor instead.
+func (*FriendAddNoticeEvent) Descriptor() ([]byte, []int) {
+ return file_onebot_event_proto_rawDescGZIP(), []int{10}
+}
-func (m *FriendAddNoticeEvent) GetTime() int64 {
- if m != nil {
- return m.Time
+func (x *FriendAddNoticeEvent) GetTime() int64 {
+ if x != nil {
+ return x.Time
}
return 0
}
-func (m *FriendAddNoticeEvent) GetSelfId() int64 {
- if m != nil {
- return m.SelfId
+func (x *FriendAddNoticeEvent) GetSelfId() int64 {
+ if x != nil {
+ return x.SelfId
}
return 0
}
-func (m *FriendAddNoticeEvent) GetPostType() string {
- if m != nil {
- return m.PostType
+func (x *FriendAddNoticeEvent) GetPostType() string {
+ if x != nil {
+ return x.PostType
}
return ""
}
-func (m *FriendAddNoticeEvent) GetNoticeType() string {
- if m != nil {
- return m.NoticeType
+func (x *FriendAddNoticeEvent) GetNoticeType() string {
+ if x != nil {
+ return x.NoticeType
}
return ""
}
-func (m *FriendAddNoticeEvent) GetUserId() int64 {
- if m != nil {
- return m.UserId
+func (x *FriendAddNoticeEvent) GetUserId() int64 {
+ if x != nil {
+ return x.UserId
}
return 0
}
-func (m *FriendAddNoticeEvent) GetExtra() map[string]string {
- if m != nil {
- return m.Extra
+func (x *FriendAddNoticeEvent) GetExtra() map[string]string {
+ if x != nil {
+ return x.Extra
}
return nil
}
type GroupRecallNoticeEvent struct {
- Time int64 `protobuf:"varint,1,opt,name=time,proto3" json:"time,omitempty"`
- SelfId int64 `protobuf:"varint,2,opt,name=self_id,json=selfId,proto3" json:"self_id,omitempty"`
- PostType string `protobuf:"bytes,3,opt,name=post_type,json=postType,proto3" json:"post_type,omitempty"`
- NoticeType string `protobuf:"bytes,4,opt,name=notice_type,json=noticeType,proto3" json:"notice_type,omitempty"`
- GroupId int64 `protobuf:"varint,5,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty"`
- UserId int64 `protobuf:"varint,6,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
- OperatorId int64 `protobuf:"varint,7,opt,name=operator_id,json=operatorId,proto3" json:"operator_id,omitempty"`
- // int32 message_id = 8; // 废弃
- MessageId *MessageReceipt `protobuf:"bytes,9,opt,name=message_id,json=messageId,proto3" json:"message_id,omitempty"`
- Extra map[string]string `protobuf:"bytes,255,rep,name=extra,proto3" json:"extra,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
- XXX_NoUnkeyedLiteral struct{} `json:"-"`
- XXX_unrecognized []byte `json:"-"`
- XXX_sizecache int32 `json:"-"`
-}
-
-func (m *GroupRecallNoticeEvent) Reset() { *m = GroupRecallNoticeEvent{} }
-func (m *GroupRecallNoticeEvent) String() string { return proto.CompactTextString(m) }
-func (*GroupRecallNoticeEvent) ProtoMessage() {}
-func (*GroupRecallNoticeEvent) Descriptor() ([]byte, []int) {
- return fileDescriptor_8b4afa4460e98c26, []int{9}
-}
-func (m *GroupRecallNoticeEvent) XXX_Unmarshal(b []byte) error {
- return m.Unmarshal(b)
-}
-func (m *GroupRecallNoticeEvent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- if deterministic {
- return xxx_messageInfo_GroupRecallNoticeEvent.Marshal(b, m, deterministic)
- } else {
- b = b[:cap(b)]
- n, err := m.MarshalToSizedBuffer(b)
- if err != nil {
- return nil, err
- }
- return b[:n], nil
- }
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ Time int64 `protobuf:"varint,1,opt,name=time,proto3" json:"time,omitempty"`
+ SelfId int64 `protobuf:"varint,2,opt,name=self_id,json=selfId,proto3" json:"self_id,omitempty"`
+ PostType string `protobuf:"bytes,3,opt,name=post_type,json=postType,proto3" json:"post_type,omitempty"`
+ NoticeType string `protobuf:"bytes,4,opt,name=notice_type,json=noticeType,proto3" json:"notice_type,omitempty"`
+ GroupId int64 `protobuf:"varint,5,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty"`
+ UserId int64 `protobuf:"varint,6,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
+ OperatorId int64 `protobuf:"varint,7,opt,name=operator_id,json=operatorId,proto3" json:"operator_id,omitempty"`
+ MessageId int32 `protobuf:"varint,8,opt,name=message_id,json=messageId,proto3" json:"message_id,omitempty"`
+ MessageReceipt *MessageReceipt `protobuf:"bytes,9,opt,name=message_receipt,json=messageReceipt,proto3" json:"message_receipt,omitempty"`
+ Extra map[string]string `protobuf:"bytes,255,rep,name=extra,proto3" json:"extra,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
}
-func (m *GroupRecallNoticeEvent) XXX_Merge(src proto.Message) {
- xxx_messageInfo_GroupRecallNoticeEvent.Merge(m, src)
+
+func (x *GroupRecallNoticeEvent) Reset() {
+ *x = GroupRecallNoticeEvent{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_onebot_event_proto_msgTypes[11]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
}
-func (m *GroupRecallNoticeEvent) XXX_Size() int {
- return m.Size()
+
+func (x *GroupRecallNoticeEvent) String() string {
+ return protoimpl.X.MessageStringOf(x)
}
-func (m *GroupRecallNoticeEvent) XXX_DiscardUnknown() {
- xxx_messageInfo_GroupRecallNoticeEvent.DiscardUnknown(m)
+
+func (*GroupRecallNoticeEvent) ProtoMessage() {}
+
+func (x *GroupRecallNoticeEvent) ProtoReflect() protoreflect.Message {
+ mi := &file_onebot_event_proto_msgTypes[11]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
}
-var xxx_messageInfo_GroupRecallNoticeEvent proto.InternalMessageInfo
+// Deprecated: Use GroupRecallNoticeEvent.ProtoReflect.Descriptor instead.
+func (*GroupRecallNoticeEvent) Descriptor() ([]byte, []int) {
+ return file_onebot_event_proto_rawDescGZIP(), []int{11}
+}
-func (m *GroupRecallNoticeEvent) GetTime() int64 {
- if m != nil {
- return m.Time
+func (x *GroupRecallNoticeEvent) GetTime() int64 {
+ if x != nil {
+ return x.Time
}
return 0
}
-func (m *GroupRecallNoticeEvent) GetSelfId() int64 {
- if m != nil {
- return m.SelfId
+func (x *GroupRecallNoticeEvent) GetSelfId() int64 {
+ if x != nil {
+ return x.SelfId
}
return 0
}
-func (m *GroupRecallNoticeEvent) GetPostType() string {
- if m != nil {
- return m.PostType
+func (x *GroupRecallNoticeEvent) GetPostType() string {
+ if x != nil {
+ return x.PostType
}
return ""
}
-func (m *GroupRecallNoticeEvent) GetNoticeType() string {
- if m != nil {
- return m.NoticeType
+func (x *GroupRecallNoticeEvent) GetNoticeType() string {
+ if x != nil {
+ return x.NoticeType
}
return ""
}
-func (m *GroupRecallNoticeEvent) GetGroupId() int64 {
- if m != nil {
- return m.GroupId
+func (x *GroupRecallNoticeEvent) GetGroupId() int64 {
+ if x != nil {
+ return x.GroupId
}
return 0
}
-func (m *GroupRecallNoticeEvent) GetUserId() int64 {
- if m != nil {
- return m.UserId
+func (x *GroupRecallNoticeEvent) GetUserId() int64 {
+ if x != nil {
+ return x.UserId
}
return 0
}
-func (m *GroupRecallNoticeEvent) GetOperatorId() int64 {
- if m != nil {
- return m.OperatorId
+func (x *GroupRecallNoticeEvent) GetOperatorId() int64 {
+ if x != nil {
+ return x.OperatorId
}
return 0
}
-func (m *GroupRecallNoticeEvent) GetMessageId() *MessageReceipt {
- if m != nil {
- return m.MessageId
+func (x *GroupRecallNoticeEvent) GetMessageId() int32 {
+ if x != nil {
+ return x.MessageId
}
- return nil
+ return 0
}
-func (m *GroupRecallNoticeEvent) GetExtra() map[string]string {
- if m != nil {
- return m.Extra
+func (x *GroupRecallNoticeEvent) GetMessageReceipt() *MessageReceipt {
+ if x != nil {
+ return x.MessageReceipt
}
return nil
}
-type FriendRecallNoticeEvent struct {
- Time int64 `protobuf:"varint,1,opt,name=time,proto3" json:"time,omitempty"`
- SelfId int64 `protobuf:"varint,2,opt,name=self_id,json=selfId,proto3" json:"self_id,omitempty"`
- PostType string `protobuf:"bytes,3,opt,name=post_type,json=postType,proto3" json:"post_type,omitempty"`
- NoticeType string `protobuf:"bytes,4,opt,name=notice_type,json=noticeType,proto3" json:"notice_type,omitempty"`
- UserId int64 `protobuf:"varint,5,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
- // int32 message_id = 6; // 废弃
- MessageId *MessageReceipt `protobuf:"bytes,7,opt,name=message_id,json=messageId,proto3" json:"message_id,omitempty"`
- Extra map[string]string `protobuf:"bytes,255,rep,name=extra,proto3" json:"extra,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
- XXX_NoUnkeyedLiteral struct{} `json:"-"`
- XXX_unrecognized []byte `json:"-"`
- XXX_sizecache int32 `json:"-"`
-}
-
-func (m *FriendRecallNoticeEvent) Reset() { *m = FriendRecallNoticeEvent{} }
-func (m *FriendRecallNoticeEvent) String() string { return proto.CompactTextString(m) }
-func (*FriendRecallNoticeEvent) ProtoMessage() {}
-func (*FriendRecallNoticeEvent) Descriptor() ([]byte, []int) {
- return fileDescriptor_8b4afa4460e98c26, []int{10}
-}
-func (m *FriendRecallNoticeEvent) XXX_Unmarshal(b []byte) error {
- return m.Unmarshal(b)
-}
-func (m *FriendRecallNoticeEvent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- if deterministic {
- return xxx_messageInfo_FriendRecallNoticeEvent.Marshal(b, m, deterministic)
- } else {
- b = b[:cap(b)]
- n, err := m.MarshalToSizedBuffer(b)
- if err != nil {
- return nil, err
- }
- return b[:n], nil
+func (x *GroupRecallNoticeEvent) GetExtra() map[string]string {
+ if x != nil {
+ return x.Extra
}
-}
-func (m *FriendRecallNoticeEvent) XXX_Merge(src proto.Message) {
- xxx_messageInfo_FriendRecallNoticeEvent.Merge(m, src)
-}
-func (m *FriendRecallNoticeEvent) XXX_Size() int {
- return m.Size()
-}
-func (m *FriendRecallNoticeEvent) XXX_DiscardUnknown() {
- xxx_messageInfo_FriendRecallNoticeEvent.DiscardUnknown(m)
+ return nil
}
-var xxx_messageInfo_FriendRecallNoticeEvent proto.InternalMessageInfo
+type FriendRecallNoticeEvent struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
-func (m *FriendRecallNoticeEvent) GetTime() int64 {
- if m != nil {
- return m.Time
- }
- return 0
+ Time int64 `protobuf:"varint,1,opt,name=time,proto3" json:"time,omitempty"`
+ SelfId int64 `protobuf:"varint,2,opt,name=self_id,json=selfId,proto3" json:"self_id,omitempty"`
+ PostType string `protobuf:"bytes,3,opt,name=post_type,json=postType,proto3" json:"post_type,omitempty"`
+ NoticeType string `protobuf:"bytes,4,opt,name=notice_type,json=noticeType,proto3" json:"notice_type,omitempty"`
+ UserId int64 `protobuf:"varint,5,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
+ MessageId int32 `protobuf:"varint,6,opt,name=message_id,json=messageId,proto3" json:"message_id,omitempty"`
+ MessageReceipt *MessageReceipt `protobuf:"bytes,7,opt,name=message_receipt,json=messageReceipt,proto3" json:"message_receipt,omitempty"`
+ Extra map[string]string `protobuf:"bytes,255,rep,name=extra,proto3" json:"extra,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
}
-func (m *FriendRecallNoticeEvent) GetSelfId() int64 {
- if m != nil {
- return m.SelfId
+func (x *FriendRecallNoticeEvent) Reset() {
+ *x = FriendRecallNoticeEvent{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_onebot_event_proto_msgTypes[12]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
}
- return 0
}
-func (m *FriendRecallNoticeEvent) GetPostType() string {
- if m != nil {
- return m.PostType
- }
- return ""
+func (x *FriendRecallNoticeEvent) String() string {
+ return protoimpl.X.MessageStringOf(x)
}
-func (m *FriendRecallNoticeEvent) GetNoticeType() string {
- if m != nil {
- return m.NoticeType
- }
+func (*FriendRecallNoticeEvent) ProtoMessage() {}
+
+func (x *FriendRecallNoticeEvent) ProtoReflect() protoreflect.Message {
+ mi := &file_onebot_event_proto_msgTypes[12]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+// Deprecated: Use FriendRecallNoticeEvent.ProtoReflect.Descriptor instead.
+func (*FriendRecallNoticeEvent) Descriptor() ([]byte, []int) {
+ return file_onebot_event_proto_rawDescGZIP(), []int{12}
+}
+
+func (x *FriendRecallNoticeEvent) GetTime() int64 {
+ if x != nil {
+ return x.Time
+ }
+ return 0
+}
+
+func (x *FriendRecallNoticeEvent) GetSelfId() int64 {
+ if x != nil {
+ return x.SelfId
+ }
+ return 0
+}
+
+func (x *FriendRecallNoticeEvent) GetPostType() string {
+ if x != nil {
+ return x.PostType
+ }
+ return ""
+}
+
+func (x *FriendRecallNoticeEvent) GetNoticeType() string {
+ if x != nil {
+ return x.NoticeType
+ }
return ""
}
-func (m *FriendRecallNoticeEvent) GetUserId() int64 {
- if m != nil {
- return m.UserId
+func (x *FriendRecallNoticeEvent) GetUserId() int64 {
+ if x != nil {
+ return x.UserId
+ }
+ return 0
+}
+
+func (x *FriendRecallNoticeEvent) GetMessageId() int32 {
+ if x != nil {
+ return x.MessageId
}
return 0
}
-func (m *FriendRecallNoticeEvent) GetMessageId() *MessageReceipt {
- if m != nil {
- return m.MessageId
+func (x *FriendRecallNoticeEvent) GetMessageReceipt() *MessageReceipt {
+ if x != nil {
+ return x.MessageReceipt
}
return nil
}
-func (m *FriendRecallNoticeEvent) GetExtra() map[string]string {
- if m != nil {
- return m.Extra
+func (x *FriendRecallNoticeEvent) GetExtra() map[string]string {
+ if x != nil {
+ return x.Extra
}
return nil
}
type FriendRequestEvent struct {
- Time int64 `protobuf:"varint,1,opt,name=time,proto3" json:"time,omitempty"`
- SelfId int64 `protobuf:"varint,2,opt,name=self_id,json=selfId,proto3" json:"self_id,omitempty"`
- PostType string `protobuf:"bytes,3,opt,name=post_type,json=postType,proto3" json:"post_type,omitempty"`
- RequestType string `protobuf:"bytes,4,opt,name=request_type,json=requestType,proto3" json:"request_type,omitempty"`
- UserId int64 `protobuf:"varint,5,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
- Comment string `protobuf:"bytes,6,opt,name=comment,proto3" json:"comment,omitempty"`
- Flag string `protobuf:"bytes,7,opt,name=flag,proto3" json:"flag,omitempty"`
- Extra map[string]string `protobuf:"bytes,255,rep,name=extra,proto3" json:"extra,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
- XXX_NoUnkeyedLiteral struct{} `json:"-"`
- XXX_unrecognized []byte `json:"-"`
- XXX_sizecache int32 `json:"-"`
-}
-
-func (m *FriendRequestEvent) Reset() { *m = FriendRequestEvent{} }
-func (m *FriendRequestEvent) String() string { return proto.CompactTextString(m) }
-func (*FriendRequestEvent) ProtoMessage() {}
-func (*FriendRequestEvent) Descriptor() ([]byte, []int) {
- return fileDescriptor_8b4afa4460e98c26, []int{11}
-}
-func (m *FriendRequestEvent) XXX_Unmarshal(b []byte) error {
- return m.Unmarshal(b)
-}
-func (m *FriendRequestEvent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- if deterministic {
- return xxx_messageInfo_FriendRequestEvent.Marshal(b, m, deterministic)
- } else {
- b = b[:cap(b)]
- n, err := m.MarshalToSizedBuffer(b)
- if err != nil {
- return nil, err
- }
- return b[:n], nil
- }
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ Time int64 `protobuf:"varint,1,opt,name=time,proto3" json:"time,omitempty"`
+ SelfId int64 `protobuf:"varint,2,opt,name=self_id,json=selfId,proto3" json:"self_id,omitempty"`
+ PostType string `protobuf:"bytes,3,opt,name=post_type,json=postType,proto3" json:"post_type,omitempty"`
+ RequestType string `protobuf:"bytes,4,opt,name=request_type,json=requestType,proto3" json:"request_type,omitempty"`
+ UserId int64 `protobuf:"varint,5,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
+ Comment string `protobuf:"bytes,6,opt,name=comment,proto3" json:"comment,omitempty"`
+ Flag string `protobuf:"bytes,7,opt,name=flag,proto3" json:"flag,omitempty"`
+ Extra map[string]string `protobuf:"bytes,255,rep,name=extra,proto3" json:"extra,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
}
-func (m *FriendRequestEvent) XXX_Merge(src proto.Message) {
- xxx_messageInfo_FriendRequestEvent.Merge(m, src)
+
+func (x *FriendRequestEvent) Reset() {
+ *x = FriendRequestEvent{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_onebot_event_proto_msgTypes[13]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
}
-func (m *FriendRequestEvent) XXX_Size() int {
- return m.Size()
+
+func (x *FriendRequestEvent) String() string {
+ return protoimpl.X.MessageStringOf(x)
}
-func (m *FriendRequestEvent) XXX_DiscardUnknown() {
- xxx_messageInfo_FriendRequestEvent.DiscardUnknown(m)
+
+func (*FriendRequestEvent) ProtoMessage() {}
+
+func (x *FriendRequestEvent) ProtoReflect() protoreflect.Message {
+ mi := &file_onebot_event_proto_msgTypes[13]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
}
-var xxx_messageInfo_FriendRequestEvent proto.InternalMessageInfo
+// Deprecated: Use FriendRequestEvent.ProtoReflect.Descriptor instead.
+func (*FriendRequestEvent) Descriptor() ([]byte, []int) {
+ return file_onebot_event_proto_rawDescGZIP(), []int{13}
+}
-func (m *FriendRequestEvent) GetTime() int64 {
- if m != nil {
- return m.Time
+func (x *FriendRequestEvent) GetTime() int64 {
+ if x != nil {
+ return x.Time
}
return 0
}
-func (m *FriendRequestEvent) GetSelfId() int64 {
- if m != nil {
- return m.SelfId
+func (x *FriendRequestEvent) GetSelfId() int64 {
+ if x != nil {
+ return x.SelfId
}
return 0
}
-func (m *FriendRequestEvent) GetPostType() string {
- if m != nil {
- return m.PostType
+func (x *FriendRequestEvent) GetPostType() string {
+ if x != nil {
+ return x.PostType
}
return ""
}
-func (m *FriendRequestEvent) GetRequestType() string {
- if m != nil {
- return m.RequestType
+func (x *FriendRequestEvent) GetRequestType() string {
+ if x != nil {
+ return x.RequestType
}
return ""
}
-func (m *FriendRequestEvent) GetUserId() int64 {
- if m != nil {
- return m.UserId
+func (x *FriendRequestEvent) GetUserId() int64 {
+ if x != nil {
+ return x.UserId
}
return 0
}
-func (m *FriendRequestEvent) GetComment() string {
- if m != nil {
- return m.Comment
+func (x *FriendRequestEvent) GetComment() string {
+ if x != nil {
+ return x.Comment
}
return ""
}
-func (m *FriendRequestEvent) GetFlag() string {
- if m != nil {
- return m.Flag
+func (x *FriendRequestEvent) GetFlag() string {
+ if x != nil {
+ return x.Flag
}
return ""
}
-func (m *FriendRequestEvent) GetExtra() map[string]string {
- if m != nil {
- return m.Extra
+func (x *FriendRequestEvent) GetExtra() map[string]string {
+ if x != nil {
+ return x.Extra
}
return nil
}
type GroupRequestEvent struct {
- Time int64 `protobuf:"varint,1,opt,name=time,proto3" json:"time,omitempty"`
- SelfId int64 `protobuf:"varint,2,opt,name=self_id,json=selfId,proto3" json:"self_id,omitempty"`
- PostType string `protobuf:"bytes,3,opt,name=post_type,json=postType,proto3" json:"post_type,omitempty"`
- RequestType string `protobuf:"bytes,4,opt,name=request_type,json=requestType,proto3" json:"request_type,omitempty"`
- SubType string `protobuf:"bytes,5,opt,name=sub_type,json=subType,proto3" json:"sub_type,omitempty"`
- GroupId int64 `protobuf:"varint,6,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty"`
- UserId int64 `protobuf:"varint,7,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
- Comment string `protobuf:"bytes,8,opt,name=comment,proto3" json:"comment,omitempty"`
- Flag string `protobuf:"bytes,9,opt,name=flag,proto3" json:"flag,omitempty"`
- Extra map[string]string `protobuf:"bytes,255,rep,name=extra,proto3" json:"extra,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
- XXX_NoUnkeyedLiteral struct{} `json:"-"`
- XXX_unrecognized []byte `json:"-"`
- XXX_sizecache int32 `json:"-"`
-}
-
-func (m *GroupRequestEvent) Reset() { *m = GroupRequestEvent{} }
-func (m *GroupRequestEvent) String() string { return proto.CompactTextString(m) }
-func (*GroupRequestEvent) ProtoMessage() {}
-func (*GroupRequestEvent) Descriptor() ([]byte, []int) {
- return fileDescriptor_8b4afa4460e98c26, []int{12}
-}
-func (m *GroupRequestEvent) XXX_Unmarshal(b []byte) error {
- return m.Unmarshal(b)
-}
-func (m *GroupRequestEvent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- if deterministic {
- return xxx_messageInfo_GroupRequestEvent.Marshal(b, m, deterministic)
- } else {
- b = b[:cap(b)]
- n, err := m.MarshalToSizedBuffer(b)
- if err != nil {
- return nil, err
- }
- return b[:n], nil
- }
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ Time int64 `protobuf:"varint,1,opt,name=time,proto3" json:"time,omitempty"`
+ SelfId int64 `protobuf:"varint,2,opt,name=self_id,json=selfId,proto3" json:"self_id,omitempty"`
+ PostType string `protobuf:"bytes,3,opt,name=post_type,json=postType,proto3" json:"post_type,omitempty"`
+ RequestType string `protobuf:"bytes,4,opt,name=request_type,json=requestType,proto3" json:"request_type,omitempty"`
+ SubType string `protobuf:"bytes,5,opt,name=sub_type,json=subType,proto3" json:"sub_type,omitempty"`
+ GroupId int64 `protobuf:"varint,6,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty"`
+ UserId int64 `protobuf:"varint,7,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
+ Comment string `protobuf:"bytes,8,opt,name=comment,proto3" json:"comment,omitempty"`
+ Flag string `protobuf:"bytes,9,opt,name=flag,proto3" json:"flag,omitempty"`
+ RequestId int64 `protobuf:"varint,10,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"`
+ UserNick string `protobuf:"bytes,11,opt,name=user_nick,json=userNick,proto3" json:"user_nick,omitempty"`
+ GroupName string `protobuf:"bytes,12,opt,name=group_name,json=groupName,proto3" json:"group_name,omitempty"`
+ ActionUinNick string `protobuf:"bytes,13,opt,name=action_uin_nick,json=actionUinNick,proto3" json:"action_uin_nick,omitempty"`
+ ActionUin int64 `protobuf:"varint,14,opt,name=action_uin,json=actionUin,proto3" json:"action_uin,omitempty"`
+ Check bool `protobuf:"varint,15,opt,name=check,proto3" json:"check,omitempty"`
+ Suspicious bool `protobuf:"varint,16,opt,name=suspicious,proto3" json:"suspicious,omitempty"`
+ Extra map[string]string `protobuf:"bytes,255,rep,name=extra,proto3" json:"extra,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
}
-func (m *GroupRequestEvent) XXX_Merge(src proto.Message) {
- xxx_messageInfo_GroupRequestEvent.Merge(m, src)
+
+func (x *GroupRequestEvent) Reset() {
+ *x = GroupRequestEvent{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_onebot_event_proto_msgTypes[14]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
}
-func (m *GroupRequestEvent) XXX_Size() int {
- return m.Size()
+
+func (x *GroupRequestEvent) String() string {
+ return protoimpl.X.MessageStringOf(x)
}
-func (m *GroupRequestEvent) XXX_DiscardUnknown() {
- xxx_messageInfo_GroupRequestEvent.DiscardUnknown(m)
+
+func (*GroupRequestEvent) ProtoMessage() {}
+
+func (x *GroupRequestEvent) ProtoReflect() protoreflect.Message {
+ mi := &file_onebot_event_proto_msgTypes[14]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
}
-var xxx_messageInfo_GroupRequestEvent proto.InternalMessageInfo
+// Deprecated: Use GroupRequestEvent.ProtoReflect.Descriptor instead.
+func (*GroupRequestEvent) Descriptor() ([]byte, []int) {
+ return file_onebot_event_proto_rawDescGZIP(), []int{14}
+}
-func (m *GroupRequestEvent) GetTime() int64 {
- if m != nil {
- return m.Time
+func (x *GroupRequestEvent) GetTime() int64 {
+ if x != nil {
+ return x.Time
}
return 0
}
-func (m *GroupRequestEvent) GetSelfId() int64 {
- if m != nil {
- return m.SelfId
+func (x *GroupRequestEvent) GetSelfId() int64 {
+ if x != nil {
+ return x.SelfId
}
return 0
}
-func (m *GroupRequestEvent) GetPostType() string {
- if m != nil {
- return m.PostType
+func (x *GroupRequestEvent) GetPostType() string {
+ if x != nil {
+ return x.PostType
}
return ""
}
-func (m *GroupRequestEvent) GetRequestType() string {
- if m != nil {
- return m.RequestType
+func (x *GroupRequestEvent) GetRequestType() string {
+ if x != nil {
+ return x.RequestType
}
return ""
}
-func (m *GroupRequestEvent) GetSubType() string {
- if m != nil {
- return m.SubType
+func (x *GroupRequestEvent) GetSubType() string {
+ if x != nil {
+ return x.SubType
}
return ""
}
-func (m *GroupRequestEvent) GetGroupId() int64 {
- if m != nil {
- return m.GroupId
+func (x *GroupRequestEvent) GetGroupId() int64 {
+ if x != nil {
+ return x.GroupId
}
return 0
}
-func (m *GroupRequestEvent) GetUserId() int64 {
- if m != nil {
- return m.UserId
+func (x *GroupRequestEvent) GetUserId() int64 {
+ if x != nil {
+ return x.UserId
}
return 0
}
-func (m *GroupRequestEvent) GetComment() string {
- if m != nil {
- return m.Comment
+func (x *GroupRequestEvent) GetComment() string {
+ if x != nil {
+ return x.Comment
}
return ""
}
-func (m *GroupRequestEvent) GetFlag() string {
- if m != nil {
- return m.Flag
+func (x *GroupRequestEvent) GetFlag() string {
+ if x != nil {
+ return x.Flag
}
return ""
}
-func (m *GroupRequestEvent) GetExtra() map[string]string {
- if m != nil {
- return m.Extra
+func (x *GroupRequestEvent) GetRequestId() int64 {
+ if x != nil {
+ return x.RequestId
}
- return nil
+ return 0
}
-func init() {
- proto.RegisterType((*PrivateMessageEvent)(nil), "onebot.PrivateMessageEvent")
- proto.RegisterMapType((map[string]string)(nil), "onebot.PrivateMessageEvent.ExtraEntry")
- proto.RegisterType((*PrivateMessageEvent_Sender)(nil), "onebot.PrivateMessageEvent.Sender")
- proto.RegisterType((*GroupMessageEvent)(nil), "onebot.GroupMessageEvent")
- proto.RegisterMapType((map[string]string)(nil), "onebot.GroupMessageEvent.ExtraEntry")
- proto.RegisterType((*GroupMessageEvent_Anonymous)(nil), "onebot.GroupMessageEvent.Anonymous")
- proto.RegisterType((*GroupMessageEvent_Sender)(nil), "onebot.GroupMessageEvent.Sender")
- proto.RegisterType((*GroupTempMessageEvent)(nil), "onebot.GroupTempMessageEvent")
- proto.RegisterMapType((map[string]string)(nil), "onebot.GroupTempMessageEvent.ExtraEntry")
- proto.RegisterType((*GroupUploadNoticeEvent)(nil), "onebot.GroupUploadNoticeEvent")
- proto.RegisterMapType((map[string]string)(nil), "onebot.GroupUploadNoticeEvent.ExtraEntry")
- proto.RegisterType((*GroupUploadNoticeEvent_File)(nil), "onebot.GroupUploadNoticeEvent.File")
- proto.RegisterType((*GroupAdminNoticeEvent)(nil), "onebot.GroupAdminNoticeEvent")
- proto.RegisterMapType((map[string]string)(nil), "onebot.GroupAdminNoticeEvent.ExtraEntry")
- proto.RegisterType((*GroupDecreaseNoticeEvent)(nil), "onebot.GroupDecreaseNoticeEvent")
- proto.RegisterMapType((map[string]string)(nil), "onebot.GroupDecreaseNoticeEvent.ExtraEntry")
- proto.RegisterType((*GroupIncreaseNoticeEvent)(nil), "onebot.GroupIncreaseNoticeEvent")
- proto.RegisterMapType((map[string]string)(nil), "onebot.GroupIncreaseNoticeEvent.ExtraEntry")
- proto.RegisterType((*GroupBanNoticeEvent)(nil), "onebot.GroupBanNoticeEvent")
- proto.RegisterMapType((map[string]string)(nil), "onebot.GroupBanNoticeEvent.ExtraEntry")
- proto.RegisterType((*FriendAddNoticeEvent)(nil), "onebot.FriendAddNoticeEvent")
- proto.RegisterMapType((map[string]string)(nil), "onebot.FriendAddNoticeEvent.ExtraEntry")
- proto.RegisterType((*GroupRecallNoticeEvent)(nil), "onebot.GroupRecallNoticeEvent")
- proto.RegisterMapType((map[string]string)(nil), "onebot.GroupRecallNoticeEvent.ExtraEntry")
- proto.RegisterType((*FriendRecallNoticeEvent)(nil), "onebot.FriendRecallNoticeEvent")
- proto.RegisterMapType((map[string]string)(nil), "onebot.FriendRecallNoticeEvent.ExtraEntry")
- proto.RegisterType((*FriendRequestEvent)(nil), "onebot.FriendRequestEvent")
- proto.RegisterMapType((map[string]string)(nil), "onebot.FriendRequestEvent.ExtraEntry")
- proto.RegisterType((*GroupRequestEvent)(nil), "onebot.GroupRequestEvent")
- proto.RegisterMapType((map[string]string)(nil), "onebot.GroupRequestEvent.ExtraEntry")
-}
-
-func init() { proto.RegisterFile("onebot_event.proto", fileDescriptor_8b4afa4460e98c26) }
-
-var fileDescriptor_8b4afa4460e98c26 = []byte{
- // 1044 bytes of a gzipped FileDescriptorProto
- 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xec, 0x98, 0xcf, 0x8f, 0xdb, 0x44,
- 0x14, 0xc7, 0xb1, 0x9d, 0xc4, 0xf1, 0xf3, 0x52, 0xda, 0x69, 0xe9, 0xba, 0x41, 0xda, 0x0d, 0xcb,
- 0xaf, 0x14, 0xa4, 0x1c, 0x16, 0x21, 0x56, 0xe5, 0x67, 0x16, 0xb6, 0x28, 0x07, 0x10, 0x32, 0xe5,
- 0xbc, 0x9a, 0xc4, 0x6f, 0x57, 0x56, 0x1d, 0x3b, 0x8c, 0xc7, 0xdb, 0x86, 0x3b, 0x27, 0xae, 0x1c,
- 0xf8, 0x4b, 0x38, 0x73, 0x04, 0x89, 0x03, 0x48, 0xfc, 0x01, 0x68, 0x11, 0x27, 0x8e, 0x70, 0x07,
- 0xcd, 0x8c, 0x9d, 0xd8, 0xce, 0x8f, 0x6e, 0xbb, 0x5e, 0x85, 0x8a, 0xde, 0xde, 0xfc, 0x7c, 0xf3,
- 0x3e, 0xef, 0xfb, 0x9c, 0x99, 0x00, 0x89, 0x42, 0x1c, 0x44, 0xfc, 0x10, 0x4f, 0x30, 0xe4, 0xdd,
- 0x31, 0x8b, 0x78, 0x44, 0x1a, 0xaa, 0xaf, 0x75, 0x25, 0x1d, 0x1b, 0xd0, 0x18, 0xd5, 0xd0, 0xce,
- 0x1f, 0x35, 0xb8, 0xfa, 0x29, 0xf3, 0x4f, 0x28, 0xc7, 0x8f, 0x31, 0x8e, 0xe9, 0x31, 0x1e, 0x88,
- 0x85, 0x84, 0x40, 0x8d, 0xfb, 0x23, 0x74, 0xb4, 0xb6, 0xd6, 0x31, 0x5c, 0x69, 0x93, 0x4d, 0x30,
- 0x63, 0x0c, 0x8e, 0x0e, 0x7d, 0xcf, 0xd1, 0x65, 0x77, 0x43, 0x34, 0xfb, 0x1e, 0x79, 0x0e, 0xac,
- 0x71, 0x14, 0xf3, 0x43, 0x3e, 0x19, 0xa3, 0x63, 0xb4, 0xb5, 0x8e, 0xe5, 0x36, 0x45, 0xc7, 0x9d,
- 0xc9, 0x18, 0xc9, 0xf3, 0xb0, 0x31, 0x52, 0x3b, 0xab, 0xf1, 0x9a, 0x1c, 0xb7, 0xd3, 0x3e, 0x39,
- 0xe5, 0x06, 0x34, 0xe3, 0x64, 0xa0, 0x86, 0xeb, 0x72, 0xd8, 0x8c, 0x93, 0x81, 0x1c, 0xda, 0x04,
- 0x33, 0x89, 0x91, 0x09, 0x9f, 0xa6, 0xf2, 0x29, 0x9a, 0x7d, 0x8f, 0xdc, 0x04, 0x33, 0xdd, 0xc2,
- 0x69, 0xb6, 0x8d, 0x8e, 0xbd, 0xfb, 0x4c, 0x57, 0x45, 0xd7, 0x4d, 0xe3, 0x70, 0xb3, 0x71, 0xb2,
- 0x0d, 0x36, 0xa3, 0xf7, 0x0e, 0xb3, 0xe9, 0x96, 0xf4, 0x00, 0x8c, 0xde, 0x4b, 0x67, 0x8a, 0x60,
- 0x8f, 0xa2, 0x90, 0x3b, 0xd0, 0xd6, 0x3a, 0x75, 0x57, 0xda, 0xe4, 0x16, 0x34, 0x62, 0x0c, 0x3d,
- 0x64, 0x8e, 0xdd, 0xd6, 0x3a, 0xf6, 0xee, 0x4e, 0xb6, 0xfd, 0x02, 0x5a, 0xdd, 0xcf, 0xe4, 0x4c,
- 0x37, 0x5d, 0x41, 0xde, 0x00, 0xc8, 0x42, 0xf6, 0x3d, 0x67, 0x43, 0xae, 0xbf, 0x5e, 0x3e, 0x1e,
- 0x0e, 0xd1, 0x1f, 0x73, 0xd7, 0x4a, 0x67, 0xf6, 0x3d, 0xf2, 0x0e, 0xd4, 0xf1, 0x3e, 0x67, 0xd4,
- 0xf9, 0x47, 0x93, 0x11, 0xbd, 0xbc, 0xca, 0xe5, 0x81, 0x98, 0x79, 0x10, 0x72, 0x36, 0x71, 0xd5,
- 0xaa, 0x16, 0x85, 0x86, 0x3a, 0x47, 0x1e, 0x9a, 0x56, 0x80, 0xd6, 0x82, 0x66, 0xe8, 0x0f, 0xef,
- 0x86, 0x74, 0x84, 0x32, 0x85, 0x96, 0x3b, 0x6d, 0x93, 0xcb, 0x60, 0xc4, 0x78, 0x3f, 0x4d, 0x9f,
- 0x30, 0x45, 0x8f, 0xe0, 0x55, 0x93, 0x54, 0x84, 0xd9, 0xda, 0x03, 0x98, 0xf9, 0x15, 0xe3, 0x77,
- 0x71, 0x22, 0x5d, 0x58, 0xae, 0x30, 0xc9, 0x35, 0xa8, 0x9f, 0xd0, 0x20, 0xc9, 0x36, 0x57, 0x8d,
- 0x5b, 0xfa, 0x9e, 0xb6, 0xf3, 0x67, 0x03, 0xae, 0x7c, 0xc4, 0xa2, 0x64, 0xfc, 0x9f, 0x54, 0xd9,
- 0x0d, 0x68, 0x1e, 0x8b, 0xc3, 0xcd, 0x64, 0x66, 0xca, 0x76, 0xdf, 0xcb, 0xb3, 0x6c, 0x16, 0x58,
- 0xf6, 0xc0, 0xa2, 0x61, 0x14, 0x4e, 0x46, 0x51, 0x12, 0x4b, 0x4d, 0xd9, 0xbb, 0x2f, 0x64, 0x09,
- 0x9b, 0x8b, 0xb4, 0xdb, 0xcb, 0xa6, 0xba, 0xb3, 0x55, 0x79, 0x0d, 0xc3, 0xc3, 0x69, 0xd8, 0x5e,
- 0xaa, 0xe1, 0x8d, 0x9c, 0x86, 0xf7, 0xa6, 0x1a, 0x7e, 0x5a, 0x9e, 0xaf, 0xbd, 0xfc, 0x7c, 0x2b,
- 0x15, 0x7c, 0xe9, 0xac, 0x0a, 0x7e, 0xab, 0xa4, 0xe0, 0x17, 0x97, 0x3b, 0x9c, 0xd7, 0xef, 0x07,
- 0x60, 0x4d, 0x29, 0x91, 0x4b, 0xa0, 0x4f, 0xd5, 0xab, 0xfb, 0x9e, 0x08, 0x2f, 0xa7, 0x5a, 0x69,
- 0xcb, 0x90, 0x03, 0x7a, 0x9c, 0x6a, 0x41, 0xda, 0xad, 0x1f, 0xb5, 0xf3, 0x55, 0x01, 0x81, 0xda,
- 0x90, 0x32, 0x2f, 0xdb, 0x53, 0xd8, 0x59, 0x65, 0xd4, 0xe6, 0x2a, 0xa3, 0x3e, 0xad, 0x0c, 0xb1,
- 0x8e, 0x32, 0xa4, 0x4e, 0x43, 0xad, 0x13, 0xb6, 0xa8, 0x86, 0x00, 0x4f, 0x30, 0x90, 0x92, 0xb2,
- 0x5c, 0xd5, 0x10, 0x33, 0x59, 0x14, 0xa0, 0x54, 0x93, 0xe5, 0x4a, 0x5b, 0xcc, 0xe4, 0x3e, 0x0f,
- 0xb2, 0x6f, 0x93, 0x6a, 0x9c, 0xa3, 0xda, 0xbe, 0x33, 0xe0, 0x59, 0x89, 0xfc, 0x0e, 0x8e, 0xd6,
- 0x5b, 0x71, 0x0f, 0x5d, 0x56, 0x55, 0xd6, 0xc4, 0x23, 0xaa, 0xf8, 0xbd, 0x92, 0x8a, 0x3b, 0x05,
- 0x15, 0x97, 0x91, 0x2e, 0x50, 0xf2, 0xa3, 0x27, 0xee, 0x57, 0x03, 0xae, 0x4b, 0x2f, 0x9f, 0x8f,
- 0x83, 0x88, 0x7a, 0x9f, 0x44, 0xdc, 0x1f, 0x56, 0x9e, 0xb9, 0x6d, 0xb0, 0x43, 0xb9, 0x71, 0x3e,
- 0x71, 0xa0, 0xba, 0xe6, 0xf2, 0x56, 0x5f, 0x9a, 0xb7, 0x46, 0x21, 0x6f, 0x6f, 0x42, 0xed, 0xc8,
- 0x0f, 0x50, 0xe6, 0xb9, 0xfc, 0x25, 0x9c, 0x0b, 0xa6, 0x7b, 0xdb, 0x0f, 0xd0, 0x95, 0x0b, 0xc8,
- 0xfb, 0x25, 0xda, 0x37, 0x1f, 0xb0, 0x74, 0x1e, 0xf7, 0x11, 0xd4, 0xc4, 0x7e, 0xb9, 0x6f, 0x86,
- 0xb5, 0xea, 0x9b, 0x11, 0xfb, 0x5f, 0x2a, 0x26, 0x86, 0x2b, 0x6d, 0x91, 0x8e, 0x41, 0x12, 0xfb,
- 0x9e, 0x24, 0x61, 0xb8, 0xaa, 0x21, 0xd2, 0x96, 0xb0, 0x20, 0xfd, 0xa5, 0x10, 0xe6, 0x39, 0xd2,
- 0xfa, 0x93, 0x9e, 0xd6, 0x63, 0xcf, 0x1b, 0xf9, 0xe1, 0xfa, 0xb2, 0x7a, 0x96, 0xdf, 0xbf, 0xc6,
- 0xd2, 0x84, 0x17, 0x2f, 0x60, 0xab, 0xab, 0xa4, 0x1c, 0x68, 0xa5, 0x55, 0xf2, 0x97, 0x0e, 0x8e,
- 0xf4, 0xf2, 0x21, 0x0e, 0x19, 0xd2, 0x18, 0x1f, 0x2b, 0xa2, 0xdb, 0x60, 0x47, 0x63, 0x64, 0x94,
- 0x47, 0x39, 0xaa, 0x90, 0x75, 0xad, 0xfa, 0x36, 0xee, 0x97, 0x90, 0xbf, 0x56, 0x40, 0xbe, 0x00,
- 0xc6, 0xc5, 0x50, 0xef, 0x87, 0x4f, 0xa8, 0x4f, 0xa9, 0x2f, 0x80, 0x51, 0x29, 0xf5, 0xaf, 0x0c,
- 0xb8, 0x2a, 0x1d, 0xed, 0xd3, 0xf0, 0x7f, 0x02, 0xbc, 0x05, 0x4d, 0x2f, 0x61, 0x94, 0xfb, 0x51,
- 0x28, 0x2f, 0x44, 0x86, 0x3b, 0x6d, 0x2f, 0x7f, 0x23, 0x2d, 0x60, 0x54, 0x69, 0x1e, 0xbe, 0xd1,
- 0xe1, 0xda, 0x6d, 0xe6, 0x63, 0xe8, 0xf5, 0xbc, 0x75, 0xfd, 0x2e, 0xe7, 0x88, 0xd5, 0x0b, 0xc4,
- 0xde, 0x2d, 0x51, 0x79, 0x25, 0xa3, 0xb2, 0xe8, 0xc4, 0x95, 0x62, 0xf9, 0x3a, 0xbb, 0xb0, 0xb8,
- 0x38, 0xa4, 0x41, 0xf0, 0x18, 0x5d, 0x58, 0x1e, 0xa8, 0xcf, 0xe2, 0xed, 0xd1, 0x3a, 0xeb, 0xed,
- 0x71, 0xf5, 0x7d, 0x66, 0x0e, 0x53, 0xa5, 0xd9, 0xf8, 0x45, 0x87, 0x4d, 0x95, 0xf2, 0xb5, 0xa6,
- 0x63, 0xa9, 0x4e, 0x8b, 0x48, 0xcd, 0xb3, 0x22, 0xed, 0x95, 0x90, 0xbe, 0x5a, 0x94, 0xf7, 0xc5,
- 0x32, 0xfd, 0x5e, 0x07, 0x92, 0xf9, 0xf9, 0x22, 0xc1, 0x98, 0x5f, 0xc0, 0x43, 0x8a, 0xa9, 0x9d,
- 0x0b, 0x0f, 0xa9, 0xb4, 0x6f, 0x35, 0x50, 0x07, 0xcc, 0x61, 0x34, 0x1a, 0x61, 0xc8, 0xd3, 0x97,
- 0x67, 0xd6, 0x9c, 0x3e, 0x8e, 0xcd, 0xd9, 0xe3, 0x98, 0xbc, 0x5d, 0xe2, 0xf8, 0x52, 0x99, 0xe3,
- 0x2c, 0xbe, 0x4a, 0x11, 0xfe, 0xad, 0xa7, 0x7f, 0xfe, 0xac, 0x8f, 0x60, 0xc5, 0x97, 0xdf, 0x1c,
- 0xf7, 0xe6, 0x62, 0xee, 0x56, 0x8e, 0xfb, 0xea, 0xbf, 0x45, 0x2e, 0x0a, 0xfb, 0xfe, 0xe5, 0x1f,
- 0x4e, 0xb7, 0xb4, 0x9f, 0x4f, 0xb7, 0xb4, 0xdf, 0x4e, 0xb7, 0xb4, 0x6f, 0x7f, 0xdf, 0x7a, 0x6a,
- 0xd0, 0x90, 0x7f, 0xfa, 0xbe, 0xfe, 0x6f, 0x00, 0x00, 0x00, 0xff, 0xff, 0xd1, 0x24, 0x08, 0x3b,
- 0x25, 0x16, 0x00, 0x00,
-}
-
-func (m *PrivateMessageEvent) Marshal() (dAtA []byte, err error) {
- size := m.Size()
- dAtA = make([]byte, size)
- n, err := m.MarshalToSizedBuffer(dAtA[:size])
- if err != nil {
- return nil, err
- }
- return dAtA[:n], nil
-}
-
-func (m *PrivateMessageEvent) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
-}
-
-func (m *PrivateMessageEvent) MarshalToSizedBuffer(dAtA []byte) (int, error) {
- i := len(dAtA)
- _ = i
- var l int
- _ = l
- if m.XXX_unrecognized != nil {
- i -= len(m.XXX_unrecognized)
- copy(dAtA[i:], m.XXX_unrecognized)
- }
- if len(m.Extra) > 0 {
- for k := range m.Extra {
- v := m.Extra[k]
- baseI := i
- i -= len(v)
- copy(dAtA[i:], v)
- i = encodeVarintOnebotEvent(dAtA, i, uint64(len(v)))
- i--
- dAtA[i] = 0x12
- i -= len(k)
- copy(dAtA[i:], k)
- i = encodeVarintOnebotEvent(dAtA, i, uint64(len(k)))
- i--
- dAtA[i] = 0xa
- i = encodeVarintOnebotEvent(dAtA, i, uint64(baseI-i))
- i--
- dAtA[i] = 0xf
- i--
- dAtA[i] = 0xfa
- }
- }
- if m.MessageId != nil {
- {
- size, err := m.MessageId.MarshalToSizedBuffer(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- i = encodeVarintOnebotEvent(dAtA, i, uint64(size))
- }
- i--
- dAtA[i] = 0x62
- }
- if m.Sender != nil {
- {
- size, err := m.Sender.MarshalToSizedBuffer(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- i = encodeVarintOnebotEvent(dAtA, i, uint64(size))
- }
- i--
- dAtA[i] = 0x5a
- }
- if m.Font != 0 {
- i = encodeVarintOnebotEvent(dAtA, i, uint64(m.Font))
- i--
- dAtA[i] = 0x50
- }
- if len(m.RawMessage) > 0 {
- i -= len(m.RawMessage)
- copy(dAtA[i:], m.RawMessage)
- i = encodeVarintOnebotEvent(dAtA, i, uint64(len(m.RawMessage)))
- i--
- dAtA[i] = 0x4a
- }
- if len(m.Message) > 0 {
- for iNdEx := len(m.Message) - 1; iNdEx >= 0; iNdEx-- {
- {
- size, err := m.Message[iNdEx].MarshalToSizedBuffer(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- i = encodeVarintOnebotEvent(dAtA, i, uint64(size))
- }
- i--
- dAtA[i] = 0x42
- }
- }
- if m.UserId != 0 {
- i = encodeVarintOnebotEvent(dAtA, i, uint64(m.UserId))
- i--
- dAtA[i] = 0x38
- }
- if len(m.SubType) > 0 {
- i -= len(m.SubType)
- copy(dAtA[i:], m.SubType)
- i = encodeVarintOnebotEvent(dAtA, i, uint64(len(m.SubType)))
- i--
- dAtA[i] = 0x2a
- }
- if len(m.MessageType) > 0 {
- i -= len(m.MessageType)
- copy(dAtA[i:], m.MessageType)
- i = encodeVarintOnebotEvent(dAtA, i, uint64(len(m.MessageType)))
- i--
- dAtA[i] = 0x22
- }
- if len(m.PostType) > 0 {
- i -= len(m.PostType)
- copy(dAtA[i:], m.PostType)
- i = encodeVarintOnebotEvent(dAtA, i, uint64(len(m.PostType)))
- i--
- dAtA[i] = 0x1a
- }
- if m.SelfId != 0 {
- i = encodeVarintOnebotEvent(dAtA, i, uint64(m.SelfId))
- i--
- dAtA[i] = 0x10
- }
- if m.Time != 0 {
- i = encodeVarintOnebotEvent(dAtA, i, uint64(m.Time))
- i--
- dAtA[i] = 0x8
- }
- return len(dAtA) - i, nil
-}
-
-func (m *PrivateMessageEvent_Sender) Marshal() (dAtA []byte, err error) {
- size := m.Size()
- dAtA = make([]byte, size)
- n, err := m.MarshalToSizedBuffer(dAtA[:size])
- if err != nil {
- return nil, err
- }
- return dAtA[:n], nil
-}
-
-func (m *PrivateMessageEvent_Sender) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
-}
-
-func (m *PrivateMessageEvent_Sender) MarshalToSizedBuffer(dAtA []byte) (int, error) {
- i := len(dAtA)
- _ = i
- var l int
- _ = l
- if m.XXX_unrecognized != nil {
- i -= len(m.XXX_unrecognized)
- copy(dAtA[i:], m.XXX_unrecognized)
- }
- if m.Age != 0 {
- i = encodeVarintOnebotEvent(dAtA, i, uint64(m.Age))
- i--
- dAtA[i] = 0x20
- }
- if len(m.Sex) > 0 {
- i -= len(m.Sex)
- copy(dAtA[i:], m.Sex)
- i = encodeVarintOnebotEvent(dAtA, i, uint64(len(m.Sex)))
- i--
- dAtA[i] = 0x1a
- }
- if len(m.Nickname) > 0 {
- i -= len(m.Nickname)
- copy(dAtA[i:], m.Nickname)
- i = encodeVarintOnebotEvent(dAtA, i, uint64(len(m.Nickname)))
- i--
- dAtA[i] = 0x12
- }
- if m.UserId != 0 {
- i = encodeVarintOnebotEvent(dAtA, i, uint64(m.UserId))
- i--
- dAtA[i] = 0x8
- }
- return len(dAtA) - i, nil
-}
-
-func (m *GroupMessageEvent) Marshal() (dAtA []byte, err error) {
- size := m.Size()
- dAtA = make([]byte, size)
- n, err := m.MarshalToSizedBuffer(dAtA[:size])
- if err != nil {
- return nil, err
- }
- return dAtA[:n], nil
-}
-
-func (m *GroupMessageEvent) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
-}
-
-func (m *GroupMessageEvent) MarshalToSizedBuffer(dAtA []byte) (int, error) {
- i := len(dAtA)
- _ = i
- var l int
- _ = l
- if m.XXX_unrecognized != nil {
- i -= len(m.XXX_unrecognized)
- copy(dAtA[i:], m.XXX_unrecognized)
- }
- if len(m.Extra) > 0 {
- for k := range m.Extra {
- v := m.Extra[k]
- baseI := i
- i -= len(v)
- copy(dAtA[i:], v)
- i = encodeVarintOnebotEvent(dAtA, i, uint64(len(v)))
- i--
- dAtA[i] = 0x12
- i -= len(k)
- copy(dAtA[i:], k)
- i = encodeVarintOnebotEvent(dAtA, i, uint64(len(k)))
- i--
- dAtA[i] = 0xa
- i = encodeVarintOnebotEvent(dAtA, i, uint64(baseI-i))
- i--
- dAtA[i] = 0xf
- i--
- dAtA[i] = 0xfa
- }
+func (x *GroupRequestEvent) GetUserNick() string {
+ if x != nil {
+ return x.UserNick
}
- if m.MessageId != nil {
- {
- size, err := m.MessageId.MarshalToSizedBuffer(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- i = encodeVarintOnebotEvent(dAtA, i, uint64(size))
- }
- i--
- dAtA[i] = 0x72
- }
- if m.Sender != nil {
- {
- size, err := m.Sender.MarshalToSizedBuffer(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- i = encodeVarintOnebotEvent(dAtA, i, uint64(size))
- }
- i--
- dAtA[i] = 0x6a
- }
- if m.Font != 0 {
- i = encodeVarintOnebotEvent(dAtA, i, uint64(m.Font))
- i--
- dAtA[i] = 0x60
- }
- if len(m.RawMessage) > 0 {
- i -= len(m.RawMessage)
- copy(dAtA[i:], m.RawMessage)
- i = encodeVarintOnebotEvent(dAtA, i, uint64(len(m.RawMessage)))
- i--
- dAtA[i] = 0x5a
- }
- if len(m.Message) > 0 {
- for iNdEx := len(m.Message) - 1; iNdEx >= 0; iNdEx-- {
- {
- size, err := m.Message[iNdEx].MarshalToSizedBuffer(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- i = encodeVarintOnebotEvent(dAtA, i, uint64(size))
- }
- i--
- dAtA[i] = 0x52
- }
+ return ""
+}
+
+func (x *GroupRequestEvent) GetGroupName() string {
+ if x != nil {
+ return x.GroupName
}
- if m.Anonymous != nil {
- {
- size, err := m.Anonymous.MarshalToSizedBuffer(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- i = encodeVarintOnebotEvent(dAtA, i, uint64(size))
- }
- i--
- dAtA[i] = 0x4a
- }
- if m.UserId != 0 {
- i = encodeVarintOnebotEvent(dAtA, i, uint64(m.UserId))
- i--
- dAtA[i] = 0x40
- }
- if m.GroupId != 0 {
- i = encodeVarintOnebotEvent(dAtA, i, uint64(m.GroupId))
- i--
- dAtA[i] = 0x38
- }
- if len(m.SubType) > 0 {
- i -= len(m.SubType)
- copy(dAtA[i:], m.SubType)
- i = encodeVarintOnebotEvent(dAtA, i, uint64(len(m.SubType)))
- i--
- dAtA[i] = 0x2a
- }
- if len(m.MessageType) > 0 {
- i -= len(m.MessageType)
- copy(dAtA[i:], m.MessageType)
- i = encodeVarintOnebotEvent(dAtA, i, uint64(len(m.MessageType)))
- i--
- dAtA[i] = 0x22
- }
- if len(m.PostType) > 0 {
- i -= len(m.PostType)
- copy(dAtA[i:], m.PostType)
- i = encodeVarintOnebotEvent(dAtA, i, uint64(len(m.PostType)))
- i--
- dAtA[i] = 0x1a
- }
- if m.SelfId != 0 {
- i = encodeVarintOnebotEvent(dAtA, i, uint64(m.SelfId))
- i--
- dAtA[i] = 0x10
- }
- if m.Time != 0 {
- i = encodeVarintOnebotEvent(dAtA, i, uint64(m.Time))
- i--
- dAtA[i] = 0x8
- }
- return len(dAtA) - i, nil
-}
-
-func (m *GroupMessageEvent_Anonymous) Marshal() (dAtA []byte, err error) {
- size := m.Size()
- dAtA = make([]byte, size)
- n, err := m.MarshalToSizedBuffer(dAtA[:size])
- if err != nil {
- return nil, err
- }
- return dAtA[:n], nil
-}
-
-func (m *GroupMessageEvent_Anonymous) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
-}
-
-func (m *GroupMessageEvent_Anonymous) MarshalToSizedBuffer(dAtA []byte) (int, error) {
- i := len(dAtA)
- _ = i
- var l int
- _ = l
- if m.XXX_unrecognized != nil {
- i -= len(m.XXX_unrecognized)
- copy(dAtA[i:], m.XXX_unrecognized)
- }
- if len(m.Flag) > 0 {
- i -= len(m.Flag)
- copy(dAtA[i:], m.Flag)
- i = encodeVarintOnebotEvent(dAtA, i, uint64(len(m.Flag)))
- i--
- dAtA[i] = 0x1a
- }
- if len(m.Name) > 0 {
- i -= len(m.Name)
- copy(dAtA[i:], m.Name)
- i = encodeVarintOnebotEvent(dAtA, i, uint64(len(m.Name)))
- i--
- dAtA[i] = 0x12
- }
- if m.Id != 0 {
- i = encodeVarintOnebotEvent(dAtA, i, uint64(m.Id))
- i--
- dAtA[i] = 0x8
- }
- return len(dAtA) - i, nil
-}
-
-func (m *GroupMessageEvent_Sender) Marshal() (dAtA []byte, err error) {
- size := m.Size()
- dAtA = make([]byte, size)
- n, err := m.MarshalToSizedBuffer(dAtA[:size])
- if err != nil {
- return nil, err
- }
- return dAtA[:n], nil
-}
-
-func (m *GroupMessageEvent_Sender) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
-}
-
-func (m *GroupMessageEvent_Sender) MarshalToSizedBuffer(dAtA []byte) (int, error) {
- i := len(dAtA)
- _ = i
- var l int
- _ = l
- if m.XXX_unrecognized != nil {
- i -= len(m.XXX_unrecognized)
- copy(dAtA[i:], m.XXX_unrecognized)
- }
- if len(m.Title) > 0 {
- i -= len(m.Title)
- copy(dAtA[i:], m.Title)
- i = encodeVarintOnebotEvent(dAtA, i, uint64(len(m.Title)))
- i--
- dAtA[i] = 0x4a
- }
- if len(m.Role) > 0 {
- i -= len(m.Role)
- copy(dAtA[i:], m.Role)
- i = encodeVarintOnebotEvent(dAtA, i, uint64(len(m.Role)))
- i--
- dAtA[i] = 0x42
- }
- if len(m.Level) > 0 {
- i -= len(m.Level)
- copy(dAtA[i:], m.Level)
- i = encodeVarintOnebotEvent(dAtA, i, uint64(len(m.Level)))
- i--
- dAtA[i] = 0x3a
- }
- if len(m.Area) > 0 {
- i -= len(m.Area)
- copy(dAtA[i:], m.Area)
- i = encodeVarintOnebotEvent(dAtA, i, uint64(len(m.Area)))
- i--
- dAtA[i] = 0x32
- }
- if m.Age != 0 {
- i = encodeVarintOnebotEvent(dAtA, i, uint64(m.Age))
- i--
- dAtA[i] = 0x28
- }
- if len(m.Sex) > 0 {
- i -= len(m.Sex)
- copy(dAtA[i:], m.Sex)
- i = encodeVarintOnebotEvent(dAtA, i, uint64(len(m.Sex)))
- i--
- dAtA[i] = 0x22
- }
- if len(m.Card) > 0 {
- i -= len(m.Card)
- copy(dAtA[i:], m.Card)
- i = encodeVarintOnebotEvent(dAtA, i, uint64(len(m.Card)))
- i--
- dAtA[i] = 0x1a
- }
- if len(m.Nickname) > 0 {
- i -= len(m.Nickname)
- copy(dAtA[i:], m.Nickname)
- i = encodeVarintOnebotEvent(dAtA, i, uint64(len(m.Nickname)))
- i--
- dAtA[i] = 0x12
- }
- if m.UserId != 0 {
- i = encodeVarintOnebotEvent(dAtA, i, uint64(m.UserId))
- i--
- dAtA[i] = 0x8
- }
- return len(dAtA) - i, nil
-}
-
-func (m *GroupTempMessageEvent) Marshal() (dAtA []byte, err error) {
- size := m.Size()
- dAtA = make([]byte, size)
- n, err := m.MarshalToSizedBuffer(dAtA[:size])
- if err != nil {
- return nil, err
- }
- return dAtA[:n], nil
-}
-
-func (m *GroupTempMessageEvent) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
-}
-
-func (m *GroupTempMessageEvent) MarshalToSizedBuffer(dAtA []byte) (int, error) {
- i := len(dAtA)
- _ = i
- var l int
- _ = l
- if m.XXX_unrecognized != nil {
- i -= len(m.XXX_unrecognized)
- copy(dAtA[i:], m.XXX_unrecognized)
- }
- if len(m.Extra) > 0 {
- for k := range m.Extra {
- v := m.Extra[k]
- baseI := i
- i -= len(v)
- copy(dAtA[i:], v)
- i = encodeVarintOnebotEvent(dAtA, i, uint64(len(v)))
- i--
- dAtA[i] = 0x12
- i -= len(k)
- copy(dAtA[i:], k)
- i = encodeVarintOnebotEvent(dAtA, i, uint64(len(k)))
- i--
- dAtA[i] = 0xa
- i = encodeVarintOnebotEvent(dAtA, i, uint64(baseI-i))
- i--
- dAtA[i] = 0xf
- i--
- dAtA[i] = 0xfa
- }
+ return ""
+}
+
+func (x *GroupRequestEvent) GetActionUinNick() string {
+ if x != nil {
+ return x.ActionUinNick
}
- if m.MessageId != nil {
- {
- size, err := m.MessageId.MarshalToSizedBuffer(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- i = encodeVarintOnebotEvent(dAtA, i, uint64(size))
- }
- i--
- dAtA[i] = 0x72
- }
- if len(m.RawMessage) > 0 {
- i -= len(m.RawMessage)
- copy(dAtA[i:], m.RawMessage)
- i = encodeVarintOnebotEvent(dAtA, i, uint64(len(m.RawMessage)))
- i--
- dAtA[i] = 0x5a
- }
- if len(m.Message) > 0 {
- for iNdEx := len(m.Message) - 1; iNdEx >= 0; iNdEx-- {
- {
- size, err := m.Message[iNdEx].MarshalToSizedBuffer(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- i = encodeVarintOnebotEvent(dAtA, i, uint64(size))
- }
- i--
- dAtA[i] = 0x52
- }
+ return ""
+}
+
+func (x *GroupRequestEvent) GetActionUin() int64 {
+ if x != nil {
+ return x.ActionUin
}
- if m.UserId != 0 {
- i = encodeVarintOnebotEvent(dAtA, i, uint64(m.UserId))
- i--
- dAtA[i] = 0x40
- }
- if m.GroupId != 0 {
- i = encodeVarintOnebotEvent(dAtA, i, uint64(m.GroupId))
- i--
- dAtA[i] = 0x38
- }
- if len(m.MessageType) > 0 {
- i -= len(m.MessageType)
- copy(dAtA[i:], m.MessageType)
- i = encodeVarintOnebotEvent(dAtA, i, uint64(len(m.MessageType)))
- i--
- dAtA[i] = 0x22
- }
- if len(m.PostType) > 0 {
- i -= len(m.PostType)
- copy(dAtA[i:], m.PostType)
- i = encodeVarintOnebotEvent(dAtA, i, uint64(len(m.PostType)))
- i--
- dAtA[i] = 0x1a
- }
- if m.SelfId != 0 {
- i = encodeVarintOnebotEvent(dAtA, i, uint64(m.SelfId))
- i--
- dAtA[i] = 0x10
- }
- if m.Time != 0 {
- i = encodeVarintOnebotEvent(dAtA, i, uint64(m.Time))
- i--
- dAtA[i] = 0x8
- }
- return len(dAtA) - i, nil
-}
-
-func (m *GroupUploadNoticeEvent) Marshal() (dAtA []byte, err error) {
- size := m.Size()
- dAtA = make([]byte, size)
- n, err := m.MarshalToSizedBuffer(dAtA[:size])
- if err != nil {
- return nil, err
- }
- return dAtA[:n], nil
-}
-
-func (m *GroupUploadNoticeEvent) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
-}
-
-func (m *GroupUploadNoticeEvent) MarshalToSizedBuffer(dAtA []byte) (int, error) {
- i := len(dAtA)
- _ = i
- var l int
- _ = l
- if m.XXX_unrecognized != nil {
- i -= len(m.XXX_unrecognized)
- copy(dAtA[i:], m.XXX_unrecognized)
- }
- if len(m.Extra) > 0 {
- for k := range m.Extra {
- v := m.Extra[k]
- baseI := i
- i -= len(v)
- copy(dAtA[i:], v)
- i = encodeVarintOnebotEvent(dAtA, i, uint64(len(v)))
- i--
- dAtA[i] = 0x12
- i -= len(k)
- copy(dAtA[i:], k)
- i = encodeVarintOnebotEvent(dAtA, i, uint64(len(k)))
- i--
- dAtA[i] = 0xa
- i = encodeVarintOnebotEvent(dAtA, i, uint64(baseI-i))
- i--
- dAtA[i] = 0xf
- i--
- dAtA[i] = 0xfa
- }
+ return 0
+}
+
+func (x *GroupRequestEvent) GetCheck() bool {
+ if x != nil {
+ return x.Check
}
- if m.File != nil {
- {
- size, err := m.File.MarshalToSizedBuffer(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- i = encodeVarintOnebotEvent(dAtA, i, uint64(size))
- }
- i--
- dAtA[i] = 0x3a
- }
- if m.UserId != 0 {
- i = encodeVarintOnebotEvent(dAtA, i, uint64(m.UserId))
- i--
- dAtA[i] = 0x30
- }
- if m.GroupId != 0 {
- i = encodeVarintOnebotEvent(dAtA, i, uint64(m.GroupId))
- i--
- dAtA[i] = 0x28
- }
- if len(m.NoticeType) > 0 {
- i -= len(m.NoticeType)
- copy(dAtA[i:], m.NoticeType)
- i = encodeVarintOnebotEvent(dAtA, i, uint64(len(m.NoticeType)))
- i--
- dAtA[i] = 0x22
- }
- if len(m.PostType) > 0 {
- i -= len(m.PostType)
- copy(dAtA[i:], m.PostType)
- i = encodeVarintOnebotEvent(dAtA, i, uint64(len(m.PostType)))
- i--
- dAtA[i] = 0x1a
- }
- if m.SelfId != 0 {
- i = encodeVarintOnebotEvent(dAtA, i, uint64(m.SelfId))
- i--
- dAtA[i] = 0x10
- }
- if m.Time != 0 {
- i = encodeVarintOnebotEvent(dAtA, i, uint64(m.Time))
- i--
- dAtA[i] = 0x8
- }
- return len(dAtA) - i, nil
-}
-
-func (m *GroupUploadNoticeEvent_File) Marshal() (dAtA []byte, err error) {
- size := m.Size()
- dAtA = make([]byte, size)
- n, err := m.MarshalToSizedBuffer(dAtA[:size])
- if err != nil {
- return nil, err
- }
- return dAtA[:n], nil
-}
-
-func (m *GroupUploadNoticeEvent_File) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
-}
-
-func (m *GroupUploadNoticeEvent_File) MarshalToSizedBuffer(dAtA []byte) (int, error) {
- i := len(dAtA)
- _ = i
- var l int
- _ = l
- if m.XXX_unrecognized != nil {
- i -= len(m.XXX_unrecognized)
- copy(dAtA[i:], m.XXX_unrecognized)
- }
- if len(m.Url) > 0 {
- i -= len(m.Url)
- copy(dAtA[i:], m.Url)
- i = encodeVarintOnebotEvent(dAtA, i, uint64(len(m.Url)))
- i--
- dAtA[i] = 0x2a
- }
- if m.Busid != 0 {
- i = encodeVarintOnebotEvent(dAtA, i, uint64(m.Busid))
- i--
- dAtA[i] = 0x20
- }
- if m.Size_ != 0 {
- i = encodeVarintOnebotEvent(dAtA, i, uint64(m.Size_))
- i--
- dAtA[i] = 0x18
- }
- if len(m.Name) > 0 {
- i -= len(m.Name)
- copy(dAtA[i:], m.Name)
- i = encodeVarintOnebotEvent(dAtA, i, uint64(len(m.Name)))
- i--
- dAtA[i] = 0x12
- }
- if len(m.Id) > 0 {
- i -= len(m.Id)
- copy(dAtA[i:], m.Id)
- i = encodeVarintOnebotEvent(dAtA, i, uint64(len(m.Id)))
- i--
- dAtA[i] = 0xa
- }
- return len(dAtA) - i, nil
-}
-
-func (m *GroupAdminNoticeEvent) Marshal() (dAtA []byte, err error) {
- size := m.Size()
- dAtA = make([]byte, size)
- n, err := m.MarshalToSizedBuffer(dAtA[:size])
- if err != nil {
- return nil, err
- }
- return dAtA[:n], nil
-}
-
-func (m *GroupAdminNoticeEvent) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
-}
-
-func (m *GroupAdminNoticeEvent) MarshalToSizedBuffer(dAtA []byte) (int, error) {
- i := len(dAtA)
- _ = i
- var l int
- _ = l
- if m.XXX_unrecognized != nil {
- i -= len(m.XXX_unrecognized)
- copy(dAtA[i:], m.XXX_unrecognized)
- }
- if len(m.Extra) > 0 {
- for k := range m.Extra {
- v := m.Extra[k]
- baseI := i
- i -= len(v)
- copy(dAtA[i:], v)
- i = encodeVarintOnebotEvent(dAtA, i, uint64(len(v)))
- i--
- dAtA[i] = 0x12
- i -= len(k)
- copy(dAtA[i:], k)
- i = encodeVarintOnebotEvent(dAtA, i, uint64(len(k)))
- i--
- dAtA[i] = 0xa
- i = encodeVarintOnebotEvent(dAtA, i, uint64(baseI-i))
- i--
- dAtA[i] = 0xf
- i--
- dAtA[i] = 0xfa
- }
+ return false
+}
+
+func (x *GroupRequestEvent) GetSuspicious() bool {
+ if x != nil {
+ return x.Suspicious
}
- if m.UserId != 0 {
- i = encodeVarintOnebotEvent(dAtA, i, uint64(m.UserId))
- i--
- dAtA[i] = 0x38
- }
- if m.GroupId != 0 {
- i = encodeVarintOnebotEvent(dAtA, i, uint64(m.GroupId))
- i--
- dAtA[i] = 0x30
- }
- if len(m.SubType) > 0 {
- i -= len(m.SubType)
- copy(dAtA[i:], m.SubType)
- i = encodeVarintOnebotEvent(dAtA, i, uint64(len(m.SubType)))
- i--
- dAtA[i] = 0x2a
- }
- if len(m.NoticeType) > 0 {
- i -= len(m.NoticeType)
- copy(dAtA[i:], m.NoticeType)
- i = encodeVarintOnebotEvent(dAtA, i, uint64(len(m.NoticeType)))
- i--
- dAtA[i] = 0x22
- }
- if len(m.PostType) > 0 {
- i -= len(m.PostType)
- copy(dAtA[i:], m.PostType)
- i = encodeVarintOnebotEvent(dAtA, i, uint64(len(m.PostType)))
- i--
- dAtA[i] = 0x1a
- }
- if m.SelfId != 0 {
- i = encodeVarintOnebotEvent(dAtA, i, uint64(m.SelfId))
- i--
- dAtA[i] = 0x10
- }
- if m.Time != 0 {
- i = encodeVarintOnebotEvent(dAtA, i, uint64(m.Time))
- i--
- dAtA[i] = 0x8
- }
- return len(dAtA) - i, nil
-}
-
-func (m *GroupDecreaseNoticeEvent) Marshal() (dAtA []byte, err error) {
- size := m.Size()
- dAtA = make([]byte, size)
- n, err := m.MarshalToSizedBuffer(dAtA[:size])
- if err != nil {
- return nil, err
- }
- return dAtA[:n], nil
-}
-
-func (m *GroupDecreaseNoticeEvent) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
-}
-
-func (m *GroupDecreaseNoticeEvent) MarshalToSizedBuffer(dAtA []byte) (int, error) {
- i := len(dAtA)
- _ = i
- var l int
- _ = l
- if m.XXX_unrecognized != nil {
- i -= len(m.XXX_unrecognized)
- copy(dAtA[i:], m.XXX_unrecognized)
- }
- if len(m.Extra) > 0 {
- for k := range m.Extra {
- v := m.Extra[k]
- baseI := i
- i -= len(v)
- copy(dAtA[i:], v)
- i = encodeVarintOnebotEvent(dAtA, i, uint64(len(v)))
- i--
- dAtA[i] = 0x12
- i -= len(k)
- copy(dAtA[i:], k)
- i = encodeVarintOnebotEvent(dAtA, i, uint64(len(k)))
- i--
- dAtA[i] = 0xa
- i = encodeVarintOnebotEvent(dAtA, i, uint64(baseI-i))
- i--
- dAtA[i] = 0xf
- i--
- dAtA[i] = 0xfa
- }
+ return false
+}
+
+func (x *GroupRequestEvent) GetExtra() map[string]string {
+ if x != nil {
+ return x.Extra
}
- if m.UserId != 0 {
- i = encodeVarintOnebotEvent(dAtA, i, uint64(m.UserId))
- i--
- dAtA[i] = 0x40
- }
- if m.OperatorId != 0 {
- i = encodeVarintOnebotEvent(dAtA, i, uint64(m.OperatorId))
- i--
- dAtA[i] = 0x38
- }
- if m.GroupId != 0 {
- i = encodeVarintOnebotEvent(dAtA, i, uint64(m.GroupId))
- i--
- dAtA[i] = 0x30
- }
- if len(m.SubType) > 0 {
- i -= len(m.SubType)
- copy(dAtA[i:], m.SubType)
- i = encodeVarintOnebotEvent(dAtA, i, uint64(len(m.SubType)))
- i--
- dAtA[i] = 0x2a
- }
- if len(m.NoticeType) > 0 {
- i -= len(m.NoticeType)
- copy(dAtA[i:], m.NoticeType)
- i = encodeVarintOnebotEvent(dAtA, i, uint64(len(m.NoticeType)))
- i--
- dAtA[i] = 0x22
- }
- if len(m.PostType) > 0 {
- i -= len(m.PostType)
- copy(dAtA[i:], m.PostType)
- i = encodeVarintOnebotEvent(dAtA, i, uint64(len(m.PostType)))
- i--
- dAtA[i] = 0x1a
- }
- if m.SelfId != 0 {
- i = encodeVarintOnebotEvent(dAtA, i, uint64(m.SelfId))
- i--
- dAtA[i] = 0x10
- }
- if m.Time != 0 {
- i = encodeVarintOnebotEvent(dAtA, i, uint64(m.Time))
- i--
- dAtA[i] = 0x8
- }
- return len(dAtA) - i, nil
-}
-
-func (m *GroupIncreaseNoticeEvent) Marshal() (dAtA []byte, err error) {
- size := m.Size()
- dAtA = make([]byte, size)
- n, err := m.MarshalToSizedBuffer(dAtA[:size])
- if err != nil {
- return nil, err
- }
- return dAtA[:n], nil
-}
-
-func (m *GroupIncreaseNoticeEvent) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
-}
-
-func (m *GroupIncreaseNoticeEvent) MarshalToSizedBuffer(dAtA []byte) (int, error) {
- i := len(dAtA)
- _ = i
- var l int
- _ = l
- if m.XXX_unrecognized != nil {
- i -= len(m.XXX_unrecognized)
- copy(dAtA[i:], m.XXX_unrecognized)
- }
- if len(m.Extra) > 0 {
- for k := range m.Extra {
- v := m.Extra[k]
- baseI := i
- i -= len(v)
- copy(dAtA[i:], v)
- i = encodeVarintOnebotEvent(dAtA, i, uint64(len(v)))
- i--
- dAtA[i] = 0x12
- i -= len(k)
- copy(dAtA[i:], k)
- i = encodeVarintOnebotEvent(dAtA, i, uint64(len(k)))
- i--
- dAtA[i] = 0xa
- i = encodeVarintOnebotEvent(dAtA, i, uint64(baseI-i))
- i--
- dAtA[i] = 0xf
- i--
- dAtA[i] = 0xfa
- }
+ return nil
+}
+
+type PrivateMessageEvent_Sender struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ UserId int64 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
+ Nickname string `protobuf:"bytes,2,opt,name=nickname,proto3" json:"nickname,omitempty"`
+ Sex string `protobuf:"bytes,3,opt,name=sex,proto3" json:"sex,omitempty"`
+ Age int32 `protobuf:"varint,4,opt,name=age,proto3" json:"age,omitempty"`
+}
+
+func (x *PrivateMessageEvent_Sender) Reset() {
+ *x = PrivateMessageEvent_Sender{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_onebot_event_proto_msgTypes[15]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
}
- if m.UserId != 0 {
- i = encodeVarintOnebotEvent(dAtA, i, uint64(m.UserId))
- i--
- dAtA[i] = 0x40
- }
- if m.OperatorId != 0 {
- i = encodeVarintOnebotEvent(dAtA, i, uint64(m.OperatorId))
- i--
- dAtA[i] = 0x38
- }
- if m.GroupId != 0 {
- i = encodeVarintOnebotEvent(dAtA, i, uint64(m.GroupId))
- i--
- dAtA[i] = 0x30
- }
- if len(m.SubType) > 0 {
- i -= len(m.SubType)
- copy(dAtA[i:], m.SubType)
- i = encodeVarintOnebotEvent(dAtA, i, uint64(len(m.SubType)))
- i--
- dAtA[i] = 0x2a
- }
- if len(m.NoticeType) > 0 {
- i -= len(m.NoticeType)
- copy(dAtA[i:], m.NoticeType)
- i = encodeVarintOnebotEvent(dAtA, i, uint64(len(m.NoticeType)))
- i--
- dAtA[i] = 0x22
- }
- if len(m.PostType) > 0 {
- i -= len(m.PostType)
- copy(dAtA[i:], m.PostType)
- i = encodeVarintOnebotEvent(dAtA, i, uint64(len(m.PostType)))
- i--
- dAtA[i] = 0x1a
- }
- if m.SelfId != 0 {
- i = encodeVarintOnebotEvent(dAtA, i, uint64(m.SelfId))
- i--
- dAtA[i] = 0x10
- }
- if m.Time != 0 {
- i = encodeVarintOnebotEvent(dAtA, i, uint64(m.Time))
- i--
- dAtA[i] = 0x8
- }
- return len(dAtA) - i, nil
-}
-
-func (m *GroupBanNoticeEvent) Marshal() (dAtA []byte, err error) {
- size := m.Size()
- dAtA = make([]byte, size)
- n, err := m.MarshalToSizedBuffer(dAtA[:size])
- if err != nil {
- return nil, err
- }
- return dAtA[:n], nil
-}
-
-func (m *GroupBanNoticeEvent) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
-}
-
-func (m *GroupBanNoticeEvent) MarshalToSizedBuffer(dAtA []byte) (int, error) {
- i := len(dAtA)
- _ = i
- var l int
- _ = l
- if m.XXX_unrecognized != nil {
- i -= len(m.XXX_unrecognized)
- copy(dAtA[i:], m.XXX_unrecognized)
- }
- if len(m.Extra) > 0 {
- for k := range m.Extra {
- v := m.Extra[k]
- baseI := i
- i -= len(v)
- copy(dAtA[i:], v)
- i = encodeVarintOnebotEvent(dAtA, i, uint64(len(v)))
- i--
- dAtA[i] = 0x12
- i -= len(k)
- copy(dAtA[i:], k)
- i = encodeVarintOnebotEvent(dAtA, i, uint64(len(k)))
- i--
- dAtA[i] = 0xa
- i = encodeVarintOnebotEvent(dAtA, i, uint64(baseI-i))
- i--
- dAtA[i] = 0xf
- i--
- dAtA[i] = 0xfa
+}
+
+func (x *PrivateMessageEvent_Sender) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*PrivateMessageEvent_Sender) ProtoMessage() {}
+
+func (x *PrivateMessageEvent_Sender) ProtoReflect() protoreflect.Message {
+ mi := &file_onebot_event_proto_msgTypes[15]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
}
+ return ms
}
- if m.Duration != 0 {
- i = encodeVarintOnebotEvent(dAtA, i, uint64(m.Duration))
- i--
- dAtA[i] = 0x48
- }
- if m.UserId != 0 {
- i = encodeVarintOnebotEvent(dAtA, i, uint64(m.UserId))
- i--
- dAtA[i] = 0x40
- }
- if m.OperatorId != 0 {
- i = encodeVarintOnebotEvent(dAtA, i, uint64(m.OperatorId))
- i--
- dAtA[i] = 0x38
- }
- if m.GroupId != 0 {
- i = encodeVarintOnebotEvent(dAtA, i, uint64(m.GroupId))
- i--
- dAtA[i] = 0x30
- }
- if len(m.SubType) > 0 {
- i -= len(m.SubType)
- copy(dAtA[i:], m.SubType)
- i = encodeVarintOnebotEvent(dAtA, i, uint64(len(m.SubType)))
- i--
- dAtA[i] = 0x2a
- }
- if len(m.NoticeType) > 0 {
- i -= len(m.NoticeType)
- copy(dAtA[i:], m.NoticeType)
- i = encodeVarintOnebotEvent(dAtA, i, uint64(len(m.NoticeType)))
- i--
- dAtA[i] = 0x22
- }
- if len(m.PostType) > 0 {
- i -= len(m.PostType)
- copy(dAtA[i:], m.PostType)
- i = encodeVarintOnebotEvent(dAtA, i, uint64(len(m.PostType)))
- i--
- dAtA[i] = 0x1a
- }
- if m.SelfId != 0 {
- i = encodeVarintOnebotEvent(dAtA, i, uint64(m.SelfId))
- i--
- dAtA[i] = 0x10
- }
- if m.Time != 0 {
- i = encodeVarintOnebotEvent(dAtA, i, uint64(m.Time))
- i--
- dAtA[i] = 0x8
- }
- return len(dAtA) - i, nil
-}
-
-func (m *FriendAddNoticeEvent) Marshal() (dAtA []byte, err error) {
- size := m.Size()
- dAtA = make([]byte, size)
- n, err := m.MarshalToSizedBuffer(dAtA[:size])
- if err != nil {
- return nil, err
- }
- return dAtA[:n], nil
-}
-
-func (m *FriendAddNoticeEvent) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
-}
-
-func (m *FriendAddNoticeEvent) MarshalToSizedBuffer(dAtA []byte) (int, error) {
- i := len(dAtA)
- _ = i
- var l int
- _ = l
- if m.XXX_unrecognized != nil {
- i -= len(m.XXX_unrecognized)
- copy(dAtA[i:], m.XXX_unrecognized)
- }
- if len(m.Extra) > 0 {
- for k := range m.Extra {
- v := m.Extra[k]
- baseI := i
- i -= len(v)
- copy(dAtA[i:], v)
- i = encodeVarintOnebotEvent(dAtA, i, uint64(len(v)))
- i--
- dAtA[i] = 0x12
- i -= len(k)
- copy(dAtA[i:], k)
- i = encodeVarintOnebotEvent(dAtA, i, uint64(len(k)))
- i--
- dAtA[i] = 0xa
- i = encodeVarintOnebotEvent(dAtA, i, uint64(baseI-i))
- i--
- dAtA[i] = 0xf
- i--
- dAtA[i] = 0xfa
- }
+ return mi.MessageOf(x)
+}
+
+// Deprecated: Use PrivateMessageEvent_Sender.ProtoReflect.Descriptor instead.
+func (*PrivateMessageEvent_Sender) Descriptor() ([]byte, []int) {
+ return file_onebot_event_proto_rawDescGZIP(), []int{0, 0}
+}
+
+func (x *PrivateMessageEvent_Sender) GetUserId() int64 {
+ if x != nil {
+ return x.UserId
}
- if m.UserId != 0 {
- i = encodeVarintOnebotEvent(dAtA, i, uint64(m.UserId))
- i--
- dAtA[i] = 0x28
- }
- if len(m.NoticeType) > 0 {
- i -= len(m.NoticeType)
- copy(dAtA[i:], m.NoticeType)
- i = encodeVarintOnebotEvent(dAtA, i, uint64(len(m.NoticeType)))
- i--
- dAtA[i] = 0x22
- }
- if len(m.PostType) > 0 {
- i -= len(m.PostType)
- copy(dAtA[i:], m.PostType)
- i = encodeVarintOnebotEvent(dAtA, i, uint64(len(m.PostType)))
- i--
- dAtA[i] = 0x1a
- }
- if m.SelfId != 0 {
- i = encodeVarintOnebotEvent(dAtA, i, uint64(m.SelfId))
- i--
- dAtA[i] = 0x10
- }
- if m.Time != 0 {
- i = encodeVarintOnebotEvent(dAtA, i, uint64(m.Time))
- i--
- dAtA[i] = 0x8
- }
- return len(dAtA) - i, nil
-}
-
-func (m *GroupRecallNoticeEvent) Marshal() (dAtA []byte, err error) {
- size := m.Size()
- dAtA = make([]byte, size)
- n, err := m.MarshalToSizedBuffer(dAtA[:size])
- if err != nil {
- return nil, err
- }
- return dAtA[:n], nil
-}
-
-func (m *GroupRecallNoticeEvent) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
-}
-
-func (m *GroupRecallNoticeEvent) MarshalToSizedBuffer(dAtA []byte) (int, error) {
- i := len(dAtA)
- _ = i
- var l int
- _ = l
- if m.XXX_unrecognized != nil {
- i -= len(m.XXX_unrecognized)
- copy(dAtA[i:], m.XXX_unrecognized)
- }
- if len(m.Extra) > 0 {
- for k := range m.Extra {
- v := m.Extra[k]
- baseI := i
- i -= len(v)
- copy(dAtA[i:], v)
- i = encodeVarintOnebotEvent(dAtA, i, uint64(len(v)))
- i--
- dAtA[i] = 0x12
- i -= len(k)
- copy(dAtA[i:], k)
- i = encodeVarintOnebotEvent(dAtA, i, uint64(len(k)))
- i--
- dAtA[i] = 0xa
- i = encodeVarintOnebotEvent(dAtA, i, uint64(baseI-i))
- i--
- dAtA[i] = 0xf
- i--
- dAtA[i] = 0xfa
- }
+ return 0
+}
+
+func (x *PrivateMessageEvent_Sender) GetNickname() string {
+ if x != nil {
+ return x.Nickname
}
- if m.MessageId != nil {
- {
- size, err := m.MessageId.MarshalToSizedBuffer(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- i = encodeVarintOnebotEvent(dAtA, i, uint64(size))
- }
- i--
- dAtA[i] = 0x4a
- }
- if m.OperatorId != 0 {
- i = encodeVarintOnebotEvent(dAtA, i, uint64(m.OperatorId))
- i--
- dAtA[i] = 0x38
- }
- if m.UserId != 0 {
- i = encodeVarintOnebotEvent(dAtA, i, uint64(m.UserId))
- i--
- dAtA[i] = 0x30
- }
- if m.GroupId != 0 {
- i = encodeVarintOnebotEvent(dAtA, i, uint64(m.GroupId))
- i--
- dAtA[i] = 0x28
- }
- if len(m.NoticeType) > 0 {
- i -= len(m.NoticeType)
- copy(dAtA[i:], m.NoticeType)
- i = encodeVarintOnebotEvent(dAtA, i, uint64(len(m.NoticeType)))
- i--
- dAtA[i] = 0x22
- }
- if len(m.PostType) > 0 {
- i -= len(m.PostType)
- copy(dAtA[i:], m.PostType)
- i = encodeVarintOnebotEvent(dAtA, i, uint64(len(m.PostType)))
- i--
- dAtA[i] = 0x1a
- }
- if m.SelfId != 0 {
- i = encodeVarintOnebotEvent(dAtA, i, uint64(m.SelfId))
- i--
- dAtA[i] = 0x10
- }
- if m.Time != 0 {
- i = encodeVarintOnebotEvent(dAtA, i, uint64(m.Time))
- i--
- dAtA[i] = 0x8
- }
- return len(dAtA) - i, nil
-}
-
-func (m *FriendRecallNoticeEvent) Marshal() (dAtA []byte, err error) {
- size := m.Size()
- dAtA = make([]byte, size)
- n, err := m.MarshalToSizedBuffer(dAtA[:size])
- if err != nil {
- return nil, err
- }
- return dAtA[:n], nil
-}
-
-func (m *FriendRecallNoticeEvent) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
-}
-
-func (m *FriendRecallNoticeEvent) MarshalToSizedBuffer(dAtA []byte) (int, error) {
- i := len(dAtA)
- _ = i
- var l int
- _ = l
- if m.XXX_unrecognized != nil {
- i -= len(m.XXX_unrecognized)
- copy(dAtA[i:], m.XXX_unrecognized)
- }
- if len(m.Extra) > 0 {
- for k := range m.Extra {
- v := m.Extra[k]
- baseI := i
- i -= len(v)
- copy(dAtA[i:], v)
- i = encodeVarintOnebotEvent(dAtA, i, uint64(len(v)))
- i--
- dAtA[i] = 0x12
- i -= len(k)
- copy(dAtA[i:], k)
- i = encodeVarintOnebotEvent(dAtA, i, uint64(len(k)))
- i--
- dAtA[i] = 0xa
- i = encodeVarintOnebotEvent(dAtA, i, uint64(baseI-i))
- i--
- dAtA[i] = 0xf
- i--
- dAtA[i] = 0xfa
- }
+ return ""
+}
+
+func (x *PrivateMessageEvent_Sender) GetSex() string {
+ if x != nil {
+ return x.Sex
}
- if m.MessageId != nil {
- {
- size, err := m.MessageId.MarshalToSizedBuffer(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- i = encodeVarintOnebotEvent(dAtA, i, uint64(size))
- }
- i--
- dAtA[i] = 0x3a
- }
- if m.UserId != 0 {
- i = encodeVarintOnebotEvent(dAtA, i, uint64(m.UserId))
- i--
- dAtA[i] = 0x28
- }
- if len(m.NoticeType) > 0 {
- i -= len(m.NoticeType)
- copy(dAtA[i:], m.NoticeType)
- i = encodeVarintOnebotEvent(dAtA, i, uint64(len(m.NoticeType)))
- i--
- dAtA[i] = 0x22
- }
- if len(m.PostType) > 0 {
- i -= len(m.PostType)
- copy(dAtA[i:], m.PostType)
- i = encodeVarintOnebotEvent(dAtA, i, uint64(len(m.PostType)))
- i--
- dAtA[i] = 0x1a
- }
- if m.SelfId != 0 {
- i = encodeVarintOnebotEvent(dAtA, i, uint64(m.SelfId))
- i--
- dAtA[i] = 0x10
- }
- if m.Time != 0 {
- i = encodeVarintOnebotEvent(dAtA, i, uint64(m.Time))
- i--
- dAtA[i] = 0x8
- }
- return len(dAtA) - i, nil
-}
-
-func (m *FriendRequestEvent) Marshal() (dAtA []byte, err error) {
- size := m.Size()
- dAtA = make([]byte, size)
- n, err := m.MarshalToSizedBuffer(dAtA[:size])
- if err != nil {
- return nil, err
- }
- return dAtA[:n], nil
-}
-
-func (m *FriendRequestEvent) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
-}
-
-func (m *FriendRequestEvent) MarshalToSizedBuffer(dAtA []byte) (int, error) {
- i := len(dAtA)
- _ = i
- var l int
- _ = l
- if m.XXX_unrecognized != nil {
- i -= len(m.XXX_unrecognized)
- copy(dAtA[i:], m.XXX_unrecognized)
- }
- if len(m.Extra) > 0 {
- for k := range m.Extra {
- v := m.Extra[k]
- baseI := i
- i -= len(v)
- copy(dAtA[i:], v)
- i = encodeVarintOnebotEvent(dAtA, i, uint64(len(v)))
- i--
- dAtA[i] = 0x12
- i -= len(k)
- copy(dAtA[i:], k)
- i = encodeVarintOnebotEvent(dAtA, i, uint64(len(k)))
- i--
- dAtA[i] = 0xa
- i = encodeVarintOnebotEvent(dAtA, i, uint64(baseI-i))
- i--
- dAtA[i] = 0xf
- i--
- dAtA[i] = 0xfa
- }
+ return ""
+}
+
+func (x *PrivateMessageEvent_Sender) GetAge() int32 {
+ if x != nil {
+ return x.Age
}
- if len(m.Flag) > 0 {
- i -= len(m.Flag)
- copy(dAtA[i:], m.Flag)
- i = encodeVarintOnebotEvent(dAtA, i, uint64(len(m.Flag)))
- i--
- dAtA[i] = 0x3a
- }
- if len(m.Comment) > 0 {
- i -= len(m.Comment)
- copy(dAtA[i:], m.Comment)
- i = encodeVarintOnebotEvent(dAtA, i, uint64(len(m.Comment)))
- i--
- dAtA[i] = 0x32
- }
- if m.UserId != 0 {
- i = encodeVarintOnebotEvent(dAtA, i, uint64(m.UserId))
- i--
- dAtA[i] = 0x28
- }
- if len(m.RequestType) > 0 {
- i -= len(m.RequestType)
- copy(dAtA[i:], m.RequestType)
- i = encodeVarintOnebotEvent(dAtA, i, uint64(len(m.RequestType)))
- i--
- dAtA[i] = 0x22
- }
- if len(m.PostType) > 0 {
- i -= len(m.PostType)
- copy(dAtA[i:], m.PostType)
- i = encodeVarintOnebotEvent(dAtA, i, uint64(len(m.PostType)))
- i--
- dAtA[i] = 0x1a
- }
- if m.SelfId != 0 {
- i = encodeVarintOnebotEvent(dAtA, i, uint64(m.SelfId))
- i--
- dAtA[i] = 0x10
- }
- if m.Time != 0 {
- i = encodeVarintOnebotEvent(dAtA, i, uint64(m.Time))
- i--
- dAtA[i] = 0x8
- }
- return len(dAtA) - i, nil
-}
-
-func (m *GroupRequestEvent) Marshal() (dAtA []byte, err error) {
- size := m.Size()
- dAtA = make([]byte, size)
- n, err := m.MarshalToSizedBuffer(dAtA[:size])
- if err != nil {
- return nil, err
- }
- return dAtA[:n], nil
-}
-
-func (m *GroupRequestEvent) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
-}
-
-func (m *GroupRequestEvent) MarshalToSizedBuffer(dAtA []byte) (int, error) {
- i := len(dAtA)
- _ = i
- var l int
- _ = l
- if m.XXX_unrecognized != nil {
- i -= len(m.XXX_unrecognized)
- copy(dAtA[i:], m.XXX_unrecognized)
- }
- if len(m.Extra) > 0 {
- for k := range m.Extra {
- v := m.Extra[k]
- baseI := i
- i -= len(v)
- copy(dAtA[i:], v)
- i = encodeVarintOnebotEvent(dAtA, i, uint64(len(v)))
- i--
- dAtA[i] = 0x12
- i -= len(k)
- copy(dAtA[i:], k)
- i = encodeVarintOnebotEvent(dAtA, i, uint64(len(k)))
- i--
- dAtA[i] = 0xa
- i = encodeVarintOnebotEvent(dAtA, i, uint64(baseI-i))
- i--
- dAtA[i] = 0xf
- i--
- dAtA[i] = 0xfa
- }
+ return 0
+}
+
+type GroupMessageEvent_Anonymous struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
+ Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
+ Flag string `protobuf:"bytes,3,opt,name=flag,proto3" json:"flag,omitempty"`
+}
+
+func (x *GroupMessageEvent_Anonymous) Reset() {
+ *x = GroupMessageEvent_Anonymous{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_onebot_event_proto_msgTypes[17]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
}
- if len(m.Flag) > 0 {
- i -= len(m.Flag)
- copy(dAtA[i:], m.Flag)
- i = encodeVarintOnebotEvent(dAtA, i, uint64(len(m.Flag)))
- i--
- dAtA[i] = 0x4a
- }
- if len(m.Comment) > 0 {
- i -= len(m.Comment)
- copy(dAtA[i:], m.Comment)
- i = encodeVarintOnebotEvent(dAtA, i, uint64(len(m.Comment)))
- i--
- dAtA[i] = 0x42
- }
- if m.UserId != 0 {
- i = encodeVarintOnebotEvent(dAtA, i, uint64(m.UserId))
- i--
- dAtA[i] = 0x38
- }
- if m.GroupId != 0 {
- i = encodeVarintOnebotEvent(dAtA, i, uint64(m.GroupId))
- i--
- dAtA[i] = 0x30
- }
- if len(m.SubType) > 0 {
- i -= len(m.SubType)
- copy(dAtA[i:], m.SubType)
- i = encodeVarintOnebotEvent(dAtA, i, uint64(len(m.SubType)))
- i--
- dAtA[i] = 0x2a
- }
- if len(m.RequestType) > 0 {
- i -= len(m.RequestType)
- copy(dAtA[i:], m.RequestType)
- i = encodeVarintOnebotEvent(dAtA, i, uint64(len(m.RequestType)))
- i--
- dAtA[i] = 0x22
- }
- if len(m.PostType) > 0 {
- i -= len(m.PostType)
- copy(dAtA[i:], m.PostType)
- i = encodeVarintOnebotEvent(dAtA, i, uint64(len(m.PostType)))
- i--
- dAtA[i] = 0x1a
- }
- if m.SelfId != 0 {
- i = encodeVarintOnebotEvent(dAtA, i, uint64(m.SelfId))
- i--
- dAtA[i] = 0x10
- }
- if m.Time != 0 {
- i = encodeVarintOnebotEvent(dAtA, i, uint64(m.Time))
- i--
- dAtA[i] = 0x8
- }
- return len(dAtA) - i, nil
-}
-
-func encodeVarintOnebotEvent(dAtA []byte, offset int, v uint64) int {
- offset -= sovOnebotEvent(v)
- base := offset
- for v >= 1<<7 {
- dAtA[offset] = uint8(v&0x7f | 0x80)
- v >>= 7
- offset++
- }
- dAtA[offset] = uint8(v)
- return base
-}
-func (m *PrivateMessageEvent) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- if m.Time != 0 {
- n += 1 + sovOnebotEvent(uint64(m.Time))
- }
- if m.SelfId != 0 {
- n += 1 + sovOnebotEvent(uint64(m.SelfId))
- }
- l = len(m.PostType)
- if l > 0 {
- n += 1 + l + sovOnebotEvent(uint64(l))
- }
- l = len(m.MessageType)
- if l > 0 {
- n += 1 + l + sovOnebotEvent(uint64(l))
- }
- l = len(m.SubType)
- if l > 0 {
- n += 1 + l + sovOnebotEvent(uint64(l))
- }
- if m.UserId != 0 {
- n += 1 + sovOnebotEvent(uint64(m.UserId))
- }
- if len(m.Message) > 0 {
- for _, e := range m.Message {
- l = e.Size()
- n += 1 + l + sovOnebotEvent(uint64(l))
+}
+
+func (x *GroupMessageEvent_Anonymous) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*GroupMessageEvent_Anonymous) ProtoMessage() {}
+
+func (x *GroupMessageEvent_Anonymous) ProtoReflect() protoreflect.Message {
+ mi := &file_onebot_event_proto_msgTypes[17]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
}
+ return ms
}
- l = len(m.RawMessage)
- if l > 0 {
- n += 1 + l + sovOnebotEvent(uint64(l))
+ return mi.MessageOf(x)
+}
+
+// Deprecated: Use GroupMessageEvent_Anonymous.ProtoReflect.Descriptor instead.
+func (*GroupMessageEvent_Anonymous) Descriptor() ([]byte, []int) {
+ return file_onebot_event_proto_rawDescGZIP(), []int{1, 0}
+}
+
+func (x *GroupMessageEvent_Anonymous) GetId() int64 {
+ if x != nil {
+ return x.Id
}
- if m.Font != 0 {
- n += 1 + sovOnebotEvent(uint64(m.Font))
+ return 0
+}
+
+func (x *GroupMessageEvent_Anonymous) GetName() string {
+ if x != nil {
+ return x.Name
}
- if m.Sender != nil {
- l = m.Sender.Size()
- n += 1 + l + sovOnebotEvent(uint64(l))
+ return ""
+}
+
+func (x *GroupMessageEvent_Anonymous) GetFlag() string {
+ if x != nil {
+ return x.Flag
}
- if m.MessageId != nil {
- l = m.MessageId.Size()
- n += 1 + l + sovOnebotEvent(uint64(l))
+ return ""
+}
+
+type GroupMessageEvent_Sender struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ UserId int64 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
+ Nickname string `protobuf:"bytes,2,opt,name=nickname,proto3" json:"nickname,omitempty"`
+ Card string `protobuf:"bytes,3,opt,name=card,proto3" json:"card,omitempty"`
+ Sex string `protobuf:"bytes,4,opt,name=sex,proto3" json:"sex,omitempty"`
+ Age int32 `protobuf:"varint,5,opt,name=age,proto3" json:"age,omitempty"`
+ Area string `protobuf:"bytes,6,opt,name=area,proto3" json:"area,omitempty"`
+ Level string `protobuf:"bytes,7,opt,name=level,proto3" json:"level,omitempty"`
+ Role string `protobuf:"bytes,8,opt,name=role,proto3" json:"role,omitempty"`
+ Title string `protobuf:"bytes,9,opt,name=title,proto3" json:"title,omitempty"`
+}
+
+func (x *GroupMessageEvent_Sender) Reset() {
+ *x = GroupMessageEvent_Sender{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_onebot_event_proto_msgTypes[18]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
}
- if len(m.Extra) > 0 {
- for k, v := range m.Extra {
- _ = k
- _ = v
- mapEntrySize := 1 + len(k) + sovOnebotEvent(uint64(len(k))) + 1 + len(v) + sovOnebotEvent(uint64(len(v)))
- n += mapEntrySize + 2 + sovOnebotEvent(uint64(mapEntrySize))
+}
+
+func (x *GroupMessageEvent_Sender) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*GroupMessageEvent_Sender) ProtoMessage() {}
+
+func (x *GroupMessageEvent_Sender) ProtoReflect() protoreflect.Message {
+ mi := &file_onebot_event_proto_msgTypes[18]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
}
+ return ms
}
- if m.XXX_unrecognized != nil {
- n += len(m.XXX_unrecognized)
- }
- return n
+ return mi.MessageOf(x)
}
-func (m *PrivateMessageEvent_Sender) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- if m.UserId != 0 {
- n += 1 + sovOnebotEvent(uint64(m.UserId))
- }
- l = len(m.Nickname)
- if l > 0 {
- n += 1 + l + sovOnebotEvent(uint64(l))
- }
- l = len(m.Sex)
- if l > 0 {
- n += 1 + l + sovOnebotEvent(uint64(l))
- }
- if m.Age != 0 {
- n += 1 + sovOnebotEvent(uint64(m.Age))
- }
- if m.XXX_unrecognized != nil {
- n += len(m.XXX_unrecognized)
- }
- return n
+// Deprecated: Use GroupMessageEvent_Sender.ProtoReflect.Descriptor instead.
+func (*GroupMessageEvent_Sender) Descriptor() ([]byte, []int) {
+ return file_onebot_event_proto_rawDescGZIP(), []int{1, 1}
}
-func (m *GroupMessageEvent) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- if m.Time != 0 {
- n += 1 + sovOnebotEvent(uint64(m.Time))
- }
- if m.SelfId != 0 {
- n += 1 + sovOnebotEvent(uint64(m.SelfId))
- }
- l = len(m.PostType)
- if l > 0 {
- n += 1 + l + sovOnebotEvent(uint64(l))
+func (x *GroupMessageEvent_Sender) GetUserId() int64 {
+ if x != nil {
+ return x.UserId
}
- l = len(m.MessageType)
- if l > 0 {
- n += 1 + l + sovOnebotEvent(uint64(l))
- }
- l = len(m.SubType)
- if l > 0 {
- n += 1 + l + sovOnebotEvent(uint64(l))
+ return 0
+}
+
+func (x *GroupMessageEvent_Sender) GetNickname() string {
+ if x != nil {
+ return x.Nickname
}
- if m.GroupId != 0 {
- n += 1 + sovOnebotEvent(uint64(m.GroupId))
+ return ""
+}
+
+func (x *GroupMessageEvent_Sender) GetCard() string {
+ if x != nil {
+ return x.Card
}
- if m.UserId != 0 {
- n += 1 + sovOnebotEvent(uint64(m.UserId))
+ return ""
+}
+
+func (x *GroupMessageEvent_Sender) GetSex() string {
+ if x != nil {
+ return x.Sex
}
- if m.Anonymous != nil {
- l = m.Anonymous.Size()
- n += 1 + l + sovOnebotEvent(uint64(l))
+ return ""
+}
+
+func (x *GroupMessageEvent_Sender) GetAge() int32 {
+ if x != nil {
+ return x.Age
}
- if len(m.Message) > 0 {
- for _, e := range m.Message {
- l = e.Size()
- n += 1 + l + sovOnebotEvent(uint64(l))
- }
+ return 0
+}
+
+func (x *GroupMessageEvent_Sender) GetArea() string {
+ if x != nil {
+ return x.Area
}
- l = len(m.RawMessage)
- if l > 0 {
- n += 1 + l + sovOnebotEvent(uint64(l))
+ return ""
+}
+
+func (x *GroupMessageEvent_Sender) GetLevel() string {
+ if x != nil {
+ return x.Level
}
- if m.Font != 0 {
- n += 1 + sovOnebotEvent(uint64(m.Font))
+ return ""
+}
+
+func (x *GroupMessageEvent_Sender) GetRole() string {
+ if x != nil {
+ return x.Role
}
- if m.Sender != nil {
- l = m.Sender.Size()
- n += 1 + l + sovOnebotEvent(uint64(l))
+ return ""
+}
+
+func (x *GroupMessageEvent_Sender) GetTitle() string {
+ if x != nil {
+ return x.Title
}
- if m.MessageId != nil {
- l = m.MessageId.Size()
- n += 1 + l + sovOnebotEvent(uint64(l))
+ return ""
+}
+
+type ChannelMessageEvent_Sender struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ TinyId uint64 `protobuf:"varint,1,opt,name=tiny_id,json=tinyId,proto3" json:"tiny_id,omitempty"`
+ Nickname string `protobuf:"bytes,2,opt,name=nickname,proto3" json:"nickname,omitempty"`
+ Roles []uint64 `protobuf:"varint,3,rep,packed,name=roles,proto3" json:"roles,omitempty"`
+ RoleNames []string `protobuf:"bytes,4,rep,name=role_names,json=roleNames,proto3" json:"role_names,omitempty"`
+}
+
+func (x *ChannelMessageEvent_Sender) Reset() {
+ *x = ChannelMessageEvent_Sender{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_onebot_event_proto_msgTypes[20]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
}
- if len(m.Extra) > 0 {
- for k, v := range m.Extra {
- _ = k
- _ = v
- mapEntrySize := 1 + len(k) + sovOnebotEvent(uint64(len(k))) + 1 + len(v) + sovOnebotEvent(uint64(len(v)))
- n += mapEntrySize + 2 + sovOnebotEvent(uint64(mapEntrySize))
+}
+
+func (x *ChannelMessageEvent_Sender) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*ChannelMessageEvent_Sender) ProtoMessage() {}
+
+func (x *ChannelMessageEvent_Sender) ProtoReflect() protoreflect.Message {
+ mi := &file_onebot_event_proto_msgTypes[20]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
}
+ return ms
}
- if m.XXX_unrecognized != nil {
- n += len(m.XXX_unrecognized)
+ return mi.MessageOf(x)
+}
+
+// Deprecated: Use ChannelMessageEvent_Sender.ProtoReflect.Descriptor instead.
+func (*ChannelMessageEvent_Sender) Descriptor() ([]byte, []int) {
+ return file_onebot_event_proto_rawDescGZIP(), []int{2, 0}
+}
+
+func (x *ChannelMessageEvent_Sender) GetTinyId() uint64 {
+ if x != nil {
+ return x.TinyId
}
- return n
+ return 0
}
-func (m *GroupMessageEvent_Anonymous) Size() (n int) {
- if m == nil {
- return 0
+func (x *ChannelMessageEvent_Sender) GetNickname() string {
+ if x != nil {
+ return x.Nickname
}
- var l int
- _ = l
- if m.Id != 0 {
- n += 1 + sovOnebotEvent(uint64(m.Id))
+ return ""
+}
+
+func (x *ChannelMessageEvent_Sender) GetRoles() []uint64 {
+ if x != nil {
+ return x.Roles
}
- l = len(m.Name)
- if l > 0 {
- n += 1 + l + sovOnebotEvent(uint64(l))
+ return nil
+}
+
+func (x *ChannelMessageEvent_Sender) GetRoleNames() []string {
+ if x != nil {
+ return x.RoleNames
}
- l = len(m.Flag)
- if l > 0 {
- n += 1 + l + sovOnebotEvent(uint64(l))
+ return nil
+}
+
+type GroupUploadNoticeEvent_File struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
+ Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
+ Size int64 `protobuf:"varint,3,opt,name=size,proto3" json:"size,omitempty"`
+ Busid int64 `protobuf:"varint,4,opt,name=busid,proto3" json:"busid,omitempty"`
+ Url string `protobuf:"bytes,5,opt,name=url,proto3" json:"url,omitempty"`
+}
+
+func (x *GroupUploadNoticeEvent_File) Reset() {
+ *x = GroupUploadNoticeEvent_File{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_onebot_event_proto_msgTypes[23]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
}
- if m.XXX_unrecognized != nil {
- n += len(m.XXX_unrecognized)
+}
+
+func (x *GroupUploadNoticeEvent_File) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*GroupUploadNoticeEvent_File) ProtoMessage() {}
+
+func (x *GroupUploadNoticeEvent_File) ProtoReflect() protoreflect.Message {
+ mi := &file_onebot_event_proto_msgTypes[23]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
}
- return n
+ return mi.MessageOf(x)
+}
+
+// Deprecated: Use GroupUploadNoticeEvent_File.ProtoReflect.Descriptor instead.
+func (*GroupUploadNoticeEvent_File) Descriptor() ([]byte, []int) {
+ return file_onebot_event_proto_rawDescGZIP(), []int{4, 0}
}
-func (m *GroupMessageEvent_Sender) Size() (n int) {
- if m == nil {
- return 0
+func (x *GroupUploadNoticeEvent_File) GetId() string {
+ if x != nil {
+ return x.Id
}
- var l int
- _ = l
- if m.UserId != 0 {
- n += 1 + sovOnebotEvent(uint64(m.UserId))
+ return ""
+}
+
+func (x *GroupUploadNoticeEvent_File) GetName() string {
+ if x != nil {
+ return x.Name
}
- l = len(m.Nickname)
- if l > 0 {
- n += 1 + l + sovOnebotEvent(uint64(l))
+ return ""
+}
+
+func (x *GroupUploadNoticeEvent_File) GetSize() int64 {
+ if x != nil {
+ return x.Size
}
- l = len(m.Card)
- if l > 0 {
- n += 1 + l + sovOnebotEvent(uint64(l))
+ return 0
+}
+
+func (x *GroupUploadNoticeEvent_File) GetBusid() int64 {
+ if x != nil {
+ return x.Busid
}
- l = len(m.Sex)
- if l > 0 {
- n += 1 + l + sovOnebotEvent(uint64(l))
+ return 0
+}
+
+func (x *GroupUploadNoticeEvent_File) GetUrl() string {
+ if x != nil {
+ return x.Url
}
- if m.Age != 0 {
- n += 1 + sovOnebotEvent(uint64(m.Age))
- }
- l = len(m.Area)
- if l > 0 {
- n += 1 + l + sovOnebotEvent(uint64(l))
- }
- l = len(m.Level)
- if l > 0 {
- n += 1 + l + sovOnebotEvent(uint64(l))
- }
- l = len(m.Role)
- if l > 0 {
- n += 1 + l + sovOnebotEvent(uint64(l))
- }
- l = len(m.Title)
- if l > 0 {
- n += 1 + l + sovOnebotEvent(uint64(l))
- }
- if m.XXX_unrecognized != nil {
- n += len(m.XXX_unrecognized)
- }
- return n
-}
-
-func (m *GroupTempMessageEvent) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- if m.Time != 0 {
- n += 1 + sovOnebotEvent(uint64(m.Time))
- }
- if m.SelfId != 0 {
- n += 1 + sovOnebotEvent(uint64(m.SelfId))
- }
- l = len(m.PostType)
- if l > 0 {
- n += 1 + l + sovOnebotEvent(uint64(l))
- }
- l = len(m.MessageType)
- if l > 0 {
- n += 1 + l + sovOnebotEvent(uint64(l))
- }
- if m.GroupId != 0 {
- n += 1 + sovOnebotEvent(uint64(m.GroupId))
- }
- if m.UserId != 0 {
- n += 1 + sovOnebotEvent(uint64(m.UserId))
- }
- if len(m.Message) > 0 {
- for _, e := range m.Message {
- l = e.Size()
- n += 1 + l + sovOnebotEvent(uint64(l))
- }
- }
- l = len(m.RawMessage)
- if l > 0 {
- n += 1 + l + sovOnebotEvent(uint64(l))
- }
- if m.MessageId != nil {
- l = m.MessageId.Size()
- n += 1 + l + sovOnebotEvent(uint64(l))
- }
- if len(m.Extra) > 0 {
- for k, v := range m.Extra {
- _ = k
- _ = v
- mapEntrySize := 1 + len(k) + sovOnebotEvent(uint64(len(k))) + 1 + len(v) + sovOnebotEvent(uint64(len(v)))
- n += mapEntrySize + 2 + sovOnebotEvent(uint64(mapEntrySize))
- }
- }
- if m.XXX_unrecognized != nil {
- n += len(m.XXX_unrecognized)
- }
- return n
-}
-
-func (m *GroupUploadNoticeEvent) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- if m.Time != 0 {
- n += 1 + sovOnebotEvent(uint64(m.Time))
- }
- if m.SelfId != 0 {
- n += 1 + sovOnebotEvent(uint64(m.SelfId))
- }
- l = len(m.PostType)
- if l > 0 {
- n += 1 + l + sovOnebotEvent(uint64(l))
- }
- l = len(m.NoticeType)
- if l > 0 {
- n += 1 + l + sovOnebotEvent(uint64(l))
- }
- if m.GroupId != 0 {
- n += 1 + sovOnebotEvent(uint64(m.GroupId))
- }
- if m.UserId != 0 {
- n += 1 + sovOnebotEvent(uint64(m.UserId))
- }
- if m.File != nil {
- l = m.File.Size()
- n += 1 + l + sovOnebotEvent(uint64(l))
- }
- if len(m.Extra) > 0 {
- for k, v := range m.Extra {
- _ = k
- _ = v
- mapEntrySize := 1 + len(k) + sovOnebotEvent(uint64(len(k))) + 1 + len(v) + sovOnebotEvent(uint64(len(v)))
- n += mapEntrySize + 2 + sovOnebotEvent(uint64(mapEntrySize))
- }
- }
- if m.XXX_unrecognized != nil {
- n += len(m.XXX_unrecognized)
- }
- return n
-}
-
-func (m *GroupUploadNoticeEvent_File) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- l = len(m.Id)
- if l > 0 {
- n += 1 + l + sovOnebotEvent(uint64(l))
- }
- l = len(m.Name)
- if l > 0 {
- n += 1 + l + sovOnebotEvent(uint64(l))
- }
- if m.Size_ != 0 {
- n += 1 + sovOnebotEvent(uint64(m.Size_))
- }
- if m.Busid != 0 {
- n += 1 + sovOnebotEvent(uint64(m.Busid))
- }
- l = len(m.Url)
- if l > 0 {
- n += 1 + l + sovOnebotEvent(uint64(l))
- }
- if m.XXX_unrecognized != nil {
- n += len(m.XXX_unrecognized)
- }
- return n
-}
-
-func (m *GroupAdminNoticeEvent) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- if m.Time != 0 {
- n += 1 + sovOnebotEvent(uint64(m.Time))
- }
- if m.SelfId != 0 {
- n += 1 + sovOnebotEvent(uint64(m.SelfId))
- }
- l = len(m.PostType)
- if l > 0 {
- n += 1 + l + sovOnebotEvent(uint64(l))
- }
- l = len(m.NoticeType)
- if l > 0 {
- n += 1 + l + sovOnebotEvent(uint64(l))
- }
- l = len(m.SubType)
- if l > 0 {
- n += 1 + l + sovOnebotEvent(uint64(l))
- }
- if m.GroupId != 0 {
- n += 1 + sovOnebotEvent(uint64(m.GroupId))
- }
- if m.UserId != 0 {
- n += 1 + sovOnebotEvent(uint64(m.UserId))
- }
- if len(m.Extra) > 0 {
- for k, v := range m.Extra {
- _ = k
- _ = v
- mapEntrySize := 1 + len(k) + sovOnebotEvent(uint64(len(k))) + 1 + len(v) + sovOnebotEvent(uint64(len(v)))
- n += mapEntrySize + 2 + sovOnebotEvent(uint64(mapEntrySize))
- }
- }
- if m.XXX_unrecognized != nil {
- n += len(m.XXX_unrecognized)
- }
- return n
-}
-
-func (m *GroupDecreaseNoticeEvent) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- if m.Time != 0 {
- n += 1 + sovOnebotEvent(uint64(m.Time))
- }
- if m.SelfId != 0 {
- n += 1 + sovOnebotEvent(uint64(m.SelfId))
- }
- l = len(m.PostType)
- if l > 0 {
- n += 1 + l + sovOnebotEvent(uint64(l))
- }
- l = len(m.NoticeType)
- if l > 0 {
- n += 1 + l + sovOnebotEvent(uint64(l))
- }
- l = len(m.SubType)
- if l > 0 {
- n += 1 + l + sovOnebotEvent(uint64(l))
- }
- if m.GroupId != 0 {
- n += 1 + sovOnebotEvent(uint64(m.GroupId))
- }
- if m.OperatorId != 0 {
- n += 1 + sovOnebotEvent(uint64(m.OperatorId))
- }
- if m.UserId != 0 {
- n += 1 + sovOnebotEvent(uint64(m.UserId))
- }
- if len(m.Extra) > 0 {
- for k, v := range m.Extra {
- _ = k
- _ = v
- mapEntrySize := 1 + len(k) + sovOnebotEvent(uint64(len(k))) + 1 + len(v) + sovOnebotEvent(uint64(len(v)))
- n += mapEntrySize + 2 + sovOnebotEvent(uint64(mapEntrySize))
- }
- }
- if m.XXX_unrecognized != nil {
- n += len(m.XXX_unrecognized)
- }
- return n
-}
-
-func (m *GroupIncreaseNoticeEvent) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- if m.Time != 0 {
- n += 1 + sovOnebotEvent(uint64(m.Time))
- }
- if m.SelfId != 0 {
- n += 1 + sovOnebotEvent(uint64(m.SelfId))
- }
- l = len(m.PostType)
- if l > 0 {
- n += 1 + l + sovOnebotEvent(uint64(l))
- }
- l = len(m.NoticeType)
- if l > 0 {
- n += 1 + l + sovOnebotEvent(uint64(l))
- }
- l = len(m.SubType)
- if l > 0 {
- n += 1 + l + sovOnebotEvent(uint64(l))
- }
- if m.GroupId != 0 {
- n += 1 + sovOnebotEvent(uint64(m.GroupId))
- }
- if m.OperatorId != 0 {
- n += 1 + sovOnebotEvent(uint64(m.OperatorId))
- }
- if m.UserId != 0 {
- n += 1 + sovOnebotEvent(uint64(m.UserId))
- }
- if len(m.Extra) > 0 {
- for k, v := range m.Extra {
- _ = k
- _ = v
- mapEntrySize := 1 + len(k) + sovOnebotEvent(uint64(len(k))) + 1 + len(v) + sovOnebotEvent(uint64(len(v)))
- n += mapEntrySize + 2 + sovOnebotEvent(uint64(mapEntrySize))
- }
- }
- if m.XXX_unrecognized != nil {
- n += len(m.XXX_unrecognized)
- }
- return n
-}
-
-func (m *GroupBanNoticeEvent) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- if m.Time != 0 {
- n += 1 + sovOnebotEvent(uint64(m.Time))
- }
- if m.SelfId != 0 {
- n += 1 + sovOnebotEvent(uint64(m.SelfId))
- }
- l = len(m.PostType)
- if l > 0 {
- n += 1 + l + sovOnebotEvent(uint64(l))
- }
- l = len(m.NoticeType)
- if l > 0 {
- n += 1 + l + sovOnebotEvent(uint64(l))
- }
- l = len(m.SubType)
- if l > 0 {
- n += 1 + l + sovOnebotEvent(uint64(l))
- }
- if m.GroupId != 0 {
- n += 1 + sovOnebotEvent(uint64(m.GroupId))
- }
- if m.OperatorId != 0 {
- n += 1 + sovOnebotEvent(uint64(m.OperatorId))
- }
- if m.UserId != 0 {
- n += 1 + sovOnebotEvent(uint64(m.UserId))
- }
- if m.Duration != 0 {
- n += 1 + sovOnebotEvent(uint64(m.Duration))
- }
- if len(m.Extra) > 0 {
- for k, v := range m.Extra {
- _ = k
- _ = v
- mapEntrySize := 1 + len(k) + sovOnebotEvent(uint64(len(k))) + 1 + len(v) + sovOnebotEvent(uint64(len(v)))
- n += mapEntrySize + 2 + sovOnebotEvent(uint64(mapEntrySize))
- }
- }
- if m.XXX_unrecognized != nil {
- n += len(m.XXX_unrecognized)
- }
- return n
-}
-
-func (m *FriendAddNoticeEvent) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- if m.Time != 0 {
- n += 1 + sovOnebotEvent(uint64(m.Time))
- }
- if m.SelfId != 0 {
- n += 1 + sovOnebotEvent(uint64(m.SelfId))
- }
- l = len(m.PostType)
- if l > 0 {
- n += 1 + l + sovOnebotEvent(uint64(l))
- }
- l = len(m.NoticeType)
- if l > 0 {
- n += 1 + l + sovOnebotEvent(uint64(l))
- }
- if m.UserId != 0 {
- n += 1 + sovOnebotEvent(uint64(m.UserId))
- }
- if len(m.Extra) > 0 {
- for k, v := range m.Extra {
- _ = k
- _ = v
- mapEntrySize := 1 + len(k) + sovOnebotEvent(uint64(len(k))) + 1 + len(v) + sovOnebotEvent(uint64(len(v)))
- n += mapEntrySize + 2 + sovOnebotEvent(uint64(mapEntrySize))
- }
- }
- if m.XXX_unrecognized != nil {
- n += len(m.XXX_unrecognized)
- }
- return n
-}
-
-func (m *GroupRecallNoticeEvent) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- if m.Time != 0 {
- n += 1 + sovOnebotEvent(uint64(m.Time))
- }
- if m.SelfId != 0 {
- n += 1 + sovOnebotEvent(uint64(m.SelfId))
- }
- l = len(m.PostType)
- if l > 0 {
- n += 1 + l + sovOnebotEvent(uint64(l))
- }
- l = len(m.NoticeType)
- if l > 0 {
- n += 1 + l + sovOnebotEvent(uint64(l))
- }
- if m.GroupId != 0 {
- n += 1 + sovOnebotEvent(uint64(m.GroupId))
- }
- if m.UserId != 0 {
- n += 1 + sovOnebotEvent(uint64(m.UserId))
- }
- if m.OperatorId != 0 {
- n += 1 + sovOnebotEvent(uint64(m.OperatorId))
- }
- if m.MessageId != nil {
- l = m.MessageId.Size()
- n += 1 + l + sovOnebotEvent(uint64(l))
- }
- if len(m.Extra) > 0 {
- for k, v := range m.Extra {
- _ = k
- _ = v
- mapEntrySize := 1 + len(k) + sovOnebotEvent(uint64(len(k))) + 1 + len(v) + sovOnebotEvent(uint64(len(v)))
- n += mapEntrySize + 2 + sovOnebotEvent(uint64(mapEntrySize))
- }
- }
- if m.XXX_unrecognized != nil {
- n += len(m.XXX_unrecognized)
- }
- return n
-}
-
-func (m *FriendRecallNoticeEvent) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- if m.Time != 0 {
- n += 1 + sovOnebotEvent(uint64(m.Time))
- }
- if m.SelfId != 0 {
- n += 1 + sovOnebotEvent(uint64(m.SelfId))
- }
- l = len(m.PostType)
- if l > 0 {
- n += 1 + l + sovOnebotEvent(uint64(l))
- }
- l = len(m.NoticeType)
- if l > 0 {
- n += 1 + l + sovOnebotEvent(uint64(l))
- }
- if m.UserId != 0 {
- n += 1 + sovOnebotEvent(uint64(m.UserId))
- }
- if m.MessageId != nil {
- l = m.MessageId.Size()
- n += 1 + l + sovOnebotEvent(uint64(l))
- }
- if len(m.Extra) > 0 {
- for k, v := range m.Extra {
- _ = k
- _ = v
- mapEntrySize := 1 + len(k) + sovOnebotEvent(uint64(len(k))) + 1 + len(v) + sovOnebotEvent(uint64(len(v)))
- n += mapEntrySize + 2 + sovOnebotEvent(uint64(mapEntrySize))
- }
- }
- if m.XXX_unrecognized != nil {
- n += len(m.XXX_unrecognized)
- }
- return n
-}
-
-func (m *FriendRequestEvent) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- if m.Time != 0 {
- n += 1 + sovOnebotEvent(uint64(m.Time))
- }
- if m.SelfId != 0 {
- n += 1 + sovOnebotEvent(uint64(m.SelfId))
- }
- l = len(m.PostType)
- if l > 0 {
- n += 1 + l + sovOnebotEvent(uint64(l))
- }
- l = len(m.RequestType)
- if l > 0 {
- n += 1 + l + sovOnebotEvent(uint64(l))
- }
- if m.UserId != 0 {
- n += 1 + sovOnebotEvent(uint64(m.UserId))
- }
- l = len(m.Comment)
- if l > 0 {
- n += 1 + l + sovOnebotEvent(uint64(l))
- }
- l = len(m.Flag)
- if l > 0 {
- n += 1 + l + sovOnebotEvent(uint64(l))
- }
- if len(m.Extra) > 0 {
- for k, v := range m.Extra {
- _ = k
- _ = v
- mapEntrySize := 1 + len(k) + sovOnebotEvent(uint64(len(k))) + 1 + len(v) + sovOnebotEvent(uint64(len(v)))
- n += mapEntrySize + 2 + sovOnebotEvent(uint64(mapEntrySize))
- }
- }
- if m.XXX_unrecognized != nil {
- n += len(m.XXX_unrecognized)
- }
- return n
-}
-
-func (m *GroupRequestEvent) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- if m.Time != 0 {
- n += 1 + sovOnebotEvent(uint64(m.Time))
- }
- if m.SelfId != 0 {
- n += 1 + sovOnebotEvent(uint64(m.SelfId))
- }
- l = len(m.PostType)
- if l > 0 {
- n += 1 + l + sovOnebotEvent(uint64(l))
- }
- l = len(m.RequestType)
- if l > 0 {
- n += 1 + l + sovOnebotEvent(uint64(l))
- }
- l = len(m.SubType)
- if l > 0 {
- n += 1 + l + sovOnebotEvent(uint64(l))
- }
- if m.GroupId != 0 {
- n += 1 + sovOnebotEvent(uint64(m.GroupId))
- }
- if m.UserId != 0 {
- n += 1 + sovOnebotEvent(uint64(m.UserId))
- }
- l = len(m.Comment)
- if l > 0 {
- n += 1 + l + sovOnebotEvent(uint64(l))
- }
- l = len(m.Flag)
- if l > 0 {
- n += 1 + l + sovOnebotEvent(uint64(l))
- }
- if len(m.Extra) > 0 {
- for k, v := range m.Extra {
- _ = k
- _ = v
- mapEntrySize := 1 + len(k) + sovOnebotEvent(uint64(len(k))) + 1 + len(v) + sovOnebotEvent(uint64(len(v)))
- n += mapEntrySize + 2 + sovOnebotEvent(uint64(mapEntrySize))
- }
- }
- if m.XXX_unrecognized != nil {
- n += len(m.XXX_unrecognized)
- }
- return n
-}
-
-func sovOnebotEvent(x uint64) (n int) {
- return (math_bits.Len64(x|1) + 6) / 7
-}
-func sozOnebotEvent(x uint64) (n int) {
- return sovOnebotEvent(uint64((x << 1) ^ uint64((int64(x) >> 63))))
-}
-func (m *PrivateMessageEvent) Unmarshal(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotEvent
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: PrivateMessageEvent: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: PrivateMessageEvent: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- case 1:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field Time", wireType)
- }
- m.Time = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotEvent
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.Time |= int64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 2:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field SelfId", wireType)
- }
- m.SelfId = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotEvent
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.SelfId |= int64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 3:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field PostType", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotEvent
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthOnebotEvent
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthOnebotEvent
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.PostType = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- case 4:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field MessageType", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotEvent
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthOnebotEvent
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthOnebotEvent
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.MessageType = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- case 5:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field SubType", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotEvent
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthOnebotEvent
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthOnebotEvent
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.SubType = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- case 7:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field UserId", wireType)
- }
- m.UserId = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotEvent
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.UserId |= int64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 8:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Message", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotEvent
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return ErrInvalidLengthOnebotEvent
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return ErrInvalidLengthOnebotEvent
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.Message = append(m.Message, &Message{})
- if err := m.Message[len(m.Message)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- iNdEx = postIndex
- case 9:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field RawMessage", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotEvent
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthOnebotEvent
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthOnebotEvent
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.RawMessage = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- case 10:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field Font", wireType)
- }
- m.Font = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotEvent
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.Font |= int32(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 11:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Sender", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotEvent
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return ErrInvalidLengthOnebotEvent
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return ErrInvalidLengthOnebotEvent
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- if m.Sender == nil {
- m.Sender = &PrivateMessageEvent_Sender{}
- }
- if err := m.Sender.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- iNdEx = postIndex
- case 12:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field MessageId", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotEvent
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return ErrInvalidLengthOnebotEvent
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return ErrInvalidLengthOnebotEvent
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- if m.MessageId == nil {
- m.MessageId = &MessageReceipt{}
- }
- if err := m.MessageId.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- iNdEx = postIndex
- case 255:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Extra", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotEvent
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return ErrInvalidLengthOnebotEvent
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return ErrInvalidLengthOnebotEvent
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- if m.Extra == nil {
- m.Extra = make(map[string]string)
- }
- var mapkey string
- var mapvalue string
- for iNdEx < postIndex {
- entryPreIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotEvent
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- if fieldNum == 1 {
- var stringLenmapkey uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotEvent
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLenmapkey |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLenmapkey := int(stringLenmapkey)
- if intStringLenmapkey < 0 {
- return ErrInvalidLengthOnebotEvent
- }
- postStringIndexmapkey := iNdEx + intStringLenmapkey
- if postStringIndexmapkey < 0 {
- return ErrInvalidLengthOnebotEvent
- }
- if postStringIndexmapkey > l {
- return io.ErrUnexpectedEOF
- }
- mapkey = string(dAtA[iNdEx:postStringIndexmapkey])
- iNdEx = postStringIndexmapkey
- } else if fieldNum == 2 {
- var stringLenmapvalue uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotEvent
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLenmapvalue |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLenmapvalue := int(stringLenmapvalue)
- if intStringLenmapvalue < 0 {
- return ErrInvalidLengthOnebotEvent
- }
- postStringIndexmapvalue := iNdEx + intStringLenmapvalue
- if postStringIndexmapvalue < 0 {
- return ErrInvalidLengthOnebotEvent
- }
- if postStringIndexmapvalue > l {
- return io.ErrUnexpectedEOF
- }
- mapvalue = string(dAtA[iNdEx:postStringIndexmapvalue])
- iNdEx = postStringIndexmapvalue
- } else {
- iNdEx = entryPreIndex
- skippy, err := skipOnebotEvent(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if skippy < 0 {
- return ErrInvalidLengthOnebotEvent
- }
- if (iNdEx + skippy) > postIndex {
- return io.ErrUnexpectedEOF
- }
- iNdEx += skippy
- }
- }
- m.Extra[mapkey] = mapvalue
- iNdEx = postIndex
- default:
- iNdEx = preIndex
- skippy, err := skipOnebotEvent(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if skippy < 0 {
- return ErrInvalidLengthOnebotEvent
- }
- if (iNdEx + skippy) < 0 {
- return ErrInvalidLengthOnebotEvent
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
- iNdEx += skippy
- }
- }
-
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
-}
-func (m *PrivateMessageEvent_Sender) Unmarshal(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotEvent
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: Sender: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: Sender: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- case 1:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field UserId", wireType)
- }
- m.UserId = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotEvent
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.UserId |= int64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 2:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Nickname", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotEvent
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthOnebotEvent
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthOnebotEvent
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.Nickname = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- case 3:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Sex", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotEvent
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthOnebotEvent
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthOnebotEvent
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.Sex = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- case 4:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field Age", wireType)
- }
- m.Age = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotEvent
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.Age |= int32(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- default:
- iNdEx = preIndex
- skippy, err := skipOnebotEvent(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if skippy < 0 {
- return ErrInvalidLengthOnebotEvent
- }
- if (iNdEx + skippy) < 0 {
- return ErrInvalidLengthOnebotEvent
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
- iNdEx += skippy
- }
- }
-
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
-}
-func (m *GroupMessageEvent) Unmarshal(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotEvent
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: GroupMessageEvent: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: GroupMessageEvent: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- case 1:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field Time", wireType)
- }
- m.Time = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotEvent
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.Time |= int64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 2:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field SelfId", wireType)
- }
- m.SelfId = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotEvent
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.SelfId |= int64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 3:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field PostType", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotEvent
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthOnebotEvent
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthOnebotEvent
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.PostType = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- case 4:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field MessageType", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotEvent
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthOnebotEvent
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthOnebotEvent
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.MessageType = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- case 5:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field SubType", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotEvent
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthOnebotEvent
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthOnebotEvent
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.SubType = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- case 7:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field GroupId", wireType)
- }
- m.GroupId = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotEvent
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.GroupId |= int64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 8:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field UserId", wireType)
- }
- m.UserId = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotEvent
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.UserId |= int64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 9:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Anonymous", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotEvent
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return ErrInvalidLengthOnebotEvent
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return ErrInvalidLengthOnebotEvent
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- if m.Anonymous == nil {
- m.Anonymous = &GroupMessageEvent_Anonymous{}
- }
- if err := m.Anonymous.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- iNdEx = postIndex
- case 10:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Message", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotEvent
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return ErrInvalidLengthOnebotEvent
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return ErrInvalidLengthOnebotEvent
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.Message = append(m.Message, &Message{})
- if err := m.Message[len(m.Message)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- iNdEx = postIndex
- case 11:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field RawMessage", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotEvent
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthOnebotEvent
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthOnebotEvent
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.RawMessage = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- case 12:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field Font", wireType)
- }
- m.Font = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotEvent
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.Font |= int32(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 13:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Sender", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotEvent
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return ErrInvalidLengthOnebotEvent
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return ErrInvalidLengthOnebotEvent
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- if m.Sender == nil {
- m.Sender = &GroupMessageEvent_Sender{}
- }
- if err := m.Sender.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- iNdEx = postIndex
- case 14:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field MessageId", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotEvent
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return ErrInvalidLengthOnebotEvent
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return ErrInvalidLengthOnebotEvent
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- if m.MessageId == nil {
- m.MessageId = &MessageReceipt{}
- }
- if err := m.MessageId.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- iNdEx = postIndex
- case 255:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Extra", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotEvent
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return ErrInvalidLengthOnebotEvent
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return ErrInvalidLengthOnebotEvent
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- if m.Extra == nil {
- m.Extra = make(map[string]string)
- }
- var mapkey string
- var mapvalue string
- for iNdEx < postIndex {
- entryPreIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotEvent
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- if fieldNum == 1 {
- var stringLenmapkey uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotEvent
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLenmapkey |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLenmapkey := int(stringLenmapkey)
- if intStringLenmapkey < 0 {
- return ErrInvalidLengthOnebotEvent
- }
- postStringIndexmapkey := iNdEx + intStringLenmapkey
- if postStringIndexmapkey < 0 {
- return ErrInvalidLengthOnebotEvent
- }
- if postStringIndexmapkey > l {
- return io.ErrUnexpectedEOF
- }
- mapkey = string(dAtA[iNdEx:postStringIndexmapkey])
- iNdEx = postStringIndexmapkey
- } else if fieldNum == 2 {
- var stringLenmapvalue uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotEvent
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLenmapvalue |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLenmapvalue := int(stringLenmapvalue)
- if intStringLenmapvalue < 0 {
- return ErrInvalidLengthOnebotEvent
- }
- postStringIndexmapvalue := iNdEx + intStringLenmapvalue
- if postStringIndexmapvalue < 0 {
- return ErrInvalidLengthOnebotEvent
- }
- if postStringIndexmapvalue > l {
- return io.ErrUnexpectedEOF
- }
- mapvalue = string(dAtA[iNdEx:postStringIndexmapvalue])
- iNdEx = postStringIndexmapvalue
- } else {
- iNdEx = entryPreIndex
- skippy, err := skipOnebotEvent(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if skippy < 0 {
- return ErrInvalidLengthOnebotEvent
- }
- if (iNdEx + skippy) > postIndex {
- return io.ErrUnexpectedEOF
- }
- iNdEx += skippy
- }
- }
- m.Extra[mapkey] = mapvalue
- iNdEx = postIndex
- default:
- iNdEx = preIndex
- skippy, err := skipOnebotEvent(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if skippy < 0 {
- return ErrInvalidLengthOnebotEvent
- }
- if (iNdEx + skippy) < 0 {
- return ErrInvalidLengthOnebotEvent
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
- iNdEx += skippy
- }
- }
-
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
-}
-func (m *GroupMessageEvent_Anonymous) Unmarshal(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotEvent
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: Anonymous: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: Anonymous: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- case 1:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType)
- }
- m.Id = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotEvent
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.Id |= int64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 2:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotEvent
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthOnebotEvent
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthOnebotEvent
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.Name = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- case 3:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Flag", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotEvent
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthOnebotEvent
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthOnebotEvent
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.Flag = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- default:
- iNdEx = preIndex
- skippy, err := skipOnebotEvent(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if skippy < 0 {
- return ErrInvalidLengthOnebotEvent
- }
- if (iNdEx + skippy) < 0 {
- return ErrInvalidLengthOnebotEvent
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
- iNdEx += skippy
- }
- }
-
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
-}
-func (m *GroupMessageEvent_Sender) Unmarshal(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotEvent
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: Sender: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: Sender: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- case 1:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field UserId", wireType)
- }
- m.UserId = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotEvent
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.UserId |= int64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 2:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Nickname", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotEvent
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthOnebotEvent
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthOnebotEvent
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.Nickname = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- case 3:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Card", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotEvent
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthOnebotEvent
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthOnebotEvent
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.Card = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- case 4:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Sex", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotEvent
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthOnebotEvent
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthOnebotEvent
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.Sex = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- case 5:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field Age", wireType)
- }
- m.Age = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotEvent
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.Age |= int32(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 6:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Area", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotEvent
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthOnebotEvent
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthOnebotEvent
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.Area = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- case 7:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Level", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotEvent
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthOnebotEvent
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthOnebotEvent
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.Level = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- case 8:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Role", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotEvent
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthOnebotEvent
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthOnebotEvent
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.Role = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- case 9:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Title", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotEvent
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthOnebotEvent
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthOnebotEvent
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.Title = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- default:
- iNdEx = preIndex
- skippy, err := skipOnebotEvent(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if skippy < 0 {
- return ErrInvalidLengthOnebotEvent
- }
- if (iNdEx + skippy) < 0 {
- return ErrInvalidLengthOnebotEvent
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
- iNdEx += skippy
- }
- }
-
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
-}
-func (m *GroupTempMessageEvent) Unmarshal(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotEvent
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: GroupTempMessageEvent: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: GroupTempMessageEvent: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- case 1:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field Time", wireType)
- }
- m.Time = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotEvent
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.Time |= int64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 2:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field SelfId", wireType)
- }
- m.SelfId = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotEvent
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.SelfId |= int64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 3:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field PostType", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotEvent
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthOnebotEvent
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthOnebotEvent
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.PostType = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- case 4:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field MessageType", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotEvent
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthOnebotEvent
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthOnebotEvent
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.MessageType = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- case 7:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field GroupId", wireType)
- }
- m.GroupId = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotEvent
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.GroupId |= int64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 8:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field UserId", wireType)
- }
- m.UserId = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotEvent
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.UserId |= int64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 10:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Message", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotEvent
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return ErrInvalidLengthOnebotEvent
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return ErrInvalidLengthOnebotEvent
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.Message = append(m.Message, &Message{})
- if err := m.Message[len(m.Message)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- iNdEx = postIndex
- case 11:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field RawMessage", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotEvent
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthOnebotEvent
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthOnebotEvent
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.RawMessage = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- case 14:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field MessageId", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotEvent
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return ErrInvalidLengthOnebotEvent
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return ErrInvalidLengthOnebotEvent
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- if m.MessageId == nil {
- m.MessageId = &MessageReceipt{}
- }
- if err := m.MessageId.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- iNdEx = postIndex
- case 255:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Extra", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotEvent
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return ErrInvalidLengthOnebotEvent
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return ErrInvalidLengthOnebotEvent
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- if m.Extra == nil {
- m.Extra = make(map[string]string)
- }
- var mapkey string
- var mapvalue string
- for iNdEx < postIndex {
- entryPreIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotEvent
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- if fieldNum == 1 {
- var stringLenmapkey uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotEvent
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLenmapkey |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLenmapkey := int(stringLenmapkey)
- if intStringLenmapkey < 0 {
- return ErrInvalidLengthOnebotEvent
- }
- postStringIndexmapkey := iNdEx + intStringLenmapkey
- if postStringIndexmapkey < 0 {
- return ErrInvalidLengthOnebotEvent
- }
- if postStringIndexmapkey > l {
- return io.ErrUnexpectedEOF
- }
- mapkey = string(dAtA[iNdEx:postStringIndexmapkey])
- iNdEx = postStringIndexmapkey
- } else if fieldNum == 2 {
- var stringLenmapvalue uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotEvent
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLenmapvalue |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLenmapvalue := int(stringLenmapvalue)
- if intStringLenmapvalue < 0 {
- return ErrInvalidLengthOnebotEvent
- }
- postStringIndexmapvalue := iNdEx + intStringLenmapvalue
- if postStringIndexmapvalue < 0 {
- return ErrInvalidLengthOnebotEvent
- }
- if postStringIndexmapvalue > l {
- return io.ErrUnexpectedEOF
- }
- mapvalue = string(dAtA[iNdEx:postStringIndexmapvalue])
- iNdEx = postStringIndexmapvalue
- } else {
- iNdEx = entryPreIndex
- skippy, err := skipOnebotEvent(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if skippy < 0 {
- return ErrInvalidLengthOnebotEvent
- }
- if (iNdEx + skippy) > postIndex {
- return io.ErrUnexpectedEOF
- }
- iNdEx += skippy
- }
- }
- m.Extra[mapkey] = mapvalue
- iNdEx = postIndex
- default:
- iNdEx = preIndex
- skippy, err := skipOnebotEvent(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if skippy < 0 {
- return ErrInvalidLengthOnebotEvent
- }
- if (iNdEx + skippy) < 0 {
- return ErrInvalidLengthOnebotEvent
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
- iNdEx += skippy
- }
- }
-
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
-}
-func (m *GroupUploadNoticeEvent) Unmarshal(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotEvent
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: GroupUploadNoticeEvent: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: GroupUploadNoticeEvent: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- case 1:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field Time", wireType)
- }
- m.Time = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotEvent
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.Time |= int64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 2:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field SelfId", wireType)
- }
- m.SelfId = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotEvent
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.SelfId |= int64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 3:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field PostType", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotEvent
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthOnebotEvent
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthOnebotEvent
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.PostType = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- case 4:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field NoticeType", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotEvent
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthOnebotEvent
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthOnebotEvent
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.NoticeType = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- case 5:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field GroupId", wireType)
- }
- m.GroupId = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotEvent
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.GroupId |= int64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 6:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field UserId", wireType)
- }
- m.UserId = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotEvent
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.UserId |= int64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 7:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field File", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotEvent
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return ErrInvalidLengthOnebotEvent
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return ErrInvalidLengthOnebotEvent
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- if m.File == nil {
- m.File = &GroupUploadNoticeEvent_File{}
- }
- if err := m.File.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- iNdEx = postIndex
- case 255:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Extra", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotEvent
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return ErrInvalidLengthOnebotEvent
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return ErrInvalidLengthOnebotEvent
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- if m.Extra == nil {
- m.Extra = make(map[string]string)
- }
- var mapkey string
- var mapvalue string
- for iNdEx < postIndex {
- entryPreIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotEvent
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- if fieldNum == 1 {
- var stringLenmapkey uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotEvent
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLenmapkey |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLenmapkey := int(stringLenmapkey)
- if intStringLenmapkey < 0 {
- return ErrInvalidLengthOnebotEvent
- }
- postStringIndexmapkey := iNdEx + intStringLenmapkey
- if postStringIndexmapkey < 0 {
- return ErrInvalidLengthOnebotEvent
- }
- if postStringIndexmapkey > l {
- return io.ErrUnexpectedEOF
- }
- mapkey = string(dAtA[iNdEx:postStringIndexmapkey])
- iNdEx = postStringIndexmapkey
- } else if fieldNum == 2 {
- var stringLenmapvalue uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotEvent
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLenmapvalue |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLenmapvalue := int(stringLenmapvalue)
- if intStringLenmapvalue < 0 {
- return ErrInvalidLengthOnebotEvent
- }
- postStringIndexmapvalue := iNdEx + intStringLenmapvalue
- if postStringIndexmapvalue < 0 {
- return ErrInvalidLengthOnebotEvent
- }
- if postStringIndexmapvalue > l {
- return io.ErrUnexpectedEOF
- }
- mapvalue = string(dAtA[iNdEx:postStringIndexmapvalue])
- iNdEx = postStringIndexmapvalue
- } else {
- iNdEx = entryPreIndex
- skippy, err := skipOnebotEvent(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if skippy < 0 {
- return ErrInvalidLengthOnebotEvent
- }
- if (iNdEx + skippy) > postIndex {
- return io.ErrUnexpectedEOF
- }
- iNdEx += skippy
- }
- }
- m.Extra[mapkey] = mapvalue
- iNdEx = postIndex
- default:
- iNdEx = preIndex
- skippy, err := skipOnebotEvent(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if skippy < 0 {
- return ErrInvalidLengthOnebotEvent
- }
- if (iNdEx + skippy) < 0 {
- return ErrInvalidLengthOnebotEvent
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
- iNdEx += skippy
- }
- }
-
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
-}
-func (m *GroupUploadNoticeEvent_File) Unmarshal(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotEvent
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: File: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: File: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- case 1:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotEvent
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthOnebotEvent
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthOnebotEvent
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.Id = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- case 2:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotEvent
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthOnebotEvent
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthOnebotEvent
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.Name = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- case 3:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field Size_", wireType)
- }
- m.Size_ = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotEvent
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.Size_ |= int64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 4:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field Busid", wireType)
- }
- m.Busid = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotEvent
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.Busid |= int64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 5:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Url", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotEvent
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthOnebotEvent
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthOnebotEvent
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.Url = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- default:
- iNdEx = preIndex
- skippy, err := skipOnebotEvent(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if skippy < 0 {
- return ErrInvalidLengthOnebotEvent
- }
- if (iNdEx + skippy) < 0 {
- return ErrInvalidLengthOnebotEvent
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
- iNdEx += skippy
- }
- }
-
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
-}
-func (m *GroupAdminNoticeEvent) Unmarshal(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotEvent
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: GroupAdminNoticeEvent: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: GroupAdminNoticeEvent: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- case 1:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field Time", wireType)
- }
- m.Time = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotEvent
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.Time |= int64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 2:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field SelfId", wireType)
- }
- m.SelfId = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotEvent
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.SelfId |= int64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 3:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field PostType", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotEvent
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthOnebotEvent
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthOnebotEvent
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.PostType = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- case 4:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field NoticeType", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotEvent
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthOnebotEvent
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthOnebotEvent
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.NoticeType = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- case 5:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field SubType", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotEvent
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthOnebotEvent
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthOnebotEvent
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.SubType = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- case 6:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field GroupId", wireType)
- }
- m.GroupId = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotEvent
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.GroupId |= int64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 7:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field UserId", wireType)
- }
- m.UserId = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotEvent
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.UserId |= int64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 255:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Extra", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotEvent
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return ErrInvalidLengthOnebotEvent
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return ErrInvalidLengthOnebotEvent
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- if m.Extra == nil {
- m.Extra = make(map[string]string)
- }
- var mapkey string
- var mapvalue string
- for iNdEx < postIndex {
- entryPreIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotEvent
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- if fieldNum == 1 {
- var stringLenmapkey uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotEvent
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLenmapkey |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLenmapkey := int(stringLenmapkey)
- if intStringLenmapkey < 0 {
- return ErrInvalidLengthOnebotEvent
- }
- postStringIndexmapkey := iNdEx + intStringLenmapkey
- if postStringIndexmapkey < 0 {
- return ErrInvalidLengthOnebotEvent
- }
- if postStringIndexmapkey > l {
- return io.ErrUnexpectedEOF
- }
- mapkey = string(dAtA[iNdEx:postStringIndexmapkey])
- iNdEx = postStringIndexmapkey
- } else if fieldNum == 2 {
- var stringLenmapvalue uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotEvent
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLenmapvalue |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLenmapvalue := int(stringLenmapvalue)
- if intStringLenmapvalue < 0 {
- return ErrInvalidLengthOnebotEvent
- }
- postStringIndexmapvalue := iNdEx + intStringLenmapvalue
- if postStringIndexmapvalue < 0 {
- return ErrInvalidLengthOnebotEvent
- }
- if postStringIndexmapvalue > l {
- return io.ErrUnexpectedEOF
- }
- mapvalue = string(dAtA[iNdEx:postStringIndexmapvalue])
- iNdEx = postStringIndexmapvalue
- } else {
- iNdEx = entryPreIndex
- skippy, err := skipOnebotEvent(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if skippy < 0 {
- return ErrInvalidLengthOnebotEvent
- }
- if (iNdEx + skippy) > postIndex {
- return io.ErrUnexpectedEOF
- }
- iNdEx += skippy
- }
- }
- m.Extra[mapkey] = mapvalue
- iNdEx = postIndex
- default:
- iNdEx = preIndex
- skippy, err := skipOnebotEvent(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if skippy < 0 {
- return ErrInvalidLengthOnebotEvent
- }
- if (iNdEx + skippy) < 0 {
- return ErrInvalidLengthOnebotEvent
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
- iNdEx += skippy
- }
- }
-
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
-}
-func (m *GroupDecreaseNoticeEvent) Unmarshal(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotEvent
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: GroupDecreaseNoticeEvent: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: GroupDecreaseNoticeEvent: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- case 1:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field Time", wireType)
- }
- m.Time = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotEvent
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.Time |= int64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 2:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field SelfId", wireType)
- }
- m.SelfId = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotEvent
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.SelfId |= int64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 3:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field PostType", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotEvent
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthOnebotEvent
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthOnebotEvent
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.PostType = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- case 4:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field NoticeType", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotEvent
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthOnebotEvent
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthOnebotEvent
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.NoticeType = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- case 5:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field SubType", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotEvent
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthOnebotEvent
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthOnebotEvent
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.SubType = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- case 6:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field GroupId", wireType)
- }
- m.GroupId = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotEvent
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.GroupId |= int64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 7:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field OperatorId", wireType)
- }
- m.OperatorId = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotEvent
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.OperatorId |= int64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 8:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field UserId", wireType)
- }
- m.UserId = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotEvent
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.UserId |= int64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 255:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Extra", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotEvent
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return ErrInvalidLengthOnebotEvent
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return ErrInvalidLengthOnebotEvent
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- if m.Extra == nil {
- m.Extra = make(map[string]string)
- }
- var mapkey string
- var mapvalue string
- for iNdEx < postIndex {
- entryPreIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotEvent
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- if fieldNum == 1 {
- var stringLenmapkey uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotEvent
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLenmapkey |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLenmapkey := int(stringLenmapkey)
- if intStringLenmapkey < 0 {
- return ErrInvalidLengthOnebotEvent
- }
- postStringIndexmapkey := iNdEx + intStringLenmapkey
- if postStringIndexmapkey < 0 {
- return ErrInvalidLengthOnebotEvent
- }
- if postStringIndexmapkey > l {
- return io.ErrUnexpectedEOF
- }
- mapkey = string(dAtA[iNdEx:postStringIndexmapkey])
- iNdEx = postStringIndexmapkey
- } else if fieldNum == 2 {
- var stringLenmapvalue uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotEvent
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLenmapvalue |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLenmapvalue := int(stringLenmapvalue)
- if intStringLenmapvalue < 0 {
- return ErrInvalidLengthOnebotEvent
- }
- postStringIndexmapvalue := iNdEx + intStringLenmapvalue
- if postStringIndexmapvalue < 0 {
- return ErrInvalidLengthOnebotEvent
- }
- if postStringIndexmapvalue > l {
- return io.ErrUnexpectedEOF
- }
- mapvalue = string(dAtA[iNdEx:postStringIndexmapvalue])
- iNdEx = postStringIndexmapvalue
- } else {
- iNdEx = entryPreIndex
- skippy, err := skipOnebotEvent(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if skippy < 0 {
- return ErrInvalidLengthOnebotEvent
- }
- if (iNdEx + skippy) > postIndex {
- return io.ErrUnexpectedEOF
- }
- iNdEx += skippy
- }
- }
- m.Extra[mapkey] = mapvalue
- iNdEx = postIndex
- default:
- iNdEx = preIndex
- skippy, err := skipOnebotEvent(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if skippy < 0 {
- return ErrInvalidLengthOnebotEvent
- }
- if (iNdEx + skippy) < 0 {
- return ErrInvalidLengthOnebotEvent
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
- iNdEx += skippy
- }
- }
-
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
-}
-func (m *GroupIncreaseNoticeEvent) Unmarshal(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotEvent
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: GroupIncreaseNoticeEvent: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: GroupIncreaseNoticeEvent: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- case 1:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field Time", wireType)
- }
- m.Time = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotEvent
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.Time |= int64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 2:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field SelfId", wireType)
- }
- m.SelfId = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotEvent
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.SelfId |= int64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 3:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field PostType", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotEvent
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthOnebotEvent
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthOnebotEvent
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.PostType = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- case 4:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field NoticeType", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotEvent
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthOnebotEvent
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthOnebotEvent
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.NoticeType = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- case 5:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field SubType", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotEvent
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthOnebotEvent
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthOnebotEvent
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.SubType = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- case 6:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field GroupId", wireType)
- }
- m.GroupId = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotEvent
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.GroupId |= int64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 7:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field OperatorId", wireType)
- }
- m.OperatorId = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotEvent
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.OperatorId |= int64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 8:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field UserId", wireType)
- }
- m.UserId = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotEvent
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.UserId |= int64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 255:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Extra", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotEvent
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return ErrInvalidLengthOnebotEvent
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return ErrInvalidLengthOnebotEvent
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- if m.Extra == nil {
- m.Extra = make(map[string]string)
- }
- var mapkey string
- var mapvalue string
- for iNdEx < postIndex {
- entryPreIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotEvent
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- if fieldNum == 1 {
- var stringLenmapkey uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotEvent
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLenmapkey |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLenmapkey := int(stringLenmapkey)
- if intStringLenmapkey < 0 {
- return ErrInvalidLengthOnebotEvent
- }
- postStringIndexmapkey := iNdEx + intStringLenmapkey
- if postStringIndexmapkey < 0 {
- return ErrInvalidLengthOnebotEvent
- }
- if postStringIndexmapkey > l {
- return io.ErrUnexpectedEOF
- }
- mapkey = string(dAtA[iNdEx:postStringIndexmapkey])
- iNdEx = postStringIndexmapkey
- } else if fieldNum == 2 {
- var stringLenmapvalue uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotEvent
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLenmapvalue |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLenmapvalue := int(stringLenmapvalue)
- if intStringLenmapvalue < 0 {
- return ErrInvalidLengthOnebotEvent
- }
- postStringIndexmapvalue := iNdEx + intStringLenmapvalue
- if postStringIndexmapvalue < 0 {
- return ErrInvalidLengthOnebotEvent
- }
- if postStringIndexmapvalue > l {
- return io.ErrUnexpectedEOF
- }
- mapvalue = string(dAtA[iNdEx:postStringIndexmapvalue])
- iNdEx = postStringIndexmapvalue
- } else {
- iNdEx = entryPreIndex
- skippy, err := skipOnebotEvent(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if skippy < 0 {
- return ErrInvalidLengthOnebotEvent
- }
- if (iNdEx + skippy) > postIndex {
- return io.ErrUnexpectedEOF
- }
- iNdEx += skippy
- }
- }
- m.Extra[mapkey] = mapvalue
- iNdEx = postIndex
- default:
- iNdEx = preIndex
- skippy, err := skipOnebotEvent(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if skippy < 0 {
- return ErrInvalidLengthOnebotEvent
- }
- if (iNdEx + skippy) < 0 {
- return ErrInvalidLengthOnebotEvent
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
- iNdEx += skippy
- }
- }
-
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
-}
-func (m *GroupBanNoticeEvent) Unmarshal(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotEvent
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: GroupBanNoticeEvent: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: GroupBanNoticeEvent: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- case 1:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field Time", wireType)
- }
- m.Time = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotEvent
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.Time |= int64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 2:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field SelfId", wireType)
- }
- m.SelfId = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotEvent
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.SelfId |= int64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 3:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field PostType", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotEvent
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthOnebotEvent
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthOnebotEvent
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.PostType = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- case 4:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field NoticeType", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotEvent
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthOnebotEvent
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthOnebotEvent
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.NoticeType = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- case 5:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field SubType", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotEvent
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthOnebotEvent
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthOnebotEvent
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.SubType = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- case 6:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field GroupId", wireType)
- }
- m.GroupId = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotEvent
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.GroupId |= int64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 7:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field OperatorId", wireType)
- }
- m.OperatorId = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotEvent
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.OperatorId |= int64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 8:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field UserId", wireType)
- }
- m.UserId = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotEvent
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.UserId |= int64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 9:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field Duration", wireType)
- }
- m.Duration = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotEvent
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.Duration |= int64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 255:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Extra", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotEvent
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return ErrInvalidLengthOnebotEvent
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return ErrInvalidLengthOnebotEvent
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- if m.Extra == nil {
- m.Extra = make(map[string]string)
- }
- var mapkey string
- var mapvalue string
- for iNdEx < postIndex {
- entryPreIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotEvent
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- if fieldNum == 1 {
- var stringLenmapkey uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotEvent
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLenmapkey |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLenmapkey := int(stringLenmapkey)
- if intStringLenmapkey < 0 {
- return ErrInvalidLengthOnebotEvent
- }
- postStringIndexmapkey := iNdEx + intStringLenmapkey
- if postStringIndexmapkey < 0 {
- return ErrInvalidLengthOnebotEvent
- }
- if postStringIndexmapkey > l {
- return io.ErrUnexpectedEOF
- }
- mapkey = string(dAtA[iNdEx:postStringIndexmapkey])
- iNdEx = postStringIndexmapkey
- } else if fieldNum == 2 {
- var stringLenmapvalue uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotEvent
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLenmapvalue |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLenmapvalue := int(stringLenmapvalue)
- if intStringLenmapvalue < 0 {
- return ErrInvalidLengthOnebotEvent
- }
- postStringIndexmapvalue := iNdEx + intStringLenmapvalue
- if postStringIndexmapvalue < 0 {
- return ErrInvalidLengthOnebotEvent
- }
- if postStringIndexmapvalue > l {
- return io.ErrUnexpectedEOF
- }
- mapvalue = string(dAtA[iNdEx:postStringIndexmapvalue])
- iNdEx = postStringIndexmapvalue
- } else {
- iNdEx = entryPreIndex
- skippy, err := skipOnebotEvent(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if skippy < 0 {
- return ErrInvalidLengthOnebotEvent
- }
- if (iNdEx + skippy) > postIndex {
- return io.ErrUnexpectedEOF
- }
- iNdEx += skippy
- }
- }
- m.Extra[mapkey] = mapvalue
- iNdEx = postIndex
- default:
- iNdEx = preIndex
- skippy, err := skipOnebotEvent(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if skippy < 0 {
- return ErrInvalidLengthOnebotEvent
- }
- if (iNdEx + skippy) < 0 {
- return ErrInvalidLengthOnebotEvent
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
- iNdEx += skippy
- }
- }
-
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
-}
-func (m *FriendAddNoticeEvent) Unmarshal(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotEvent
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: FriendAddNoticeEvent: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: FriendAddNoticeEvent: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- case 1:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field Time", wireType)
- }
- m.Time = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotEvent
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.Time |= int64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 2:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field SelfId", wireType)
- }
- m.SelfId = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotEvent
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.SelfId |= int64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 3:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field PostType", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotEvent
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthOnebotEvent
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthOnebotEvent
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.PostType = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- case 4:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field NoticeType", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotEvent
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthOnebotEvent
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthOnebotEvent
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.NoticeType = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- case 5:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field UserId", wireType)
- }
- m.UserId = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotEvent
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.UserId |= int64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 255:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Extra", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotEvent
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return ErrInvalidLengthOnebotEvent
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return ErrInvalidLengthOnebotEvent
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- if m.Extra == nil {
- m.Extra = make(map[string]string)
- }
- var mapkey string
- var mapvalue string
- for iNdEx < postIndex {
- entryPreIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotEvent
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- if fieldNum == 1 {
- var stringLenmapkey uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotEvent
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLenmapkey |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLenmapkey := int(stringLenmapkey)
- if intStringLenmapkey < 0 {
- return ErrInvalidLengthOnebotEvent
- }
- postStringIndexmapkey := iNdEx + intStringLenmapkey
- if postStringIndexmapkey < 0 {
- return ErrInvalidLengthOnebotEvent
- }
- if postStringIndexmapkey > l {
- return io.ErrUnexpectedEOF
- }
- mapkey = string(dAtA[iNdEx:postStringIndexmapkey])
- iNdEx = postStringIndexmapkey
- } else if fieldNum == 2 {
- var stringLenmapvalue uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotEvent
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLenmapvalue |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLenmapvalue := int(stringLenmapvalue)
- if intStringLenmapvalue < 0 {
- return ErrInvalidLengthOnebotEvent
- }
- postStringIndexmapvalue := iNdEx + intStringLenmapvalue
- if postStringIndexmapvalue < 0 {
- return ErrInvalidLengthOnebotEvent
- }
- if postStringIndexmapvalue > l {
- return io.ErrUnexpectedEOF
- }
- mapvalue = string(dAtA[iNdEx:postStringIndexmapvalue])
- iNdEx = postStringIndexmapvalue
- } else {
- iNdEx = entryPreIndex
- skippy, err := skipOnebotEvent(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if skippy < 0 {
- return ErrInvalidLengthOnebotEvent
- }
- if (iNdEx + skippy) > postIndex {
- return io.ErrUnexpectedEOF
- }
- iNdEx += skippy
- }
- }
- m.Extra[mapkey] = mapvalue
- iNdEx = postIndex
- default:
- iNdEx = preIndex
- skippy, err := skipOnebotEvent(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if skippy < 0 {
- return ErrInvalidLengthOnebotEvent
- }
- if (iNdEx + skippy) < 0 {
- return ErrInvalidLengthOnebotEvent
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
- iNdEx += skippy
- }
- }
-
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
-}
-func (m *GroupRecallNoticeEvent) Unmarshal(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotEvent
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: GroupRecallNoticeEvent: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: GroupRecallNoticeEvent: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- case 1:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field Time", wireType)
- }
- m.Time = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotEvent
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.Time |= int64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 2:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field SelfId", wireType)
- }
- m.SelfId = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotEvent
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.SelfId |= int64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 3:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field PostType", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotEvent
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthOnebotEvent
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthOnebotEvent
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.PostType = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- case 4:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field NoticeType", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotEvent
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthOnebotEvent
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthOnebotEvent
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.NoticeType = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- case 5:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field GroupId", wireType)
- }
- m.GroupId = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotEvent
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.GroupId |= int64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 6:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field UserId", wireType)
- }
- m.UserId = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotEvent
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.UserId |= int64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 7:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field OperatorId", wireType)
- }
- m.OperatorId = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotEvent
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.OperatorId |= int64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 9:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field MessageId", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotEvent
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return ErrInvalidLengthOnebotEvent
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return ErrInvalidLengthOnebotEvent
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- if m.MessageId == nil {
- m.MessageId = &MessageReceipt{}
- }
- if err := m.MessageId.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- iNdEx = postIndex
- case 255:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Extra", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotEvent
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return ErrInvalidLengthOnebotEvent
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return ErrInvalidLengthOnebotEvent
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- if m.Extra == nil {
- m.Extra = make(map[string]string)
- }
- var mapkey string
- var mapvalue string
- for iNdEx < postIndex {
- entryPreIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotEvent
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- if fieldNum == 1 {
- var stringLenmapkey uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotEvent
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLenmapkey |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLenmapkey := int(stringLenmapkey)
- if intStringLenmapkey < 0 {
- return ErrInvalidLengthOnebotEvent
- }
- postStringIndexmapkey := iNdEx + intStringLenmapkey
- if postStringIndexmapkey < 0 {
- return ErrInvalidLengthOnebotEvent
- }
- if postStringIndexmapkey > l {
- return io.ErrUnexpectedEOF
- }
- mapkey = string(dAtA[iNdEx:postStringIndexmapkey])
- iNdEx = postStringIndexmapkey
- } else if fieldNum == 2 {
- var stringLenmapvalue uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotEvent
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLenmapvalue |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLenmapvalue := int(stringLenmapvalue)
- if intStringLenmapvalue < 0 {
- return ErrInvalidLengthOnebotEvent
- }
- postStringIndexmapvalue := iNdEx + intStringLenmapvalue
- if postStringIndexmapvalue < 0 {
- return ErrInvalidLengthOnebotEvent
- }
- if postStringIndexmapvalue > l {
- return io.ErrUnexpectedEOF
- }
- mapvalue = string(dAtA[iNdEx:postStringIndexmapvalue])
- iNdEx = postStringIndexmapvalue
- } else {
- iNdEx = entryPreIndex
- skippy, err := skipOnebotEvent(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if skippy < 0 {
- return ErrInvalidLengthOnebotEvent
- }
- if (iNdEx + skippy) > postIndex {
- return io.ErrUnexpectedEOF
- }
- iNdEx += skippy
- }
- }
- m.Extra[mapkey] = mapvalue
- iNdEx = postIndex
- default:
- iNdEx = preIndex
- skippy, err := skipOnebotEvent(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if skippy < 0 {
- return ErrInvalidLengthOnebotEvent
- }
- if (iNdEx + skippy) < 0 {
- return ErrInvalidLengthOnebotEvent
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
- iNdEx += skippy
- }
- }
-
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
-}
-func (m *FriendRecallNoticeEvent) Unmarshal(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotEvent
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: FriendRecallNoticeEvent: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: FriendRecallNoticeEvent: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- case 1:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field Time", wireType)
- }
- m.Time = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotEvent
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.Time |= int64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 2:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field SelfId", wireType)
- }
- m.SelfId = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotEvent
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.SelfId |= int64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 3:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field PostType", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotEvent
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthOnebotEvent
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthOnebotEvent
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.PostType = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- case 4:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field NoticeType", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotEvent
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthOnebotEvent
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthOnebotEvent
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.NoticeType = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- case 5:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field UserId", wireType)
- }
- m.UserId = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotEvent
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.UserId |= int64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 7:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field MessageId", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotEvent
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return ErrInvalidLengthOnebotEvent
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return ErrInvalidLengthOnebotEvent
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- if m.MessageId == nil {
- m.MessageId = &MessageReceipt{}
- }
- if err := m.MessageId.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- iNdEx = postIndex
- case 255:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Extra", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotEvent
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return ErrInvalidLengthOnebotEvent
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return ErrInvalidLengthOnebotEvent
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- if m.Extra == nil {
- m.Extra = make(map[string]string)
- }
- var mapkey string
- var mapvalue string
- for iNdEx < postIndex {
- entryPreIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotEvent
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- if fieldNum == 1 {
- var stringLenmapkey uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotEvent
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLenmapkey |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLenmapkey := int(stringLenmapkey)
- if intStringLenmapkey < 0 {
- return ErrInvalidLengthOnebotEvent
- }
- postStringIndexmapkey := iNdEx + intStringLenmapkey
- if postStringIndexmapkey < 0 {
- return ErrInvalidLengthOnebotEvent
- }
- if postStringIndexmapkey > l {
- return io.ErrUnexpectedEOF
- }
- mapkey = string(dAtA[iNdEx:postStringIndexmapkey])
- iNdEx = postStringIndexmapkey
- } else if fieldNum == 2 {
- var stringLenmapvalue uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotEvent
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLenmapvalue |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLenmapvalue := int(stringLenmapvalue)
- if intStringLenmapvalue < 0 {
- return ErrInvalidLengthOnebotEvent
- }
- postStringIndexmapvalue := iNdEx + intStringLenmapvalue
- if postStringIndexmapvalue < 0 {
- return ErrInvalidLengthOnebotEvent
- }
- if postStringIndexmapvalue > l {
- return io.ErrUnexpectedEOF
- }
- mapvalue = string(dAtA[iNdEx:postStringIndexmapvalue])
- iNdEx = postStringIndexmapvalue
- } else {
- iNdEx = entryPreIndex
- skippy, err := skipOnebotEvent(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if skippy < 0 {
- return ErrInvalidLengthOnebotEvent
- }
- if (iNdEx + skippy) > postIndex {
- return io.ErrUnexpectedEOF
- }
- iNdEx += skippy
- }
- }
- m.Extra[mapkey] = mapvalue
- iNdEx = postIndex
- default:
- iNdEx = preIndex
- skippy, err := skipOnebotEvent(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if skippy < 0 {
- return ErrInvalidLengthOnebotEvent
- }
- if (iNdEx + skippy) < 0 {
- return ErrInvalidLengthOnebotEvent
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
- iNdEx += skippy
- }
- }
-
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
-}
-func (m *FriendRequestEvent) Unmarshal(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotEvent
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: FriendRequestEvent: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: FriendRequestEvent: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- case 1:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field Time", wireType)
- }
- m.Time = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotEvent
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.Time |= int64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 2:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field SelfId", wireType)
- }
- m.SelfId = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotEvent
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.SelfId |= int64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 3:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field PostType", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotEvent
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthOnebotEvent
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthOnebotEvent
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.PostType = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- case 4:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field RequestType", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotEvent
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthOnebotEvent
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthOnebotEvent
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.RequestType = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- case 5:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field UserId", wireType)
- }
- m.UserId = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotEvent
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.UserId |= int64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 6:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Comment", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotEvent
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthOnebotEvent
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthOnebotEvent
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.Comment = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- case 7:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Flag", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotEvent
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthOnebotEvent
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthOnebotEvent
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.Flag = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- case 255:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Extra", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotEvent
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return ErrInvalidLengthOnebotEvent
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return ErrInvalidLengthOnebotEvent
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- if m.Extra == nil {
- m.Extra = make(map[string]string)
- }
- var mapkey string
- var mapvalue string
- for iNdEx < postIndex {
- entryPreIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotEvent
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- if fieldNum == 1 {
- var stringLenmapkey uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotEvent
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLenmapkey |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLenmapkey := int(stringLenmapkey)
- if intStringLenmapkey < 0 {
- return ErrInvalidLengthOnebotEvent
- }
- postStringIndexmapkey := iNdEx + intStringLenmapkey
- if postStringIndexmapkey < 0 {
- return ErrInvalidLengthOnebotEvent
- }
- if postStringIndexmapkey > l {
- return io.ErrUnexpectedEOF
- }
- mapkey = string(dAtA[iNdEx:postStringIndexmapkey])
- iNdEx = postStringIndexmapkey
- } else if fieldNum == 2 {
- var stringLenmapvalue uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotEvent
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLenmapvalue |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLenmapvalue := int(stringLenmapvalue)
- if intStringLenmapvalue < 0 {
- return ErrInvalidLengthOnebotEvent
- }
- postStringIndexmapvalue := iNdEx + intStringLenmapvalue
- if postStringIndexmapvalue < 0 {
- return ErrInvalidLengthOnebotEvent
- }
- if postStringIndexmapvalue > l {
- return io.ErrUnexpectedEOF
- }
- mapvalue = string(dAtA[iNdEx:postStringIndexmapvalue])
- iNdEx = postStringIndexmapvalue
- } else {
- iNdEx = entryPreIndex
- skippy, err := skipOnebotEvent(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if skippy < 0 {
- return ErrInvalidLengthOnebotEvent
- }
- if (iNdEx + skippy) > postIndex {
- return io.ErrUnexpectedEOF
- }
- iNdEx += skippy
- }
- }
- m.Extra[mapkey] = mapvalue
- iNdEx = postIndex
- default:
- iNdEx = preIndex
- skippy, err := skipOnebotEvent(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if skippy < 0 {
- return ErrInvalidLengthOnebotEvent
- }
- if (iNdEx + skippy) < 0 {
- return ErrInvalidLengthOnebotEvent
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
- iNdEx += skippy
- }
- }
-
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
+ return ""
}
-func (m *GroupRequestEvent) Unmarshal(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotEvent
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: GroupRequestEvent: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: GroupRequestEvent: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- case 1:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field Time", wireType)
- }
- m.Time = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotEvent
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.Time |= int64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 2:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field SelfId", wireType)
- }
- m.SelfId = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotEvent
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.SelfId |= int64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 3:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field PostType", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotEvent
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthOnebotEvent
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthOnebotEvent
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.PostType = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- case 4:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field RequestType", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotEvent
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthOnebotEvent
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthOnebotEvent
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.RequestType = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- case 5:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field SubType", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotEvent
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthOnebotEvent
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthOnebotEvent
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.SubType = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- case 6:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field GroupId", wireType)
- }
- m.GroupId = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotEvent
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.GroupId |= int64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 7:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field UserId", wireType)
- }
- m.UserId = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotEvent
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.UserId |= int64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 8:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Comment", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotEvent
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthOnebotEvent
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthOnebotEvent
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.Comment = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- case 9:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Flag", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotEvent
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthOnebotEvent
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthOnebotEvent
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.Flag = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- case 255:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Extra", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotEvent
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return ErrInvalidLengthOnebotEvent
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return ErrInvalidLengthOnebotEvent
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- if m.Extra == nil {
- m.Extra = make(map[string]string)
- }
- var mapkey string
- var mapvalue string
- for iNdEx < postIndex {
- entryPreIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotEvent
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- if fieldNum == 1 {
- var stringLenmapkey uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotEvent
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLenmapkey |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLenmapkey := int(stringLenmapkey)
- if intStringLenmapkey < 0 {
- return ErrInvalidLengthOnebotEvent
- }
- postStringIndexmapkey := iNdEx + intStringLenmapkey
- if postStringIndexmapkey < 0 {
- return ErrInvalidLengthOnebotEvent
- }
- if postStringIndexmapkey > l {
- return io.ErrUnexpectedEOF
- }
- mapkey = string(dAtA[iNdEx:postStringIndexmapkey])
- iNdEx = postStringIndexmapkey
- } else if fieldNum == 2 {
- var stringLenmapvalue uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotEvent
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLenmapvalue |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLenmapvalue := int(stringLenmapvalue)
- if intStringLenmapvalue < 0 {
- return ErrInvalidLengthOnebotEvent
- }
- postStringIndexmapvalue := iNdEx + intStringLenmapvalue
- if postStringIndexmapvalue < 0 {
- return ErrInvalidLengthOnebotEvent
- }
- if postStringIndexmapvalue > l {
- return io.ErrUnexpectedEOF
- }
- mapvalue = string(dAtA[iNdEx:postStringIndexmapvalue])
- iNdEx = postStringIndexmapvalue
- } else {
- iNdEx = entryPreIndex
- skippy, err := skipOnebotEvent(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if skippy < 0 {
- return ErrInvalidLengthOnebotEvent
- }
- if (iNdEx + skippy) > postIndex {
- return io.ErrUnexpectedEOF
- }
- iNdEx += skippy
- }
- }
- m.Extra[mapkey] = mapvalue
- iNdEx = postIndex
- default:
- iNdEx = preIndex
- skippy, err := skipOnebotEvent(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if skippy < 0 {
- return ErrInvalidLengthOnebotEvent
- }
- if (iNdEx + skippy) < 0 {
- return ErrInvalidLengthOnebotEvent
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
- iNdEx += skippy
- }
- }
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
-}
-func skipOnebotEvent(dAtA []byte) (n int, err error) {
- l := len(dAtA)
- iNdEx := 0
- depth := 0
- for iNdEx < l {
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return 0, ErrIntOverflowOnebotEvent
- }
- if iNdEx >= l {
- return 0, io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= (uint64(b) & 0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- wireType := int(wire & 0x7)
- switch wireType {
- case 0:
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return 0, ErrIntOverflowOnebotEvent
- }
- if iNdEx >= l {
- return 0, io.ErrUnexpectedEOF
- }
- iNdEx++
- if dAtA[iNdEx-1] < 0x80 {
- break
- }
- }
- case 1:
- iNdEx += 8
- case 2:
- var length int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return 0, ErrIntOverflowOnebotEvent
- }
- if iNdEx >= l {
- return 0, io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- length |= (int(b) & 0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if length < 0 {
- return 0, ErrInvalidLengthOnebotEvent
- }
- iNdEx += length
- case 3:
- depth++
- case 4:
- if depth == 0 {
- return 0, ErrUnexpectedEndOfGroupOnebotEvent
- }
- depth--
- case 5:
- iNdEx += 4
- default:
- return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
- }
- if iNdEx < 0 {
- return 0, ErrInvalidLengthOnebotEvent
- }
- if depth == 0 {
- return iNdEx, nil
- }
- }
- return 0, io.ErrUnexpectedEOF
+var File_onebot_event_proto protoreflect.FileDescriptor
+
+var file_onebot_event_proto_rawDesc = []byte{
+ 0x0a, 0x12, 0x6f, 0x6e, 0x65, 0x62, 0x6f, 0x74, 0x5f, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x2e, 0x70,
+ 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x06, 0x6f, 0x6e, 0x65, 0x62, 0x6f, 0x74, 0x1a, 0x11, 0x6f, 0x6e,
+ 0x65, 0x62, 0x6f, 0x74, 0x5f, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22,
+ 0x8e, 0x05, 0x0a, 0x13, 0x50, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x4d, 0x65, 0x73, 0x73, 0x61,
+ 0x67, 0x65, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x69, 0x6d, 0x65, 0x18,
+ 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x04, 0x74, 0x69, 0x6d, 0x65, 0x12, 0x17, 0x0a, 0x07, 0x73,
+ 0x65, 0x6c, 0x66, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x73, 0x65,
+ 0x6c, 0x66, 0x49, 0x64, 0x12, 0x1b, 0x0a, 0x09, 0x70, 0x6f, 0x73, 0x74, 0x5f, 0x74, 0x79, 0x70,
+ 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x70, 0x6f, 0x73, 0x74, 0x54, 0x79, 0x70,
+ 0x65, 0x12, 0x21, 0x0a, 0x0c, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x79, 0x70,
+ 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65,
+ 0x54, 0x79, 0x70, 0x65, 0x12, 0x19, 0x0a, 0x08, 0x73, 0x75, 0x62, 0x5f, 0x74, 0x79, 0x70, 0x65,
+ 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x73, 0x75, 0x62, 0x54, 0x79, 0x70, 0x65, 0x12,
+ 0x1d, 0x0a, 0x0a, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x06, 0x20,
+ 0x01, 0x28, 0x05, 0x52, 0x09, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x49, 0x64, 0x12, 0x17,
+ 0x0a, 0x07, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x07, 0x20, 0x01, 0x28, 0x03, 0x52,
+ 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x12, 0x29, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61,
+ 0x67, 0x65, 0x18, 0x08, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x6f, 0x6e, 0x65, 0x62, 0x6f,
+ 0x74, 0x2e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61,
+ 0x67, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x72, 0x61, 0x77, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67,
+ 0x65, 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x72, 0x61, 0x77, 0x4d, 0x65, 0x73, 0x73,
+ 0x61, 0x67, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x66, 0x6f, 0x6e, 0x74, 0x18, 0x0a, 0x20, 0x01, 0x28,
+ 0x05, 0x52, 0x04, 0x66, 0x6f, 0x6e, 0x74, 0x12, 0x3a, 0x0a, 0x06, 0x73, 0x65, 0x6e, 0x64, 0x65,
+ 0x72, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x6f, 0x6e, 0x65, 0x62, 0x6f, 0x74,
+ 0x2e, 0x50, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x45,
+ 0x76, 0x65, 0x6e, 0x74, 0x2e, 0x53, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x52, 0x06, 0x73, 0x65, 0x6e,
+ 0x64, 0x65, 0x72, 0x12, 0x3f, 0x0a, 0x0f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, 0x72,
+ 0x65, 0x63, 0x65, 0x69, 0x70, 0x74, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x6f,
+ 0x6e, 0x65, 0x62, 0x6f, 0x74, 0x2e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x65, 0x63,
+ 0x65, 0x69, 0x70, 0x74, 0x52, 0x0e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x65, 0x63,
+ 0x65, 0x69, 0x70, 0x74, 0x12, 0x3d, 0x0a, 0x05, 0x65, 0x78, 0x74, 0x72, 0x61, 0x18, 0xff, 0x01,
+ 0x20, 0x03, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x6f, 0x6e, 0x65, 0x62, 0x6f, 0x74, 0x2e, 0x50, 0x72,
+ 0x69, 0x76, 0x61, 0x74, 0x65, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x45, 0x76, 0x65, 0x6e,
+ 0x74, 0x2e, 0x45, 0x78, 0x74, 0x72, 0x61, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x05, 0x65, 0x78,
+ 0x74, 0x72, 0x61, 0x1a, 0x61, 0x0a, 0x06, 0x53, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x12, 0x17, 0x0a,
+ 0x07, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06,
+ 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x6e, 0x69, 0x63, 0x6b, 0x6e, 0x61,
+ 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6e, 0x69, 0x63, 0x6b, 0x6e, 0x61,
+ 0x6d, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x73, 0x65, 0x78, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52,
+ 0x03, 0x73, 0x65, 0x78, 0x12, 0x10, 0x0a, 0x03, 0x61, 0x67, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28,
+ 0x05, 0x52, 0x03, 0x61, 0x67, 0x65, 0x1a, 0x38, 0x0a, 0x0a, 0x45, 0x78, 0x74, 0x72, 0x61, 0x45,
+ 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28,
+ 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18,
+ 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01,
+ 0x22, 0x94, 0x07, 0x0a, 0x11, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67,
+ 0x65, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x01,
+ 0x20, 0x01, 0x28, 0x03, 0x52, 0x04, 0x74, 0x69, 0x6d, 0x65, 0x12, 0x17, 0x0a, 0x07, 0x73, 0x65,
+ 0x6c, 0x66, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x73, 0x65, 0x6c,
+ 0x66, 0x49, 0x64, 0x12, 0x1b, 0x0a, 0x09, 0x70, 0x6f, 0x73, 0x74, 0x5f, 0x74, 0x79, 0x70, 0x65,
+ 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x70, 0x6f, 0x73, 0x74, 0x54, 0x79, 0x70, 0x65,
+ 0x12, 0x21, 0x0a, 0x0c, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x79, 0x70, 0x65,
+ 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x54,
+ 0x79, 0x70, 0x65, 0x12, 0x19, 0x0a, 0x08, 0x73, 0x75, 0x62, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18,
+ 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x73, 0x75, 0x62, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1d,
+ 0x0a, 0x0a, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x06, 0x20, 0x01,
+ 0x28, 0x05, 0x52, 0x09, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x49, 0x64, 0x12, 0x19, 0x0a,
+ 0x08, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x5f, 0x69, 0x64, 0x18, 0x07, 0x20, 0x01, 0x28, 0x03, 0x52,
+ 0x07, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x49, 0x64, 0x12, 0x17, 0x0a, 0x07, 0x75, 0x73, 0x65, 0x72,
+ 0x5f, 0x69, 0x64, 0x18, 0x08, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49,
+ 0x64, 0x12, 0x41, 0x0a, 0x09, 0x61, 0x6e, 0x6f, 0x6e, 0x79, 0x6d, 0x6f, 0x75, 0x73, 0x18, 0x09,
+ 0x20, 0x01, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x6f, 0x6e, 0x65, 0x62, 0x6f, 0x74, 0x2e, 0x47, 0x72,
+ 0x6f, 0x75, 0x70, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x2e,
+ 0x41, 0x6e, 0x6f, 0x6e, 0x79, 0x6d, 0x6f, 0x75, 0x73, 0x52, 0x09, 0x61, 0x6e, 0x6f, 0x6e, 0x79,
+ 0x6d, 0x6f, 0x75, 0x73, 0x12, 0x29, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18,
+ 0x0a, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x6f, 0x6e, 0x65, 0x62, 0x6f, 0x74, 0x2e, 0x4d,
+ 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12,
+ 0x1f, 0x0a, 0x0b, 0x72, 0x61, 0x77, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x0b,
+ 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x72, 0x61, 0x77, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65,
+ 0x12, 0x12, 0x0a, 0x04, 0x66, 0x6f, 0x6e, 0x74, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04,
+ 0x66, 0x6f, 0x6e, 0x74, 0x12, 0x38, 0x0a, 0x06, 0x73, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x18, 0x0d,
+ 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x6f, 0x6e, 0x65, 0x62, 0x6f, 0x74, 0x2e, 0x47, 0x72,
+ 0x6f, 0x75, 0x70, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x2e,
+ 0x53, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x52, 0x06, 0x73, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x12, 0x3f,
+ 0x0a, 0x0f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, 0x72, 0x65, 0x63, 0x65, 0x69, 0x70,
+ 0x74, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x6f, 0x6e, 0x65, 0x62, 0x6f, 0x74,
+ 0x2e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x65, 0x63, 0x65, 0x69, 0x70, 0x74, 0x52,
+ 0x0e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x65, 0x63, 0x65, 0x69, 0x70, 0x74, 0x12,
+ 0x3b, 0x0a, 0x05, 0x65, 0x78, 0x74, 0x72, 0x61, 0x18, 0xff, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32,
+ 0x24, 0x2e, 0x6f, 0x6e, 0x65, 0x62, 0x6f, 0x74, 0x2e, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x4d, 0x65,
+ 0x73, 0x73, 0x61, 0x67, 0x65, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x2e, 0x45, 0x78, 0x74, 0x72, 0x61,
+ 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x05, 0x65, 0x78, 0x74, 0x72, 0x61, 0x1a, 0x43, 0x0a, 0x09,
+ 0x41, 0x6e, 0x6f, 0x6e, 0x79, 0x6d, 0x6f, 0x75, 0x73, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18,
+ 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d,
+ 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x12, 0x0a,
+ 0x04, 0x66, 0x6c, 0x61, 0x67, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x66, 0x6c, 0x61,
+ 0x67, 0x1a, 0xc9, 0x01, 0x0a, 0x06, 0x53, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x12, 0x17, 0x0a, 0x07,
+ 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x75,
+ 0x73, 0x65, 0x72, 0x49, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x6e, 0x69, 0x63, 0x6b, 0x6e, 0x61, 0x6d,
+ 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6e, 0x69, 0x63, 0x6b, 0x6e, 0x61, 0x6d,
+ 0x65, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x61, 0x72, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52,
+ 0x04, 0x63, 0x61, 0x72, 0x64, 0x12, 0x10, 0x0a, 0x03, 0x73, 0x65, 0x78, 0x18, 0x04, 0x20, 0x01,
+ 0x28, 0x09, 0x52, 0x03, 0x73, 0x65, 0x78, 0x12, 0x10, 0x0a, 0x03, 0x61, 0x67, 0x65, 0x18, 0x05,
+ 0x20, 0x01, 0x28, 0x05, 0x52, 0x03, 0x61, 0x67, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x61, 0x72, 0x65,
+ 0x61, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x61, 0x72, 0x65, 0x61, 0x12, 0x14, 0x0a,
+ 0x05, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6c, 0x65,
+ 0x76, 0x65, 0x6c, 0x12, 0x12, 0x0a, 0x04, 0x72, 0x6f, 0x6c, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28,
+ 0x09, 0x52, 0x04, 0x72, 0x6f, 0x6c, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65,
+ 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x1a, 0x38, 0x0a,
+ 0x0a, 0x45, 0x78, 0x74, 0x72, 0x61, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b,
+ 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a,
+ 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61,
+ 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0xb0, 0x05, 0x0a, 0x13, 0x43, 0x68, 0x61, 0x6e,
+ 0x6e, 0x65, 0x6c, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x12,
+ 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x02, 0x69, 0x64, 0x12,
+ 0x1f, 0x0a, 0x0b, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x5f, 0x69, 0x64, 0x18, 0x02,
+ 0x20, 0x01, 0x28, 0x04, 0x52, 0x0a, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x49, 0x64,
+ 0x12, 0x19, 0x0a, 0x08, 0x67, 0x75, 0x69, 0x6c, 0x64, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01,
+ 0x28, 0x04, 0x52, 0x07, 0x67, 0x75, 0x69, 0x6c, 0x64, 0x49, 0x64, 0x12, 0x1d, 0x0a, 0x0a, 0x63,
+ 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x04, 0x52,
+ 0x09, 0x63, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x49, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x69,
+ 0x6d, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x52, 0x04, 0x74, 0x69, 0x6d, 0x65, 0x12, 0x17,
+ 0x0a, 0x07, 0x73, 0x65, 0x6c, 0x66, 0x5f, 0x69, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x03, 0x52,
+ 0x06, 0x73, 0x65, 0x6c, 0x66, 0x49, 0x64, 0x12, 0x1b, 0x0a, 0x09, 0x70, 0x6f, 0x73, 0x74, 0x5f,
+ 0x74, 0x79, 0x70, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x70, 0x6f, 0x73, 0x74,
+ 0x54, 0x79, 0x70, 0x65, 0x12, 0x21, 0x0a, 0x0c, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x5f,
+ 0x74, 0x79, 0x70, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x6d, 0x65, 0x73, 0x73,
+ 0x61, 0x67, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x19, 0x0a, 0x08, 0x73, 0x75, 0x62, 0x5f, 0x74,
+ 0x79, 0x70, 0x65, 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x73, 0x75, 0x62, 0x54, 0x79,
+ 0x70, 0x65, 0x12, 0x29, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x0a, 0x20,
+ 0x03, 0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x6f, 0x6e, 0x65, 0x62, 0x6f, 0x74, 0x2e, 0x4d, 0x65, 0x73,
+ 0x73, 0x61, 0x67, 0x65, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x1f, 0x0a,
+ 0x0b, 0x72, 0x61, 0x77, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x0b, 0x20, 0x01,
+ 0x28, 0x09, 0x52, 0x0a, 0x72, 0x61, 0x77, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x12,
+ 0x0a, 0x04, 0x66, 0x6f, 0x6e, 0x74, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x66, 0x6f,
+ 0x6e, 0x74, 0x12, 0x3a, 0x0a, 0x06, 0x73, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x18, 0x0d, 0x20, 0x01,
+ 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x6f, 0x6e, 0x65, 0x62, 0x6f, 0x74, 0x2e, 0x43, 0x68, 0x61, 0x6e,
+ 0x6e, 0x65, 0x6c, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x2e,
+ 0x53, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x52, 0x06, 0x73, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x12, 0x1d,
+ 0x0a, 0x0a, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x0e, 0x20, 0x01,
+ 0x28, 0x04, 0x52, 0x09, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x49, 0x64, 0x12, 0x3d, 0x0a,
+ 0x05, 0x65, 0x78, 0x74, 0x72, 0x61, 0x18, 0xff, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x26, 0x2e,
+ 0x6f, 0x6e, 0x65, 0x62, 0x6f, 0x74, 0x2e, 0x43, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x4d, 0x65,
+ 0x73, 0x73, 0x61, 0x67, 0x65, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x2e, 0x45, 0x78, 0x74, 0x72, 0x61,
+ 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x05, 0x65, 0x78, 0x74, 0x72, 0x61, 0x1a, 0x72, 0x0a, 0x06,
+ 0x53, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x12, 0x17, 0x0a, 0x07, 0x74, 0x69, 0x6e, 0x79, 0x5f, 0x69,
+ 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x06, 0x74, 0x69, 0x6e, 0x79, 0x49, 0x64, 0x12,
+ 0x1a, 0x0a, 0x08, 0x6e, 0x69, 0x63, 0x6b, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28,
+ 0x09, 0x52, 0x08, 0x6e, 0x69, 0x63, 0x6b, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x72,
+ 0x6f, 0x6c, 0x65, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x04, 0x52, 0x05, 0x72, 0x6f, 0x6c, 0x65,
+ 0x73, 0x12, 0x1d, 0x0a, 0x0a, 0x72, 0x6f, 0x6c, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x18,
+ 0x04, 0x20, 0x03, 0x28, 0x09, 0x52, 0x09, 0x72, 0x6f, 0x6c, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x73,
+ 0x1a, 0x38, 0x0a, 0x0a, 0x45, 0x78, 0x74, 0x72, 0x61, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10,
+ 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79,
+ 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52,
+ 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0xdf, 0x03, 0x0a, 0x15, 0x47,
+ 0x72, 0x6f, 0x75, 0x70, 0x54, 0x65, 0x6d, 0x70, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x45,
+ 0x76, 0x65, 0x6e, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01,
+ 0x28, 0x03, 0x52, 0x04, 0x74, 0x69, 0x6d, 0x65, 0x12, 0x17, 0x0a, 0x07, 0x73, 0x65, 0x6c, 0x66,
+ 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x73, 0x65, 0x6c, 0x66, 0x49,
+ 0x64, 0x12, 0x1b, 0x0a, 0x09, 0x70, 0x6f, 0x73, 0x74, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x03,
+ 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x70, 0x6f, 0x73, 0x74, 0x54, 0x79, 0x70, 0x65, 0x12, 0x21,
+ 0x0a, 0x0c, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x04,
+ 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x54, 0x79, 0x70,
+ 0x65, 0x12, 0x19, 0x0a, 0x08, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x5f, 0x69, 0x64, 0x18, 0x07, 0x20,
+ 0x01, 0x28, 0x03, 0x52, 0x07, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x49, 0x64, 0x12, 0x17, 0x0a, 0x07,
+ 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x08, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x75,
+ 0x73, 0x65, 0x72, 0x49, 0x64, 0x12, 0x29, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65,
+ 0x18, 0x0a, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x6f, 0x6e, 0x65, 0x62, 0x6f, 0x74, 0x2e,
+ 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65,
+ 0x12, 0x1f, 0x0a, 0x0b, 0x72, 0x61, 0x77, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18,
+ 0x0b, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x72, 0x61, 0x77, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67,
+ 0x65, 0x12, 0x3f, 0x0a, 0x0f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, 0x72, 0x65, 0x63,
+ 0x65, 0x69, 0x70, 0x74, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x6f, 0x6e, 0x65,
+ 0x62, 0x6f, 0x74, 0x2e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x65, 0x63, 0x65, 0x69,
+ 0x70, 0x74, 0x52, 0x0e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x65, 0x63, 0x65, 0x69,
+ 0x70, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, 0x69, 0x64,
+ 0x18, 0x0f, 0x20, 0x01, 0x28, 0x05, 0x52, 0x09, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x49,
+ 0x64, 0x12, 0x3f, 0x0a, 0x05, 0x65, 0x78, 0x74, 0x72, 0x61, 0x18, 0xff, 0x01, 0x20, 0x03, 0x28,
+ 0x0b, 0x32, 0x28, 0x2e, 0x6f, 0x6e, 0x65, 0x62, 0x6f, 0x74, 0x2e, 0x47, 0x72, 0x6f, 0x75, 0x70,
+ 0x54, 0x65, 0x6d, 0x70, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x45, 0x76, 0x65, 0x6e, 0x74,
+ 0x2e, 0x45, 0x78, 0x74, 0x72, 0x61, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x05, 0x65, 0x78, 0x74,
+ 0x72, 0x61, 0x1a, 0x38, 0x0a, 0x0a, 0x45, 0x78, 0x74, 0x72, 0x61, 0x45, 0x6e, 0x74, 0x72, 0x79,
+ 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b,
+ 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28,
+ 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0xd4, 0x03, 0x0a,
+ 0x16, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x55, 0x70, 0x6c, 0x6f, 0x61, 0x64, 0x4e, 0x6f, 0x74, 0x69,
+ 0x63, 0x65, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x69, 0x6d, 0x65, 0x18,
+ 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x04, 0x74, 0x69, 0x6d, 0x65, 0x12, 0x17, 0x0a, 0x07, 0x73,
+ 0x65, 0x6c, 0x66, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x73, 0x65,
+ 0x6c, 0x66, 0x49, 0x64, 0x12, 0x1b, 0x0a, 0x09, 0x70, 0x6f, 0x73, 0x74, 0x5f, 0x74, 0x79, 0x70,
+ 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x70, 0x6f, 0x73, 0x74, 0x54, 0x79, 0x70,
+ 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x6e, 0x6f, 0x74, 0x69, 0x63, 0x65, 0x5f, 0x74, 0x79, 0x70, 0x65,
+ 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x6e, 0x6f, 0x74, 0x69, 0x63, 0x65, 0x54, 0x79,
+ 0x70, 0x65, 0x12, 0x19, 0x0a, 0x08, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x5f, 0x69, 0x64, 0x18, 0x05,
+ 0x20, 0x01, 0x28, 0x03, 0x52, 0x07, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x49, 0x64, 0x12, 0x17, 0x0a,
+ 0x07, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06,
+ 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x12, 0x37, 0x0a, 0x04, 0x66, 0x69, 0x6c, 0x65, 0x18, 0x07,
+ 0x20, 0x01, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x6f, 0x6e, 0x65, 0x62, 0x6f, 0x74, 0x2e, 0x47, 0x72,
+ 0x6f, 0x75, 0x70, 0x55, 0x70, 0x6c, 0x6f, 0x61, 0x64, 0x4e, 0x6f, 0x74, 0x69, 0x63, 0x65, 0x45,
+ 0x76, 0x65, 0x6e, 0x74, 0x2e, 0x46, 0x69, 0x6c, 0x65, 0x52, 0x04, 0x66, 0x69, 0x6c, 0x65, 0x12,
+ 0x40, 0x0a, 0x05, 0x65, 0x78, 0x74, 0x72, 0x61, 0x18, 0xff, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32,
+ 0x29, 0x2e, 0x6f, 0x6e, 0x65, 0x62, 0x6f, 0x74, 0x2e, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x55, 0x70,
+ 0x6c, 0x6f, 0x61, 0x64, 0x4e, 0x6f, 0x74, 0x69, 0x63, 0x65, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x2e,
+ 0x45, 0x78, 0x74, 0x72, 0x61, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x05, 0x65, 0x78, 0x74, 0x72,
+ 0x61, 0x1a, 0x66, 0x0a, 0x04, 0x46, 0x69, 0x6c, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18,
+ 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d,
+ 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x12, 0x0a,
+ 0x04, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x04, 0x73, 0x69, 0x7a,
+ 0x65, 0x12, 0x14, 0x0a, 0x05, 0x62, 0x75, 0x73, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03,
+ 0x52, 0x05, 0x62, 0x75, 0x73, 0x69, 0x64, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x72, 0x6c, 0x18, 0x05,
+ 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x72, 0x6c, 0x1a, 0x38, 0x0a, 0x0a, 0x45, 0x78, 0x74,
+ 0x72, 0x61, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01,
+ 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c,
+ 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a,
+ 0x02, 0x38, 0x01, 0x22, 0xc4, 0x02, 0x0a, 0x10, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x4e, 0x6f, 0x74,
+ 0x69, 0x66, 0x79, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x69, 0x6d, 0x65,
+ 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x04, 0x74, 0x69, 0x6d, 0x65, 0x12, 0x17, 0x0a, 0x07,
+ 0x73, 0x65, 0x6c, 0x66, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x73,
+ 0x65, 0x6c, 0x66, 0x49, 0x64, 0x12, 0x1b, 0x0a, 0x09, 0x70, 0x6f, 0x73, 0x74, 0x5f, 0x74, 0x79,
+ 0x70, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x70, 0x6f, 0x73, 0x74, 0x54, 0x79,
+ 0x70, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x6e, 0x6f, 0x74, 0x69, 0x63, 0x65, 0x5f, 0x74, 0x79, 0x70,
+ 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x6e, 0x6f, 0x74, 0x69, 0x63, 0x65, 0x54,
+ 0x79, 0x70, 0x65, 0x12, 0x19, 0x0a, 0x08, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x5f, 0x69, 0x64, 0x18,
+ 0x05, 0x20, 0x01, 0x28, 0x03, 0x52, 0x07, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x49, 0x64, 0x12, 0x1d,
+ 0x0a, 0x0a, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x06, 0x20, 0x01,
+ 0x28, 0x09, 0x52, 0x09, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x16, 0x0a,
+ 0x06, 0x73, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x18, 0x07, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x73,
+ 0x65, 0x6e, 0x64, 0x65, 0x72, 0x12, 0x1f, 0x0a, 0x0b, 0x73, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x5f,
+ 0x63, 0x61, 0x72, 0x64, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x73, 0x65, 0x6e, 0x64,
+ 0x65, 0x72, 0x43, 0x61, 0x72, 0x64, 0x12, 0x1b, 0x0a, 0x09, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74,
+ 0x5f, 0x69, 0x64, 0x18, 0x09, 0x20, 0x01, 0x28, 0x03, 0x52, 0x08, 0x74, 0x61, 0x72, 0x67, 0x65,
+ 0x74, 0x49, 0x64, 0x12, 0x1f, 0x0a, 0x0b, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x5f, 0x63, 0x61,
+ 0x72, 0x64, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74,
+ 0x43, 0x61, 0x72, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x68, 0x6f, 0x6e, 0x6f, 0x72, 0x18, 0x0b, 0x20,
+ 0x01, 0x28, 0x09, 0x52, 0x05, 0x68, 0x6f, 0x6e, 0x6f, 0x72, 0x22, 0xcc, 0x02, 0x0a, 0x15, 0x47,
+ 0x72, 0x6f, 0x75, 0x70, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x4e, 0x6f, 0x74, 0x69, 0x63, 0x65, 0x45,
+ 0x76, 0x65, 0x6e, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01,
+ 0x28, 0x03, 0x52, 0x04, 0x74, 0x69, 0x6d, 0x65, 0x12, 0x17, 0x0a, 0x07, 0x73, 0x65, 0x6c, 0x66,
+ 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x73, 0x65, 0x6c, 0x66, 0x49,
+ 0x64, 0x12, 0x1b, 0x0a, 0x09, 0x70, 0x6f, 0x73, 0x74, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x03,
+ 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x70, 0x6f, 0x73, 0x74, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1f,
+ 0x0a, 0x0b, 0x6e, 0x6f, 0x74, 0x69, 0x63, 0x65, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x04, 0x20,
+ 0x01, 0x28, 0x09, 0x52, 0x0a, 0x6e, 0x6f, 0x74, 0x69, 0x63, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12,
+ 0x19, 0x0a, 0x08, 0x73, 0x75, 0x62, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28,
+ 0x09, 0x52, 0x07, 0x73, 0x75, 0x62, 0x54, 0x79, 0x70, 0x65, 0x12, 0x19, 0x0a, 0x08, 0x67, 0x72,
+ 0x6f, 0x75, 0x70, 0x5f, 0x69, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x03, 0x52, 0x07, 0x67, 0x72,
+ 0x6f, 0x75, 0x70, 0x49, 0x64, 0x12, 0x17, 0x0a, 0x07, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64,
+ 0x18, 0x07, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x12, 0x3f,
+ 0x0a, 0x05, 0x65, 0x78, 0x74, 0x72, 0x61, 0x18, 0xff, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x28,
+ 0x2e, 0x6f, 0x6e, 0x65, 0x62, 0x6f, 0x74, 0x2e, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x41, 0x64, 0x6d,
+ 0x69, 0x6e, 0x4e, 0x6f, 0x74, 0x69, 0x63, 0x65, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x2e, 0x45, 0x78,
+ 0x74, 0x72, 0x61, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x05, 0x65, 0x78, 0x74, 0x72, 0x61, 0x1a,
+ 0x38, 0x0a, 0x0a, 0x45, 0x78, 0x74, 0x72, 0x61, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a,
+ 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12,
+ 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05,
+ 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0xf3, 0x02, 0x0a, 0x18, 0x47, 0x72,
+ 0x6f, 0x75, 0x70, 0x44, 0x65, 0x63, 0x72, 0x65, 0x61, 0x73, 0x65, 0x4e, 0x6f, 0x74, 0x69, 0x63,
+ 0x65, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x01,
+ 0x20, 0x01, 0x28, 0x03, 0x52, 0x04, 0x74, 0x69, 0x6d, 0x65, 0x12, 0x17, 0x0a, 0x07, 0x73, 0x65,
+ 0x6c, 0x66, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x73, 0x65, 0x6c,
+ 0x66, 0x49, 0x64, 0x12, 0x1b, 0x0a, 0x09, 0x70, 0x6f, 0x73, 0x74, 0x5f, 0x74, 0x79, 0x70, 0x65,
+ 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x70, 0x6f, 0x73, 0x74, 0x54, 0x79, 0x70, 0x65,
+ 0x12, 0x1f, 0x0a, 0x0b, 0x6e, 0x6f, 0x74, 0x69, 0x63, 0x65, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18,
+ 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x6e, 0x6f, 0x74, 0x69, 0x63, 0x65, 0x54, 0x79, 0x70,
+ 0x65, 0x12, 0x19, 0x0a, 0x08, 0x73, 0x75, 0x62, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x05, 0x20,
+ 0x01, 0x28, 0x09, 0x52, 0x07, 0x73, 0x75, 0x62, 0x54, 0x79, 0x70, 0x65, 0x12, 0x19, 0x0a, 0x08,
+ 0x67, 0x72, 0x6f, 0x75, 0x70, 0x5f, 0x69, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x03, 0x52, 0x07,
+ 0x67, 0x72, 0x6f, 0x75, 0x70, 0x49, 0x64, 0x12, 0x1f, 0x0a, 0x0b, 0x6f, 0x70, 0x65, 0x72, 0x61,
+ 0x74, 0x6f, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x07, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0a, 0x6f, 0x70,
+ 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x49, 0x64, 0x12, 0x17, 0x0a, 0x07, 0x75, 0x73, 0x65, 0x72,
+ 0x5f, 0x69, 0x64, 0x18, 0x08, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49,
+ 0x64, 0x12, 0x42, 0x0a, 0x05, 0x65, 0x78, 0x74, 0x72, 0x61, 0x18, 0xff, 0x01, 0x20, 0x03, 0x28,
+ 0x0b, 0x32, 0x2b, 0x2e, 0x6f, 0x6e, 0x65, 0x62, 0x6f, 0x74, 0x2e, 0x47, 0x72, 0x6f, 0x75, 0x70,
+ 0x44, 0x65, 0x63, 0x72, 0x65, 0x61, 0x73, 0x65, 0x4e, 0x6f, 0x74, 0x69, 0x63, 0x65, 0x45, 0x76,
+ 0x65, 0x6e, 0x74, 0x2e, 0x45, 0x78, 0x74, 0x72, 0x61, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x05,
+ 0x65, 0x78, 0x74, 0x72, 0x61, 0x1a, 0x38, 0x0a, 0x0a, 0x45, 0x78, 0x74, 0x72, 0x61, 0x45, 0x6e,
+ 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09,
+ 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02,
+ 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22,
+ 0xf3, 0x02, 0x0a, 0x18, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x49, 0x6e, 0x63, 0x72, 0x65, 0x61, 0x73,
+ 0x65, 0x4e, 0x6f, 0x74, 0x69, 0x63, 0x65, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x12, 0x12, 0x0a, 0x04,
+ 0x74, 0x69, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x04, 0x74, 0x69, 0x6d, 0x65,
+ 0x12, 0x17, 0x0a, 0x07, 0x73, 0x65, 0x6c, 0x66, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28,
+ 0x03, 0x52, 0x06, 0x73, 0x65, 0x6c, 0x66, 0x49, 0x64, 0x12, 0x1b, 0x0a, 0x09, 0x70, 0x6f, 0x73,
+ 0x74, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x70, 0x6f,
+ 0x73, 0x74, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x6e, 0x6f, 0x74, 0x69, 0x63, 0x65,
+ 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x6e, 0x6f, 0x74,
+ 0x69, 0x63, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x19, 0x0a, 0x08, 0x73, 0x75, 0x62, 0x5f, 0x74,
+ 0x79, 0x70, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x73, 0x75, 0x62, 0x54, 0x79,
+ 0x70, 0x65, 0x12, 0x19, 0x0a, 0x08, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x5f, 0x69, 0x64, 0x18, 0x06,
+ 0x20, 0x01, 0x28, 0x03, 0x52, 0x07, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x49, 0x64, 0x12, 0x1f, 0x0a,
+ 0x0b, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x07, 0x20, 0x01,
+ 0x28, 0x03, 0x52, 0x0a, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x49, 0x64, 0x12, 0x17,
+ 0x0a, 0x07, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x08, 0x20, 0x01, 0x28, 0x03, 0x52,
+ 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x12, 0x42, 0x0a, 0x05, 0x65, 0x78, 0x74, 0x72, 0x61,
+ 0x18, 0xff, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2b, 0x2e, 0x6f, 0x6e, 0x65, 0x62, 0x6f, 0x74,
+ 0x2e, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x49, 0x6e, 0x63, 0x72, 0x65, 0x61, 0x73, 0x65, 0x4e, 0x6f,
+ 0x74, 0x69, 0x63, 0x65, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x2e, 0x45, 0x78, 0x74, 0x72, 0x61, 0x45,
+ 0x6e, 0x74, 0x72, 0x79, 0x52, 0x05, 0x65, 0x78, 0x74, 0x72, 0x61, 0x1a, 0x38, 0x0a, 0x0a, 0x45,
+ 0x78, 0x74, 0x72, 0x61, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79,
+ 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76,
+ 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75,
+ 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x85, 0x03, 0x0a, 0x13, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x42,
+ 0x61, 0x6e, 0x4e, 0x6f, 0x74, 0x69, 0x63, 0x65, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x12, 0x12, 0x0a,
+ 0x04, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x04, 0x74, 0x69, 0x6d,
+ 0x65, 0x12, 0x17, 0x0a, 0x07, 0x73, 0x65, 0x6c, 0x66, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01,
+ 0x28, 0x03, 0x52, 0x06, 0x73, 0x65, 0x6c, 0x66, 0x49, 0x64, 0x12, 0x1b, 0x0a, 0x09, 0x70, 0x6f,
+ 0x73, 0x74, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x70,
+ 0x6f, 0x73, 0x74, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x6e, 0x6f, 0x74, 0x69, 0x63,
+ 0x65, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x6e, 0x6f,
+ 0x74, 0x69, 0x63, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x19, 0x0a, 0x08, 0x73, 0x75, 0x62, 0x5f,
+ 0x74, 0x79, 0x70, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x73, 0x75, 0x62, 0x54,
+ 0x79, 0x70, 0x65, 0x12, 0x19, 0x0a, 0x08, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x5f, 0x69, 0x64, 0x18,
+ 0x06, 0x20, 0x01, 0x28, 0x03, 0x52, 0x07, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x49, 0x64, 0x12, 0x1f,
+ 0x0a, 0x0b, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x07, 0x20,
+ 0x01, 0x28, 0x03, 0x52, 0x0a, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x49, 0x64, 0x12,
+ 0x17, 0x0a, 0x07, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x08, 0x20, 0x01, 0x28, 0x03,
+ 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x64, 0x75, 0x72, 0x61,
+ 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x09, 0x20, 0x01, 0x28, 0x03, 0x52, 0x08, 0x64, 0x75, 0x72, 0x61,
+ 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x3d, 0x0a, 0x05, 0x65, 0x78, 0x74, 0x72, 0x61, 0x18, 0xff, 0x01,
+ 0x20, 0x03, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x6f, 0x6e, 0x65, 0x62, 0x6f, 0x74, 0x2e, 0x47, 0x72,
+ 0x6f, 0x75, 0x70, 0x42, 0x61, 0x6e, 0x4e, 0x6f, 0x74, 0x69, 0x63, 0x65, 0x45, 0x76, 0x65, 0x6e,
+ 0x74, 0x2e, 0x45, 0x78, 0x74, 0x72, 0x61, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x05, 0x65, 0x78,
+ 0x74, 0x72, 0x61, 0x1a, 0x38, 0x0a, 0x0a, 0x45, 0x78, 0x74, 0x72, 0x61, 0x45, 0x6e, 0x74, 0x72,
+ 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03,
+ 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01,
+ 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x94, 0x02,
+ 0x0a, 0x14, 0x46, 0x72, 0x69, 0x65, 0x6e, 0x64, 0x41, 0x64, 0x64, 0x4e, 0x6f, 0x74, 0x69, 0x63,
+ 0x65, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x01,
+ 0x20, 0x01, 0x28, 0x03, 0x52, 0x04, 0x74, 0x69, 0x6d, 0x65, 0x12, 0x17, 0x0a, 0x07, 0x73, 0x65,
+ 0x6c, 0x66, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x73, 0x65, 0x6c,
+ 0x66, 0x49, 0x64, 0x12, 0x1b, 0x0a, 0x09, 0x70, 0x6f, 0x73, 0x74, 0x5f, 0x74, 0x79, 0x70, 0x65,
+ 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x70, 0x6f, 0x73, 0x74, 0x54, 0x79, 0x70, 0x65,
+ 0x12, 0x1f, 0x0a, 0x0b, 0x6e, 0x6f, 0x74, 0x69, 0x63, 0x65, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18,
+ 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x6e, 0x6f, 0x74, 0x69, 0x63, 0x65, 0x54, 0x79, 0x70,
+ 0x65, 0x12, 0x17, 0x0a, 0x07, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x05, 0x20, 0x01,
+ 0x28, 0x03, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x12, 0x3e, 0x0a, 0x05, 0x65, 0x78,
+ 0x74, 0x72, 0x61, 0x18, 0xff, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x6f, 0x6e, 0x65,
+ 0x62, 0x6f, 0x74, 0x2e, 0x46, 0x72, 0x69, 0x65, 0x6e, 0x64, 0x41, 0x64, 0x64, 0x4e, 0x6f, 0x74,
+ 0x69, 0x63, 0x65, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x2e, 0x45, 0x78, 0x74, 0x72, 0x61, 0x45, 0x6e,
+ 0x74, 0x72, 0x79, 0x52, 0x05, 0x65, 0x78, 0x74, 0x72, 0x61, 0x1a, 0x38, 0x0a, 0x0a, 0x45, 0x78,
+ 0x74, 0x72, 0x61, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18,
+ 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61,
+ 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65,
+ 0x3a, 0x02, 0x38, 0x01, 0x22, 0xb4, 0x03, 0x0a, 0x16, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x52, 0x65,
+ 0x63, 0x61, 0x6c, 0x6c, 0x4e, 0x6f, 0x74, 0x69, 0x63, 0x65, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x12,
+ 0x12, 0x0a, 0x04, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x04, 0x74,
+ 0x69, 0x6d, 0x65, 0x12, 0x17, 0x0a, 0x07, 0x73, 0x65, 0x6c, 0x66, 0x5f, 0x69, 0x64, 0x18, 0x02,
+ 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x73, 0x65, 0x6c, 0x66, 0x49, 0x64, 0x12, 0x1b, 0x0a, 0x09,
+ 0x70, 0x6f, 0x73, 0x74, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52,
+ 0x08, 0x70, 0x6f, 0x73, 0x74, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x6e, 0x6f, 0x74,
+ 0x69, 0x63, 0x65, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a,
+ 0x6e, 0x6f, 0x74, 0x69, 0x63, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x19, 0x0a, 0x08, 0x67, 0x72,
+ 0x6f, 0x75, 0x70, 0x5f, 0x69, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x52, 0x07, 0x67, 0x72,
+ 0x6f, 0x75, 0x70, 0x49, 0x64, 0x12, 0x17, 0x0a, 0x07, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64,
+ 0x18, 0x06, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x12, 0x1f,
+ 0x0a, 0x0b, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x07, 0x20,
+ 0x01, 0x28, 0x03, 0x52, 0x0a, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x49, 0x64, 0x12,
+ 0x1d, 0x0a, 0x0a, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x08, 0x20,
+ 0x01, 0x28, 0x05, 0x52, 0x09, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x49, 0x64, 0x12, 0x3f,
+ 0x0a, 0x0f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, 0x72, 0x65, 0x63, 0x65, 0x69, 0x70,
+ 0x74, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x6f, 0x6e, 0x65, 0x62, 0x6f, 0x74,
+ 0x2e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x65, 0x63, 0x65, 0x69, 0x70, 0x74, 0x52,
+ 0x0e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x65, 0x63, 0x65, 0x69, 0x70, 0x74, 0x12,
+ 0x40, 0x0a, 0x05, 0x65, 0x78, 0x74, 0x72, 0x61, 0x18, 0xff, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32,
+ 0x29, 0x2e, 0x6f, 0x6e, 0x65, 0x62, 0x6f, 0x74, 0x2e, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x52, 0x65,
+ 0x63, 0x61, 0x6c, 0x6c, 0x4e, 0x6f, 0x74, 0x69, 0x63, 0x65, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x2e,
+ 0x45, 0x78, 0x74, 0x72, 0x61, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x05, 0x65, 0x78, 0x74, 0x72,
+ 0x61, 0x1a, 0x38, 0x0a, 0x0a, 0x45, 0x78, 0x74, 0x72, 0x61, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12,
+ 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65,
+ 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09,
+ 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0xfa, 0x02, 0x0a, 0x17,
+ 0x46, 0x72, 0x69, 0x65, 0x6e, 0x64, 0x52, 0x65, 0x63, 0x61, 0x6c, 0x6c, 0x4e, 0x6f, 0x74, 0x69,
+ 0x63, 0x65, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x69, 0x6d, 0x65, 0x18,
+ 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x04, 0x74, 0x69, 0x6d, 0x65, 0x12, 0x17, 0x0a, 0x07, 0x73,
+ 0x65, 0x6c, 0x66, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x73, 0x65,
+ 0x6c, 0x66, 0x49, 0x64, 0x12, 0x1b, 0x0a, 0x09, 0x70, 0x6f, 0x73, 0x74, 0x5f, 0x74, 0x79, 0x70,
+ 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x70, 0x6f, 0x73, 0x74, 0x54, 0x79, 0x70,
+ 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x6e, 0x6f, 0x74, 0x69, 0x63, 0x65, 0x5f, 0x74, 0x79, 0x70, 0x65,
+ 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x6e, 0x6f, 0x74, 0x69, 0x63, 0x65, 0x54, 0x79,
+ 0x70, 0x65, 0x12, 0x17, 0x0a, 0x07, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x05, 0x20,
+ 0x01, 0x28, 0x03, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x12, 0x1d, 0x0a, 0x0a, 0x6d,
+ 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x05, 0x52,
+ 0x09, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x49, 0x64, 0x12, 0x3f, 0x0a, 0x0f, 0x6d, 0x65,
+ 0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, 0x72, 0x65, 0x63, 0x65, 0x69, 0x70, 0x74, 0x18, 0x07, 0x20,
+ 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x6f, 0x6e, 0x65, 0x62, 0x6f, 0x74, 0x2e, 0x4d, 0x65, 0x73,
+ 0x73, 0x61, 0x67, 0x65, 0x52, 0x65, 0x63, 0x65, 0x69, 0x70, 0x74, 0x52, 0x0e, 0x6d, 0x65, 0x73,
+ 0x73, 0x61, 0x67, 0x65, 0x52, 0x65, 0x63, 0x65, 0x69, 0x70, 0x74, 0x12, 0x41, 0x0a, 0x05, 0x65,
+ 0x78, 0x74, 0x72, 0x61, 0x18, 0xff, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2a, 0x2e, 0x6f, 0x6e,
+ 0x65, 0x62, 0x6f, 0x74, 0x2e, 0x46, 0x72, 0x69, 0x65, 0x6e, 0x64, 0x52, 0x65, 0x63, 0x61, 0x6c,
+ 0x6c, 0x4e, 0x6f, 0x74, 0x69, 0x63, 0x65, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x2e, 0x45, 0x78, 0x74,
+ 0x72, 0x61, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x05, 0x65, 0x78, 0x74, 0x72, 0x61, 0x1a, 0x38,
+ 0x0a, 0x0a, 0x45, 0x78, 0x74, 0x72, 0x61, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03,
+ 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14,
+ 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76,
+ 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0xc0, 0x02, 0x0a, 0x12, 0x46, 0x72, 0x69,
+ 0x65, 0x6e, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x12,
+ 0x12, 0x0a, 0x04, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x04, 0x74,
+ 0x69, 0x6d, 0x65, 0x12, 0x17, 0x0a, 0x07, 0x73, 0x65, 0x6c, 0x66, 0x5f, 0x69, 0x64, 0x18, 0x02,
+ 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x73, 0x65, 0x6c, 0x66, 0x49, 0x64, 0x12, 0x1b, 0x0a, 0x09,
+ 0x70, 0x6f, 0x73, 0x74, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52,
+ 0x08, 0x70, 0x6f, 0x73, 0x74, 0x54, 0x79, 0x70, 0x65, 0x12, 0x21, 0x0a, 0x0c, 0x72, 0x65, 0x71,
+ 0x75, 0x65, 0x73, 0x74, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52,
+ 0x0b, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x54, 0x79, 0x70, 0x65, 0x12, 0x17, 0x0a, 0x07,
+ 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x75,
+ 0x73, 0x65, 0x72, 0x49, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74,
+ 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x12,
+ 0x12, 0x0a, 0x04, 0x66, 0x6c, 0x61, 0x67, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x66,
+ 0x6c, 0x61, 0x67, 0x12, 0x3c, 0x0a, 0x05, 0x65, 0x78, 0x74, 0x72, 0x61, 0x18, 0xff, 0x01, 0x20,
+ 0x03, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x6f, 0x6e, 0x65, 0x62, 0x6f, 0x74, 0x2e, 0x46, 0x72, 0x69,
+ 0x65, 0x6e, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x2e,
+ 0x45, 0x78, 0x74, 0x72, 0x61, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x05, 0x65, 0x78, 0x74, 0x72,
+ 0x61, 0x1a, 0x38, 0x0a, 0x0a, 0x45, 0x78, 0x74, 0x72, 0x61, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12,
+ 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65,
+ 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09,
+ 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0xcc, 0x04, 0x0a, 0x11,
+ 0x47, 0x72, 0x6f, 0x75, 0x70, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x45, 0x76, 0x65, 0x6e,
+ 0x74, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52,
+ 0x04, 0x74, 0x69, 0x6d, 0x65, 0x12, 0x17, 0x0a, 0x07, 0x73, 0x65, 0x6c, 0x66, 0x5f, 0x69, 0x64,
+ 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x73, 0x65, 0x6c, 0x66, 0x49, 0x64, 0x12, 0x1b,
+ 0x0a, 0x09, 0x70, 0x6f, 0x73, 0x74, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28,
+ 0x09, 0x52, 0x08, 0x70, 0x6f, 0x73, 0x74, 0x54, 0x79, 0x70, 0x65, 0x12, 0x21, 0x0a, 0x0c, 0x72,
+ 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28,
+ 0x09, 0x52, 0x0b, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x54, 0x79, 0x70, 0x65, 0x12, 0x19,
+ 0x0a, 0x08, 0x73, 0x75, 0x62, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09,
+ 0x52, 0x07, 0x73, 0x75, 0x62, 0x54, 0x79, 0x70, 0x65, 0x12, 0x19, 0x0a, 0x08, 0x67, 0x72, 0x6f,
+ 0x75, 0x70, 0x5f, 0x69, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x03, 0x52, 0x07, 0x67, 0x72, 0x6f,
+ 0x75, 0x70, 0x49, 0x64, 0x12, 0x17, 0x0a, 0x07, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18,
+ 0x07, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x12, 0x18, 0x0a,
+ 0x07, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07,
+ 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x66, 0x6c, 0x61, 0x67, 0x18,
+ 0x09, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x66, 0x6c, 0x61, 0x67, 0x12, 0x1d, 0x0a, 0x0a, 0x72,
+ 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x03, 0x52,
+ 0x09, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x49, 0x64, 0x12, 0x1b, 0x0a, 0x09, 0x75, 0x73,
+ 0x65, 0x72, 0x5f, 0x6e, 0x69, 0x63, 0x6b, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x75,
+ 0x73, 0x65, 0x72, 0x4e, 0x69, 0x63, 0x6b, 0x12, 0x1d, 0x0a, 0x0a, 0x67, 0x72, 0x6f, 0x75, 0x70,
+ 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x67, 0x72, 0x6f,
+ 0x75, 0x70, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x26, 0x0a, 0x0f, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e,
+ 0x5f, 0x75, 0x69, 0x6e, 0x5f, 0x6e, 0x69, 0x63, 0x6b, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x09, 0x52,
+ 0x0d, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x55, 0x69, 0x6e, 0x4e, 0x69, 0x63, 0x6b, 0x12, 0x1d,
+ 0x0a, 0x0a, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x75, 0x69, 0x6e, 0x18, 0x0e, 0x20, 0x01,
+ 0x28, 0x03, 0x52, 0x09, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x55, 0x69, 0x6e, 0x12, 0x14, 0x0a,
+ 0x05, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x18, 0x0f, 0x20, 0x01, 0x28, 0x08, 0x52, 0x05, 0x63, 0x68,
+ 0x65, 0x63, 0x6b, 0x12, 0x1e, 0x0a, 0x0a, 0x73, 0x75, 0x73, 0x70, 0x69, 0x63, 0x69, 0x6f, 0x75,
+ 0x73, 0x18, 0x10, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0a, 0x73, 0x75, 0x73, 0x70, 0x69, 0x63, 0x69,
+ 0x6f, 0x75, 0x73, 0x12, 0x3b, 0x0a, 0x05, 0x65, 0x78, 0x74, 0x72, 0x61, 0x18, 0xff, 0x01, 0x20,
+ 0x03, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x6f, 0x6e, 0x65, 0x62, 0x6f, 0x74, 0x2e, 0x47, 0x72, 0x6f,
+ 0x75, 0x70, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x2e, 0x45,
+ 0x78, 0x74, 0x72, 0x61, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x05, 0x65, 0x78, 0x74, 0x72, 0x61,
+ 0x1a, 0x38, 0x0a, 0x0a, 0x45, 0x78, 0x74, 0x72, 0x61, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10,
+ 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79,
+ 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52,
+ 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x42, 0x0a, 0x5a, 0x08, 0x2e, 0x2f,
+ 0x6f, 0x6e, 0x65, 0x62, 0x6f, 0x74, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
}
var (
- ErrInvalidLengthOnebotEvent = fmt.Errorf("proto: negative length found during unmarshaling")
- ErrIntOverflowOnebotEvent = fmt.Errorf("proto: integer overflow")
- ErrUnexpectedEndOfGroupOnebotEvent = fmt.Errorf("proto: unexpected end of group")
+ file_onebot_event_proto_rawDescOnce sync.Once
+ file_onebot_event_proto_rawDescData = file_onebot_event_proto_rawDesc
)
+
+func file_onebot_event_proto_rawDescGZIP() []byte {
+ file_onebot_event_proto_rawDescOnce.Do(func() {
+ file_onebot_event_proto_rawDescData = protoimpl.X.CompressGZIP(file_onebot_event_proto_rawDescData)
+ })
+ return file_onebot_event_proto_rawDescData
+}
+
+var file_onebot_event_proto_msgTypes = make([]protoimpl.MessageInfo, 34)
+var file_onebot_event_proto_goTypes = []interface{}{
+ (*PrivateMessageEvent)(nil), // 0: onebot.PrivateMessageEvent
+ (*GroupMessageEvent)(nil), // 1: onebot.GroupMessageEvent
+ (*ChannelMessageEvent)(nil), // 2: onebot.ChannelMessageEvent
+ (*GroupTempMessageEvent)(nil), // 3: onebot.GroupTempMessageEvent
+ (*GroupUploadNoticeEvent)(nil), // 4: onebot.GroupUploadNoticeEvent
+ (*GroupNotifyEvent)(nil), // 5: onebot.GroupNotifyEvent
+ (*GroupAdminNoticeEvent)(nil), // 6: onebot.GroupAdminNoticeEvent
+ (*GroupDecreaseNoticeEvent)(nil), // 7: onebot.GroupDecreaseNoticeEvent
+ (*GroupIncreaseNoticeEvent)(nil), // 8: onebot.GroupIncreaseNoticeEvent
+ (*GroupBanNoticeEvent)(nil), // 9: onebot.GroupBanNoticeEvent
+ (*FriendAddNoticeEvent)(nil), // 10: onebot.FriendAddNoticeEvent
+ (*GroupRecallNoticeEvent)(nil), // 11: onebot.GroupRecallNoticeEvent
+ (*FriendRecallNoticeEvent)(nil), // 12: onebot.FriendRecallNoticeEvent
+ (*FriendRequestEvent)(nil), // 13: onebot.FriendRequestEvent
+ (*GroupRequestEvent)(nil), // 14: onebot.GroupRequestEvent
+ (*PrivateMessageEvent_Sender)(nil), // 15: onebot.PrivateMessageEvent.Sender
+ nil, // 16: onebot.PrivateMessageEvent.ExtraEntry
+ (*GroupMessageEvent_Anonymous)(nil), // 17: onebot.GroupMessageEvent.Anonymous
+ (*GroupMessageEvent_Sender)(nil), // 18: onebot.GroupMessageEvent.Sender
+ nil, // 19: onebot.GroupMessageEvent.ExtraEntry
+ (*ChannelMessageEvent_Sender)(nil), // 20: onebot.ChannelMessageEvent.Sender
+ nil, // 21: onebot.ChannelMessageEvent.ExtraEntry
+ nil, // 22: onebot.GroupTempMessageEvent.ExtraEntry
+ (*GroupUploadNoticeEvent_File)(nil), // 23: onebot.GroupUploadNoticeEvent.File
+ nil, // 24: onebot.GroupUploadNoticeEvent.ExtraEntry
+ nil, // 25: onebot.GroupAdminNoticeEvent.ExtraEntry
+ nil, // 26: onebot.GroupDecreaseNoticeEvent.ExtraEntry
+ nil, // 27: onebot.GroupIncreaseNoticeEvent.ExtraEntry
+ nil, // 28: onebot.GroupBanNoticeEvent.ExtraEntry
+ nil, // 29: onebot.FriendAddNoticeEvent.ExtraEntry
+ nil, // 30: onebot.GroupRecallNoticeEvent.ExtraEntry
+ nil, // 31: onebot.FriendRecallNoticeEvent.ExtraEntry
+ nil, // 32: onebot.FriendRequestEvent.ExtraEntry
+ nil, // 33: onebot.GroupRequestEvent.ExtraEntry
+ (*Message)(nil), // 34: onebot.Message
+ (*MessageReceipt)(nil), // 35: onebot.MessageReceipt
+}
+var file_onebot_event_proto_depIdxs = []int32{
+ 34, // 0: onebot.PrivateMessageEvent.message:type_name -> onebot.Message
+ 15, // 1: onebot.PrivateMessageEvent.sender:type_name -> onebot.PrivateMessageEvent.Sender
+ 35, // 2: onebot.PrivateMessageEvent.message_receipt:type_name -> onebot.MessageReceipt
+ 16, // 3: onebot.PrivateMessageEvent.extra:type_name -> onebot.PrivateMessageEvent.ExtraEntry
+ 17, // 4: onebot.GroupMessageEvent.anonymous:type_name -> onebot.GroupMessageEvent.Anonymous
+ 34, // 5: onebot.GroupMessageEvent.message:type_name -> onebot.Message
+ 18, // 6: onebot.GroupMessageEvent.sender:type_name -> onebot.GroupMessageEvent.Sender
+ 35, // 7: onebot.GroupMessageEvent.message_receipt:type_name -> onebot.MessageReceipt
+ 19, // 8: onebot.GroupMessageEvent.extra:type_name -> onebot.GroupMessageEvent.ExtraEntry
+ 34, // 9: onebot.ChannelMessageEvent.message:type_name -> onebot.Message
+ 20, // 10: onebot.ChannelMessageEvent.sender:type_name -> onebot.ChannelMessageEvent.Sender
+ 21, // 11: onebot.ChannelMessageEvent.extra:type_name -> onebot.ChannelMessageEvent.ExtraEntry
+ 34, // 12: onebot.GroupTempMessageEvent.message:type_name -> onebot.Message
+ 35, // 13: onebot.GroupTempMessageEvent.message_receipt:type_name -> onebot.MessageReceipt
+ 22, // 14: onebot.GroupTempMessageEvent.extra:type_name -> onebot.GroupTempMessageEvent.ExtraEntry
+ 23, // 15: onebot.GroupUploadNoticeEvent.file:type_name -> onebot.GroupUploadNoticeEvent.File
+ 24, // 16: onebot.GroupUploadNoticeEvent.extra:type_name -> onebot.GroupUploadNoticeEvent.ExtraEntry
+ 25, // 17: onebot.GroupAdminNoticeEvent.extra:type_name -> onebot.GroupAdminNoticeEvent.ExtraEntry
+ 26, // 18: onebot.GroupDecreaseNoticeEvent.extra:type_name -> onebot.GroupDecreaseNoticeEvent.ExtraEntry
+ 27, // 19: onebot.GroupIncreaseNoticeEvent.extra:type_name -> onebot.GroupIncreaseNoticeEvent.ExtraEntry
+ 28, // 20: onebot.GroupBanNoticeEvent.extra:type_name -> onebot.GroupBanNoticeEvent.ExtraEntry
+ 29, // 21: onebot.FriendAddNoticeEvent.extra:type_name -> onebot.FriendAddNoticeEvent.ExtraEntry
+ 35, // 22: onebot.GroupRecallNoticeEvent.message_receipt:type_name -> onebot.MessageReceipt
+ 30, // 23: onebot.GroupRecallNoticeEvent.extra:type_name -> onebot.GroupRecallNoticeEvent.ExtraEntry
+ 35, // 24: onebot.FriendRecallNoticeEvent.message_receipt:type_name -> onebot.MessageReceipt
+ 31, // 25: onebot.FriendRecallNoticeEvent.extra:type_name -> onebot.FriendRecallNoticeEvent.ExtraEntry
+ 32, // 26: onebot.FriendRequestEvent.extra:type_name -> onebot.FriendRequestEvent.ExtraEntry
+ 33, // 27: onebot.GroupRequestEvent.extra:type_name -> onebot.GroupRequestEvent.ExtraEntry
+ 28, // [28:28] is the sub-list for method output_type
+ 28, // [28:28] is the sub-list for method input_type
+ 28, // [28:28] is the sub-list for extension type_name
+ 28, // [28:28] is the sub-list for extension extendee
+ 0, // [0:28] is the sub-list for field type_name
+}
+
+func init() { file_onebot_event_proto_init() }
+func file_onebot_event_proto_init() {
+ if File_onebot_event_proto != nil {
+ return
+ }
+ file_onebot_base_proto_init()
+ if !protoimpl.UnsafeEnabled {
+ file_onebot_event_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*PrivateMessageEvent); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_onebot_event_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*GroupMessageEvent); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_onebot_event_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*ChannelMessageEvent); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_onebot_event_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*GroupTempMessageEvent); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_onebot_event_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*GroupUploadNoticeEvent); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_onebot_event_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*GroupNotifyEvent); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_onebot_event_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*GroupAdminNoticeEvent); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_onebot_event_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*GroupDecreaseNoticeEvent); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_onebot_event_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*GroupIncreaseNoticeEvent); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_onebot_event_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*GroupBanNoticeEvent); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_onebot_event_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*FriendAddNoticeEvent); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_onebot_event_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*GroupRecallNoticeEvent); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_onebot_event_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*FriendRecallNoticeEvent); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_onebot_event_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*FriendRequestEvent); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_onebot_event_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*GroupRequestEvent); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_onebot_event_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*PrivateMessageEvent_Sender); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_onebot_event_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*GroupMessageEvent_Anonymous); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_onebot_event_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*GroupMessageEvent_Sender); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_onebot_event_proto_msgTypes[20].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*ChannelMessageEvent_Sender); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_onebot_event_proto_msgTypes[23].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*GroupUploadNoticeEvent_File); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ }
+ type x struct{}
+ out := protoimpl.TypeBuilder{
+ File: protoimpl.DescBuilder{
+ GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
+ RawDescriptor: file_onebot_event_proto_rawDesc,
+ NumEnums: 0,
+ NumMessages: 34,
+ NumExtensions: 0,
+ NumServices: 0,
+ },
+ GoTypes: file_onebot_event_proto_goTypes,
+ DependencyIndexes: file_onebot_event_proto_depIdxs,
+ MessageInfos: file_onebot_event_proto_msgTypes,
+ }.Build()
+ File_onebot_event_proto = out.File
+ file_onebot_event_proto_rawDesc = nil
+ file_onebot_event_proto_goTypes = nil
+ file_onebot_event_proto_depIdxs = nil
+}
diff --git a/proto_gen/onebot/onebot_forward.pb.go b/proto_gen/onebot/onebot_forward.pb.go
new file mode 100644
index 0000000..b314822
--- /dev/null
+++ b/proto_gen/onebot/onebot_forward.pb.go
@@ -0,0 +1,434 @@
+// Code generated by protoc-gen-go. DO NOT EDIT.
+// versions:
+// protoc-gen-go v1.29.0
+// protoc v4.22.2
+// source: onebot_forward.proto
+
+package onebot
+
+import (
+ protoreflect "google.golang.org/protobuf/reflect/protoreflect"
+ protoimpl "google.golang.org/protobuf/runtime/protoimpl"
+ reflect "reflect"
+ sync "sync"
+)
+
+const (
+ // Verify that this generated code is sufficiently up-to-date.
+ _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
+ // Verify that runtime/protoimpl is sufficiently up-to-date.
+ _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
+)
+
+type ForwardMessageNode struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ Message []*Message `protobuf:"bytes,1,rep,name=message,proto3" json:"message,omitempty"`
+}
+
+func (x *ForwardMessageNode) Reset() {
+ *x = ForwardMessageNode{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_onebot_forward_proto_msgTypes[0]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *ForwardMessageNode) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*ForwardMessageNode) ProtoMessage() {}
+
+func (x *ForwardMessageNode) ProtoReflect() protoreflect.Message {
+ mi := &file_onebot_forward_proto_msgTypes[0]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+// Deprecated: Use ForwardMessageNode.ProtoReflect.Descriptor instead.
+func (*ForwardMessageNode) Descriptor() ([]byte, []int) {
+ return file_onebot_forward_proto_rawDescGZIP(), []int{0}
+}
+
+func (x *ForwardMessageNode) GetMessage() []*Message {
+ if x != nil {
+ return x.Message
+ }
+ return nil
+}
+
+type ForwardContent struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ SenderId int64 `protobuf:"varint,1,opt,name=sender_id,json=senderId,proto3" json:"sender_id,omitempty"`
+ Time int32 `protobuf:"varint,2,opt,name=time,proto3" json:"time,omitempty"`
+ SenderName string `protobuf:"bytes,3,opt,name=sender_name,json=senderName,proto3" json:"sender_name,omitempty"`
+ // Types that are assignable to Content:
+ //
+ // *ForwardContent_MessageNode
+ // *ForwardContent_ForwardNode
+ Content isForwardContent_Content `protobuf_oneof:"Content"`
+}
+
+func (x *ForwardContent) Reset() {
+ *x = ForwardContent{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_onebot_forward_proto_msgTypes[1]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *ForwardContent) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*ForwardContent) ProtoMessage() {}
+
+func (x *ForwardContent) ProtoReflect() protoreflect.Message {
+ mi := &file_onebot_forward_proto_msgTypes[1]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+// Deprecated: Use ForwardContent.ProtoReflect.Descriptor instead.
+func (*ForwardContent) Descriptor() ([]byte, []int) {
+ return file_onebot_forward_proto_rawDescGZIP(), []int{1}
+}
+
+func (x *ForwardContent) GetSenderId() int64 {
+ if x != nil {
+ return x.SenderId
+ }
+ return 0
+}
+
+func (x *ForwardContent) GetTime() int32 {
+ if x != nil {
+ return x.Time
+ }
+ return 0
+}
+
+func (x *ForwardContent) GetSenderName() string {
+ if x != nil {
+ return x.SenderName
+ }
+ return ""
+}
+
+func (m *ForwardContent) GetContent() isForwardContent_Content {
+ if m != nil {
+ return m.Content
+ }
+ return nil
+}
+
+func (x *ForwardContent) GetMessageNode() *ForwardMessageNode {
+ if x, ok := x.GetContent().(*ForwardContent_MessageNode); ok {
+ return x.MessageNode
+ }
+ return nil
+}
+
+func (x *ForwardContent) GetForwardNode() int32 {
+ if x, ok := x.GetContent().(*ForwardContent_ForwardNode); ok {
+ return x.ForwardNode
+ }
+ return 0
+}
+
+type isForwardContent_Content interface {
+ isForwardContent_Content()
+}
+
+type ForwardContent_MessageNode struct {
+ MessageNode *ForwardMessageNode `protobuf:"bytes,101,opt,name=message_node,json=messageNode,proto3,oneof"`
+}
+
+type ForwardContent_ForwardNode struct {
+ ForwardNode int32 `protobuf:"varint,102,opt,name=forward_node,json=forwardNode,proto3,oneof"`
+}
+
+func (*ForwardContent_MessageNode) isForwardContent_Content() {}
+
+func (*ForwardContent_ForwardNode) isForwardContent_Content() {}
+
+type ForwardChain struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ Content []*ForwardContent `protobuf:"bytes,1,rep,name=content,proto3" json:"content,omitempty"`
+}
+
+func (x *ForwardChain) Reset() {
+ *x = ForwardChain{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_onebot_forward_proto_msgTypes[2]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *ForwardChain) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*ForwardChain) ProtoMessage() {}
+
+func (x *ForwardChain) ProtoReflect() protoreflect.Message {
+ mi := &file_onebot_forward_proto_msgTypes[2]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+// Deprecated: Use ForwardChain.ProtoReflect.Descriptor instead.
+func (*ForwardChain) Descriptor() ([]byte, []int) {
+ return file_onebot_forward_proto_rawDescGZIP(), []int{2}
+}
+
+func (x *ForwardChain) GetContent() []*ForwardContent {
+ if x != nil {
+ return x.Content
+ }
+ return nil
+}
+
+type ForwardMessage struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ Chain *ForwardChain `protobuf:"bytes,1,opt,name=chain,proto3" json:"chain,omitempty"`
+ Data map[int32]*ForwardChain `protobuf:"bytes,2,rep,name=data,proto3" json:"data,omitempty" protobuf_key:"varint,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
+}
+
+func (x *ForwardMessage) Reset() {
+ *x = ForwardMessage{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_onebot_forward_proto_msgTypes[3]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *ForwardMessage) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*ForwardMessage) ProtoMessage() {}
+
+func (x *ForwardMessage) ProtoReflect() protoreflect.Message {
+ mi := &file_onebot_forward_proto_msgTypes[3]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+// Deprecated: Use ForwardMessage.ProtoReflect.Descriptor instead.
+func (*ForwardMessage) Descriptor() ([]byte, []int) {
+ return file_onebot_forward_proto_rawDescGZIP(), []int{3}
+}
+
+func (x *ForwardMessage) GetChain() *ForwardChain {
+ if x != nil {
+ return x.Chain
+ }
+ return nil
+}
+
+func (x *ForwardMessage) GetData() map[int32]*ForwardChain {
+ if x != nil {
+ return x.Data
+ }
+ return nil
+}
+
+var File_onebot_forward_proto protoreflect.FileDescriptor
+
+var file_onebot_forward_proto_rawDesc = []byte{
+ 0x0a, 0x14, 0x6f, 0x6e, 0x65, 0x62, 0x6f, 0x74, 0x5f, 0x66, 0x6f, 0x72, 0x77, 0x61, 0x72, 0x64,
+ 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x06, 0x6f, 0x6e, 0x65, 0x62, 0x6f, 0x74, 0x1a, 0x11,
+ 0x6f, 0x6e, 0x65, 0x62, 0x6f, 0x74, 0x5f, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74,
+ 0x6f, 0x22, 0x3f, 0x0a, 0x12, 0x46, 0x6f, 0x72, 0x77, 0x61, 0x72, 0x64, 0x4d, 0x65, 0x73, 0x73,
+ 0x61, 0x67, 0x65, 0x4e, 0x6f, 0x64, 0x65, 0x12, 0x29, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61,
+ 0x67, 0x65, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x6f, 0x6e, 0x65, 0x62, 0x6f,
+ 0x74, 0x2e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61,
+ 0x67, 0x65, 0x22, 0xd3, 0x01, 0x0a, 0x0e, 0x46, 0x6f, 0x72, 0x77, 0x61, 0x72, 0x64, 0x43, 0x6f,
+ 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x73, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x5f,
+ 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x08, 0x73, 0x65, 0x6e, 0x64, 0x65, 0x72,
+ 0x49, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05,
+ 0x52, 0x04, 0x74, 0x69, 0x6d, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x73, 0x65, 0x6e, 0x64, 0x65, 0x72,
+ 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x73, 0x65, 0x6e,
+ 0x64, 0x65, 0x72, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x3f, 0x0a, 0x0c, 0x6d, 0x65, 0x73, 0x73, 0x61,
+ 0x67, 0x65, 0x5f, 0x6e, 0x6f, 0x64, 0x65, 0x18, 0x65, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e,
+ 0x6f, 0x6e, 0x65, 0x62, 0x6f, 0x74, 0x2e, 0x46, 0x6f, 0x72, 0x77, 0x61, 0x72, 0x64, 0x4d, 0x65,
+ 0x73, 0x73, 0x61, 0x67, 0x65, 0x4e, 0x6f, 0x64, 0x65, 0x48, 0x00, 0x52, 0x0b, 0x6d, 0x65, 0x73,
+ 0x73, 0x61, 0x67, 0x65, 0x4e, 0x6f, 0x64, 0x65, 0x12, 0x23, 0x0a, 0x0c, 0x66, 0x6f, 0x72, 0x77,
+ 0x61, 0x72, 0x64, 0x5f, 0x6e, 0x6f, 0x64, 0x65, 0x18, 0x66, 0x20, 0x01, 0x28, 0x05, 0x48, 0x00,
+ 0x52, 0x0b, 0x66, 0x6f, 0x72, 0x77, 0x61, 0x72, 0x64, 0x4e, 0x6f, 0x64, 0x65, 0x42, 0x09, 0x0a,
+ 0x07, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x22, 0x40, 0x0a, 0x0c, 0x46, 0x6f, 0x72, 0x77,
+ 0x61, 0x72, 0x64, 0x43, 0x68, 0x61, 0x69, 0x6e, 0x12, 0x30, 0x0a, 0x07, 0x63, 0x6f, 0x6e, 0x74,
+ 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x6f, 0x6e, 0x65, 0x62,
+ 0x6f, 0x74, 0x2e, 0x46, 0x6f, 0x72, 0x77, 0x61, 0x72, 0x64, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x6e,
+ 0x74, 0x52, 0x07, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x22, 0xc1, 0x01, 0x0a, 0x0e, 0x46,
+ 0x6f, 0x72, 0x77, 0x61, 0x72, 0x64, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x2a, 0x0a,
+ 0x05, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x6f,
+ 0x6e, 0x65, 0x62, 0x6f, 0x74, 0x2e, 0x46, 0x6f, 0x72, 0x77, 0x61, 0x72, 0x64, 0x43, 0x68, 0x61,
+ 0x69, 0x6e, 0x52, 0x05, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x12, 0x34, 0x0a, 0x04, 0x64, 0x61, 0x74,
+ 0x61, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x6f, 0x6e, 0x65, 0x62, 0x6f, 0x74,
+ 0x2e, 0x46, 0x6f, 0x72, 0x77, 0x61, 0x72, 0x64, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e,
+ 0x44, 0x61, 0x74, 0x61, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x1a,
+ 0x4d, 0x0a, 0x09, 0x44, 0x61, 0x74, 0x61, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03,
+ 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x2a,
+ 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e,
+ 0x6f, 0x6e, 0x65, 0x62, 0x6f, 0x74, 0x2e, 0x46, 0x6f, 0x72, 0x77, 0x61, 0x72, 0x64, 0x43, 0x68,
+ 0x61, 0x69, 0x6e, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x42, 0x0a,
+ 0x5a, 0x08, 0x2e, 0x2f, 0x6f, 0x6e, 0x65, 0x62, 0x6f, 0x74, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74,
+ 0x6f, 0x33,
+}
+
+var (
+ file_onebot_forward_proto_rawDescOnce sync.Once
+ file_onebot_forward_proto_rawDescData = file_onebot_forward_proto_rawDesc
+)
+
+func file_onebot_forward_proto_rawDescGZIP() []byte {
+ file_onebot_forward_proto_rawDescOnce.Do(func() {
+ file_onebot_forward_proto_rawDescData = protoimpl.X.CompressGZIP(file_onebot_forward_proto_rawDescData)
+ })
+ return file_onebot_forward_proto_rawDescData
+}
+
+var file_onebot_forward_proto_msgTypes = make([]protoimpl.MessageInfo, 5)
+var file_onebot_forward_proto_goTypes = []interface{}{
+ (*ForwardMessageNode)(nil), // 0: onebot.ForwardMessageNode
+ (*ForwardContent)(nil), // 1: onebot.ForwardContent
+ (*ForwardChain)(nil), // 2: onebot.ForwardChain
+ (*ForwardMessage)(nil), // 3: onebot.ForwardMessage
+ nil, // 4: onebot.ForwardMessage.DataEntry
+ (*Message)(nil), // 5: onebot.Message
+}
+var file_onebot_forward_proto_depIdxs = []int32{
+ 5, // 0: onebot.ForwardMessageNode.message:type_name -> onebot.Message
+ 0, // 1: onebot.ForwardContent.message_node:type_name -> onebot.ForwardMessageNode
+ 1, // 2: onebot.ForwardChain.content:type_name -> onebot.ForwardContent
+ 2, // 3: onebot.ForwardMessage.chain:type_name -> onebot.ForwardChain
+ 4, // 4: onebot.ForwardMessage.data:type_name -> onebot.ForwardMessage.DataEntry
+ 2, // 5: onebot.ForwardMessage.DataEntry.value:type_name -> onebot.ForwardChain
+ 6, // [6:6] is the sub-list for method output_type
+ 6, // [6:6] is the sub-list for method input_type
+ 6, // [6:6] is the sub-list for extension type_name
+ 6, // [6:6] is the sub-list for extension extendee
+ 0, // [0:6] is the sub-list for field type_name
+}
+
+func init() { file_onebot_forward_proto_init() }
+func file_onebot_forward_proto_init() {
+ if File_onebot_forward_proto != nil {
+ return
+ }
+ file_onebot_base_proto_init()
+ if !protoimpl.UnsafeEnabled {
+ file_onebot_forward_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*ForwardMessageNode); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_onebot_forward_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*ForwardContent); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_onebot_forward_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*ForwardChain); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_onebot_forward_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*ForwardMessage); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ }
+ file_onebot_forward_proto_msgTypes[1].OneofWrappers = []interface{}{
+ (*ForwardContent_MessageNode)(nil),
+ (*ForwardContent_ForwardNode)(nil),
+ }
+ type x struct{}
+ out := protoimpl.TypeBuilder{
+ File: protoimpl.DescBuilder{
+ GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
+ RawDescriptor: file_onebot_forward_proto_rawDesc,
+ NumEnums: 0,
+ NumMessages: 5,
+ NumExtensions: 0,
+ NumServices: 0,
+ },
+ GoTypes: file_onebot_forward_proto_goTypes,
+ DependencyIndexes: file_onebot_forward_proto_depIdxs,
+ MessageInfos: file_onebot_forward_proto_msgTypes,
+ }.Build()
+ File_onebot_forward_proto = out.File
+ file_onebot_forward_proto_rawDesc = nil
+ file_onebot_forward_proto_goTypes = nil
+ file_onebot_forward_proto_depIdxs = nil
+}
diff --git a/proto_gen/onebot/onebot_frame.pb.go b/proto_gen/onebot/onebot_frame.pb.go
index c0e42ff..923ffb6 100644
--- a/proto_gen/onebot/onebot_frame.pb.go
+++ b/proto_gen/onebot/onebot_frame.pb.go
@@ -1,26 +1,24 @@
-// Code generated by protoc-gen-gogo. DO NOT EDIT.
+// Code generated by protoc-gen-go. DO NOT EDIT.
+// versions:
+// protoc-gen-go v1.29.0
+// protoc v4.22.2
// source: onebot_frame.proto
package onebot
import (
- fmt "fmt"
- proto "github.com/golang/protobuf/proto"
- io "io"
- math "math"
- math_bits "math/bits"
+ protoreflect "google.golang.org/protobuf/reflect/protoreflect"
+ protoimpl "google.golang.org/protobuf/runtime/protoimpl"
+ reflect "reflect"
+ sync "sync"
)
-// 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
+const (
+ // Verify that this generated code is sufficiently up-to-date.
+ _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
+ // Verify that runtime/protoimpl is sufficiently up-to-date.
+ _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
+)
type Frame_FrameType int32
@@ -39,6 +37,8 @@ const (
Frame_TFriendRequestEvent Frame_FrameType = 111
Frame_TGroupRequestEvent Frame_FrameType = 112
Frame_TGroupTempMessageEvent Frame_FrameType = 113
+ Frame_TGroupNotifyEvent Frame_FrameType = 114
+ Frame_TChannelMessageEvent Frame_FrameType = 115
Frame_TSendPrivateMsgReq Frame_FrameType = 201
Frame_TSendGroupMsgReq Frame_FrameType = 202
Frame_TSendMsgReq Frame_FrameType = 203
@@ -81,6 +81,7 @@ const (
Frame_TSendMusicReq Frame_FrameType = 240
Frame_TSendGroupPokeReq Frame_FrameType = 241
Frame_TSendFriendPokeReq Frame_FrameType = 242
+ Frame_TSendChannelMsgReq Frame_FrameType = 243
Frame_TSendPrivateMsgResp Frame_FrameType = 301
Frame_TSendGroupMsgResp Frame_FrameType = 302
Frame_TSendMsgResp Frame_FrameType = 303
@@ -123,225 +124,260 @@ const (
Frame_TSendMusicResp Frame_FrameType = 340
Frame_TSendGroupPokeResp Frame_FrameType = 341
Frame_TSendFriendPokeResp Frame_FrameType = 342
+ Frame_TSendChannelMsgResp Frame_FrameType = 343
+)
+
+// Enum value maps for Frame_FrameType.
+var (
+ Frame_FrameType_name = map[int32]string{
+ 0: "TUNKNOWN",
+ 101: "TPrivateMessageEvent",
+ 102: "TGroupMessageEvent",
+ 103: "TGroupUploadNoticeEvent",
+ 104: "TGroupAdminNoticeEvent",
+ 105: "TGroupDecreaseNoticeEvent",
+ 106: "TGroupIncreaseNoticeEvent",
+ 107: "TGroupBanNoticeEvent",
+ 108: "TFriendAddNoticeEvent",
+ 109: "TGroupRecallNoticeEvent",
+ 110: "TFriendRecallNoticeEvent",
+ 111: "TFriendRequestEvent",
+ 112: "TGroupRequestEvent",
+ 113: "TGroupTempMessageEvent",
+ 114: "TGroupNotifyEvent",
+ 115: "TChannelMessageEvent",
+ 201: "TSendPrivateMsgReq",
+ 202: "TSendGroupMsgReq",
+ 203: "TSendMsgReq",
+ 204: "TDeleteMsgReq",
+ 205: "TGetMsgReq",
+ 206: "TGetForwardMsgReq",
+ 207: "TSendLikeReq",
+ 208: "TSetGroupKickReq",
+ 209: "TSetGroupBanReq",
+ 210: "TSetGroupAnonymousReq",
+ 211: "TSetGroupWholeBanReq",
+ 212: "TSetGroupAdminReq",
+ 213: "TSetGroupAnonymousBanReq",
+ 214: "TSetGroupCardReq",
+ 215: "TSetGroupNameReq",
+ 216: "TSetGroupLeaveReq",
+ 217: "TSetGroupSpecialTitleReq",
+ 218: "TSetFriendAddRequestReq",
+ 219: "TSetGroupAddRequestReq",
+ 220: "TGetLoginInfoReq",
+ 221: "TGetStrangerInfoReq",
+ 222: "TGetFriendListReq",
+ 223: "TGetGroupInfoReq",
+ 224: "TGetGroupListReq",
+ 225: "TGetGroupMemberInfoReq",
+ 226: "TGetGroupMemberListReq",
+ 227: "TGetGroupHonorInfoReq",
+ 228: "TGetCookiesReq",
+ 229: "TGetCsrfTokenReq",
+ 230: "TGetCredentialsReq",
+ 231: "TGetRecordReq",
+ 232: "TGetImageReq",
+ 233: "TCanSendImageReq",
+ 234: "TCanSendRecordReq",
+ 235: "TGetStatusReq",
+ 236: "TGetVersionInfoReq",
+ 237: "TSetRestartReq",
+ 238: "TCleanCacheReq",
+ 239: "TSetGroupSignInReq",
+ 240: "TSendMusicReq",
+ 241: "TSendGroupPokeReq",
+ 242: "TSendFriendPokeReq",
+ 243: "TSendChannelMsgReq",
+ 301: "TSendPrivateMsgResp",
+ 302: "TSendGroupMsgResp",
+ 303: "TSendMsgResp",
+ 304: "TDeleteMsgResp",
+ 305: "TGetMsgResp",
+ 306: "TGetForwardMsgResp",
+ 307: "TSendLikeResp",
+ 308: "TSetGroupKickResp",
+ 309: "TSetGroupBanResp",
+ 310: "TSetGroupAnonymousResp",
+ 311: "TSetGroupWholeBanResp",
+ 312: "TSetGroupAdminResp",
+ 313: "TSetGroupAnonymousBanResp",
+ 314: "TSetGroupCardResp",
+ 315: "TSetGroupNameResp",
+ 316: "TSetGroupLeaveResp",
+ 317: "TSetGroupSpecialTitleResp",
+ 318: "TSetFriendAddRequestResp",
+ 319: "TSetGroupAddRequestResp",
+ 320: "TGetLoginInfoResp",
+ 321: "TGetStrangerInfoResp",
+ 322: "TGetFriendListResp",
+ 323: "TGetGroupInfoResp",
+ 324: "TGetGroupListResp",
+ 325: "TGetGroupMemberInfoResp",
+ 326: "TGetGroupMemberListResp",
+ 327: "TGetGroupHonorInfoResp",
+ 328: "TGetCookiesResp",
+ 329: "TGetCsrfTokenResp",
+ 330: "TGetCredentialsResp",
+ 331: "TGetRecordResp",
+ 332: "TGetImageResp",
+ 333: "TCanSendImageResp",
+ 334: "TCanSendRecordResp",
+ 335: "TGetStatusResp",
+ 336: "TGetVersionInfoResp",
+ 337: "TSetRestartResp",
+ 338: "TCleanCacheResp",
+ 339: "TSetGroupSignInResp",
+ 340: "TSendMusicResp",
+ 341: "TSendGroupPokeResp",
+ 342: "TSendFriendPokeResp",
+ 343: "TSendChannelMsgResp",
+ }
+ Frame_FrameType_value = map[string]int32{
+ "TUNKNOWN": 0,
+ "TPrivateMessageEvent": 101,
+ "TGroupMessageEvent": 102,
+ "TGroupUploadNoticeEvent": 103,
+ "TGroupAdminNoticeEvent": 104,
+ "TGroupDecreaseNoticeEvent": 105,
+ "TGroupIncreaseNoticeEvent": 106,
+ "TGroupBanNoticeEvent": 107,
+ "TFriendAddNoticeEvent": 108,
+ "TGroupRecallNoticeEvent": 109,
+ "TFriendRecallNoticeEvent": 110,
+ "TFriendRequestEvent": 111,
+ "TGroupRequestEvent": 112,
+ "TGroupTempMessageEvent": 113,
+ "TGroupNotifyEvent": 114,
+ "TChannelMessageEvent": 115,
+ "TSendPrivateMsgReq": 201,
+ "TSendGroupMsgReq": 202,
+ "TSendMsgReq": 203,
+ "TDeleteMsgReq": 204,
+ "TGetMsgReq": 205,
+ "TGetForwardMsgReq": 206,
+ "TSendLikeReq": 207,
+ "TSetGroupKickReq": 208,
+ "TSetGroupBanReq": 209,
+ "TSetGroupAnonymousReq": 210,
+ "TSetGroupWholeBanReq": 211,
+ "TSetGroupAdminReq": 212,
+ "TSetGroupAnonymousBanReq": 213,
+ "TSetGroupCardReq": 214,
+ "TSetGroupNameReq": 215,
+ "TSetGroupLeaveReq": 216,
+ "TSetGroupSpecialTitleReq": 217,
+ "TSetFriendAddRequestReq": 218,
+ "TSetGroupAddRequestReq": 219,
+ "TGetLoginInfoReq": 220,
+ "TGetStrangerInfoReq": 221,
+ "TGetFriendListReq": 222,
+ "TGetGroupInfoReq": 223,
+ "TGetGroupListReq": 224,
+ "TGetGroupMemberInfoReq": 225,
+ "TGetGroupMemberListReq": 226,
+ "TGetGroupHonorInfoReq": 227,
+ "TGetCookiesReq": 228,
+ "TGetCsrfTokenReq": 229,
+ "TGetCredentialsReq": 230,
+ "TGetRecordReq": 231,
+ "TGetImageReq": 232,
+ "TCanSendImageReq": 233,
+ "TCanSendRecordReq": 234,
+ "TGetStatusReq": 235,
+ "TGetVersionInfoReq": 236,
+ "TSetRestartReq": 237,
+ "TCleanCacheReq": 238,
+ "TSetGroupSignInReq": 239,
+ "TSendMusicReq": 240,
+ "TSendGroupPokeReq": 241,
+ "TSendFriendPokeReq": 242,
+ "TSendChannelMsgReq": 243,
+ "TSendPrivateMsgResp": 301,
+ "TSendGroupMsgResp": 302,
+ "TSendMsgResp": 303,
+ "TDeleteMsgResp": 304,
+ "TGetMsgResp": 305,
+ "TGetForwardMsgResp": 306,
+ "TSendLikeResp": 307,
+ "TSetGroupKickResp": 308,
+ "TSetGroupBanResp": 309,
+ "TSetGroupAnonymousResp": 310,
+ "TSetGroupWholeBanResp": 311,
+ "TSetGroupAdminResp": 312,
+ "TSetGroupAnonymousBanResp": 313,
+ "TSetGroupCardResp": 314,
+ "TSetGroupNameResp": 315,
+ "TSetGroupLeaveResp": 316,
+ "TSetGroupSpecialTitleResp": 317,
+ "TSetFriendAddRequestResp": 318,
+ "TSetGroupAddRequestResp": 319,
+ "TGetLoginInfoResp": 320,
+ "TGetStrangerInfoResp": 321,
+ "TGetFriendListResp": 322,
+ "TGetGroupInfoResp": 323,
+ "TGetGroupListResp": 324,
+ "TGetGroupMemberInfoResp": 325,
+ "TGetGroupMemberListResp": 326,
+ "TGetGroupHonorInfoResp": 327,
+ "TGetCookiesResp": 328,
+ "TGetCsrfTokenResp": 329,
+ "TGetCredentialsResp": 330,
+ "TGetRecordResp": 331,
+ "TGetImageResp": 332,
+ "TCanSendImageResp": 333,
+ "TCanSendRecordResp": 334,
+ "TGetStatusResp": 335,
+ "TGetVersionInfoResp": 336,
+ "TSetRestartResp": 337,
+ "TCleanCacheResp": 338,
+ "TSetGroupSignInResp": 339,
+ "TSendMusicResp": 340,
+ "TSendGroupPokeResp": 341,
+ "TSendFriendPokeResp": 342,
+ "TSendChannelMsgResp": 343,
+ }
)
-var Frame_FrameType_name = map[int32]string{
- 0: "TUNKNOWN",
- 101: "TPrivateMessageEvent",
- 102: "TGroupMessageEvent",
- 103: "TGroupUploadNoticeEvent",
- 104: "TGroupAdminNoticeEvent",
- 105: "TGroupDecreaseNoticeEvent",
- 106: "TGroupIncreaseNoticeEvent",
- 107: "TGroupBanNoticeEvent",
- 108: "TFriendAddNoticeEvent",
- 109: "TGroupRecallNoticeEvent",
- 110: "TFriendRecallNoticeEvent",
- 111: "TFriendRequestEvent",
- 112: "TGroupRequestEvent",
- 113: "TGroupTempMessageEvent",
- 201: "TSendPrivateMsgReq",
- 202: "TSendGroupMsgReq",
- 203: "TSendMsgReq",
- 204: "TDeleteMsgReq",
- 205: "TGetMsgReq",
- 206: "TGetForwardMsgReq",
- 207: "TSendLikeReq",
- 208: "TSetGroupKickReq",
- 209: "TSetGroupBanReq",
- 210: "TSetGroupAnonymousReq",
- 211: "TSetGroupWholeBanReq",
- 212: "TSetGroupAdminReq",
- 213: "TSetGroupAnonymousBanReq",
- 214: "TSetGroupCardReq",
- 215: "TSetGroupNameReq",
- 216: "TSetGroupLeaveReq",
- 217: "TSetGroupSpecialTitleReq",
- 218: "TSetFriendAddRequestReq",
- 219: "TSetGroupAddRequestReq",
- 220: "TGetLoginInfoReq",
- 221: "TGetStrangerInfoReq",
- 222: "TGetFriendListReq",
- 223: "TGetGroupInfoReq",
- 224: "TGetGroupListReq",
- 225: "TGetGroupMemberInfoReq",
- 226: "TGetGroupMemberListReq",
- 227: "TGetGroupHonorInfoReq",
- 228: "TGetCookiesReq",
- 229: "TGetCsrfTokenReq",
- 230: "TGetCredentialsReq",
- 231: "TGetRecordReq",
- 232: "TGetImageReq",
- 233: "TCanSendImageReq",
- 234: "TCanSendRecordReq",
- 235: "TGetStatusReq",
- 236: "TGetVersionInfoReq",
- 237: "TSetRestartReq",
- 238: "TCleanCacheReq",
- 239: "TSetGroupSignInReq",
- 240: "TSendMusicReq",
- 241: "TSendGroupPokeReq",
- 242: "TSendFriendPokeReq",
- 301: "TSendPrivateMsgResp",
- 302: "TSendGroupMsgResp",
- 303: "TSendMsgResp",
- 304: "TDeleteMsgResp",
- 305: "TGetMsgResp",
- 306: "TGetForwardMsgResp",
- 307: "TSendLikeResp",
- 308: "TSetGroupKickResp",
- 309: "TSetGroupBanResp",
- 310: "TSetGroupAnonymousResp",
- 311: "TSetGroupWholeBanResp",
- 312: "TSetGroupAdminResp",
- 313: "TSetGroupAnonymousBanResp",
- 314: "TSetGroupCardResp",
- 315: "TSetGroupNameResp",
- 316: "TSetGroupLeaveResp",
- 317: "TSetGroupSpecialTitleResp",
- 318: "TSetFriendAddRequestResp",
- 319: "TSetGroupAddRequestResp",
- 320: "TGetLoginInfoResp",
- 321: "TGetStrangerInfoResp",
- 322: "TGetFriendListResp",
- 323: "TGetGroupInfoResp",
- 324: "TGetGroupListResp",
- 325: "TGetGroupMemberInfoResp",
- 326: "TGetGroupMemberListResp",
- 327: "TGetGroupHonorInfoResp",
- 328: "TGetCookiesResp",
- 329: "TGetCsrfTokenResp",
- 330: "TGetCredentialsResp",
- 331: "TGetRecordResp",
- 332: "TGetImageResp",
- 333: "TCanSendImageResp",
- 334: "TCanSendRecordResp",
- 335: "TGetStatusResp",
- 336: "TGetVersionInfoResp",
- 337: "TSetRestartResp",
- 338: "TCleanCacheResp",
- 339: "TSetGroupSignInResp",
- 340: "TSendMusicResp",
- 341: "TSendGroupPokeResp",
- 342: "TSendFriendPokeResp",
-}
-
-var Frame_FrameType_value = map[string]int32{
- "TUNKNOWN": 0,
- "TPrivateMessageEvent": 101,
- "TGroupMessageEvent": 102,
- "TGroupUploadNoticeEvent": 103,
- "TGroupAdminNoticeEvent": 104,
- "TGroupDecreaseNoticeEvent": 105,
- "TGroupIncreaseNoticeEvent": 106,
- "TGroupBanNoticeEvent": 107,
- "TFriendAddNoticeEvent": 108,
- "TGroupRecallNoticeEvent": 109,
- "TFriendRecallNoticeEvent": 110,
- "TFriendRequestEvent": 111,
- "TGroupRequestEvent": 112,
- "TGroupTempMessageEvent": 113,
- "TSendPrivateMsgReq": 201,
- "TSendGroupMsgReq": 202,
- "TSendMsgReq": 203,
- "TDeleteMsgReq": 204,
- "TGetMsgReq": 205,
- "TGetForwardMsgReq": 206,
- "TSendLikeReq": 207,
- "TSetGroupKickReq": 208,
- "TSetGroupBanReq": 209,
- "TSetGroupAnonymousReq": 210,
- "TSetGroupWholeBanReq": 211,
- "TSetGroupAdminReq": 212,
- "TSetGroupAnonymousBanReq": 213,
- "TSetGroupCardReq": 214,
- "TSetGroupNameReq": 215,
- "TSetGroupLeaveReq": 216,
- "TSetGroupSpecialTitleReq": 217,
- "TSetFriendAddRequestReq": 218,
- "TSetGroupAddRequestReq": 219,
- "TGetLoginInfoReq": 220,
- "TGetStrangerInfoReq": 221,
- "TGetFriendListReq": 222,
- "TGetGroupInfoReq": 223,
- "TGetGroupListReq": 224,
- "TGetGroupMemberInfoReq": 225,
- "TGetGroupMemberListReq": 226,
- "TGetGroupHonorInfoReq": 227,
- "TGetCookiesReq": 228,
- "TGetCsrfTokenReq": 229,
- "TGetCredentialsReq": 230,
- "TGetRecordReq": 231,
- "TGetImageReq": 232,
- "TCanSendImageReq": 233,
- "TCanSendRecordReq": 234,
- "TGetStatusReq": 235,
- "TGetVersionInfoReq": 236,
- "TSetRestartReq": 237,
- "TCleanCacheReq": 238,
- "TSetGroupSignInReq": 239,
- "TSendMusicReq": 240,
- "TSendGroupPokeReq": 241,
- "TSendFriendPokeReq": 242,
- "TSendPrivateMsgResp": 301,
- "TSendGroupMsgResp": 302,
- "TSendMsgResp": 303,
- "TDeleteMsgResp": 304,
- "TGetMsgResp": 305,
- "TGetForwardMsgResp": 306,
- "TSendLikeResp": 307,
- "TSetGroupKickResp": 308,
- "TSetGroupBanResp": 309,
- "TSetGroupAnonymousResp": 310,
- "TSetGroupWholeBanResp": 311,
- "TSetGroupAdminResp": 312,
- "TSetGroupAnonymousBanResp": 313,
- "TSetGroupCardResp": 314,
- "TSetGroupNameResp": 315,
- "TSetGroupLeaveResp": 316,
- "TSetGroupSpecialTitleResp": 317,
- "TSetFriendAddRequestResp": 318,
- "TSetGroupAddRequestResp": 319,
- "TGetLoginInfoResp": 320,
- "TGetStrangerInfoResp": 321,
- "TGetFriendListResp": 322,
- "TGetGroupInfoResp": 323,
- "TGetGroupListResp": 324,
- "TGetGroupMemberInfoResp": 325,
- "TGetGroupMemberListResp": 326,
- "TGetGroupHonorInfoResp": 327,
- "TGetCookiesResp": 328,
- "TGetCsrfTokenResp": 329,
- "TGetCredentialsResp": 330,
- "TGetRecordResp": 331,
- "TGetImageResp": 332,
- "TCanSendImageResp": 333,
- "TCanSendRecordResp": 334,
- "TGetStatusResp": 335,
- "TGetVersionInfoResp": 336,
- "TSetRestartResp": 337,
- "TCleanCacheResp": 338,
- "TSetGroupSignInResp": 339,
- "TSendMusicResp": 340,
- "TSendGroupPokeResp": 341,
- "TSendFriendPokeResp": 342,
+func (x Frame_FrameType) Enum() *Frame_FrameType {
+ p := new(Frame_FrameType)
+ *p = x
+ return p
}
func (x Frame_FrameType) String() string {
- return proto.EnumName(Frame_FrameType_name, int32(x))
+ return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
+}
+
+func (Frame_FrameType) Descriptor() protoreflect.EnumDescriptor {
+ return file_onebot_frame_proto_enumTypes[0].Descriptor()
+}
+
+func (Frame_FrameType) Type() protoreflect.EnumType {
+ return &file_onebot_frame_proto_enumTypes[0]
+}
+
+func (x Frame_FrameType) Number() protoreflect.EnumNumber {
+ return protoreflect.EnumNumber(x)
}
+// Deprecated: Use Frame_FrameType.Descriptor instead.
func (Frame_FrameType) EnumDescriptor() ([]byte, []int) {
- return fileDescriptor_e0ef9cc77a921089, []int{0, 0}
+ return file_onebot_frame_proto_rawDescGZIP(), []int{0, 0}
}
type Frame struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
BotId int64 `protobuf:"varint,1,opt,name=bot_id,json=botId,proto3" json:"bot_id,omitempty"`
FrameType Frame_FrameType `protobuf:"varint,2,opt,name=frame_type,json=frameType,proto3,enum=onebot.Frame_FrameType" json:"frame_type,omitempty"`
Echo string `protobuf:"bytes,3,opt,name=echo,proto3" json:"echo,omitempty"`
- Ok bool `protobuf:"varint,4,opt,name=ok,proto3" json:"ok,omitempty"`
+ Ok bool `protobuf:"varint,4,opt,name=ok,proto3" json:"ok,omitempty"` // 是否正常 (API resp)
Extra map[string]string `protobuf:"bytes,100,rep,name=extra,proto3" json:"extra,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
- // Types that are valid to be assigned to Data:
+ // Types that are assignable to Data:
+ //
// *Frame_PrivateMessageEvent
// *Frame_GroupMessageEvent
// *Frame_GroupUploadNoticeEvent
@@ -355,6 +391,8 @@ type Frame struct {
// *Frame_FriendRequestEvent
// *Frame_GroupRequestEvent
// *Frame_GroupTempMessageEvent
+ // *Frame_GroupNotifyEvent
+ // *Frame_ChannelMessageEvent
// *Frame_SendPrivateMsgReq
// *Frame_SendGroupMsgReq
// *Frame_SendMsgReq
@@ -397,6 +435,7 @@ type Frame struct {
// *Frame_SendMusicReq
// *Frame_SendGroupPokeReq
// *Frame_SendFriendPokeReq
+ // *Frame_SendChannelMsgReq
// *Frame_SendPrivateMsgResp
// *Frame_SendGroupMsgResp
// *Frame_SendMsgResp
@@ -439,8744 +478,2453 @@ type Frame struct {
// *Frame_SendMusicResp
// *Frame_SendGroupPokeResp
// *Frame_SendFriendPokeResp
- Data isFrame_Data `protobuf_oneof:"data"`
- XXX_NoUnkeyedLiteral struct{} `json:"-"`
- XXX_unrecognized []byte `json:"-"`
- XXX_sizecache int32 `json:"-"`
+ // *Frame_SendChannelMsgResp
+ Data isFrame_Data `protobuf_oneof:"data"`
}
-func (m *Frame) Reset() { *m = Frame{} }
-func (m *Frame) String() string { return proto.CompactTextString(m) }
-func (*Frame) ProtoMessage() {}
-func (*Frame) Descriptor() ([]byte, []int) {
- return fileDescriptor_e0ef9cc77a921089, []int{0}
-}
-func (m *Frame) XXX_Unmarshal(b []byte) error {
- return m.Unmarshal(b)
-}
-func (m *Frame) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- if deterministic {
- return xxx_messageInfo_Frame.Marshal(b, m, deterministic)
- } else {
- b = b[:cap(b)]
- n, err := m.MarshalToSizedBuffer(b)
- if err != nil {
- return nil, err
- }
- return b[:n], nil
+func (x *Frame) Reset() {
+ *x = Frame{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_onebot_frame_proto_msgTypes[0]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
}
}
-func (m *Frame) XXX_Merge(src proto.Message) {
- xxx_messageInfo_Frame.Merge(m, src)
-}
-func (m *Frame) XXX_Size() int {
- return m.Size()
-}
-func (m *Frame) XXX_DiscardUnknown() {
- xxx_messageInfo_Frame.DiscardUnknown(m)
-}
-
-var xxx_messageInfo_Frame proto.InternalMessageInfo
-
-type isFrame_Data interface {
- isFrame_Data()
- MarshalTo([]byte) (int, error)
- Size() int
-}
-type Frame_PrivateMessageEvent struct {
- PrivateMessageEvent *PrivateMessageEvent `protobuf:"bytes,101,opt,name=private_message_event,json=privateMessageEvent,proto3,oneof" json:"private_message_event,omitempty"`
-}
-type Frame_GroupMessageEvent struct {
- GroupMessageEvent *GroupMessageEvent `protobuf:"bytes,102,opt,name=group_message_event,json=groupMessageEvent,proto3,oneof" json:"group_message_event,omitempty"`
-}
-type Frame_GroupUploadNoticeEvent struct {
- GroupUploadNoticeEvent *GroupUploadNoticeEvent `protobuf:"bytes,103,opt,name=group_upload_notice_event,json=groupUploadNoticeEvent,proto3,oneof" json:"group_upload_notice_event,omitempty"`
-}
-type Frame_GroupAdminNoticeEvent struct {
- GroupAdminNoticeEvent *GroupAdminNoticeEvent `protobuf:"bytes,104,opt,name=group_admin_notice_event,json=groupAdminNoticeEvent,proto3,oneof" json:"group_admin_notice_event,omitempty"`
-}
-type Frame_GroupDecreaseNoticeEvent struct {
- GroupDecreaseNoticeEvent *GroupDecreaseNoticeEvent `protobuf:"bytes,105,opt,name=group_decrease_notice_event,json=groupDecreaseNoticeEvent,proto3,oneof" json:"group_decrease_notice_event,omitempty"`
-}
-type Frame_GroupIncreaseNoticeEvent struct {
- GroupIncreaseNoticeEvent *GroupIncreaseNoticeEvent `protobuf:"bytes,106,opt,name=group_increase_notice_event,json=groupIncreaseNoticeEvent,proto3,oneof" json:"group_increase_notice_event,omitempty"`
-}
-type Frame_GroupBanNoticeEvent struct {
- GroupBanNoticeEvent *GroupBanNoticeEvent `protobuf:"bytes,107,opt,name=group_ban_notice_event,json=groupBanNoticeEvent,proto3,oneof" json:"group_ban_notice_event,omitempty"`
-}
-type Frame_FriendAddNoticeEvent struct {
- FriendAddNoticeEvent *FriendAddNoticeEvent `protobuf:"bytes,108,opt,name=friend_add_notice_event,json=friendAddNoticeEvent,proto3,oneof" json:"friend_add_notice_event,omitempty"`
-}
-type Frame_GroupRecallNoticeEvent struct {
- GroupRecallNoticeEvent *GroupRecallNoticeEvent `protobuf:"bytes,109,opt,name=group_recall_notice_event,json=groupRecallNoticeEvent,proto3,oneof" json:"group_recall_notice_event,omitempty"`
-}
-type Frame_FriendRecallNoticeEvent struct {
- FriendRecallNoticeEvent *FriendRecallNoticeEvent `protobuf:"bytes,110,opt,name=friend_recall_notice_event,json=friendRecallNoticeEvent,proto3,oneof" json:"friend_recall_notice_event,omitempty"`
-}
-type Frame_FriendRequestEvent struct {
- FriendRequestEvent *FriendRequestEvent `protobuf:"bytes,111,opt,name=friend_request_event,json=friendRequestEvent,proto3,oneof" json:"friend_request_event,omitempty"`
-}
-type Frame_GroupRequestEvent struct {
- GroupRequestEvent *GroupRequestEvent `protobuf:"bytes,112,opt,name=group_request_event,json=groupRequestEvent,proto3,oneof" json:"group_request_event,omitempty"`
-}
-type Frame_GroupTempMessageEvent struct {
- GroupTempMessageEvent *GroupTempMessageEvent `protobuf:"bytes,113,opt,name=group_temp_message_event,json=groupTempMessageEvent,proto3,oneof" json:"group_temp_message_event,omitempty"`
-}
-type Frame_SendPrivateMsgReq struct {
- SendPrivateMsgReq *SendPrivateMsgReq `protobuf:"bytes,201,opt,name=send_private_msg_req,json=sendPrivateMsgReq,proto3,oneof" json:"send_private_msg_req,omitempty"`
-}
-type Frame_SendGroupMsgReq struct {
- SendGroupMsgReq *SendGroupMsgReq `protobuf:"bytes,202,opt,name=send_group_msg_req,json=sendGroupMsgReq,proto3,oneof" json:"send_group_msg_req,omitempty"`
-}
-type Frame_SendMsgReq struct {
- SendMsgReq *SendMsgReq `protobuf:"bytes,203,opt,name=send_msg_req,json=sendMsgReq,proto3,oneof" json:"send_msg_req,omitempty"`
-}
-type Frame_DeleteMsgReq struct {
- DeleteMsgReq *DeleteMsgReq `protobuf:"bytes,204,opt,name=delete_msg_req,json=deleteMsgReq,proto3,oneof" json:"delete_msg_req,omitempty"`
-}
-type Frame_GetMsgReq struct {
- GetMsgReq *GetMsgReq `protobuf:"bytes,205,opt,name=get_msg_req,json=getMsgReq,proto3,oneof" json:"get_msg_req,omitempty"`
-}
-type Frame_GetForwardMsgReq struct {
- GetForwardMsgReq *GetForwardMsgReq `protobuf:"bytes,206,opt,name=get_forward_msg_req,json=getForwardMsgReq,proto3,oneof" json:"get_forward_msg_req,omitempty"`
-}
-type Frame_SendLikeReq struct {
- SendLikeReq *SendLikeReq `protobuf:"bytes,207,opt,name=send_like_req,json=sendLikeReq,proto3,oneof" json:"send_like_req,omitempty"`
-}
-type Frame_SetGroupKickReq struct {
- SetGroupKickReq *SetGroupKickReq `protobuf:"bytes,208,opt,name=set_group_kick_req,json=setGroupKickReq,proto3,oneof" json:"set_group_kick_req,omitempty"`
-}
-type Frame_SetGroupBanReq struct {
- SetGroupBanReq *SetGroupBanReq `protobuf:"bytes,209,opt,name=set_group_ban_req,json=setGroupBanReq,proto3,oneof" json:"set_group_ban_req,omitempty"`
-}
-type Frame_SetGroupAnonymousBanReq struct {
- SetGroupAnonymousBanReq *SetGroupAnonymousBanReq `protobuf:"bytes,210,opt,name=set_group_anonymous_ban_req,json=setGroupAnonymousBanReq,proto3,oneof" json:"set_group_anonymous_ban_req,omitempty"`
-}
-type Frame_SetGroupWholeBanReq struct {
- SetGroupWholeBanReq *SetGroupWholeBanReq `protobuf:"bytes,211,opt,name=set_group_whole_ban_req,json=setGroupWholeBanReq,proto3,oneof" json:"set_group_whole_ban_req,omitempty"`
-}
-type Frame_SetGroupAdminReq struct {
- SetGroupAdminReq *SetGroupAdminReq `protobuf:"bytes,212,opt,name=set_group_admin_req,json=setGroupAdminReq,proto3,oneof" json:"set_group_admin_req,omitempty"`
-}
-type Frame_SetGroupAnonymousReq struct {
- SetGroupAnonymousReq *SetGroupAnonymousReq `protobuf:"bytes,213,opt,name=set_group_anonymous_req,json=setGroupAnonymousReq,proto3,oneof" json:"set_group_anonymous_req,omitempty"`
-}
-type Frame_SetGroupCardReq struct {
- SetGroupCardReq *SetGroupCardReq `protobuf:"bytes,214,opt,name=set_group_card_req,json=setGroupCardReq,proto3,oneof" json:"set_group_card_req,omitempty"`
-}
-type Frame_SetGroupNameReq struct {
- SetGroupNameReq *SetGroupNameReq `protobuf:"bytes,215,opt,name=set_group_name_req,json=setGroupNameReq,proto3,oneof" json:"set_group_name_req,omitempty"`
-}
-type Frame_SetGroupLeaveReq struct {
- SetGroupLeaveReq *SetGroupLeaveReq `protobuf:"bytes,216,opt,name=set_group_leave_req,json=setGroupLeaveReq,proto3,oneof" json:"set_group_leave_req,omitempty"`
-}
-type Frame_SetGroupSpecialTitleReq struct {
- SetGroupSpecialTitleReq *SetGroupSpecialTitleReq `protobuf:"bytes,217,opt,name=set_group_special_title_req,json=setGroupSpecialTitleReq,proto3,oneof" json:"set_group_special_title_req,omitempty"`
-}
-type Frame_SetFriendAddRequestReq struct {
- SetFriendAddRequestReq *SetFriendAddRequestReq `protobuf:"bytes,218,opt,name=set_friend_add_request_req,json=setFriendAddRequestReq,proto3,oneof" json:"set_friend_add_request_req,omitempty"`
-}
-type Frame_SetGroupAddRequestReq struct {
- SetGroupAddRequestReq *SetGroupAddRequestReq `protobuf:"bytes,219,opt,name=set_group_add_request_req,json=setGroupAddRequestReq,proto3,oneof" json:"set_group_add_request_req,omitempty"`
-}
-type Frame_GetLoginInfoReq struct {
- GetLoginInfoReq *GetLoginInfoReq `protobuf:"bytes,220,opt,name=get_login_info_req,json=getLoginInfoReq,proto3,oneof" json:"get_login_info_req,omitempty"`
-}
-type Frame_GetStrangerInfoReq struct {
- GetStrangerInfoReq *GetStrangerInfoReq `protobuf:"bytes,221,opt,name=get_stranger_info_req,json=getStrangerInfoReq,proto3,oneof" json:"get_stranger_info_req,omitempty"`
-}
-type Frame_GetFriendListReq struct {
- GetFriendListReq *GetFriendListReq `protobuf:"bytes,222,opt,name=get_friend_list_req,json=getFriendListReq,proto3,oneof" json:"get_friend_list_req,omitempty"`
-}
-type Frame_GetGroupInfoReq struct {
- GetGroupInfoReq *GetGroupInfoReq `protobuf:"bytes,223,opt,name=get_group_info_req,json=getGroupInfoReq,proto3,oneof" json:"get_group_info_req,omitempty"`
-}
-type Frame_GetGroupListReq struct {
- GetGroupListReq *GetGroupListReq `protobuf:"bytes,224,opt,name=get_group_list_req,json=getGroupListReq,proto3,oneof" json:"get_group_list_req,omitempty"`
-}
-type Frame_GetGroupMemberInfoReq struct {
- GetGroupMemberInfoReq *GetGroupMemberInfoReq `protobuf:"bytes,225,opt,name=get_group_member_info_req,json=getGroupMemberInfoReq,proto3,oneof" json:"get_group_member_info_req,omitempty"`
-}
-type Frame_GetGroupMemberListReq struct {
- GetGroupMemberListReq *GetGroupMemberListReq `protobuf:"bytes,226,opt,name=get_group_member_list_req,json=getGroupMemberListReq,proto3,oneof" json:"get_group_member_list_req,omitempty"`
-}
-type Frame_GetGroupHonorInfoReq struct {
- GetGroupHonorInfoReq *GetGroupHonorInfoReq `protobuf:"bytes,227,opt,name=get_group_honor_info_req,json=getGroupHonorInfoReq,proto3,oneof" json:"get_group_honor_info_req,omitempty"`
-}
-type Frame_GetCookiesReq struct {
- GetCookiesReq *GetCookiesReq `protobuf:"bytes,228,opt,name=get_cookies_req,json=getCookiesReq,proto3,oneof" json:"get_cookies_req,omitempty"`
-}
-type Frame_GetCsrfTokenReq struct {
- GetCsrfTokenReq *GetCsrfTokenReq `protobuf:"bytes,229,opt,name=get_csrf_token_req,json=getCsrfTokenReq,proto3,oneof" json:"get_csrf_token_req,omitempty"`
-}
-type Frame_GetCredentialsReq struct {
- GetCredentialsReq *GetCredentialsReq `protobuf:"bytes,230,opt,name=get_credentials_req,json=getCredentialsReq,proto3,oneof" json:"get_credentials_req,omitempty"`
-}
-type Frame_GetRecordReq struct {
- GetRecordReq *GetRecordReq `protobuf:"bytes,231,opt,name=get_record_req,json=getRecordReq,proto3,oneof" json:"get_record_req,omitempty"`
-}
-type Frame_GetImageReq struct {
- GetImageReq *GetImageReq `protobuf:"bytes,232,opt,name=get_image_req,json=getImageReq,proto3,oneof" json:"get_image_req,omitempty"`
-}
-type Frame_CanSendImageReq struct {
- CanSendImageReq *CanSendImageReq `protobuf:"bytes,233,opt,name=can_send_image_req,json=canSendImageReq,proto3,oneof" json:"can_send_image_req,omitempty"`
-}
-type Frame_CanSendRecordReq struct {
- CanSendRecordReq *CanSendRecordReq `protobuf:"bytes,234,opt,name=can_send_record_req,json=canSendRecordReq,proto3,oneof" json:"can_send_record_req,omitempty"`
-}
-type Frame_GetStatusReq struct {
- GetStatusReq *GetStatusReq `protobuf:"bytes,235,opt,name=get_status_req,json=getStatusReq,proto3,oneof" json:"get_status_req,omitempty"`
-}
-type Frame_GetVersionInfoReq struct {
- GetVersionInfoReq *GetVersionInfoReq `protobuf:"bytes,236,opt,name=get_version_info_req,json=getVersionInfoReq,proto3,oneof" json:"get_version_info_req,omitempty"`
-}
-type Frame_SetRestartReq struct {
- SetRestartReq *SetRestartReq `protobuf:"bytes,237,opt,name=set_restart_req,json=setRestartReq,proto3,oneof" json:"set_restart_req,omitempty"`
-}
-type Frame_CleanCacheReq struct {
- CleanCacheReq *CleanCacheReq `protobuf:"bytes,238,opt,name=clean_cache_req,json=cleanCacheReq,proto3,oneof" json:"clean_cache_req,omitempty"`
-}
-type Frame_SetGroupSignInReq struct {
- SetGroupSignInReq *SetGroupSignInReq `protobuf:"bytes,239,opt,name=set_group_sign_in_req,json=setGroupSignInReq,proto3,oneof" json:"set_group_sign_in_req,omitempty"`
-}
-type Frame_SendMusicReq struct {
- SendMusicReq *SendMusicReq `protobuf:"bytes,240,opt,name=send_music_req,json=sendMusicReq,proto3,oneof" json:"send_music_req,omitempty"`
-}
-type Frame_SendGroupPokeReq struct {
- SendGroupPokeReq *SendGroupPokeReq `protobuf:"bytes,241,opt,name=send_group_poke_req,json=sendGroupPokeReq,proto3,oneof" json:"send_group_poke_req,omitempty"`
-}
-type Frame_SendFriendPokeReq struct {
- SendFriendPokeReq *SendFriendPokeReq `protobuf:"bytes,242,opt,name=send_friend_poke_req,json=sendFriendPokeReq,proto3,oneof" json:"send_friend_poke_req,omitempty"`
-}
-type Frame_SendPrivateMsgResp struct {
- SendPrivateMsgResp *SendPrivateMsgResp `protobuf:"bytes,301,opt,name=send_private_msg_resp,json=sendPrivateMsgResp,proto3,oneof" json:"send_private_msg_resp,omitempty"`
-}
-type Frame_SendGroupMsgResp struct {
- SendGroupMsgResp *SendGroupMsgResp `protobuf:"bytes,302,opt,name=send_group_msg_resp,json=sendGroupMsgResp,proto3,oneof" json:"send_group_msg_resp,omitempty"`
-}
-type Frame_SendMsgResp struct {
- SendMsgResp *SendMsgResp `protobuf:"bytes,303,opt,name=send_msg_resp,json=sendMsgResp,proto3,oneof" json:"send_msg_resp,omitempty"`
-}
-type Frame_DeleteMsgResp struct {
- DeleteMsgResp *DeleteMsgResp `protobuf:"bytes,304,opt,name=delete_msg_resp,json=deleteMsgResp,proto3,oneof" json:"delete_msg_resp,omitempty"`
-}
-type Frame_GetMsgResp struct {
- GetMsgResp *GetMsgResp `protobuf:"bytes,305,opt,name=get_msg_resp,json=getMsgResp,proto3,oneof" json:"get_msg_resp,omitempty"`
-}
-type Frame_GetForwardMsgResp struct {
- GetForwardMsgResp *GetForwardMsgResp `protobuf:"bytes,306,opt,name=get_forward_msg_resp,json=getForwardMsgResp,proto3,oneof" json:"get_forward_msg_resp,omitempty"`
-}
-type Frame_SendLikeResp struct {
- SendLikeResp *SendLikeResp `protobuf:"bytes,307,opt,name=send_like_resp,json=sendLikeResp,proto3,oneof" json:"send_like_resp,omitempty"`
-}
-type Frame_SetGroupKickResp struct {
- SetGroupKickResp *SetGroupKickResp `protobuf:"bytes,308,opt,name=set_group_kick_resp,json=setGroupKickResp,proto3,oneof" json:"set_group_kick_resp,omitempty"`
-}
-type Frame_SetGroupBanResp struct {
- SetGroupBanResp *SetGroupBanResp `protobuf:"bytes,309,opt,name=set_group_ban_resp,json=setGroupBanResp,proto3,oneof" json:"set_group_ban_resp,omitempty"`
-}
-type Frame_SetGroupAnonymousBanResp struct {
- SetGroupAnonymousBanResp *SetGroupAnonymousBanResp `protobuf:"bytes,310,opt,name=set_group_anonymous_ban_resp,json=setGroupAnonymousBanResp,proto3,oneof" json:"set_group_anonymous_ban_resp,omitempty"`
-}
-type Frame_SetGroupWholeBanResp struct {
- SetGroupWholeBanResp *SetGroupWholeBanResp `protobuf:"bytes,311,opt,name=set_group_whole_ban_resp,json=setGroupWholeBanResp,proto3,oneof" json:"set_group_whole_ban_resp,omitempty"`
-}
-type Frame_SetGroupAdminResp struct {
- SetGroupAdminResp *SetGroupAdminResp `protobuf:"bytes,312,opt,name=set_group_admin_resp,json=setGroupAdminResp,proto3,oneof" json:"set_group_admin_resp,omitempty"`
-}
-type Frame_SetGroupAnonymousResp struct {
- SetGroupAnonymousResp *SetGroupAnonymousResp `protobuf:"bytes,313,opt,name=set_group_anonymous_resp,json=setGroupAnonymousResp,proto3,oneof" json:"set_group_anonymous_resp,omitempty"`
-}
-type Frame_SetGroupCardResp struct {
- SetGroupCardResp *SetGroupCardResp `protobuf:"bytes,314,opt,name=set_group_card_resp,json=setGroupCardResp,proto3,oneof" json:"set_group_card_resp,omitempty"`
-}
-type Frame_SetGroupNameResp struct {
- SetGroupNameResp *SetGroupNameResp `protobuf:"bytes,315,opt,name=set_group_name_resp,json=setGroupNameResp,proto3,oneof" json:"set_group_name_resp,omitempty"`
-}
-type Frame_SetGroupLeaveResp struct {
- SetGroupLeaveResp *SetGroupLeaveResp `protobuf:"bytes,316,opt,name=set_group_leave_resp,json=setGroupLeaveResp,proto3,oneof" json:"set_group_leave_resp,omitempty"`
-}
-type Frame_SetGroupSpecialTitleResp struct {
- SetGroupSpecialTitleResp *SetGroupSpecialTitleResp `protobuf:"bytes,317,opt,name=set_group_special_title_resp,json=setGroupSpecialTitleResp,proto3,oneof" json:"set_group_special_title_resp,omitempty"`
-}
-type Frame_SetFriendAddRequestResp struct {
- SetFriendAddRequestResp *SetFriendAddRequestResp `protobuf:"bytes,318,opt,name=set_friend_add_request_resp,json=setFriendAddRequestResp,proto3,oneof" json:"set_friend_add_request_resp,omitempty"`
-}
-type Frame_SetGroupAddRequestResp struct {
- SetGroupAddRequestResp *SetGroupAddRequestResp `protobuf:"bytes,319,opt,name=set_group_add_request_resp,json=setGroupAddRequestResp,proto3,oneof" json:"set_group_add_request_resp,omitempty"`
-}
-type Frame_GetLoginInfoResp struct {
- GetLoginInfoResp *GetLoginInfoResp `protobuf:"bytes,320,opt,name=get_login_info_resp,json=getLoginInfoResp,proto3,oneof" json:"get_login_info_resp,omitempty"`
-}
-type Frame_GetStrangerInfoResp struct {
- GetStrangerInfoResp *GetStrangerInfoResp `protobuf:"bytes,321,opt,name=get_stranger_info_resp,json=getStrangerInfoResp,proto3,oneof" json:"get_stranger_info_resp,omitempty"`
-}
-type Frame_GetFriendListResp struct {
- GetFriendListResp *GetFriendListResp `protobuf:"bytes,322,opt,name=get_friend_list_resp,json=getFriendListResp,proto3,oneof" json:"get_friend_list_resp,omitempty"`
-}
-type Frame_GetGroupInfoResp struct {
- GetGroupInfoResp *GetGroupInfoResp `protobuf:"bytes,323,opt,name=get_group_info_resp,json=getGroupInfoResp,proto3,oneof" json:"get_group_info_resp,omitempty"`
-}
-type Frame_GetGroupListResp struct {
- GetGroupListResp *GetGroupListResp `protobuf:"bytes,324,opt,name=get_group_list_resp,json=getGroupListResp,proto3,oneof" json:"get_group_list_resp,omitempty"`
-}
-type Frame_GetGroupMemberInfoResp struct {
- GetGroupMemberInfoResp *GetGroupMemberInfoResp `protobuf:"bytes,325,opt,name=get_group_member_info_resp,json=getGroupMemberInfoResp,proto3,oneof" json:"get_group_member_info_resp,omitempty"`
-}
-type Frame_GetGroupMemberListResp struct {
- GetGroupMemberListResp *GetGroupMemberListResp `protobuf:"bytes,326,opt,name=get_group_member_list_resp,json=getGroupMemberListResp,proto3,oneof" json:"get_group_member_list_resp,omitempty"`
-}
-type Frame_GetGroupHonorInfoResp struct {
- GetGroupHonorInfoResp *GetGroupHonorInfoResp `protobuf:"bytes,327,opt,name=get_group_honor_info_resp,json=getGroupHonorInfoResp,proto3,oneof" json:"get_group_honor_info_resp,omitempty"`
-}
-type Frame_GetCookiesResp struct {
- GetCookiesResp *GetCookiesResp `protobuf:"bytes,328,opt,name=get_cookies_resp,json=getCookiesResp,proto3,oneof" json:"get_cookies_resp,omitempty"`
-}
-type Frame_GetCsrfTokenResp struct {
- GetCsrfTokenResp *GetCsrfTokenResp `protobuf:"bytes,329,opt,name=get_csrf_token_resp,json=getCsrfTokenResp,proto3,oneof" json:"get_csrf_token_resp,omitempty"`
-}
-type Frame_GetCredentialsResp struct {
- GetCredentialsResp *GetCredentialsResp `protobuf:"bytes,330,opt,name=get_credentials_resp,json=getCredentialsResp,proto3,oneof" json:"get_credentials_resp,omitempty"`
-}
-type Frame_GetRecordResp struct {
- GetRecordResp *GetRecordResp `protobuf:"bytes,331,opt,name=get_record_resp,json=getRecordResp,proto3,oneof" json:"get_record_resp,omitempty"`
-}
-type Frame_GetImageResp struct {
- GetImageResp *GetImageResp `protobuf:"bytes,332,opt,name=get_image_resp,json=getImageResp,proto3,oneof" json:"get_image_resp,omitempty"`
-}
-type Frame_CanSendImageResp struct {
- CanSendImageResp *CanSendImageResp `protobuf:"bytes,333,opt,name=can_send_image_resp,json=canSendImageResp,proto3,oneof" json:"can_send_image_resp,omitempty"`
-}
-type Frame_CanSendRecordResp struct {
- CanSendRecordResp *CanSendRecordResp `protobuf:"bytes,334,opt,name=can_send_record_resp,json=canSendRecordResp,proto3,oneof" json:"can_send_record_resp,omitempty"`
-}
-type Frame_GetStatusResp struct {
- GetStatusResp *GetStatusResp `protobuf:"bytes,335,opt,name=get_status_resp,json=getStatusResp,proto3,oneof" json:"get_status_resp,omitempty"`
-}
-type Frame_GetVersionInfoResp struct {
- GetVersionInfoResp *GetVersionInfoResp `protobuf:"bytes,336,opt,name=get_version_info_resp,json=getVersionInfoResp,proto3,oneof" json:"get_version_info_resp,omitempty"`
-}
-type Frame_SetRestartResp struct {
- SetRestartResp *SetRestartResp `protobuf:"bytes,337,opt,name=set_restart_resp,json=setRestartResp,proto3,oneof" json:"set_restart_resp,omitempty"`
-}
-type Frame_CleanCacheResp struct {
- CleanCacheResp *CleanCacheResp `protobuf:"bytes,338,opt,name=clean_cache_resp,json=cleanCacheResp,proto3,oneof" json:"clean_cache_resp,omitempty"`
-}
-type Frame_SetGroupSignInResp struct {
- SetGroupSignInResp *SetGroupSignInResp `protobuf:"bytes,339,opt,name=set_group_sign_in_resp,json=setGroupSignInResp,proto3,oneof" json:"set_group_sign_in_resp,omitempty"`
-}
-type Frame_SendMusicResp struct {
- SendMusicResp *SendMusicResp `protobuf:"bytes,340,opt,name=send_music_resp,json=sendMusicResp,proto3,oneof" json:"send_music_resp,omitempty"`
-}
-type Frame_SendGroupPokeResp struct {
- SendGroupPokeResp *SendGroupPokeResp `protobuf:"bytes,341,opt,name=send_group_poke_resp,json=sendGroupPokeResp,proto3,oneof" json:"send_group_poke_resp,omitempty"`
-}
-type Frame_SendFriendPokeResp struct {
- SendFriendPokeResp *SendFriendPokeResp `protobuf:"bytes,342,opt,name=send_friend_poke_resp,json=sendFriendPokeResp,proto3,oneof" json:"send_friend_poke_resp,omitempty"`
+func (x *Frame) String() string {
+ return protoimpl.X.MessageStringOf(x)
}
-func (*Frame_PrivateMessageEvent) isFrame_Data() {}
-func (*Frame_GroupMessageEvent) isFrame_Data() {}
-func (*Frame_GroupUploadNoticeEvent) isFrame_Data() {}
-func (*Frame_GroupAdminNoticeEvent) isFrame_Data() {}
-func (*Frame_GroupDecreaseNoticeEvent) isFrame_Data() {}
-func (*Frame_GroupIncreaseNoticeEvent) isFrame_Data() {}
-func (*Frame_GroupBanNoticeEvent) isFrame_Data() {}
-func (*Frame_FriendAddNoticeEvent) isFrame_Data() {}
-func (*Frame_GroupRecallNoticeEvent) isFrame_Data() {}
-func (*Frame_FriendRecallNoticeEvent) isFrame_Data() {}
-func (*Frame_FriendRequestEvent) isFrame_Data() {}
-func (*Frame_GroupRequestEvent) isFrame_Data() {}
-func (*Frame_GroupTempMessageEvent) isFrame_Data() {}
-func (*Frame_SendPrivateMsgReq) isFrame_Data() {}
-func (*Frame_SendGroupMsgReq) isFrame_Data() {}
-func (*Frame_SendMsgReq) isFrame_Data() {}
-func (*Frame_DeleteMsgReq) isFrame_Data() {}
-func (*Frame_GetMsgReq) isFrame_Data() {}
-func (*Frame_GetForwardMsgReq) isFrame_Data() {}
-func (*Frame_SendLikeReq) isFrame_Data() {}
-func (*Frame_SetGroupKickReq) isFrame_Data() {}
-func (*Frame_SetGroupBanReq) isFrame_Data() {}
-func (*Frame_SetGroupAnonymousBanReq) isFrame_Data() {}
-func (*Frame_SetGroupWholeBanReq) isFrame_Data() {}
-func (*Frame_SetGroupAdminReq) isFrame_Data() {}
-func (*Frame_SetGroupAnonymousReq) isFrame_Data() {}
-func (*Frame_SetGroupCardReq) isFrame_Data() {}
-func (*Frame_SetGroupNameReq) isFrame_Data() {}
-func (*Frame_SetGroupLeaveReq) isFrame_Data() {}
-func (*Frame_SetGroupSpecialTitleReq) isFrame_Data() {}
-func (*Frame_SetFriendAddRequestReq) isFrame_Data() {}
-func (*Frame_SetGroupAddRequestReq) isFrame_Data() {}
-func (*Frame_GetLoginInfoReq) isFrame_Data() {}
-func (*Frame_GetStrangerInfoReq) isFrame_Data() {}
-func (*Frame_GetFriendListReq) isFrame_Data() {}
-func (*Frame_GetGroupInfoReq) isFrame_Data() {}
-func (*Frame_GetGroupListReq) isFrame_Data() {}
-func (*Frame_GetGroupMemberInfoReq) isFrame_Data() {}
-func (*Frame_GetGroupMemberListReq) isFrame_Data() {}
-func (*Frame_GetGroupHonorInfoReq) isFrame_Data() {}
-func (*Frame_GetCookiesReq) isFrame_Data() {}
-func (*Frame_GetCsrfTokenReq) isFrame_Data() {}
-func (*Frame_GetCredentialsReq) isFrame_Data() {}
-func (*Frame_GetRecordReq) isFrame_Data() {}
-func (*Frame_GetImageReq) isFrame_Data() {}
-func (*Frame_CanSendImageReq) isFrame_Data() {}
-func (*Frame_CanSendRecordReq) isFrame_Data() {}
-func (*Frame_GetStatusReq) isFrame_Data() {}
-func (*Frame_GetVersionInfoReq) isFrame_Data() {}
-func (*Frame_SetRestartReq) isFrame_Data() {}
-func (*Frame_CleanCacheReq) isFrame_Data() {}
-func (*Frame_SetGroupSignInReq) isFrame_Data() {}
-func (*Frame_SendMusicReq) isFrame_Data() {}
-func (*Frame_SendGroupPokeReq) isFrame_Data() {}
-func (*Frame_SendFriendPokeReq) isFrame_Data() {}
-func (*Frame_SendPrivateMsgResp) isFrame_Data() {}
-func (*Frame_SendGroupMsgResp) isFrame_Data() {}
-func (*Frame_SendMsgResp) isFrame_Data() {}
-func (*Frame_DeleteMsgResp) isFrame_Data() {}
-func (*Frame_GetMsgResp) isFrame_Data() {}
-func (*Frame_GetForwardMsgResp) isFrame_Data() {}
-func (*Frame_SendLikeResp) isFrame_Data() {}
-func (*Frame_SetGroupKickResp) isFrame_Data() {}
-func (*Frame_SetGroupBanResp) isFrame_Data() {}
-func (*Frame_SetGroupAnonymousBanResp) isFrame_Data() {}
-func (*Frame_SetGroupWholeBanResp) isFrame_Data() {}
-func (*Frame_SetGroupAdminResp) isFrame_Data() {}
-func (*Frame_SetGroupAnonymousResp) isFrame_Data() {}
-func (*Frame_SetGroupCardResp) isFrame_Data() {}
-func (*Frame_SetGroupNameResp) isFrame_Data() {}
-func (*Frame_SetGroupLeaveResp) isFrame_Data() {}
-func (*Frame_SetGroupSpecialTitleResp) isFrame_Data() {}
-func (*Frame_SetFriendAddRequestResp) isFrame_Data() {}
-func (*Frame_SetGroupAddRequestResp) isFrame_Data() {}
-func (*Frame_GetLoginInfoResp) isFrame_Data() {}
-func (*Frame_GetStrangerInfoResp) isFrame_Data() {}
-func (*Frame_GetFriendListResp) isFrame_Data() {}
-func (*Frame_GetGroupInfoResp) isFrame_Data() {}
-func (*Frame_GetGroupListResp) isFrame_Data() {}
-func (*Frame_GetGroupMemberInfoResp) isFrame_Data() {}
-func (*Frame_GetGroupMemberListResp) isFrame_Data() {}
-func (*Frame_GetGroupHonorInfoResp) isFrame_Data() {}
-func (*Frame_GetCookiesResp) isFrame_Data() {}
-func (*Frame_GetCsrfTokenResp) isFrame_Data() {}
-func (*Frame_GetCredentialsResp) isFrame_Data() {}
-func (*Frame_GetRecordResp) isFrame_Data() {}
-func (*Frame_GetImageResp) isFrame_Data() {}
-func (*Frame_CanSendImageResp) isFrame_Data() {}
-func (*Frame_CanSendRecordResp) isFrame_Data() {}
-func (*Frame_GetStatusResp) isFrame_Data() {}
-func (*Frame_GetVersionInfoResp) isFrame_Data() {}
-func (*Frame_SetRestartResp) isFrame_Data() {}
-func (*Frame_CleanCacheResp) isFrame_Data() {}
-func (*Frame_SetGroupSignInResp) isFrame_Data() {}
-func (*Frame_SendMusicResp) isFrame_Data() {}
-func (*Frame_SendGroupPokeResp) isFrame_Data() {}
-func (*Frame_SendFriendPokeResp) isFrame_Data() {}
+func (*Frame) ProtoMessage() {}
-func (m *Frame) GetData() isFrame_Data {
- if m != nil {
- return m.Data
+func (x *Frame) ProtoReflect() protoreflect.Message {
+ mi := &file_onebot_frame_proto_msgTypes[0]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
}
- return nil
+ return mi.MessageOf(x)
}
-func (m *Frame) GetBotId() int64 {
- if m != nil {
- return m.BotId
+// Deprecated: Use Frame.ProtoReflect.Descriptor instead.
+func (*Frame) Descriptor() ([]byte, []int) {
+ return file_onebot_frame_proto_rawDescGZIP(), []int{0}
+}
+
+func (x *Frame) GetBotId() int64 {
+ if x != nil {
+ return x.BotId
}
return 0
}
-func (m *Frame) GetFrameType() Frame_FrameType {
- if m != nil {
- return m.FrameType
+func (x *Frame) GetFrameType() Frame_FrameType {
+ if x != nil {
+ return x.FrameType
}
return Frame_TUNKNOWN
}
-func (m *Frame) GetEcho() string {
- if m != nil {
- return m.Echo
+func (x *Frame) GetEcho() string {
+ if x != nil {
+ return x.Echo
}
return ""
}
-func (m *Frame) GetOk() bool {
- if m != nil {
- return m.Ok
+func (x *Frame) GetOk() bool {
+ if x != nil {
+ return x.Ok
}
return false
}
-func (m *Frame) GetExtra() map[string]string {
+func (x *Frame) GetExtra() map[string]string {
+ if x != nil {
+ return x.Extra
+ }
+ return nil
+}
+
+func (m *Frame) GetData() isFrame_Data {
if m != nil {
- return m.Extra
+ return m.Data
}
return nil
}
-func (m *Frame) GetPrivateMessageEvent() *PrivateMessageEvent {
- if x, ok := m.GetData().(*Frame_PrivateMessageEvent); ok {
+func (x *Frame) GetPrivateMessageEvent() *PrivateMessageEvent {
+ if x, ok := x.GetData().(*Frame_PrivateMessageEvent); ok {
return x.PrivateMessageEvent
}
return nil
}
-func (m *Frame) GetGroupMessageEvent() *GroupMessageEvent {
- if x, ok := m.GetData().(*Frame_GroupMessageEvent); ok {
+func (x *Frame) GetGroupMessageEvent() *GroupMessageEvent {
+ if x, ok := x.GetData().(*Frame_GroupMessageEvent); ok {
return x.GroupMessageEvent
}
return nil
}
-func (m *Frame) GetGroupUploadNoticeEvent() *GroupUploadNoticeEvent {
- if x, ok := m.GetData().(*Frame_GroupUploadNoticeEvent); ok {
+func (x *Frame) GetGroupUploadNoticeEvent() *GroupUploadNoticeEvent {
+ if x, ok := x.GetData().(*Frame_GroupUploadNoticeEvent); ok {
return x.GroupUploadNoticeEvent
}
return nil
}
-func (m *Frame) GetGroupAdminNoticeEvent() *GroupAdminNoticeEvent {
- if x, ok := m.GetData().(*Frame_GroupAdminNoticeEvent); ok {
+func (x *Frame) GetGroupAdminNoticeEvent() *GroupAdminNoticeEvent {
+ if x, ok := x.GetData().(*Frame_GroupAdminNoticeEvent); ok {
return x.GroupAdminNoticeEvent
}
return nil
}
-func (m *Frame) GetGroupDecreaseNoticeEvent() *GroupDecreaseNoticeEvent {
- if x, ok := m.GetData().(*Frame_GroupDecreaseNoticeEvent); ok {
+func (x *Frame) GetGroupDecreaseNoticeEvent() *GroupDecreaseNoticeEvent {
+ if x, ok := x.GetData().(*Frame_GroupDecreaseNoticeEvent); ok {
return x.GroupDecreaseNoticeEvent
}
return nil
}
-func (m *Frame) GetGroupIncreaseNoticeEvent() *GroupIncreaseNoticeEvent {
- if x, ok := m.GetData().(*Frame_GroupIncreaseNoticeEvent); ok {
+func (x *Frame) GetGroupIncreaseNoticeEvent() *GroupIncreaseNoticeEvent {
+ if x, ok := x.GetData().(*Frame_GroupIncreaseNoticeEvent); ok {
return x.GroupIncreaseNoticeEvent
}
return nil
}
-func (m *Frame) GetGroupBanNoticeEvent() *GroupBanNoticeEvent {
- if x, ok := m.GetData().(*Frame_GroupBanNoticeEvent); ok {
+func (x *Frame) GetGroupBanNoticeEvent() *GroupBanNoticeEvent {
+ if x, ok := x.GetData().(*Frame_GroupBanNoticeEvent); ok {
return x.GroupBanNoticeEvent
}
return nil
}
-func (m *Frame) GetFriendAddNoticeEvent() *FriendAddNoticeEvent {
- if x, ok := m.GetData().(*Frame_FriendAddNoticeEvent); ok {
+func (x *Frame) GetFriendAddNoticeEvent() *FriendAddNoticeEvent {
+ if x, ok := x.GetData().(*Frame_FriendAddNoticeEvent); ok {
return x.FriendAddNoticeEvent
}
return nil
}
-func (m *Frame) GetGroupRecallNoticeEvent() *GroupRecallNoticeEvent {
- if x, ok := m.GetData().(*Frame_GroupRecallNoticeEvent); ok {
+func (x *Frame) GetGroupRecallNoticeEvent() *GroupRecallNoticeEvent {
+ if x, ok := x.GetData().(*Frame_GroupRecallNoticeEvent); ok {
return x.GroupRecallNoticeEvent
}
return nil
}
-func (m *Frame) GetFriendRecallNoticeEvent() *FriendRecallNoticeEvent {
- if x, ok := m.GetData().(*Frame_FriendRecallNoticeEvent); ok {
+func (x *Frame) GetFriendRecallNoticeEvent() *FriendRecallNoticeEvent {
+ if x, ok := x.GetData().(*Frame_FriendRecallNoticeEvent); ok {
return x.FriendRecallNoticeEvent
}
return nil
}
-func (m *Frame) GetFriendRequestEvent() *FriendRequestEvent {
- if x, ok := m.GetData().(*Frame_FriendRequestEvent); ok {
+func (x *Frame) GetFriendRequestEvent() *FriendRequestEvent {
+ if x, ok := x.GetData().(*Frame_FriendRequestEvent); ok {
return x.FriendRequestEvent
}
return nil
}
-func (m *Frame) GetGroupRequestEvent() *GroupRequestEvent {
- if x, ok := m.GetData().(*Frame_GroupRequestEvent); ok {
+func (x *Frame) GetGroupRequestEvent() *GroupRequestEvent {
+ if x, ok := x.GetData().(*Frame_GroupRequestEvent); ok {
return x.GroupRequestEvent
}
return nil
}
-func (m *Frame) GetGroupTempMessageEvent() *GroupTempMessageEvent {
- if x, ok := m.GetData().(*Frame_GroupTempMessageEvent); ok {
+func (x *Frame) GetGroupTempMessageEvent() *GroupTempMessageEvent {
+ if x, ok := x.GetData().(*Frame_GroupTempMessageEvent); ok {
return x.GroupTempMessageEvent
}
return nil
}
-func (m *Frame) GetSendPrivateMsgReq() *SendPrivateMsgReq {
- if x, ok := m.GetData().(*Frame_SendPrivateMsgReq); ok {
+func (x *Frame) GetGroupNotifyEvent() *GroupNotifyEvent {
+ if x, ok := x.GetData().(*Frame_GroupNotifyEvent); ok {
+ return x.GroupNotifyEvent
+ }
+ return nil
+}
+
+func (x *Frame) GetChannelMessageEvent() *ChannelMessageEvent {
+ if x, ok := x.GetData().(*Frame_ChannelMessageEvent); ok {
+ return x.ChannelMessageEvent
+ }
+ return nil
+}
+
+func (x *Frame) GetSendPrivateMsgReq() *SendPrivateMsgReq {
+ if x, ok := x.GetData().(*Frame_SendPrivateMsgReq); ok {
return x.SendPrivateMsgReq
}
return nil
}
-func (m *Frame) GetSendGroupMsgReq() *SendGroupMsgReq {
- if x, ok := m.GetData().(*Frame_SendGroupMsgReq); ok {
+func (x *Frame) GetSendGroupMsgReq() *SendGroupMsgReq {
+ if x, ok := x.GetData().(*Frame_SendGroupMsgReq); ok {
return x.SendGroupMsgReq
}
return nil
}
-func (m *Frame) GetSendMsgReq() *SendMsgReq {
- if x, ok := m.GetData().(*Frame_SendMsgReq); ok {
+func (x *Frame) GetSendMsgReq() *SendMsgReq {
+ if x, ok := x.GetData().(*Frame_SendMsgReq); ok {
return x.SendMsgReq
}
return nil
}
-func (m *Frame) GetDeleteMsgReq() *DeleteMsgReq {
- if x, ok := m.GetData().(*Frame_DeleteMsgReq); ok {
+func (x *Frame) GetDeleteMsgReq() *DeleteMsgReq {
+ if x, ok := x.GetData().(*Frame_DeleteMsgReq); ok {
return x.DeleteMsgReq
}
return nil
}
-func (m *Frame) GetGetMsgReq() *GetMsgReq {
- if x, ok := m.GetData().(*Frame_GetMsgReq); ok {
+func (x *Frame) GetGetMsgReq() *GetMsgReq {
+ if x, ok := x.GetData().(*Frame_GetMsgReq); ok {
return x.GetMsgReq
}
return nil
}
-func (m *Frame) GetGetForwardMsgReq() *GetForwardMsgReq {
- if x, ok := m.GetData().(*Frame_GetForwardMsgReq); ok {
+func (x *Frame) GetGetForwardMsgReq() *GetForwardMsgReq {
+ if x, ok := x.GetData().(*Frame_GetForwardMsgReq); ok {
return x.GetForwardMsgReq
}
return nil
}
-func (m *Frame) GetSendLikeReq() *SendLikeReq {
- if x, ok := m.GetData().(*Frame_SendLikeReq); ok {
+func (x *Frame) GetSendLikeReq() *SendLikeReq {
+ if x, ok := x.GetData().(*Frame_SendLikeReq); ok {
return x.SendLikeReq
}
return nil
}
-func (m *Frame) GetSetGroupKickReq() *SetGroupKickReq {
- if x, ok := m.GetData().(*Frame_SetGroupKickReq); ok {
+func (x *Frame) GetSetGroupKickReq() *SetGroupKickReq {
+ if x, ok := x.GetData().(*Frame_SetGroupKickReq); ok {
return x.SetGroupKickReq
}
return nil
}
-func (m *Frame) GetSetGroupBanReq() *SetGroupBanReq {
- if x, ok := m.GetData().(*Frame_SetGroupBanReq); ok {
+func (x *Frame) GetSetGroupBanReq() *SetGroupBanReq {
+ if x, ok := x.GetData().(*Frame_SetGroupBanReq); ok {
return x.SetGroupBanReq
}
return nil
}
-func (m *Frame) GetSetGroupAnonymousBanReq() *SetGroupAnonymousBanReq {
- if x, ok := m.GetData().(*Frame_SetGroupAnonymousBanReq); ok {
+func (x *Frame) GetSetGroupAnonymousBanReq() *SetGroupAnonymousBanReq {
+ if x, ok := x.GetData().(*Frame_SetGroupAnonymousBanReq); ok {
return x.SetGroupAnonymousBanReq
}
return nil
}
-func (m *Frame) GetSetGroupWholeBanReq() *SetGroupWholeBanReq {
- if x, ok := m.GetData().(*Frame_SetGroupWholeBanReq); ok {
+func (x *Frame) GetSetGroupWholeBanReq() *SetGroupWholeBanReq {
+ if x, ok := x.GetData().(*Frame_SetGroupWholeBanReq); ok {
return x.SetGroupWholeBanReq
}
return nil
}
-func (m *Frame) GetSetGroupAdminReq() *SetGroupAdminReq {
- if x, ok := m.GetData().(*Frame_SetGroupAdminReq); ok {
+func (x *Frame) GetSetGroupAdminReq() *SetGroupAdminReq {
+ if x, ok := x.GetData().(*Frame_SetGroupAdminReq); ok {
return x.SetGroupAdminReq
}
return nil
}
-func (m *Frame) GetSetGroupAnonymousReq() *SetGroupAnonymousReq {
- if x, ok := m.GetData().(*Frame_SetGroupAnonymousReq); ok {
+func (x *Frame) GetSetGroupAnonymousReq() *SetGroupAnonymousReq {
+ if x, ok := x.GetData().(*Frame_SetGroupAnonymousReq); ok {
return x.SetGroupAnonymousReq
}
return nil
}
-func (m *Frame) GetSetGroupCardReq() *SetGroupCardReq {
- if x, ok := m.GetData().(*Frame_SetGroupCardReq); ok {
+func (x *Frame) GetSetGroupCardReq() *SetGroupCardReq {
+ if x, ok := x.GetData().(*Frame_SetGroupCardReq); ok {
return x.SetGroupCardReq
}
return nil
}
-func (m *Frame) GetSetGroupNameReq() *SetGroupNameReq {
- if x, ok := m.GetData().(*Frame_SetGroupNameReq); ok {
+func (x *Frame) GetSetGroupNameReq() *SetGroupNameReq {
+ if x, ok := x.GetData().(*Frame_SetGroupNameReq); ok {
return x.SetGroupNameReq
}
return nil
}
-func (m *Frame) GetSetGroupLeaveReq() *SetGroupLeaveReq {
- if x, ok := m.GetData().(*Frame_SetGroupLeaveReq); ok {
+func (x *Frame) GetSetGroupLeaveReq() *SetGroupLeaveReq {
+ if x, ok := x.GetData().(*Frame_SetGroupLeaveReq); ok {
return x.SetGroupLeaveReq
}
return nil
}
-func (m *Frame) GetSetGroupSpecialTitleReq() *SetGroupSpecialTitleReq {
- if x, ok := m.GetData().(*Frame_SetGroupSpecialTitleReq); ok {
+func (x *Frame) GetSetGroupSpecialTitleReq() *SetGroupSpecialTitleReq {
+ if x, ok := x.GetData().(*Frame_SetGroupSpecialTitleReq); ok {
return x.SetGroupSpecialTitleReq
}
return nil
}
-func (m *Frame) GetSetFriendAddRequestReq() *SetFriendAddRequestReq {
- if x, ok := m.GetData().(*Frame_SetFriendAddRequestReq); ok {
+func (x *Frame) GetSetFriendAddRequestReq() *SetFriendAddRequestReq {
+ if x, ok := x.GetData().(*Frame_SetFriendAddRequestReq); ok {
return x.SetFriendAddRequestReq
}
return nil
}
-func (m *Frame) GetSetGroupAddRequestReq() *SetGroupAddRequestReq {
- if x, ok := m.GetData().(*Frame_SetGroupAddRequestReq); ok {
+func (x *Frame) GetSetGroupAddRequestReq() *SetGroupAddRequestReq {
+ if x, ok := x.GetData().(*Frame_SetGroupAddRequestReq); ok {
return x.SetGroupAddRequestReq
}
return nil
}
-func (m *Frame) GetGetLoginInfoReq() *GetLoginInfoReq {
- if x, ok := m.GetData().(*Frame_GetLoginInfoReq); ok {
+func (x *Frame) GetGetLoginInfoReq() *GetLoginInfoReq {
+ if x, ok := x.GetData().(*Frame_GetLoginInfoReq); ok {
return x.GetLoginInfoReq
}
return nil
}
-func (m *Frame) GetGetStrangerInfoReq() *GetStrangerInfoReq {
- if x, ok := m.GetData().(*Frame_GetStrangerInfoReq); ok {
+func (x *Frame) GetGetStrangerInfoReq() *GetStrangerInfoReq {
+ if x, ok := x.GetData().(*Frame_GetStrangerInfoReq); ok {
return x.GetStrangerInfoReq
}
return nil
}
-func (m *Frame) GetGetFriendListReq() *GetFriendListReq {
- if x, ok := m.GetData().(*Frame_GetFriendListReq); ok {
+func (x *Frame) GetGetFriendListReq() *GetFriendListReq {
+ if x, ok := x.GetData().(*Frame_GetFriendListReq); ok {
return x.GetFriendListReq
}
return nil
}
-func (m *Frame) GetGetGroupInfoReq() *GetGroupInfoReq {
- if x, ok := m.GetData().(*Frame_GetGroupInfoReq); ok {
+func (x *Frame) GetGetGroupInfoReq() *GetGroupInfoReq {
+ if x, ok := x.GetData().(*Frame_GetGroupInfoReq); ok {
return x.GetGroupInfoReq
}
return nil
}
-func (m *Frame) GetGetGroupListReq() *GetGroupListReq {
- if x, ok := m.GetData().(*Frame_GetGroupListReq); ok {
+func (x *Frame) GetGetGroupListReq() *GetGroupListReq {
+ if x, ok := x.GetData().(*Frame_GetGroupListReq); ok {
return x.GetGroupListReq
}
return nil
}
-func (m *Frame) GetGetGroupMemberInfoReq() *GetGroupMemberInfoReq {
- if x, ok := m.GetData().(*Frame_GetGroupMemberInfoReq); ok {
+func (x *Frame) GetGetGroupMemberInfoReq() *GetGroupMemberInfoReq {
+ if x, ok := x.GetData().(*Frame_GetGroupMemberInfoReq); ok {
return x.GetGroupMemberInfoReq
}
return nil
}
-func (m *Frame) GetGetGroupMemberListReq() *GetGroupMemberListReq {
- if x, ok := m.GetData().(*Frame_GetGroupMemberListReq); ok {
+func (x *Frame) GetGetGroupMemberListReq() *GetGroupMemberListReq {
+ if x, ok := x.GetData().(*Frame_GetGroupMemberListReq); ok {
return x.GetGroupMemberListReq
}
return nil
}
-func (m *Frame) GetGetGroupHonorInfoReq() *GetGroupHonorInfoReq {
- if x, ok := m.GetData().(*Frame_GetGroupHonorInfoReq); ok {
+func (x *Frame) GetGetGroupHonorInfoReq() *GetGroupHonorInfoReq {
+ if x, ok := x.GetData().(*Frame_GetGroupHonorInfoReq); ok {
return x.GetGroupHonorInfoReq
}
return nil
}
-func (m *Frame) GetGetCookiesReq() *GetCookiesReq {
- if x, ok := m.GetData().(*Frame_GetCookiesReq); ok {
+func (x *Frame) GetGetCookiesReq() *GetCookiesReq {
+ if x, ok := x.GetData().(*Frame_GetCookiesReq); ok {
return x.GetCookiesReq
}
return nil
}
-func (m *Frame) GetGetCsrfTokenReq() *GetCsrfTokenReq {
- if x, ok := m.GetData().(*Frame_GetCsrfTokenReq); ok {
+func (x *Frame) GetGetCsrfTokenReq() *GetCsrfTokenReq {
+ if x, ok := x.GetData().(*Frame_GetCsrfTokenReq); ok {
return x.GetCsrfTokenReq
}
return nil
}
-func (m *Frame) GetGetCredentialsReq() *GetCredentialsReq {
- if x, ok := m.GetData().(*Frame_GetCredentialsReq); ok {
+func (x *Frame) GetGetCredentialsReq() *GetCredentialsReq {
+ if x, ok := x.GetData().(*Frame_GetCredentialsReq); ok {
return x.GetCredentialsReq
}
return nil
}
-func (m *Frame) GetGetRecordReq() *GetRecordReq {
- if x, ok := m.GetData().(*Frame_GetRecordReq); ok {
+func (x *Frame) GetGetRecordReq() *GetRecordReq {
+ if x, ok := x.GetData().(*Frame_GetRecordReq); ok {
return x.GetRecordReq
}
return nil
}
-func (m *Frame) GetGetImageReq() *GetImageReq {
- if x, ok := m.GetData().(*Frame_GetImageReq); ok {
+func (x *Frame) GetGetImageReq() *GetImageReq {
+ if x, ok := x.GetData().(*Frame_GetImageReq); ok {
return x.GetImageReq
}
return nil
}
-func (m *Frame) GetCanSendImageReq() *CanSendImageReq {
- if x, ok := m.GetData().(*Frame_CanSendImageReq); ok {
+func (x *Frame) GetCanSendImageReq() *CanSendImageReq {
+ if x, ok := x.GetData().(*Frame_CanSendImageReq); ok {
return x.CanSendImageReq
}
return nil
}
-func (m *Frame) GetCanSendRecordReq() *CanSendRecordReq {
- if x, ok := m.GetData().(*Frame_CanSendRecordReq); ok {
+func (x *Frame) GetCanSendRecordReq() *CanSendRecordReq {
+ if x, ok := x.GetData().(*Frame_CanSendRecordReq); ok {
return x.CanSendRecordReq
}
return nil
}
-func (m *Frame) GetGetStatusReq() *GetStatusReq {
- if x, ok := m.GetData().(*Frame_GetStatusReq); ok {
+func (x *Frame) GetGetStatusReq() *GetStatusReq {
+ if x, ok := x.GetData().(*Frame_GetStatusReq); ok {
return x.GetStatusReq
}
return nil
}
-func (m *Frame) GetGetVersionInfoReq() *GetVersionInfoReq {
- if x, ok := m.GetData().(*Frame_GetVersionInfoReq); ok {
+func (x *Frame) GetGetVersionInfoReq() *GetVersionInfoReq {
+ if x, ok := x.GetData().(*Frame_GetVersionInfoReq); ok {
return x.GetVersionInfoReq
}
return nil
}
-func (m *Frame) GetSetRestartReq() *SetRestartReq {
- if x, ok := m.GetData().(*Frame_SetRestartReq); ok {
+func (x *Frame) GetSetRestartReq() *SetRestartReq {
+ if x, ok := x.GetData().(*Frame_SetRestartReq); ok {
return x.SetRestartReq
}
return nil
}
-func (m *Frame) GetCleanCacheReq() *CleanCacheReq {
- if x, ok := m.GetData().(*Frame_CleanCacheReq); ok {
+func (x *Frame) GetCleanCacheReq() *CleanCacheReq {
+ if x, ok := x.GetData().(*Frame_CleanCacheReq); ok {
return x.CleanCacheReq
}
return nil
}
-func (m *Frame) GetSetGroupSignInReq() *SetGroupSignInReq {
- if x, ok := m.GetData().(*Frame_SetGroupSignInReq); ok {
+func (x *Frame) GetSetGroupSignInReq() *SetGroupSignInReq {
+ if x, ok := x.GetData().(*Frame_SetGroupSignInReq); ok {
return x.SetGroupSignInReq
}
return nil
}
-func (m *Frame) GetSendMusicReq() *SendMusicReq {
- if x, ok := m.GetData().(*Frame_SendMusicReq); ok {
+func (x *Frame) GetSendMusicReq() *SendMusicReq {
+ if x, ok := x.GetData().(*Frame_SendMusicReq); ok {
return x.SendMusicReq
}
return nil
}
-func (m *Frame) GetSendGroupPokeReq() *SendGroupPokeReq {
- if x, ok := m.GetData().(*Frame_SendGroupPokeReq); ok {
+func (x *Frame) GetSendGroupPokeReq() *SendGroupPokeReq {
+ if x, ok := x.GetData().(*Frame_SendGroupPokeReq); ok {
return x.SendGroupPokeReq
}
return nil
}
-func (m *Frame) GetSendFriendPokeReq() *SendFriendPokeReq {
- if x, ok := m.GetData().(*Frame_SendFriendPokeReq); ok {
+func (x *Frame) GetSendFriendPokeReq() *SendFriendPokeReq {
+ if x, ok := x.GetData().(*Frame_SendFriendPokeReq); ok {
return x.SendFriendPokeReq
}
return nil
}
-func (m *Frame) GetSendPrivateMsgResp() *SendPrivateMsgResp {
- if x, ok := m.GetData().(*Frame_SendPrivateMsgResp); ok {
+func (x *Frame) GetSendChannelMsgReq() *SendChannelMsgReq {
+ if x, ok := x.GetData().(*Frame_SendChannelMsgReq); ok {
+ return x.SendChannelMsgReq
+ }
+ return nil
+}
+
+func (x *Frame) GetSendPrivateMsgResp() *SendPrivateMsgResp {
+ if x, ok := x.GetData().(*Frame_SendPrivateMsgResp); ok {
return x.SendPrivateMsgResp
}
return nil
}
-func (m *Frame) GetSendGroupMsgResp() *SendGroupMsgResp {
- if x, ok := m.GetData().(*Frame_SendGroupMsgResp); ok {
+func (x *Frame) GetSendGroupMsgResp() *SendGroupMsgResp {
+ if x, ok := x.GetData().(*Frame_SendGroupMsgResp); ok {
return x.SendGroupMsgResp
}
return nil
}
-func (m *Frame) GetSendMsgResp() *SendMsgResp {
- if x, ok := m.GetData().(*Frame_SendMsgResp); ok {
+func (x *Frame) GetSendMsgResp() *SendMsgResp {
+ if x, ok := x.GetData().(*Frame_SendMsgResp); ok {
return x.SendMsgResp
}
return nil
}
-func (m *Frame) GetDeleteMsgResp() *DeleteMsgResp {
- if x, ok := m.GetData().(*Frame_DeleteMsgResp); ok {
+func (x *Frame) GetDeleteMsgResp() *DeleteMsgResp {
+ if x, ok := x.GetData().(*Frame_DeleteMsgResp); ok {
return x.DeleteMsgResp
}
return nil
}
-func (m *Frame) GetGetMsgResp() *GetMsgResp {
- if x, ok := m.GetData().(*Frame_GetMsgResp); ok {
+func (x *Frame) GetGetMsgResp() *GetMsgResp {
+ if x, ok := x.GetData().(*Frame_GetMsgResp); ok {
return x.GetMsgResp
}
return nil
}
-func (m *Frame) GetGetForwardMsgResp() *GetForwardMsgResp {
- if x, ok := m.GetData().(*Frame_GetForwardMsgResp); ok {
+func (x *Frame) GetGetForwardMsgResp() *GetForwardMsgResp {
+ if x, ok := x.GetData().(*Frame_GetForwardMsgResp); ok {
return x.GetForwardMsgResp
}
return nil
}
-func (m *Frame) GetSendLikeResp() *SendLikeResp {
- if x, ok := m.GetData().(*Frame_SendLikeResp); ok {
+func (x *Frame) GetSendLikeResp() *SendLikeResp {
+ if x, ok := x.GetData().(*Frame_SendLikeResp); ok {
return x.SendLikeResp
}
return nil
}
-func (m *Frame) GetSetGroupKickResp() *SetGroupKickResp {
- if x, ok := m.GetData().(*Frame_SetGroupKickResp); ok {
+func (x *Frame) GetSetGroupKickResp() *SetGroupKickResp {
+ if x, ok := x.GetData().(*Frame_SetGroupKickResp); ok {
return x.SetGroupKickResp
}
return nil
}
-func (m *Frame) GetSetGroupBanResp() *SetGroupBanResp {
- if x, ok := m.GetData().(*Frame_SetGroupBanResp); ok {
+func (x *Frame) GetSetGroupBanResp() *SetGroupBanResp {
+ if x, ok := x.GetData().(*Frame_SetGroupBanResp); ok {
return x.SetGroupBanResp
}
return nil
}
-func (m *Frame) GetSetGroupAnonymousBanResp() *SetGroupAnonymousBanResp {
- if x, ok := m.GetData().(*Frame_SetGroupAnonymousBanResp); ok {
+func (x *Frame) GetSetGroupAnonymousBanResp() *SetGroupAnonymousBanResp {
+ if x, ok := x.GetData().(*Frame_SetGroupAnonymousBanResp); ok {
return x.SetGroupAnonymousBanResp
}
return nil
}
-func (m *Frame) GetSetGroupWholeBanResp() *SetGroupWholeBanResp {
- if x, ok := m.GetData().(*Frame_SetGroupWholeBanResp); ok {
+func (x *Frame) GetSetGroupWholeBanResp() *SetGroupWholeBanResp {
+ if x, ok := x.GetData().(*Frame_SetGroupWholeBanResp); ok {
return x.SetGroupWholeBanResp
}
return nil
}
-func (m *Frame) GetSetGroupAdminResp() *SetGroupAdminResp {
- if x, ok := m.GetData().(*Frame_SetGroupAdminResp); ok {
+func (x *Frame) GetSetGroupAdminResp() *SetGroupAdminResp {
+ if x, ok := x.GetData().(*Frame_SetGroupAdminResp); ok {
return x.SetGroupAdminResp
}
return nil
}
-func (m *Frame) GetSetGroupAnonymousResp() *SetGroupAnonymousResp {
- if x, ok := m.GetData().(*Frame_SetGroupAnonymousResp); ok {
+func (x *Frame) GetSetGroupAnonymousResp() *SetGroupAnonymousResp {
+ if x, ok := x.GetData().(*Frame_SetGroupAnonymousResp); ok {
return x.SetGroupAnonymousResp
}
return nil
}
-func (m *Frame) GetSetGroupCardResp() *SetGroupCardResp {
- if x, ok := m.GetData().(*Frame_SetGroupCardResp); ok {
+func (x *Frame) GetSetGroupCardResp() *SetGroupCardResp {
+ if x, ok := x.GetData().(*Frame_SetGroupCardResp); ok {
return x.SetGroupCardResp
}
return nil
}
-func (m *Frame) GetSetGroupNameResp() *SetGroupNameResp {
- if x, ok := m.GetData().(*Frame_SetGroupNameResp); ok {
+func (x *Frame) GetSetGroupNameResp() *SetGroupNameResp {
+ if x, ok := x.GetData().(*Frame_SetGroupNameResp); ok {
return x.SetGroupNameResp
}
return nil
}
-func (m *Frame) GetSetGroupLeaveResp() *SetGroupLeaveResp {
- if x, ok := m.GetData().(*Frame_SetGroupLeaveResp); ok {
+func (x *Frame) GetSetGroupLeaveResp() *SetGroupLeaveResp {
+ if x, ok := x.GetData().(*Frame_SetGroupLeaveResp); ok {
return x.SetGroupLeaveResp
}
return nil
}
-func (m *Frame) GetSetGroupSpecialTitleResp() *SetGroupSpecialTitleResp {
- if x, ok := m.GetData().(*Frame_SetGroupSpecialTitleResp); ok {
+func (x *Frame) GetSetGroupSpecialTitleResp() *SetGroupSpecialTitleResp {
+ if x, ok := x.GetData().(*Frame_SetGroupSpecialTitleResp); ok {
return x.SetGroupSpecialTitleResp
}
return nil
}
-func (m *Frame) GetSetFriendAddRequestResp() *SetFriendAddRequestResp {
- if x, ok := m.GetData().(*Frame_SetFriendAddRequestResp); ok {
+func (x *Frame) GetSetFriendAddRequestResp() *SetFriendAddRequestResp {
+ if x, ok := x.GetData().(*Frame_SetFriendAddRequestResp); ok {
return x.SetFriendAddRequestResp
}
return nil
}
-func (m *Frame) GetSetGroupAddRequestResp() *SetGroupAddRequestResp {
- if x, ok := m.GetData().(*Frame_SetGroupAddRequestResp); ok {
+func (x *Frame) GetSetGroupAddRequestResp() *SetGroupAddRequestResp {
+ if x, ok := x.GetData().(*Frame_SetGroupAddRequestResp); ok {
return x.SetGroupAddRequestResp
}
return nil
}
-func (m *Frame) GetGetLoginInfoResp() *GetLoginInfoResp {
- if x, ok := m.GetData().(*Frame_GetLoginInfoResp); ok {
+func (x *Frame) GetGetLoginInfoResp() *GetLoginInfoResp {
+ if x, ok := x.GetData().(*Frame_GetLoginInfoResp); ok {
return x.GetLoginInfoResp
}
return nil
}
-func (m *Frame) GetGetStrangerInfoResp() *GetStrangerInfoResp {
- if x, ok := m.GetData().(*Frame_GetStrangerInfoResp); ok {
+func (x *Frame) GetGetStrangerInfoResp() *GetStrangerInfoResp {
+ if x, ok := x.GetData().(*Frame_GetStrangerInfoResp); ok {
return x.GetStrangerInfoResp
}
return nil
}
-func (m *Frame) GetGetFriendListResp() *GetFriendListResp {
- if x, ok := m.GetData().(*Frame_GetFriendListResp); ok {
+func (x *Frame) GetGetFriendListResp() *GetFriendListResp {
+ if x, ok := x.GetData().(*Frame_GetFriendListResp); ok {
return x.GetFriendListResp
}
return nil
}
-func (m *Frame) GetGetGroupInfoResp() *GetGroupInfoResp {
- if x, ok := m.GetData().(*Frame_GetGroupInfoResp); ok {
+func (x *Frame) GetGetGroupInfoResp() *GetGroupInfoResp {
+ if x, ok := x.GetData().(*Frame_GetGroupInfoResp); ok {
return x.GetGroupInfoResp
}
return nil
}
-func (m *Frame) GetGetGroupListResp() *GetGroupListResp {
- if x, ok := m.GetData().(*Frame_GetGroupListResp); ok {
+func (x *Frame) GetGetGroupListResp() *GetGroupListResp {
+ if x, ok := x.GetData().(*Frame_GetGroupListResp); ok {
return x.GetGroupListResp
}
return nil
}
-func (m *Frame) GetGetGroupMemberInfoResp() *GetGroupMemberInfoResp {
- if x, ok := m.GetData().(*Frame_GetGroupMemberInfoResp); ok {
+func (x *Frame) GetGetGroupMemberInfoResp() *GetGroupMemberInfoResp {
+ if x, ok := x.GetData().(*Frame_GetGroupMemberInfoResp); ok {
return x.GetGroupMemberInfoResp
}
return nil
}
-func (m *Frame) GetGetGroupMemberListResp() *GetGroupMemberListResp {
- if x, ok := m.GetData().(*Frame_GetGroupMemberListResp); ok {
+func (x *Frame) GetGetGroupMemberListResp() *GetGroupMemberListResp {
+ if x, ok := x.GetData().(*Frame_GetGroupMemberListResp); ok {
return x.GetGroupMemberListResp
}
return nil
}
-func (m *Frame) GetGetGroupHonorInfoResp() *GetGroupHonorInfoResp {
- if x, ok := m.GetData().(*Frame_GetGroupHonorInfoResp); ok {
+func (x *Frame) GetGetGroupHonorInfoResp() *GetGroupHonorInfoResp {
+ if x, ok := x.GetData().(*Frame_GetGroupHonorInfoResp); ok {
return x.GetGroupHonorInfoResp
}
return nil
}
-func (m *Frame) GetGetCookiesResp() *GetCookiesResp {
- if x, ok := m.GetData().(*Frame_GetCookiesResp); ok {
+func (x *Frame) GetGetCookiesResp() *GetCookiesResp {
+ if x, ok := x.GetData().(*Frame_GetCookiesResp); ok {
return x.GetCookiesResp
}
return nil
}
-func (m *Frame) GetGetCsrfTokenResp() *GetCsrfTokenResp {
- if x, ok := m.GetData().(*Frame_GetCsrfTokenResp); ok {
+func (x *Frame) GetGetCsrfTokenResp() *GetCsrfTokenResp {
+ if x, ok := x.GetData().(*Frame_GetCsrfTokenResp); ok {
return x.GetCsrfTokenResp
}
return nil
}
-func (m *Frame) GetGetCredentialsResp() *GetCredentialsResp {
- if x, ok := m.GetData().(*Frame_GetCredentialsResp); ok {
+func (x *Frame) GetGetCredentialsResp() *GetCredentialsResp {
+ if x, ok := x.GetData().(*Frame_GetCredentialsResp); ok {
return x.GetCredentialsResp
}
return nil
}
-func (m *Frame) GetGetRecordResp() *GetRecordResp {
- if x, ok := m.GetData().(*Frame_GetRecordResp); ok {
+func (x *Frame) GetGetRecordResp() *GetRecordResp {
+ if x, ok := x.GetData().(*Frame_GetRecordResp); ok {
return x.GetRecordResp
}
return nil
}
-func (m *Frame) GetGetImageResp() *GetImageResp {
- if x, ok := m.GetData().(*Frame_GetImageResp); ok {
+func (x *Frame) GetGetImageResp() *GetImageResp {
+ if x, ok := x.GetData().(*Frame_GetImageResp); ok {
return x.GetImageResp
}
return nil
}
-func (m *Frame) GetCanSendImageResp() *CanSendImageResp {
- if x, ok := m.GetData().(*Frame_CanSendImageResp); ok {
+func (x *Frame) GetCanSendImageResp() *CanSendImageResp {
+ if x, ok := x.GetData().(*Frame_CanSendImageResp); ok {
return x.CanSendImageResp
}
return nil
}
-func (m *Frame) GetCanSendRecordResp() *CanSendRecordResp {
- if x, ok := m.GetData().(*Frame_CanSendRecordResp); ok {
+func (x *Frame) GetCanSendRecordResp() *CanSendRecordResp {
+ if x, ok := x.GetData().(*Frame_CanSendRecordResp); ok {
return x.CanSendRecordResp
}
return nil
}
-func (m *Frame) GetGetStatusResp() *GetStatusResp {
- if x, ok := m.GetData().(*Frame_GetStatusResp); ok {
+func (x *Frame) GetGetStatusResp() *GetStatusResp {
+ if x, ok := x.GetData().(*Frame_GetStatusResp); ok {
return x.GetStatusResp
}
return nil
}
-func (m *Frame) GetGetVersionInfoResp() *GetVersionInfoResp {
- if x, ok := m.GetData().(*Frame_GetVersionInfoResp); ok {
+func (x *Frame) GetGetVersionInfoResp() *GetVersionInfoResp {
+ if x, ok := x.GetData().(*Frame_GetVersionInfoResp); ok {
return x.GetVersionInfoResp
}
return nil
}
-func (m *Frame) GetSetRestartResp() *SetRestartResp {
- if x, ok := m.GetData().(*Frame_SetRestartResp); ok {
+func (x *Frame) GetSetRestartResp() *SetRestartResp {
+ if x, ok := x.GetData().(*Frame_SetRestartResp); ok {
return x.SetRestartResp
}
return nil
}
-func (m *Frame) GetCleanCacheResp() *CleanCacheResp {
- if x, ok := m.GetData().(*Frame_CleanCacheResp); ok {
+func (x *Frame) GetCleanCacheResp() *CleanCacheResp {
+ if x, ok := x.GetData().(*Frame_CleanCacheResp); ok {
return x.CleanCacheResp
}
return nil
}
-func (m *Frame) GetSetGroupSignInResp() *SetGroupSignInResp {
- if x, ok := m.GetData().(*Frame_SetGroupSignInResp); ok {
+func (x *Frame) GetSetGroupSignInResp() *SetGroupSignInResp {
+ if x, ok := x.GetData().(*Frame_SetGroupSignInResp); ok {
return x.SetGroupSignInResp
}
return nil
}
-func (m *Frame) GetSendMusicResp() *SendMusicResp {
- if x, ok := m.GetData().(*Frame_SendMusicResp); ok {
+func (x *Frame) GetSendMusicResp() *SendMusicResp {
+ if x, ok := x.GetData().(*Frame_SendMusicResp); ok {
return x.SendMusicResp
}
return nil
}
-func (m *Frame) GetSendGroupPokeResp() *SendGroupPokeResp {
- if x, ok := m.GetData().(*Frame_SendGroupPokeResp); ok {
+func (x *Frame) GetSendGroupPokeResp() *SendGroupPokeResp {
+ if x, ok := x.GetData().(*Frame_SendGroupPokeResp); ok {
return x.SendGroupPokeResp
}
return nil
}
-func (m *Frame) GetSendFriendPokeResp() *SendFriendPokeResp {
- if x, ok := m.GetData().(*Frame_SendFriendPokeResp); ok {
+func (x *Frame) GetSendFriendPokeResp() *SendFriendPokeResp {
+ if x, ok := x.GetData().(*Frame_SendFriendPokeResp); ok {
return x.SendFriendPokeResp
}
return nil
}
-// XXX_OneofWrappers is for the internal use of the proto package.
-func (*Frame) XXX_OneofWrappers() []interface{} {
- return []interface{}{
- (*Frame_PrivateMessageEvent)(nil),
- (*Frame_GroupMessageEvent)(nil),
- (*Frame_GroupUploadNoticeEvent)(nil),
- (*Frame_GroupAdminNoticeEvent)(nil),
- (*Frame_GroupDecreaseNoticeEvent)(nil),
- (*Frame_GroupIncreaseNoticeEvent)(nil),
- (*Frame_GroupBanNoticeEvent)(nil),
- (*Frame_FriendAddNoticeEvent)(nil),
- (*Frame_GroupRecallNoticeEvent)(nil),
- (*Frame_FriendRecallNoticeEvent)(nil),
- (*Frame_FriendRequestEvent)(nil),
- (*Frame_GroupRequestEvent)(nil),
- (*Frame_GroupTempMessageEvent)(nil),
- (*Frame_SendPrivateMsgReq)(nil),
- (*Frame_SendGroupMsgReq)(nil),
- (*Frame_SendMsgReq)(nil),
- (*Frame_DeleteMsgReq)(nil),
- (*Frame_GetMsgReq)(nil),
- (*Frame_GetForwardMsgReq)(nil),
- (*Frame_SendLikeReq)(nil),
- (*Frame_SetGroupKickReq)(nil),
- (*Frame_SetGroupBanReq)(nil),
- (*Frame_SetGroupAnonymousBanReq)(nil),
- (*Frame_SetGroupWholeBanReq)(nil),
- (*Frame_SetGroupAdminReq)(nil),
- (*Frame_SetGroupAnonymousReq)(nil),
- (*Frame_SetGroupCardReq)(nil),
- (*Frame_SetGroupNameReq)(nil),
- (*Frame_SetGroupLeaveReq)(nil),
- (*Frame_SetGroupSpecialTitleReq)(nil),
- (*Frame_SetFriendAddRequestReq)(nil),
- (*Frame_SetGroupAddRequestReq)(nil),
- (*Frame_GetLoginInfoReq)(nil),
- (*Frame_GetStrangerInfoReq)(nil),
- (*Frame_GetFriendListReq)(nil),
- (*Frame_GetGroupInfoReq)(nil),
- (*Frame_GetGroupListReq)(nil),
- (*Frame_GetGroupMemberInfoReq)(nil),
- (*Frame_GetGroupMemberListReq)(nil),
- (*Frame_GetGroupHonorInfoReq)(nil),
- (*Frame_GetCookiesReq)(nil),
- (*Frame_GetCsrfTokenReq)(nil),
- (*Frame_GetCredentialsReq)(nil),
- (*Frame_GetRecordReq)(nil),
- (*Frame_GetImageReq)(nil),
- (*Frame_CanSendImageReq)(nil),
- (*Frame_CanSendRecordReq)(nil),
- (*Frame_GetStatusReq)(nil),
- (*Frame_GetVersionInfoReq)(nil),
- (*Frame_SetRestartReq)(nil),
- (*Frame_CleanCacheReq)(nil),
- (*Frame_SetGroupSignInReq)(nil),
- (*Frame_SendMusicReq)(nil),
- (*Frame_SendGroupPokeReq)(nil),
- (*Frame_SendFriendPokeReq)(nil),
- (*Frame_SendPrivateMsgResp)(nil),
- (*Frame_SendGroupMsgResp)(nil),
- (*Frame_SendMsgResp)(nil),
- (*Frame_DeleteMsgResp)(nil),
- (*Frame_GetMsgResp)(nil),
- (*Frame_GetForwardMsgResp)(nil),
- (*Frame_SendLikeResp)(nil),
- (*Frame_SetGroupKickResp)(nil),
- (*Frame_SetGroupBanResp)(nil),
- (*Frame_SetGroupAnonymousBanResp)(nil),
- (*Frame_SetGroupWholeBanResp)(nil),
- (*Frame_SetGroupAdminResp)(nil),
- (*Frame_SetGroupAnonymousResp)(nil),
- (*Frame_SetGroupCardResp)(nil),
- (*Frame_SetGroupNameResp)(nil),
- (*Frame_SetGroupLeaveResp)(nil),
- (*Frame_SetGroupSpecialTitleResp)(nil),
- (*Frame_SetFriendAddRequestResp)(nil),
- (*Frame_SetGroupAddRequestResp)(nil),
- (*Frame_GetLoginInfoResp)(nil),
- (*Frame_GetStrangerInfoResp)(nil),
- (*Frame_GetFriendListResp)(nil),
- (*Frame_GetGroupInfoResp)(nil),
- (*Frame_GetGroupListResp)(nil),
- (*Frame_GetGroupMemberInfoResp)(nil),
- (*Frame_GetGroupMemberListResp)(nil),
- (*Frame_GetGroupHonorInfoResp)(nil),
- (*Frame_GetCookiesResp)(nil),
- (*Frame_GetCsrfTokenResp)(nil),
- (*Frame_GetCredentialsResp)(nil),
- (*Frame_GetRecordResp)(nil),
- (*Frame_GetImageResp)(nil),
- (*Frame_CanSendImageResp)(nil),
- (*Frame_CanSendRecordResp)(nil),
- (*Frame_GetStatusResp)(nil),
- (*Frame_GetVersionInfoResp)(nil),
- (*Frame_SetRestartResp)(nil),
- (*Frame_CleanCacheResp)(nil),
- (*Frame_SetGroupSignInResp)(nil),
- (*Frame_SendMusicResp)(nil),
- (*Frame_SendGroupPokeResp)(nil),
- (*Frame_SendFriendPokeResp)(nil),
+func (x *Frame) GetSendChannelMsgResp() *SendChannelMsgResp {
+ if x, ok := x.GetData().(*Frame_SendChannelMsgResp); ok {
+ return x.SendChannelMsgResp
}
+ return nil
}
-func init() {
- proto.RegisterEnum("onebot.Frame_FrameType", Frame_FrameType_name, Frame_FrameType_value)
- proto.RegisterType((*Frame)(nil), "onebot.Frame")
- proto.RegisterMapType((map[string]string)(nil), "onebot.Frame.ExtraEntry")
-}
-
-func init() { proto.RegisterFile("onebot_frame.proto", fileDescriptor_e0ef9cc77a921089) }
-
-var fileDescriptor_e0ef9cc77a921089 = []byte{
- // 2992 bytes of a gzipped FileDescriptorProto
- 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x5a, 0xd7, 0x93, 0x1c, 0xb7,
- 0xf1, 0xd6, 0x80, 0x22, 0x4b, 0x04, 0x53, 0x1f, 0x2e, 0xe1, 0x8e, 0x14, 0x7f, 0x57, 0x7a, 0xe2,
- 0x13, 0x1f, 0xf4, 0x73, 0xd9, 0x2a, 0x55, 0xb9, 0xca, 0xe2, 0x49, 0xa2, 0x68, 0x51, 0x27, 0xea,
- 0x6e, 0x24, 0xd9, 0x72, 0xd9, 0xe7, 0xe1, 0xee, 0xdc, 0x70, 0xb5, 0x7b, 0x33, 0xc3, 0xc5, 0x90,
- 0x32, 0xff, 0x13, 0xff, 0x11, 0x56, 0xce, 0x39, 0x07, 0xe6, 0x4c, 0xe5, 0x44, 0xe5, 0x1c, 0xde,
- 0x5d, 0xe5, 0x02, 0x30, 0xc0, 0xa0, 0x31, 0x58, 0xbd, 0xb0, 0x6e, 0x3f, 0x00, 0xdf, 0x34, 0x1a,
- 0x40, 0xa3, 0xbf, 0x06, 0x29, 0x2b, 0xf2, 0x74, 0x7f, 0x51, 0x2d, 0xaf, 0x0c, 0x93, 0xd5, 0x74,
- 0x67, 0x39, 0x2c, 0xaa, 0x82, 0xad, 0xd3, 0xd8, 0x2c, 0xd4, 0x6d, 0x49, 0xd9, 0xd3, 0x2d, 0xb3,
- 0xa6, 0x77, 0x7a, 0x38, 0xcd, 0x2b, 0x8d, 0x5d, 0xf3, 0x9f, 0x7d, 0x74, 0xed, 0xcd, 0x72, 0x34,
- 0x9b, 0xa4, 0xeb, 0x64, 0x63, 0xaf, 0xcb, 0xa3, 0xb9, 0x68, 0xc7, 0x9a, 0xc5, 0xb5, 0xfb, 0x8b,
- 0x6a, 0x4f, 0x97, 0xfd, 0x9e, 0x52, 0xc5, 0xbe, 0x5c, 0x1d, 0x29, 0x53, 0x4e, 0xe6, 0xa2, 0x1d,
- 0x9b, 0xaf, 0x9d, 0xde, 0xa9, 0x99, 0x76, 0xaa, 0x91, 0xfa, 0xdf, 0xf8, 0x48, 0x99, 0x2e, 0xae,
- 0x5f, 0x31, 0x7f, 0x32, 0x46, 0xaf, 0x4c, 0x3b, 0x07, 0x0a, 0xbe, 0x66, 0x2e, 0xda, 0xb1, 0x7e,
- 0x51, 0xfd, 0xcd, 0x36, 0x53, 0x52, 0xf4, 0xf9, 0x95, 0x73, 0xd1, 0x8e, 0xab, 0x16, 0x49, 0xd1,
- 0x67, 0x3b, 0xe9, 0xda, 0xf4, 0x5f, 0xd5, 0x30, 0xe1, 0xdd, 0xb9, 0x35, 0x3b, 0x36, 0x5c, 0xcb,
- 0x31, 0xed, 0x4d, 0xb2, 0xe9, 0xa6, 0xbc, 0x1a, 0x1e, 0x59, 0xd4, 0xdd, 0xd8, 0x1d, 0x74, 0xb2,
- 0x1c, 0xf6, 0x0e, 0x27, 0x55, 0xba, 0xbc, 0x9a, 0x0a, 0x91, 0x64, 0xa9, 0x9e, 0x0b, 0x4f, 0xe7,
- 0xa2, 0x1d, 0x1b, 0xae, 0xdd, 0x6a, 0xc6, 0xef, 0xd3, 0x9d, 0x6e, 0xd3, 0x7d, 0x6e, 0x92, 0x5d,
- 0x6e, 0xb9, 0x62, 0x71, 0xbc, 0x6c, 0xc3, 0xec, 0x56, 0x3a, 0x9e, 0x0d, 0x8b, 0x43, 0xa5, 0x47,
- 0xb8, 0xa2, 0x08, 0x67, 0x0c, 0xe1, 0x6e, 0xd9, 0xc5, 0xa3, 0x1b, 0xcb, 0x7c, 0x90, 0xfd, 0x8d,
- 0xce, 0x68, 0xb2, 0x43, 0xe5, 0xa0, 0x48, 0xba, 0xcb, 0x79, 0x51, 0xf5, 0x3a, 0x86, 0x32, 0x53,
- 0x94, 0xdb, 0x11, 0xe5, 0x9d, 0xaa, 0xdf, 0x82, 0xea, 0x66, 0x78, 0xa7, 0xb2, 0x60, 0x0b, 0xfb,
- 0x0b, 0xe5, 0x9a, 0x3c, 0xe9, 0xae, 0xf6, 0x72, 0xcc, 0x7d, 0x40, 0x71, 0x5f, 0x8d, 0xb8, 0x6f,
- 0x90, 0xdd, 0x30, 0xf5, 0x64, 0x16, 0x6a, 0x60, 0x09, 0xdd, 0xaa, 0x99, 0xbb, 0x69, 0x67, 0x98,
- 0x26, 0x22, 0xc5, 0xe4, 0x3d, 0x45, 0x3e, 0x87, 0xc8, 0x6f, 0xac, 0x7b, 0x62, 0x7e, 0x6d, 0x60,
- 0xa0, 0xad, 0xf9, 0x44, 0x2f, 0x0f, 0x7d, 0xe2, 0xde, 0xc0, 0x27, 0xf6, 0xe4, 0xa3, 0x3f, 0x11,
- 0x68, 0x63, 0x8b, 0x54, 0x7b, 0x6e, 0x79, 0x7f, 0xe2, 0x79, 0xa7, 0x8f, 0x77, 0x87, 0x62, 0xdf,
- 0x95, 0x78, 0xbe, 0xd1, 0xdb, 0x00, 0xc3, 0xec, 0x4e, 0x3a, 0xbd, 0x32, 0xec, 0xa5, 0x79, 0x77,
- 0x39, 0xe9, 0x7a, 0xcb, 0x39, 0x50, 0xa4, 0xdb, 0x9a, 0x2d, 0x2b, 0xbb, 0xdd, 0xd0, 0xf5, 0x16,
- 0x73, 0x62, 0x25, 0x80, 0x37, 0xfb, 0x64, 0x98, 0x76, 0x92, 0xc1, 0x00, 0x13, 0xaf, 0x06, 0xf6,
- 0xc9, 0xa2, 0xea, 0x17, 0xda, 0x27, 0xad, 0x16, 0xf6, 0x0f, 0x3a, 0x5b, 0xdb, 0x1c, 0x62, 0xcf,
- 0x15, 0xfb, 0xff, 0x61, 0xb3, 0x43, 0xf4, 0xf5, 0xc4, 0xdb, 0xfc, 0x0b, 0x74, 0xc2, 0xf2, 0x1f,
- 0x3c, 0x94, 0x8a, 0x3a, 0x9e, 0xf0, 0x42, 0x31, 0xcf, 0xfa, 0xcc, 0xaa, 0x8b, 0x21, 0x65, 0x2b,
- 0x2d, 0xb4, 0x39, 0x81, 0x98, 0xae, 0x0c, 0x9c, 0x40, 0x8f, 0x6d, 0x2c, 0xf3, 0xc1, 0xe6, 0x90,
- 0x54, 0xe9, 0xaa, 0x7f, 0xa6, 0x0f, 0x06, 0x0e, 0x49, 0x9c, 0xae, 0xfa, 0xe7, 0x5a, 0x1f, 0x12,
- 0xbf, 0x81, 0xdd, 0x46, 0x27, 0x84, 0x9c, 0xb4, 0x0d, 0x40, 0x22, 0x93, 0x16, 0xf3, 0xa3, 0x11,
- 0x36, 0x74, 0x29, 0xcd, 0xbb, 0x26, 0xfe, 0x88, 0x6c, 0x31, 0x3d, 0x28, 0x0d, 0x15, 0x3e, 0xc8,
- 0x76, 0x53, 0xa6, 0xe8, 0xea, 0xe0, 0x53, 0x93, 0x1d, 0xd3, 0x64, 0xd3, 0x2e, 0x99, 0x8e, 0x3d,
- 0x86, 0x6a, 0x8b, 0xc0, 0x10, 0xfb, 0x03, 0xdd, 0xa8, 0x88, 0x0c, 0xc5, 0x71, 0x4d, 0xc1, 0x5c,
- 0x0a, 0x3b, 0x9a, 0x0a, 0xfb, 0x8b, 0xfd, 0x91, 0x6e, 0xee, 0xa6, 0x83, 0xd4, 0x99, 0xca, 0x09,
- 0x3d, 0x74, 0xc2, 0x0c, 0xbd, 0x51, 0x35, 0xdb, 0xc1, 0x1b, 0xbb, 0xce, 0x6f, 0xf6, 0x3b, 0xba,
- 0x21, 0x4b, 0x2b, 0x3b, 0xf6, 0xa4, 0x1e, 0x3b, 0x66, 0xbd, 0x9b, 0x56, 0x76, 0xe0, 0xfa, 0xcc,
- 0xfc, 0x60, 0x7f, 0xa6, 0xe3, 0x72, 0xd4, 0x4a, 0x31, 0xbc, 0x2f, 0x19, 0x36, 0x46, 0x9f, 0xd2,
- 0xa3, 0xb9, 0x33, 0xfa, 0x66, 0xdd, 0xc5, 0x92, 0x40, 0xe6, 0x61, 0xec, 0x7a, 0xba, 0x49, 0xcd,
- 0x7c, 0xd0, 0xeb, 0xa7, 0x8a, 0xe5, 0xb4, 0x66, 0x19, 0x77, 0xa7, 0xbe, 0xb7, 0xd7, 0x4f, 0x35,
- 0xc1, 0x06, 0xd1, 0xfc, 0xd4, 0xee, 0xaf, 0x6a, 0xef, 0xf7, 0x7b, 0x9d, 0xbe, 0x22, 0x38, 0xd3,
- 0x72, 0x7f, 0xa5, 0x5c, 0x7d, 0x6b, 0xaf, 0xd3, 0xb7, 0xee, 0x47, 0x10, 0xbb, 0x91, 0x8e, 0x35,
- 0x44, 0x32, 0xf2, 0x48, 0x9e, 0xb3, 0x9a, 0x67, 0xca, 0xe7, 0xd9, 0x95, 0xe4, 0x9a, 0x66, 0xb3,
- 0x40, 0x08, 0xfb, 0x27, 0xdd, 0xda, 0xb0, 0x24, 0x79, 0x91, 0x1f, 0x59, 0x2d, 0x0e, 0x09, 0xcb,
- 0x77, 0x2e, 0xc2, 0xa7, 0xd6, 0xf0, 0xdd, 0x60, 0x7a, 0x5a, 0xe2, 0x69, 0x11, 0x6e, 0x62, 0x31,
- 0x9d, 0x6e, 0xbe, 0x70, 0xdf, 0x81, 0x62, 0x90, 0x5a, 0xf6, 0xf3, 0x11, 0x8e, 0x8f, 0x86, 0xfd,
- 0x6e, 0xd9, 0xcb, 0x32, 0x8f, 0x8b, 0x36, 0x2c, 0x97, 0xd3, 0xb1, 0x5b, 0xdd, 0x4b, 0x92, 0xf1,
- 0x82, 0xb7, 0x9c, 0xd6, 0x5e, 0xd9, 0xa3, 0x5e, 0x4e, 0xe1, 0x61, 0xec, 0x2e, 0xd7, 0xc2, 0xc6,
- 0x07, 0x92, 0xef, 0x62, 0x84, 0x83, 0x6d, 0x6b, 0xfe, 0x9a, 0x73, 0x42, 0x04, 0x70, 0xbc, 0xd4,
- 0x1d, 0xb9, 0xeb, 0x24, 0xe5, 0xa5, 0x11, 0x4b, 0x3d, 0x9f, 0x0c, 0xbb, 0xde, 0x52, 0xd7, 0x10,
- 0x26, 0xca, 0x65, 0x4a, 0x24, 0x89, 0xde, 0x1e, 0x41, 0xb4, 0x90, 0xac, 0xa6, 0x1e, 0x51, 0x0d,
- 0x61, 0xaf, 0x0d, 0xd2, 0xe4, 0xb0, 0x66, 0x7a, 0x67, 0x84, 0xd7, 0xf6, 0xca, 0x1e, 0x9e, 0xd7,
- 0x0c, 0x86, 0x77, 0x8e, 0x28, 0xd3, 0x4e, 0x2f, 0x19, 0x2c, 0x57, 0xbd, 0x6a, 0xa0, 0x39, 0xdf,
- 0x1d, 0xb1, 0x73, 0x96, 0x74, 0xcf, 0x58, 0x76, 0xf4, 0x76, 0x8e, 0xd7, 0xc4, 0xfe, 0x4e, 0x67,
- 0xe5, 0x17, 0x9c, 0x7b, 0xd0, 0x04, 0x6a, 0xf9, 0x81, 0xf7, 0x22, 0x7c, 0x5d, 0x2d, 0xa5, 0x95,
- 0xbd, 0x0a, 0xeb, 0xc8, 0xac, 0xf9, 0xa7, 0x44, 0xb0, 0x85, 0xdd, 0x43, 0x67, 0xdc, 0x2d, 0x84,
- 0xd9, 0xdf, 0x8f, 0x70, 0xcc, 0x6e, 0x36, 0x12, 0x26, 0x9f, 0x14, 0xa1, 0x06, 0xb9, 0x62, 0x32,
- 0xda, 0x0c, 0x8a, 0xac, 0x97, 0x2f, 0xf7, 0xf2, 0x95, 0x42, 0x91, 0x7e, 0xe0, 0xad, 0xd8, 0xee,
- 0xb4, 0xda, 0x2b, 0x7b, 0xec, 0xc9, 0x57, 0x8a, 0x7a, 0xc5, 0x32, 0x0c, 0xb1, 0x7d, 0x74, 0x52,
- 0x12, 0x89, 0x6a, 0x98, 0xe4, 0x59, 0x3a, 0x6c, 0xb8, 0x3e, 0x8c, 0xf0, 0xad, 0xb7, 0x3b, 0xad,
- 0x96, 0xea, 0x4e, 0x0d, 0x9d, 0x34, 0xc2, 0x43, 0x6d, 0x20, 0xd4, 0x5e, 0x1d, 0xf4, 0xea, 0x09,
- 0x7f, 0x14, 0x08, 0x84, 0xaa, 0xcb, 0xde, 0x9e, 0x99, 0xab, 0x0a, 0x84, 0x2e, 0x66, 0xa6, 0x69,
- 0x12, 0xac, 0xda, 0xb4, 0x8f, 0xdb, 0xd3, 0xac, 0xf3, 0x2a, 0x77, 0x9a, 0x2e, 0x84, 0x89, 0xac,
- 0x4d, 0x9f, 0x8c, 0x20, 0x6a, 0x4c, 0xb2, 0x44, 0xc6, 0xa2, 0x7b, 0xe8, 0x4c, 0x43, 0xb4, 0x9a,
- 0xae, 0xee, 0x77, 0x7d, 0xf6, 0xa9, 0xb7, 0xa8, 0x86, 0xef, 0x36, 0xd5, 0xaf, 0x31, 0x6f, 0x32,
- 0x0b, 0x35, 0x04, 0xb9, 0xad, 0xad, 0x97, 0x7f, 0x93, 0xbb, 0xb1, 0xd8, 0xe3, 0x36, 0x76, 0xdf,
- 0x4d, 0x79, 0xc3, 0x7d, 0xa0, 0xc8, 0x0b, 0xc7, 0xec, 0xcf, 0xbc, 0x20, 0x64, 0xa8, 0x6f, 0x91,
- 0xdd, 0x1a, 0xab, 0x27, 0xb2, 0x00, 0xce, 0xfe, 0x44, 0xa5, 0x8f, 0x96, 0x3b, 0x45, 0xd1, 0xef,
- 0xa5, 0x3a, 0xa8, 0x7d, 0xae, 0xf9, 0x26, 0x1d, 0xbe, 0x79, 0xdd, 0xac, 0x89, 0x36, 0x65, 0x2e,
- 0x60, 0xd6, 0xa6, 0x23, 0x86, 0x2b, 0xcb, 0x55, 0xd1, 0x4f, 0x75, 0xa4, 0xfd, 0xa2, 0xbd, 0x36,
- 0xf3, 0x62, 0xb8, 0x12, 0xcb, 0x0e, 0xcd, 0xda, 0xb8, 0x10, 0xdb, 0xab, 0x77, 0x5e, 0x67, 0x98,
- 0x76, 0xd3, 0xbc, 0xea, 0x25, 0x03, 0x6d, 0xce, 0x97, 0x5e, 0x1e, 0x23, 0x99, 0x9a, 0x2e, 0x75,
- 0x1e, 0x93, 0xf9, 0xa0, 0xcc, 0x22, 0x24, 0xdb, 0x30, 0xed, 0x14, 0x75, 0x64, 0xfd, 0xca, 0xcb,
- 0x22, 0x76, 0xa7, 0xd5, 0xa2, 0x6a, 0xad, 0xb3, 0x88, 0xcc, 0xf9, 0x2d, 0xef, 0x70, 0x39, 0xbc,
- 0xb7, 0x2a, 0xd3, 0x34, 0x39, 0xfa, 0x6b, 0xef, 0x0e, 0xdf, 0x9d, 0x56, 0x7b, 0x64, 0x63, 0x7d,
- 0x87, 0x67, 0xcd, 0x4f, 0xe9, 0x91, 0x4e, 0x92, 0x2f, 0xab, 0x1c, 0xa0, 0x21, 0xf8, 0xc6, 0xf3,
- 0xc8, 0x7c, 0x92, 0xcb, 0x3c, 0xc0, 0x21, 0xd9, 0xd2, 0xc1, 0x90, 0x3c, 0x8b, 0x96, 0xc8, 0x99,
- 0xc8, 0xb7, 0xde, 0x59, 0xac, 0x99, 0xdc, 0xc9, 0x40, 0xc7, 0xc3, 0x8c, 0x3f, 0x44, 0x95, 0x54,
- 0xf5, 0xe5, 0xf5, 0x5d, 0xdb, 0x1f, 0x4b, 0xaa, 0xb5, 0xf1, 0x87, 0xfd, 0x2d, 0xb3, 0x4c, 0x39,
- 0xfc, 0x70, 0x3a, 0x14, 0xbd, 0xc2, 0x89, 0x59, 0xdf, 0xb7, 0x57, 0xe7, 0x2e, 0xdd, 0xa7, 0xd9,
- 0x79, 0x72, 0x75, 0x30, 0x28, 0xb7, 0x9d, 0x50, 0xab, 0x23, 0xaa, 0x64, 0xa8, 0x4f, 0xc8, 0x0f,
- 0xde, 0xb6, 0x5b, 0x92, 0xcb, 0xa1, 0x9a, 0xeb, 0x6d, 0x27, 0x5c, 0x40, 0x32, 0x74, 0x06, 0x69,
- 0x92, 0x2f, 0x77, 0x92, 0xce, 0x01, 0xed, 0xe1, 0x1f, 0x3d, 0x86, 0x79, 0xd9, 0x3e, 0x2f, 0x9b,
- 0x6b, 0x86, 0x8e, 0x0b, 0xb0, 0x05, 0x3a, 0xe9, 0xdc, 0x50, 0xbd, 0x4c, 0xce, 0x4a, 0xf1, 0xfc,
- 0xd4, 0xca, 0x9c, 0xeb, 0x0b, 0xa8, 0x97, 0xe5, 0x7b, 0x72, 0x9b, 0x39, 0x7b, 0xa0, 0xf4, 0xb0,
- 0x4e, 0x78, 0x0f, 0x89, 0x5e, 0x47, 0x11, 0xfd, 0xec, 0x79, 0x58, 0xa5, 0xbc, 0xb2, 0xb5, 0xf6,
- 0xb0, 0x70, 0x7e, 0xeb, 0xcb, 0xd7, 0x26, 0xde, 0x65, 0x51, 0xe7, 0x8e, 0xbf, 0xb4, 0x2e, 0xdf,
- 0x3a, 0xcd, 0xde, 0x57, 0xf4, 0x9b, 0xcb, 0x17, 0x63, 0x56, 0x13, 0xd4, 0x51, 0xdc, 0x92, 0xfd,
- 0x1a, 0xd0, 0x04, 0x3a, 0x64, 0x37, 0x6c, 0x4a, 0x13, 0x20, 0x50, 0xde, 0x32, 0x01, 0x89, 0x21,
- 0x4a, 0x7e, 0x3f, 0xc1, 0xb7, 0x8c, 0xaf, 0x31, 0x44, 0x29, 0x6f, 0x19, 0xd1, 0x42, 0xbd, 0xc9,
- 0x5a, 0xbe, 0x07, 0xc8, 0x88, 0xc9, 0x36, 0x6c, 0x20, 0x3c, 0xcc, 0xa6, 0xdb, 0x96, 0xe5, 0x41,
- 0xd2, 0x4e, 0xb7, 0x1b, 0x82, 0x0d, 0xa2, 0xf9, 0x29, 0x77, 0x11, 0xd2, 0x1a, 0xa2, 0xe4, 0x0f,
- 0x11, 0xbc, 0x8b, 0x1c, 0xb1, 0xa1, 0xc6, 0x6f, 0xea, 0xba, 0x80, 0x94, 0x39, 0x8d, 0xdc, 0x10,
- 0x25, 0x7f, 0x98, 0x60, 0x99, 0x63, 0xf4, 0x86, 0x1a, 0x4b, 0x33, 0xfb, 0xcb, 0x9c, 0x28, 0xac,
- 0x38, 0x44, 0xc9, 0x1f, 0x21, 0xad, 0x13, 0xe5, 0xca, 0x0b, 0xc5, 0x33, 0x96, 0xf9, 0xa0, 0xdd,
- 0x7d, 0xb5, 0xe8, 0x10, 0x25, 0x7f, 0x94, 0xb4, 0x77, 0x9f, 0x96, 0x19, 0x8a, 0x63, 0xa3, 0x70,
- 0x7e, 0xe3, 0xd4, 0xaf, 0xd6, 0x1d, 0xa2, 0xe4, 0x8f, 0x91, 0x70, 0xea, 0xa7, 0x55, 0x86, 0x59,
- 0x10, 0x8c, 0xe1, 0x7c, 0x54, 0x27, 0xf3, 0xa2, 0xe4, 0x8f, 0x93, 0x70, 0x3e, 0xaa, 0x32, 0x76,
- 0xc5, 0xb4, 0x45, 0x60, 0x88, 0x75, 0xe8, 0xb6, 0xd1, 0xea, 0x43, 0x94, 0xfc, 0x09, 0x82, 0xcb,
- 0x33, 0x61, 0xf9, 0xa1, 0xb8, 0xb9, 0x18, 0xd1, 0x26, 0xaf, 0xd6, 0xb0, 0x00, 0x11, 0x25, 0x7f,
- 0x92, 0x84, 0xf3, 0xfb, 0x46, 0x6a, 0x28, 0xf2, 0x09, 0x11, 0xc0, 0xf5, 0x21, 0xf4, 0x35, 0x88,
- 0x28, 0xf9, 0x53, 0x24, 0x1c, 0x5e, 0x6a, 0xc1, 0xa1, 0x17, 0x58, 0xf8, 0x20, 0xfb, 0xab, 0x6b,
- 0xa7, 0x2b, 0x43, 0x44, 0xc9, 0x9f, 0x26, 0x23, 0xd2, 0xd1, 0x46, 0x6f, 0x28, 0xda, 0x49, 0x11,
- 0x6a, 0xc0, 0x8b, 0x5f, 0x2b, 0x11, 0x51, 0xf2, 0x67, 0x46, 0x2c, 0xbe, 0xd6, 0x1d, 0x78, 0xf1,
- 0x0d, 0x86, 0xb9, 0x6a, 0x31, 0x22, 0x4a, 0xfe, 0xec, 0x08, 0x2e, 0x2d, 0x3d, 0x30, 0x97, 0xc1,
- 0xb0, 0x07, 0x8d, 0x1e, 0x11, 0x25, 0x7f, 0x6e, 0x84, 0x07, 0x6b, 0xf1, 0x81, 0x3d, 0x68, 0x41,
- 0xbc, 0x9d, 0x7c, 0x49, 0x22, 0x4a, 0xfe, 0xfc, 0x88, 0xed, 0x84, 0x85, 0x07, 0xde, 0x4e, 0x7e,
- 0x9b, 0xd1, 0x3d, 0x41, 0x55, 0x22, 0x4a, 0xfe, 0x02, 0x69, 0xe9, 0x9e, 0xb6, 0xf8, 0x50, 0x9f,
- 0x98, 0x16, 0xe1, 0x26, 0xa3, 0x7b, 0x42, 0xc2, 0x44, 0x94, 0xfc, 0x45, 0xd2, 0xd2, 0x3d, 0x2d,
- 0x01, 0xa2, 0xf8, 0xa7, 0x44, 0xb0, 0xc5, 0x08, 0x00, 0xa4, 0x4d, 0x44, 0xc9, 0x5f, 0x22, 0x2d,
- 0x01, 0xe0, 0x28, 0x11, 0xbd, 0x80, 0x99, 0x87, 0xb1, 0x25, 0x3a, 0x15, 0x92, 0x27, 0xa2, 0xe4,
- 0x2f, 0x13, 0xaf, 0xf6, 0xe9, 0x2b, 0x11, 0xc5, 0x38, 0x9e, 0xb5, 0x61, 0x1b, 0x38, 0x91, 0x42,
- 0x11, 0x25, 0x7f, 0x25, 0x10, 0x38, 0x1d, 0x39, 0xd2, 0x04, 0x4e, 0x04, 0x9a, 0xf9, 0x22, 0x91,
- 0x22, 0x4a, 0xfe, 0x6a, 0x7b, 0xbe, 0x8e, 0x24, 0xb1, 0xf3, 0x45, 0x18, 0xe6, 0x6a, 0x2c, 0x7b,
- 0x6d, 0x04, 0x97, 0x63, 0x18, 0x64, 0x1e, 0x26, 0x97, 0x79, 0x94, 0x54, 0x11, 0x25, 0x7f, 0xdd,
- 0x5b, 0xe6, 0x90, 0x56, 0xd1, 0xcb, 0x9c, 0x05, 0x5b, 0x82, 0xf4, 0x8d, 0xc5, 0x6f, 0xfc, 0x26,
- 0xbd, 0x63, 0xf7, 0x54, 0x16, 0x6c, 0xc1, 0x62, 0x08, 0x09, 0x16, 0x51, 0xf2, 0x37, 0x49, 0x58,
- 0x0c, 0x39, 0xca, 0x44, 0x87, 0xab, 0x2c, 0xd4, 0xc0, 0xe6, 0x29, 0x60, 0xcd, 0x22, 0x4a, 0xfe,
- 0x16, 0xc1, 0x95, 0x2d, 0x57, 0xb4, 0x28, 0xae, 0xcd, 0x19, 0x42, 0xcc, 0x52, 0x21, 0xd9, 0x22,
- 0x4a, 0x7e, 0xb4, 0xbd, 0x54, 0x8e, 0x48, 0xb1, 0x4b, 0x85, 0x30, 0x76, 0xbb, 0xde, 0x91, 0x58,
- 0xb9, 0x88, 0x92, 0x1f, 0x23, 0x2d, 0x11, 0x8e, 0x54, 0x8a, 0x4e, 0x8f, 0xb2, 0x16, 0x6a, 0x54,
- 0x99, 0xcd, 0xf9, 0x45, 0xc9, 0x8f, 0x93, 0x96, 0x2a, 0x33, 0xc9, 0xbd, 0x4e, 0x4b, 0x32, 0x17,
- 0x30, 0xe9, 0xbe, 0x91, 0x1f, 0xa2, 0xe4, 0x27, 0x48, 0x2b, 0xdd, 0xaf, 0x85, 0x86, 0x4e, 0x07,
- 0x32, 0xe7, 0x37, 0x52, 0x1e, 0x0e, 0xc7, 0x49, 0x12, 0x54, 0x1e, 0x2e, 0x0f, 0x74, 0x3c, 0x4c,
- 0x9e, 0xd7, 0xb6, 0x8a, 0x11, 0x25, 0x3f, 0xe5, 0x9d, 0x57, 0x4f, 0xc6, 0xe8, 0xf3, 0xda, 0xf1,
- 0x41, 0xe3, 0x1b, 0x2b, 0x64, 0x44, 0xc9, 0x4f, 0xb7, 0x7d, 0x63, 0x94, 0x8b, 0xf5, 0x4d, 0x03,
- 0x98, 0xa2, 0x89, 0xa7, 0x65, 0x44, 0xc9, 0xcf, 0xb4, 0xd7, 0x0b, 0xe9, 0x16, 0xbb, 0x5e, 0x1e,
- 0x2a, 0x77, 0x24, 0x96, 0x33, 0xa2, 0xe4, 0x67, 0x49, 0xab, 0xd6, 0x6a, 0xe5, 0x8b, 0xde, 0x91,
- 0x02, 0x21, 0x92, 0x04, 0x2b, 0x1a, 0x51, 0xf2, 0x73, 0x1e, 0x89, 0x2b, 0x69, 0x34, 0x49, 0x07,
- 0x21, 0xec, 0x0e, 0x3a, 0x15, 0x12, 0x35, 0xa2, 0xe4, 0xe7, 0x5b, 0xb9, 0x3a, 0x16, 0x30, 0x26,
- 0x57, 0xf7, 0x51, 0xad, 0xd5, 0x1c, 0x5d, 0x23, 0x4a, 0x7e, 0x81, 0xf8, 0x5a, 0xcd, 0x0a, 0x19,
- 0xed, 0x70, 0xe1, 0x02, 0x56, 0x8e, 0x20, 0x69, 0x23, 0x4a, 0x7e, 0x91, 0xb4, 0xe5, 0x88, 0xa3,
- 0x63, 0xcc, 0x3d, 0xee, 0x81, 0x56, 0x8e, 0x60, 0x75, 0x23, 0x4a, 0x7e, 0x29, 0x20, 0x47, 0x5c,
- 0x25, 0xd3, 0xc8, 0x11, 0x8c, 0xce, 0x5e, 0x47, 0x69, 0xf3, 0xa8, 0xcb, 0x80, 0xae, 0xe9, 0xa7,
- 0x47, 0xd4, 0x6b, 0xf3, 0xfa, 0x45, 0xf9, 0x27, 0x9b, 0xa0, 0x6b, 0x0f, 0x27, 0x83, 0x43, 0xfa,
- 0x99, 0x79, 0xfd, 0xa2, 0xfe, 0x71, 0x3d, 0xb9, 0x2e, 0xba, 0xe6, 0xbf, 0x8c, 0xae, 0xb7, 0xcf,
- 0xcc, 0x6c, 0x23, 0xbd, 0x2a, 0xbe, 0x73, 0xe1, 0xd6, 0x85, 0xdb, 0xef, 0x5e, 0x80, 0x2b, 0x18,
- 0xa7, 0x13, 0x71, 0xe0, 0xc5, 0x17, 0x52, 0x36, 0x45, 0x59, 0xdc, 0x7a, 0xba, 0x85, 0x15, 0xb6,
- 0x95, 0x4e, 0xc7, 0xe1, 0xf7, 0x57, 0xc8, 0xd8, 0x2c, 0x9d, 0x8a, 0x83, 0x0f, 0xa8, 0x70, 0x80,
- 0x5d, 0x4d, 0x67, 0xe2, 0x51, 0xef, 0x9f, 0xd0, 0x6b, 0x9a, 0x03, 0xef, 0x93, 0x70, 0xaf, 0x32,
- 0x34, 0xf0, 0xf8, 0x08, 0x7d, 0x36, 0x43, 0x27, 0xe3, 0xd0, 0x0b, 0x22, 0x0c, 0x1a, 0x5b, 0x5b,
- 0x2f, 0x71, 0xb0, 0xca, 0xb6, 0x51, 0x1e, 0x8f, 0x78, 0xc2, 0x83, 0x9c, 0x4d, 0xd3, 0xf1, 0xb8,
- 0xfd, 0x0c, 0x07, 0x45, 0xe3, 0x17, 0x84, 0x97, 0xcd, 0xd4, 0xfd, 0xd7, 0x2f, 0x38, 0xc8, 0xa6,
- 0x29, 0x8b, 0x5b, 0x6f, 0x5b, 0x70, 0x34, 0x62, 0x93, 0x14, 0x62, 0xef, 0x9d, 0x0a, 0x8e, 0x45,
- 0x0c, 0xe8, 0x86, 0xb8, 0x79, 0x7b, 0x82, 0xe3, 0x11, 0x63, 0x74, 0x53, 0xec, 0x3e, 0x29, 0xc1,
- 0x89, 0x88, 0x6d, 0xa1, 0x34, 0xb6, 0x4f, 0x45, 0x70, 0x32, 0x62, 0x53, 0x74, 0x2c, 0xf6, 0x5f,
- 0x7f, 0xe0, 0x54, 0xc4, 0xc6, 0xe8, 0xc6, 0xd8, 0x79, 0xcf, 0x81, 0xd3, 0xe6, 0xc3, 0xe8, 0x39,
- 0x06, 0xce, 0x44, 0x6c, 0x82, 0x6e, 0x89, 0xf1, 0x83, 0x0b, 0x9c, 0x8d, 0xd8, 0x2c, 0x9d, 0x8c,
- 0x43, 0xcf, 0x06, 0x70, 0x2e, 0x62, 0x33, 0x74, 0x22, 0x0e, 0x3c, 0x7a, 0xc0, 0x79, 0x6d, 0x8e,
- 0xff, 0x7a, 0x01, 0x17, 0x22, 0x76, 0x35, 0xe5, 0xf1, 0x88, 0x57, 0x18, 0xb8, 0x88, 0x4d, 0xab,
- 0x9f, 0x0f, 0xe0, 0x12, 0x86, 0xeb, 0xc7, 0x00, 0x78, 0x1b, 0x7f, 0xc4, 0x14, 0xf6, 0xe1, 0x1d,
- 0xfc, 0x11, 0xaf, 0x2a, 0x0f, 0xef, 0x46, 0x6c, 0x1b, 0x9d, 0x8e, 0xc3, 0xe5, 0x76, 0x78, 0x2f,
- 0x62, 0x5b, 0xe9, 0x54, 0x1c, 0x2c, 0x97, 0xc3, 0xfb, 0xda, 0x10, 0xaf, 0xec, 0x0d, 0x1f, 0x44,
- 0x8c, 0xd3, 0xf1, 0xb8, 0x5d, 0xc1, 0x86, 0x0f, 0x9b, 0x65, 0x71, 0xeb, 0xce, 0xf0, 0x91, 0x25,
- 0x72, 0xab, 0xc8, 0xf0, 0x31, 0x86, 0x4d, 0xef, 0x4f, 0xb4, 0x4d, 0xc1, 0x6a, 0x2f, 0x7c, 0x1a,
- 0x6a, 0x34, 0x23, 0x2f, 0xeb, 0xe5, 0x0b, 0x15, 0x5c, 0xe1, 0xb3, 0x88, 0x8d, 0xd3, 0xcd, 0x31,
- 0x2a, 0x9e, 0xc2, 0xe7, 0xd6, 0x02, 0xb7, 0xf2, 0x09, 0x5f, 0x44, 0x6a, 0x17, 0xb7, 0x2a, 0x9b,
- 0xf0, 0xa5, 0xde, 0x9c, 0x6e, 0xa5, 0x12, 0xbe, 0xd2, 0x7b, 0xce, 0xa9, 0x3f, 0xc2, 0xd7, 0x9a,
- 0xd6, 0xab, 0x28, 0xc2, 0x37, 0xda, 0x3d, 0x7e, 0x79, 0x10, 0xbe, 0xb5, 0xac, 0xb6, 0xbe, 0x07,
- 0xdf, 0x59, 0x13, 0x70, 0xa5, 0x0e, 0xbe, 0xd7, 0xf3, 0x40, 0xd5, 0x38, 0xf8, 0x41, 0x83, 0xa8,
- 0xc0, 0x06, 0x3f, 0x46, 0xf5, 0x59, 0xf4, 0x0a, 0x63, 0xf0, 0x93, 0xfe, 0x9e, 0x5b, 0xfd, 0x82,
- 0x9f, 0xcd, 0xee, 0xc2, 0x95, 0x2b, 0xf8, 0x25, 0xb2, 0x07, 0x1a, 0xd5, 0xa0, 0xe0, 0x57, 0xbd,
- 0x0b, 0xda, 0x15, 0x26, 0xb8, 0x9f, 0x60, 0x2a, 0x83, 0x3f, 0x40, 0xec, 0xe1, 0x34, 0xd0, 0x83,
- 0x44, 0xd9, 0x8d, 0x4a, 0x3a, 0xf0, 0x10, 0x51, 0x31, 0xa1, 0x29, 0xd4, 0xc0, 0xc3, 0xc4, 0x38,
- 0x03, 0x17, 0x59, 0xe0, 0x11, 0x62, 0x67, 0x62, 0x2a, 0x27, 0xf0, 0x28, 0x41, 0xe7, 0xc4, 0x54,
- 0x41, 0xe0, 0x31, 0x82, 0x8e, 0x55, 0x5d, 0x15, 0x80, 0xc7, 0x09, 0x3e, 0x01, 0xae, 0x10, 0x87,
- 0x27, 0x08, 0x8a, 0x07, 0x6e, 0x39, 0x01, 0x9e, 0x24, 0xc8, 0xbd, 0xb6, 0x30, 0x00, 0x4f, 0x11,
- 0xb6, 0x9d, 0xce, 0xc4, 0xa3, 0x8a, 0x1f, 0xf0, 0x34, 0x36, 0xd0, 0x28, 0x75, 0x78, 0x06, 0xe3,
- 0x46, 0x75, 0xc3, 0xb3, 0xf8, 0x43, 0x56, 0x3f, 0xc3, 0x73, 0xf8, 0x43, 0xbe, 0xf4, 0x85, 0xe7,
- 0x89, 0x89, 0x0c, 0x21, 0xdd, 0x0a, 0x2f, 0x10, 0x13, 0x19, 0x02, 0xb2, 0x13, 0x5e, 0x24, 0xe6,
- 0x2c, 0x23, 0x09, 0x09, 0x2f, 0x11, 0x15, 0x06, 0x03, 0xfa, 0x10, 0x5e, 0x6e, 0x96, 0x09, 0x49,
- 0x3a, 0x78, 0xc5, 0x72, 0x21, 0x79, 0x06, 0xaf, 0x62, 0xdc, 0xf6, 0x7f, 0x4d, 0x5b, 0x16, 0xd6,
- 0x50, 0xf0, 0x7a, 0xa8, 0xd5, 0x8e, 0x7d, 0x83, 0xa0, 0x00, 0x81, 0x94, 0x0a, 0xbc, 0x49, 0x54,
- 0xd4, 0xc7, 0x62, 0x04, 0xde, 0xb2, 0x66, 0x20, 0x19, 0x01, 0x47, 0x89, 0x09, 0x74, 0x9e, 0x1e,
- 0x80, 0x63, 0xc4, 0x04, 0x93, 0x26, 0x11, 0x86, 0xe3, 0xc4, 0x1c, 0x63, 0x9b, 0x6b, 0xc3, 0x09,
- 0xe2, 0x1e, 0xf9, 0x06, 0x3f, 0xa9, 0x5d, 0xd5, 0x4a, 0xb1, 0xe1, 0x94, 0x65, 0x6e, 0x12, 0x64,
- 0x38, 0x6d, 0x0d, 0xf1, 0x12, 0x5d, 0x38, 0x43, 0xcc, 0x35, 0xe6, 0x64, 0xae, 0x70, 0x56, 0xa3,
- 0x38, 0x39, 0x85, 0x73, 0xa4, 0x3e, 0xb1, 0x7e, 0x46, 0x09, 0xe7, 0x49, 0x1d, 0x53, 0x9c, 0x24,
- 0x11, 0x2e, 0x10, 0x7b, 0xf2, 0x51, 0xba, 0x07, 0x17, 0x89, 0x3d, 0xf9, 0x38, 0x6d, 0x83, 0x4b,
- 0x64, 0xd7, 0x3a, 0x7a, 0x65, 0x37, 0xa9, 0x92, 0x5d, 0xf0, 0xd6, 0xe5, 0xed, 0xd1, 0x99, 0xcb,
- 0xdb, 0xa3, 0x4f, 0x2e, 0x6f, 0x8f, 0xfe, 0xfd, 0xd9, 0xf6, 0x2b, 0xf6, 0xaf, 0x53, 0xff, 0x8f,
- 0xf0, 0xff, 0xff, 0x17, 0x00, 0x00, 0xff, 0xff, 0x88, 0x23, 0x88, 0x71, 0x8b, 0x28, 0x00, 0x00,
-}
-
-func (m *Frame) Marshal() (dAtA []byte, err error) {
- size := m.Size()
- dAtA = make([]byte, size)
- n, err := m.MarshalToSizedBuffer(dAtA[:size])
- if err != nil {
- return nil, err
- }
- return dAtA[:n], nil
+type isFrame_Data interface {
+ isFrame_Data()
}
-func (m *Frame) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
+type Frame_PrivateMessageEvent struct {
+ PrivateMessageEvent *PrivateMessageEvent `protobuf:"bytes,101,opt,name=private_message_event,json=privateMessageEvent,proto3,oneof"`
}
-func (m *Frame) MarshalToSizedBuffer(dAtA []byte) (int, error) {
- i := len(dAtA)
- _ = i
- var l int
- _ = l
- if m.XXX_unrecognized != nil {
- i -= len(m.XXX_unrecognized)
- copy(dAtA[i:], m.XXX_unrecognized)
- }
- if m.Data != nil {
- {
- size := m.Data.Size()
- i -= size
- if _, err := m.Data.MarshalTo(dAtA[i:]); err != nil {
- return 0, err
- }
- }
- }
- if len(m.Extra) > 0 {
- for k := range m.Extra {
- v := m.Extra[k]
- baseI := i
- i -= len(v)
- copy(dAtA[i:], v)
- i = encodeVarintOnebotFrame(dAtA, i, uint64(len(v)))
- i--
- dAtA[i] = 0x12
- i -= len(k)
- copy(dAtA[i:], k)
- i = encodeVarintOnebotFrame(dAtA, i, uint64(len(k)))
- i--
- dAtA[i] = 0xa
- i = encodeVarintOnebotFrame(dAtA, i, uint64(baseI-i))
- i--
- dAtA[i] = 0x6
- i--
- dAtA[i] = 0xa2
- }
- }
- if m.Ok {
- i--
- if m.Ok {
- dAtA[i] = 1
- } else {
- dAtA[i] = 0
- }
- i--
- dAtA[i] = 0x20
- }
- if len(m.Echo) > 0 {
- i -= len(m.Echo)
- copy(dAtA[i:], m.Echo)
- i = encodeVarintOnebotFrame(dAtA, i, uint64(len(m.Echo)))
- i--
- dAtA[i] = 0x1a
- }
- if m.FrameType != 0 {
- i = encodeVarintOnebotFrame(dAtA, i, uint64(m.FrameType))
- i--
- dAtA[i] = 0x10
- }
- if m.BotId != 0 {
- i = encodeVarintOnebotFrame(dAtA, i, uint64(m.BotId))
- i--
- dAtA[i] = 0x8
- }
- return len(dAtA) - i, nil
+type Frame_GroupMessageEvent struct {
+ GroupMessageEvent *GroupMessageEvent `protobuf:"bytes,102,opt,name=group_message_event,json=groupMessageEvent,proto3,oneof"`
}
-func (m *Frame_PrivateMessageEvent) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
+type Frame_GroupUploadNoticeEvent struct {
+ GroupUploadNoticeEvent *GroupUploadNoticeEvent `protobuf:"bytes,103,opt,name=group_upload_notice_event,json=groupUploadNoticeEvent,proto3,oneof"`
}
-func (m *Frame_PrivateMessageEvent) MarshalToSizedBuffer(dAtA []byte) (int, error) {
- i := len(dAtA)
- if m.PrivateMessageEvent != nil {
- {
- size, err := m.PrivateMessageEvent.MarshalToSizedBuffer(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- i = encodeVarintOnebotFrame(dAtA, i, uint64(size))
- }
- i--
- dAtA[i] = 0x6
- i--
- dAtA[i] = 0xaa
- }
- return len(dAtA) - i, nil
-}
-func (m *Frame_GroupMessageEvent) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
+type Frame_GroupAdminNoticeEvent struct {
+ GroupAdminNoticeEvent *GroupAdminNoticeEvent `protobuf:"bytes,104,opt,name=group_admin_notice_event,json=groupAdminNoticeEvent,proto3,oneof"`
}
-func (m *Frame_GroupMessageEvent) MarshalToSizedBuffer(dAtA []byte) (int, error) {
- i := len(dAtA)
- if m.GroupMessageEvent != nil {
- {
- size, err := m.GroupMessageEvent.MarshalToSizedBuffer(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- i = encodeVarintOnebotFrame(dAtA, i, uint64(size))
- }
- i--
- dAtA[i] = 0x6
- i--
- dAtA[i] = 0xb2
- }
- return len(dAtA) - i, nil
-}
-func (m *Frame_GroupUploadNoticeEvent) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
+type Frame_GroupDecreaseNoticeEvent struct {
+ GroupDecreaseNoticeEvent *GroupDecreaseNoticeEvent `protobuf:"bytes,105,opt,name=group_decrease_notice_event,json=groupDecreaseNoticeEvent,proto3,oneof"`
}
-func (m *Frame_GroupUploadNoticeEvent) MarshalToSizedBuffer(dAtA []byte) (int, error) {
- i := len(dAtA)
- if m.GroupUploadNoticeEvent != nil {
- {
- size, err := m.GroupUploadNoticeEvent.MarshalToSizedBuffer(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- i = encodeVarintOnebotFrame(dAtA, i, uint64(size))
- }
- i--
- dAtA[i] = 0x6
- i--
- dAtA[i] = 0xba
- }
- return len(dAtA) - i, nil
+type Frame_GroupIncreaseNoticeEvent struct {
+ GroupIncreaseNoticeEvent *GroupIncreaseNoticeEvent `protobuf:"bytes,106,opt,name=group_increase_notice_event,json=groupIncreaseNoticeEvent,proto3,oneof"`
}
-func (m *Frame_GroupAdminNoticeEvent) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
+
+type Frame_GroupBanNoticeEvent struct {
+ GroupBanNoticeEvent *GroupBanNoticeEvent `protobuf:"bytes,107,opt,name=group_ban_notice_event,json=groupBanNoticeEvent,proto3,oneof"`
}
-func (m *Frame_GroupAdminNoticeEvent) MarshalToSizedBuffer(dAtA []byte) (int, error) {
- i := len(dAtA)
- if m.GroupAdminNoticeEvent != nil {
- {
- size, err := m.GroupAdminNoticeEvent.MarshalToSizedBuffer(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- i = encodeVarintOnebotFrame(dAtA, i, uint64(size))
- }
- i--
- dAtA[i] = 0x6
- i--
- dAtA[i] = 0xc2
- }
- return len(dAtA) - i, nil
+type Frame_FriendAddNoticeEvent struct {
+ FriendAddNoticeEvent *FriendAddNoticeEvent `protobuf:"bytes,108,opt,name=friend_add_notice_event,json=friendAddNoticeEvent,proto3,oneof"`
}
-func (m *Frame_GroupDecreaseNoticeEvent) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
+
+type Frame_GroupRecallNoticeEvent struct {
+ GroupRecallNoticeEvent *GroupRecallNoticeEvent `protobuf:"bytes,109,opt,name=group_recall_notice_event,json=groupRecallNoticeEvent,proto3,oneof"`
}
-func (m *Frame_GroupDecreaseNoticeEvent) MarshalToSizedBuffer(dAtA []byte) (int, error) {
- i := len(dAtA)
- if m.GroupDecreaseNoticeEvent != nil {
- {
- size, err := m.GroupDecreaseNoticeEvent.MarshalToSizedBuffer(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- i = encodeVarintOnebotFrame(dAtA, i, uint64(size))
- }
- i--
- dAtA[i] = 0x6
- i--
- dAtA[i] = 0xca
- }
- return len(dAtA) - i, nil
+type Frame_FriendRecallNoticeEvent struct {
+ FriendRecallNoticeEvent *FriendRecallNoticeEvent `protobuf:"bytes,110,opt,name=friend_recall_notice_event,json=friendRecallNoticeEvent,proto3,oneof"`
}
-func (m *Frame_GroupIncreaseNoticeEvent) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
+
+type Frame_FriendRequestEvent struct {
+ FriendRequestEvent *FriendRequestEvent `protobuf:"bytes,111,opt,name=friend_request_event,json=friendRequestEvent,proto3,oneof"`
}
-func (m *Frame_GroupIncreaseNoticeEvent) MarshalToSizedBuffer(dAtA []byte) (int, error) {
- i := len(dAtA)
- if m.GroupIncreaseNoticeEvent != nil {
- {
- size, err := m.GroupIncreaseNoticeEvent.MarshalToSizedBuffer(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- i = encodeVarintOnebotFrame(dAtA, i, uint64(size))
- }
- i--
- dAtA[i] = 0x6
- i--
- dAtA[i] = 0xd2
- }
- return len(dAtA) - i, nil
+type Frame_GroupRequestEvent struct {
+ GroupRequestEvent *GroupRequestEvent `protobuf:"bytes,112,opt,name=group_request_event,json=groupRequestEvent,proto3,oneof"`
}
-func (m *Frame_GroupBanNoticeEvent) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
+
+type Frame_GroupTempMessageEvent struct {
+ GroupTempMessageEvent *GroupTempMessageEvent `protobuf:"bytes,113,opt,name=group_temp_message_event,json=groupTempMessageEvent,proto3,oneof"`
}
-func (m *Frame_GroupBanNoticeEvent) MarshalToSizedBuffer(dAtA []byte) (int, error) {
- i := len(dAtA)
- if m.GroupBanNoticeEvent != nil {
- {
- size, err := m.GroupBanNoticeEvent.MarshalToSizedBuffer(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- i = encodeVarintOnebotFrame(dAtA, i, uint64(size))
- }
- i--
- dAtA[i] = 0x6
- i--
- dAtA[i] = 0xda
- }
- return len(dAtA) - i, nil
+type Frame_GroupNotifyEvent struct {
+ GroupNotifyEvent *GroupNotifyEvent `protobuf:"bytes,114,opt,name=group_notify_event,json=groupNotifyEvent,proto3,oneof"`
}
-func (m *Frame_FriendAddNoticeEvent) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
+
+type Frame_ChannelMessageEvent struct {
+ ChannelMessageEvent *ChannelMessageEvent `protobuf:"bytes,115,opt,name=channel_message_event,json=channelMessageEvent,proto3,oneof"`
}
-func (m *Frame_FriendAddNoticeEvent) MarshalToSizedBuffer(dAtA []byte) (int, error) {
- i := len(dAtA)
- if m.FriendAddNoticeEvent != nil {
- {
- size, err := m.FriendAddNoticeEvent.MarshalToSizedBuffer(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- i = encodeVarintOnebotFrame(dAtA, i, uint64(size))
- }
- i--
- dAtA[i] = 0x6
- i--
- dAtA[i] = 0xe2
- }
- return len(dAtA) - i, nil
+type Frame_SendPrivateMsgReq struct {
+ SendPrivateMsgReq *SendPrivateMsgReq `protobuf:"bytes,201,opt,name=send_private_msg_req,json=sendPrivateMsgReq,proto3,oneof"`
}
-func (m *Frame_GroupRecallNoticeEvent) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
+
+type Frame_SendGroupMsgReq struct {
+ SendGroupMsgReq *SendGroupMsgReq `protobuf:"bytes,202,opt,name=send_group_msg_req,json=sendGroupMsgReq,proto3,oneof"`
}
-func (m *Frame_GroupRecallNoticeEvent) MarshalToSizedBuffer(dAtA []byte) (int, error) {
- i := len(dAtA)
- if m.GroupRecallNoticeEvent != nil {
- {
- size, err := m.GroupRecallNoticeEvent.MarshalToSizedBuffer(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- i = encodeVarintOnebotFrame(dAtA, i, uint64(size))
- }
- i--
- dAtA[i] = 0x6
- i--
- dAtA[i] = 0xea
- }
- return len(dAtA) - i, nil
+type Frame_SendMsgReq struct {
+ SendMsgReq *SendMsgReq `protobuf:"bytes,203,opt,name=send_msg_req,json=sendMsgReq,proto3,oneof"`
}
-func (m *Frame_FriendRecallNoticeEvent) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
+
+type Frame_DeleteMsgReq struct {
+ DeleteMsgReq *DeleteMsgReq `protobuf:"bytes,204,opt,name=delete_msg_req,json=deleteMsgReq,proto3,oneof"`
}
-func (m *Frame_FriendRecallNoticeEvent) MarshalToSizedBuffer(dAtA []byte) (int, error) {
- i := len(dAtA)
- if m.FriendRecallNoticeEvent != nil {
- {
- size, err := m.FriendRecallNoticeEvent.MarshalToSizedBuffer(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- i = encodeVarintOnebotFrame(dAtA, i, uint64(size))
- }
- i--
- dAtA[i] = 0x6
- i--
- dAtA[i] = 0xf2
- }
- return len(dAtA) - i, nil
+type Frame_GetMsgReq struct {
+ GetMsgReq *GetMsgReq `protobuf:"bytes,205,opt,name=get_msg_req,json=getMsgReq,proto3,oneof"`
}
-func (m *Frame_FriendRequestEvent) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
+
+type Frame_GetForwardMsgReq struct {
+ GetForwardMsgReq *GetForwardMsgReq `protobuf:"bytes,206,opt,name=get_forward_msg_req,json=getForwardMsgReq,proto3,oneof"`
}
-func (m *Frame_FriendRequestEvent) MarshalToSizedBuffer(dAtA []byte) (int, error) {
- i := len(dAtA)
- if m.FriendRequestEvent != nil {
- {
- size, err := m.FriendRequestEvent.MarshalToSizedBuffer(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- i = encodeVarintOnebotFrame(dAtA, i, uint64(size))
- }
- i--
- dAtA[i] = 0x6
- i--
- dAtA[i] = 0xfa
- }
- return len(dAtA) - i, nil
+type Frame_SendLikeReq struct {
+ SendLikeReq *SendLikeReq `protobuf:"bytes,207,opt,name=send_like_req,json=sendLikeReq,proto3,oneof"`
}
-func (m *Frame_GroupRequestEvent) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
+
+type Frame_SetGroupKickReq struct {
+ SetGroupKickReq *SetGroupKickReq `protobuf:"bytes,208,opt,name=set_group_kick_req,json=setGroupKickReq,proto3,oneof"`
}
-func (m *Frame_GroupRequestEvent) MarshalToSizedBuffer(dAtA []byte) (int, error) {
- i := len(dAtA)
- if m.GroupRequestEvent != nil {
- {
- size, err := m.GroupRequestEvent.MarshalToSizedBuffer(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- i = encodeVarintOnebotFrame(dAtA, i, uint64(size))
- }
- i--
- dAtA[i] = 0x7
- i--
- dAtA[i] = 0x82
- }
- return len(dAtA) - i, nil
+type Frame_SetGroupBanReq struct {
+ SetGroupBanReq *SetGroupBanReq `protobuf:"bytes,209,opt,name=set_group_ban_req,json=setGroupBanReq,proto3,oneof"`
}
-func (m *Frame_GroupTempMessageEvent) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
+
+type Frame_SetGroupAnonymousBanReq struct {
+ SetGroupAnonymousBanReq *SetGroupAnonymousBanReq `protobuf:"bytes,210,opt,name=set_group_anonymous_ban_req,json=setGroupAnonymousBanReq,proto3,oneof"`
}
-func (m *Frame_GroupTempMessageEvent) MarshalToSizedBuffer(dAtA []byte) (int, error) {
- i := len(dAtA)
- if m.GroupTempMessageEvent != nil {
- {
- size, err := m.GroupTempMessageEvent.MarshalToSizedBuffer(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- i = encodeVarintOnebotFrame(dAtA, i, uint64(size))
- }
- i--
- dAtA[i] = 0x7
- i--
- dAtA[i] = 0x8a
- }
- return len(dAtA) - i, nil
+type Frame_SetGroupWholeBanReq struct {
+ SetGroupWholeBanReq *SetGroupWholeBanReq `protobuf:"bytes,211,opt,name=set_group_whole_ban_req,json=setGroupWholeBanReq,proto3,oneof"`
}
-func (m *Frame_SendPrivateMsgReq) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
+
+type Frame_SetGroupAdminReq struct {
+ SetGroupAdminReq *SetGroupAdminReq `protobuf:"bytes,212,opt,name=set_group_admin_req,json=setGroupAdminReq,proto3,oneof"`
}
-func (m *Frame_SendPrivateMsgReq) MarshalToSizedBuffer(dAtA []byte) (int, error) {
- i := len(dAtA)
- if m.SendPrivateMsgReq != nil {
- {
- size, err := m.SendPrivateMsgReq.MarshalToSizedBuffer(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- i = encodeVarintOnebotFrame(dAtA, i, uint64(size))
- }
- i--
- dAtA[i] = 0xc
- i--
- dAtA[i] = 0xca
- }
- return len(dAtA) - i, nil
+type Frame_SetGroupAnonymousReq struct {
+ SetGroupAnonymousReq *SetGroupAnonymousReq `protobuf:"bytes,213,opt,name=set_group_anonymous_req,json=setGroupAnonymousReq,proto3,oneof"`
}
-func (m *Frame_SendGroupMsgReq) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
+
+type Frame_SetGroupCardReq struct {
+ SetGroupCardReq *SetGroupCardReq `protobuf:"bytes,214,opt,name=set_group_card_req,json=setGroupCardReq,proto3,oneof"`
}
-func (m *Frame_SendGroupMsgReq) MarshalToSizedBuffer(dAtA []byte) (int, error) {
- i := len(dAtA)
- if m.SendGroupMsgReq != nil {
- {
- size, err := m.SendGroupMsgReq.MarshalToSizedBuffer(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- i = encodeVarintOnebotFrame(dAtA, i, uint64(size))
- }
- i--
- dAtA[i] = 0xc
- i--
- dAtA[i] = 0xd2
- }
- return len(dAtA) - i, nil
+type Frame_SetGroupNameReq struct {
+ SetGroupNameReq *SetGroupNameReq `protobuf:"bytes,215,opt,name=set_group_name_req,json=setGroupNameReq,proto3,oneof"`
}
-func (m *Frame_SendMsgReq) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
+
+type Frame_SetGroupLeaveReq struct {
+ SetGroupLeaveReq *SetGroupLeaveReq `protobuf:"bytes,216,opt,name=set_group_leave_req,json=setGroupLeaveReq,proto3,oneof"`
}
-func (m *Frame_SendMsgReq) MarshalToSizedBuffer(dAtA []byte) (int, error) {
- i := len(dAtA)
- if m.SendMsgReq != nil {
- {
- size, err := m.SendMsgReq.MarshalToSizedBuffer(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- i = encodeVarintOnebotFrame(dAtA, i, uint64(size))
- }
- i--
- dAtA[i] = 0xc
- i--
- dAtA[i] = 0xda
- }
- return len(dAtA) - i, nil
+type Frame_SetGroupSpecialTitleReq struct {
+ SetGroupSpecialTitleReq *SetGroupSpecialTitleReq `protobuf:"bytes,217,opt,name=set_group_special_title_req,json=setGroupSpecialTitleReq,proto3,oneof"`
}
-func (m *Frame_DeleteMsgReq) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
+
+type Frame_SetFriendAddRequestReq struct {
+ SetFriendAddRequestReq *SetFriendAddRequestReq `protobuf:"bytes,218,opt,name=set_friend_add_request_req,json=setFriendAddRequestReq,proto3,oneof"`
}
-func (m *Frame_DeleteMsgReq) MarshalToSizedBuffer(dAtA []byte) (int, error) {
- i := len(dAtA)
- if m.DeleteMsgReq != nil {
- {
- size, err := m.DeleteMsgReq.MarshalToSizedBuffer(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- i = encodeVarintOnebotFrame(dAtA, i, uint64(size))
- }
- i--
- dAtA[i] = 0xc
- i--
- dAtA[i] = 0xe2
- }
- return len(dAtA) - i, nil
+type Frame_SetGroupAddRequestReq struct {
+ SetGroupAddRequestReq *SetGroupAddRequestReq `protobuf:"bytes,219,opt,name=set_group_add_request_req,json=setGroupAddRequestReq,proto3,oneof"`
}
-func (m *Frame_GetMsgReq) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
+
+type Frame_GetLoginInfoReq struct {
+ GetLoginInfoReq *GetLoginInfoReq `protobuf:"bytes,220,opt,name=get_login_info_req,json=getLoginInfoReq,proto3,oneof"`
}
-func (m *Frame_GetMsgReq) MarshalToSizedBuffer(dAtA []byte) (int, error) {
- i := len(dAtA)
- if m.GetMsgReq != nil {
- {
- size, err := m.GetMsgReq.MarshalToSizedBuffer(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- i = encodeVarintOnebotFrame(dAtA, i, uint64(size))
- }
- i--
- dAtA[i] = 0xc
- i--
- dAtA[i] = 0xea
- }
- return len(dAtA) - i, nil
+type Frame_GetStrangerInfoReq struct {
+ GetStrangerInfoReq *GetStrangerInfoReq `protobuf:"bytes,221,opt,name=get_stranger_info_req,json=getStrangerInfoReq,proto3,oneof"`
}
-func (m *Frame_GetForwardMsgReq) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
+
+type Frame_GetFriendListReq struct {
+ GetFriendListReq *GetFriendListReq `protobuf:"bytes,222,opt,name=get_friend_list_req,json=getFriendListReq,proto3,oneof"`
}
-func (m *Frame_GetForwardMsgReq) MarshalToSizedBuffer(dAtA []byte) (int, error) {
- i := len(dAtA)
- if m.GetForwardMsgReq != nil {
- {
- size, err := m.GetForwardMsgReq.MarshalToSizedBuffer(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- i = encodeVarintOnebotFrame(dAtA, i, uint64(size))
- }
- i--
- dAtA[i] = 0xc
- i--
- dAtA[i] = 0xf2
- }
- return len(dAtA) - i, nil
+type Frame_GetGroupInfoReq struct {
+ GetGroupInfoReq *GetGroupInfoReq `protobuf:"bytes,223,opt,name=get_group_info_req,json=getGroupInfoReq,proto3,oneof"`
}
-func (m *Frame_SendLikeReq) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
+
+type Frame_GetGroupListReq struct {
+ GetGroupListReq *GetGroupListReq `protobuf:"bytes,224,opt,name=get_group_list_req,json=getGroupListReq,proto3,oneof"`
}
-func (m *Frame_SendLikeReq) MarshalToSizedBuffer(dAtA []byte) (int, error) {
- i := len(dAtA)
- if m.SendLikeReq != nil {
- {
- size, err := m.SendLikeReq.MarshalToSizedBuffer(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- i = encodeVarintOnebotFrame(dAtA, i, uint64(size))
- }
- i--
- dAtA[i] = 0xc
- i--
- dAtA[i] = 0xfa
- }
- return len(dAtA) - i, nil
+type Frame_GetGroupMemberInfoReq struct {
+ GetGroupMemberInfoReq *GetGroupMemberInfoReq `protobuf:"bytes,225,opt,name=get_group_member_info_req,json=getGroupMemberInfoReq,proto3,oneof"`
}
-func (m *Frame_SetGroupKickReq) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
+
+type Frame_GetGroupMemberListReq struct {
+ GetGroupMemberListReq *GetGroupMemberListReq `protobuf:"bytes,226,opt,name=get_group_member_list_req,json=getGroupMemberListReq,proto3,oneof"`
}
-func (m *Frame_SetGroupKickReq) MarshalToSizedBuffer(dAtA []byte) (int, error) {
- i := len(dAtA)
- if m.SetGroupKickReq != nil {
- {
- size, err := m.SetGroupKickReq.MarshalToSizedBuffer(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- i = encodeVarintOnebotFrame(dAtA, i, uint64(size))
- }
- i--
- dAtA[i] = 0xd
- i--
- dAtA[i] = 0x82
- }
- return len(dAtA) - i, nil
+type Frame_GetGroupHonorInfoReq struct {
+ GetGroupHonorInfoReq *GetGroupHonorInfoReq `protobuf:"bytes,227,opt,name=get_group_honor_info_req,json=getGroupHonorInfoReq,proto3,oneof"`
}
-func (m *Frame_SetGroupBanReq) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
+
+type Frame_GetCookiesReq struct {
+ GetCookiesReq *GetCookiesReq `protobuf:"bytes,228,opt,name=get_cookies_req,json=getCookiesReq,proto3,oneof"`
}
-func (m *Frame_SetGroupBanReq) MarshalToSizedBuffer(dAtA []byte) (int, error) {
- i := len(dAtA)
- if m.SetGroupBanReq != nil {
- {
- size, err := m.SetGroupBanReq.MarshalToSizedBuffer(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- i = encodeVarintOnebotFrame(dAtA, i, uint64(size))
- }
- i--
- dAtA[i] = 0xd
- i--
- dAtA[i] = 0x8a
- }
- return len(dAtA) - i, nil
+type Frame_GetCsrfTokenReq struct {
+ GetCsrfTokenReq *GetCsrfTokenReq `protobuf:"bytes,229,opt,name=get_csrf_token_req,json=getCsrfTokenReq,proto3,oneof"`
}
-func (m *Frame_SetGroupAnonymousBanReq) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
+
+type Frame_GetCredentialsReq struct {
+ GetCredentialsReq *GetCredentialsReq `protobuf:"bytes,230,opt,name=get_credentials_req,json=getCredentialsReq,proto3,oneof"`
}
-func (m *Frame_SetGroupAnonymousBanReq) MarshalToSizedBuffer(dAtA []byte) (int, error) {
- i := len(dAtA)
- if m.SetGroupAnonymousBanReq != nil {
- {
- size, err := m.SetGroupAnonymousBanReq.MarshalToSizedBuffer(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- i = encodeVarintOnebotFrame(dAtA, i, uint64(size))
- }
- i--
- dAtA[i] = 0xd
- i--
- dAtA[i] = 0x92
- }
- return len(dAtA) - i, nil
+type Frame_GetRecordReq struct {
+ GetRecordReq *GetRecordReq `protobuf:"bytes,231,opt,name=get_record_req,json=getRecordReq,proto3,oneof"`
}
-func (m *Frame_SetGroupWholeBanReq) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
+
+type Frame_GetImageReq struct {
+ GetImageReq *GetImageReq `protobuf:"bytes,232,opt,name=get_image_req,json=getImageReq,proto3,oneof"`
}
-func (m *Frame_SetGroupWholeBanReq) MarshalToSizedBuffer(dAtA []byte) (int, error) {
- i := len(dAtA)
- if m.SetGroupWholeBanReq != nil {
- {
- size, err := m.SetGroupWholeBanReq.MarshalToSizedBuffer(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- i = encodeVarintOnebotFrame(dAtA, i, uint64(size))
- }
- i--
- dAtA[i] = 0xd
- i--
- dAtA[i] = 0x9a
- }
- return len(dAtA) - i, nil
+type Frame_CanSendImageReq struct {
+ CanSendImageReq *CanSendImageReq `protobuf:"bytes,233,opt,name=can_send_image_req,json=canSendImageReq,proto3,oneof"`
}
-func (m *Frame_SetGroupAdminReq) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
+
+type Frame_CanSendRecordReq struct {
+ CanSendRecordReq *CanSendRecordReq `protobuf:"bytes,234,opt,name=can_send_record_req,json=canSendRecordReq,proto3,oneof"`
}
-func (m *Frame_SetGroupAdminReq) MarshalToSizedBuffer(dAtA []byte) (int, error) {
- i := len(dAtA)
- if m.SetGroupAdminReq != nil {
- {
- size, err := m.SetGroupAdminReq.MarshalToSizedBuffer(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- i = encodeVarintOnebotFrame(dAtA, i, uint64(size))
- }
- i--
- dAtA[i] = 0xd
- i--
- dAtA[i] = 0xa2
- }
- return len(dAtA) - i, nil
+type Frame_GetStatusReq struct {
+ GetStatusReq *GetStatusReq `protobuf:"bytes,235,opt,name=get_status_req,json=getStatusReq,proto3,oneof"`
}
-func (m *Frame_SetGroupAnonymousReq) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
+
+type Frame_GetVersionInfoReq struct {
+ GetVersionInfoReq *GetVersionInfoReq `protobuf:"bytes,236,opt,name=get_version_info_req,json=getVersionInfoReq,proto3,oneof"`
}
-func (m *Frame_SetGroupAnonymousReq) MarshalToSizedBuffer(dAtA []byte) (int, error) {
- i := len(dAtA)
- if m.SetGroupAnonymousReq != nil {
- {
- size, err := m.SetGroupAnonymousReq.MarshalToSizedBuffer(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- i = encodeVarintOnebotFrame(dAtA, i, uint64(size))
- }
- i--
- dAtA[i] = 0xd
- i--
- dAtA[i] = 0xaa
- }
- return len(dAtA) - i, nil
-}
-func (m *Frame_SetGroupCardReq) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
+type Frame_SetRestartReq struct {
+ SetRestartReq *SetRestartReq `protobuf:"bytes,237,opt,name=set_restart_req,json=setRestartReq,proto3,oneof"`
}
-func (m *Frame_SetGroupCardReq) MarshalToSizedBuffer(dAtA []byte) (int, error) {
- i := len(dAtA)
- if m.SetGroupCardReq != nil {
- {
- size, err := m.SetGroupCardReq.MarshalToSizedBuffer(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- i = encodeVarintOnebotFrame(dAtA, i, uint64(size))
- }
- i--
- dAtA[i] = 0xd
- i--
- dAtA[i] = 0xb2
- }
- return len(dAtA) - i, nil
-}
-func (m *Frame_SetGroupNameReq) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
+type Frame_CleanCacheReq struct {
+ CleanCacheReq *CleanCacheReq `protobuf:"bytes,238,opt,name=clean_cache_req,json=cleanCacheReq,proto3,oneof"`
}
-func (m *Frame_SetGroupNameReq) MarshalToSizedBuffer(dAtA []byte) (int, error) {
- i := len(dAtA)
- if m.SetGroupNameReq != nil {
- {
- size, err := m.SetGroupNameReq.MarshalToSizedBuffer(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- i = encodeVarintOnebotFrame(dAtA, i, uint64(size))
- }
- i--
- dAtA[i] = 0xd
- i--
- dAtA[i] = 0xba
- }
- return len(dAtA) - i, nil
-}
-func (m *Frame_SetGroupLeaveReq) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
+type Frame_SetGroupSignInReq struct {
+ SetGroupSignInReq *SetGroupSignInReq `protobuf:"bytes,239,opt,name=set_group_sign_in_req,json=setGroupSignInReq,proto3,oneof"`
}
-func (m *Frame_SetGroupLeaveReq) MarshalToSizedBuffer(dAtA []byte) (int, error) {
- i := len(dAtA)
- if m.SetGroupLeaveReq != nil {
- {
- size, err := m.SetGroupLeaveReq.MarshalToSizedBuffer(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- i = encodeVarintOnebotFrame(dAtA, i, uint64(size))
- }
- i--
- dAtA[i] = 0xd
- i--
- dAtA[i] = 0xc2
- }
- return len(dAtA) - i, nil
-}
-func (m *Frame_SetGroupSpecialTitleReq) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
+type Frame_SendMusicReq struct {
+ SendMusicReq *SendMusicReq `protobuf:"bytes,240,opt,name=send_music_req,json=sendMusicReq,proto3,oneof"`
}
-func (m *Frame_SetGroupSpecialTitleReq) MarshalToSizedBuffer(dAtA []byte) (int, error) {
- i := len(dAtA)
- if m.SetGroupSpecialTitleReq != nil {
- {
- size, err := m.SetGroupSpecialTitleReq.MarshalToSizedBuffer(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- i = encodeVarintOnebotFrame(dAtA, i, uint64(size))
- }
- i--
- dAtA[i] = 0xd
- i--
- dAtA[i] = 0xca
- }
- return len(dAtA) - i, nil
-}
-func (m *Frame_SetFriendAddRequestReq) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
+type Frame_SendGroupPokeReq struct {
+ SendGroupPokeReq *SendGroupPokeReq `protobuf:"bytes,241,opt,name=send_group_poke_req,json=sendGroupPokeReq,proto3,oneof"`
}
-func (m *Frame_SetFriendAddRequestReq) MarshalToSizedBuffer(dAtA []byte) (int, error) {
- i := len(dAtA)
- if m.SetFriendAddRequestReq != nil {
- {
- size, err := m.SetFriendAddRequestReq.MarshalToSizedBuffer(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- i = encodeVarintOnebotFrame(dAtA, i, uint64(size))
- }
- i--
- dAtA[i] = 0xd
- i--
- dAtA[i] = 0xd2
- }
- return len(dAtA) - i, nil
-}
-func (m *Frame_SetGroupAddRequestReq) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
+type Frame_SendFriendPokeReq struct {
+ SendFriendPokeReq *SendFriendPokeReq `protobuf:"bytes,242,opt,name=send_friend_poke_req,json=sendFriendPokeReq,proto3,oneof"`
}
-func (m *Frame_SetGroupAddRequestReq) MarshalToSizedBuffer(dAtA []byte) (int, error) {
- i := len(dAtA)
- if m.SetGroupAddRequestReq != nil {
- {
- size, err := m.SetGroupAddRequestReq.MarshalToSizedBuffer(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- i = encodeVarintOnebotFrame(dAtA, i, uint64(size))
- }
- i--
- dAtA[i] = 0xd
- i--
- dAtA[i] = 0xda
- }
- return len(dAtA) - i, nil
-}
-func (m *Frame_GetLoginInfoReq) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
+type Frame_SendChannelMsgReq struct {
+ SendChannelMsgReq *SendChannelMsgReq `protobuf:"bytes,243,opt,name=send_channel_msg_req,json=sendChannelMsgReq,proto3,oneof"`
}
-func (m *Frame_GetLoginInfoReq) MarshalToSizedBuffer(dAtA []byte) (int, error) {
- i := len(dAtA)
- if m.GetLoginInfoReq != nil {
- {
- size, err := m.GetLoginInfoReq.MarshalToSizedBuffer(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- i = encodeVarintOnebotFrame(dAtA, i, uint64(size))
- }
- i--
- dAtA[i] = 0xd
- i--
- dAtA[i] = 0xe2
- }
- return len(dAtA) - i, nil
-}
-func (m *Frame_GetStrangerInfoReq) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
+type Frame_SendPrivateMsgResp struct {
+ SendPrivateMsgResp *SendPrivateMsgResp `protobuf:"bytes,301,opt,name=send_private_msg_resp,json=sendPrivateMsgResp,proto3,oneof"`
}
-func (m *Frame_GetStrangerInfoReq) MarshalToSizedBuffer(dAtA []byte) (int, error) {
- i := len(dAtA)
- if m.GetStrangerInfoReq != nil {
- {
- size, err := m.GetStrangerInfoReq.MarshalToSizedBuffer(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- i = encodeVarintOnebotFrame(dAtA, i, uint64(size))
- }
- i--
- dAtA[i] = 0xd
- i--
- dAtA[i] = 0xea
- }
- return len(dAtA) - i, nil
-}
-func (m *Frame_GetFriendListReq) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
+type Frame_SendGroupMsgResp struct {
+ SendGroupMsgResp *SendGroupMsgResp `protobuf:"bytes,302,opt,name=send_group_msg_resp,json=sendGroupMsgResp,proto3,oneof"`
}
-func (m *Frame_GetFriendListReq) MarshalToSizedBuffer(dAtA []byte) (int, error) {
- i := len(dAtA)
- if m.GetFriendListReq != nil {
- {
- size, err := m.GetFriendListReq.MarshalToSizedBuffer(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- i = encodeVarintOnebotFrame(dAtA, i, uint64(size))
- }
- i--
- dAtA[i] = 0xd
- i--
- dAtA[i] = 0xf2
- }
- return len(dAtA) - i, nil
-}
-func (m *Frame_GetGroupInfoReq) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
+type Frame_SendMsgResp struct {
+ SendMsgResp *SendMsgResp `protobuf:"bytes,303,opt,name=send_msg_resp,json=sendMsgResp,proto3,oneof"`
}
-func (m *Frame_GetGroupInfoReq) MarshalToSizedBuffer(dAtA []byte) (int, error) {
- i := len(dAtA)
- if m.GetGroupInfoReq != nil {
- {
- size, err := m.GetGroupInfoReq.MarshalToSizedBuffer(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- i = encodeVarintOnebotFrame(dAtA, i, uint64(size))
- }
- i--
- dAtA[i] = 0xd
- i--
- dAtA[i] = 0xfa
- }
- return len(dAtA) - i, nil
-}
-func (m *Frame_GetGroupListReq) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
+type Frame_DeleteMsgResp struct {
+ DeleteMsgResp *DeleteMsgResp `protobuf:"bytes,304,opt,name=delete_msg_resp,json=deleteMsgResp,proto3,oneof"`
}
-func (m *Frame_GetGroupListReq) MarshalToSizedBuffer(dAtA []byte) (int, error) {
- i := len(dAtA)
- if m.GetGroupListReq != nil {
- {
- size, err := m.GetGroupListReq.MarshalToSizedBuffer(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- i = encodeVarintOnebotFrame(dAtA, i, uint64(size))
- }
- i--
- dAtA[i] = 0xe
- i--
- dAtA[i] = 0x82
- }
- return len(dAtA) - i, nil
-}
-func (m *Frame_GetGroupMemberInfoReq) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
+type Frame_GetMsgResp struct {
+ GetMsgResp *GetMsgResp `protobuf:"bytes,305,opt,name=get_msg_resp,json=getMsgResp,proto3,oneof"`
}
-func (m *Frame_GetGroupMemberInfoReq) MarshalToSizedBuffer(dAtA []byte) (int, error) {
- i := len(dAtA)
- if m.GetGroupMemberInfoReq != nil {
- {
- size, err := m.GetGroupMemberInfoReq.MarshalToSizedBuffer(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- i = encodeVarintOnebotFrame(dAtA, i, uint64(size))
- }
- i--
- dAtA[i] = 0xe
- i--
- dAtA[i] = 0x8a
- }
- return len(dAtA) - i, nil
-}
-func (m *Frame_GetGroupMemberListReq) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
+type Frame_GetForwardMsgResp struct {
+ GetForwardMsgResp *GetForwardMsgResp `protobuf:"bytes,306,opt,name=get_forward_msg_resp,json=getForwardMsgResp,proto3,oneof"`
}
-func (m *Frame_GetGroupMemberListReq) MarshalToSizedBuffer(dAtA []byte) (int, error) {
- i := len(dAtA)
- if m.GetGroupMemberListReq != nil {
- {
- size, err := m.GetGroupMemberListReq.MarshalToSizedBuffer(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- i = encodeVarintOnebotFrame(dAtA, i, uint64(size))
- }
- i--
- dAtA[i] = 0xe
- i--
- dAtA[i] = 0x92
- }
- return len(dAtA) - i, nil
-}
-func (m *Frame_GetGroupHonorInfoReq) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
+type Frame_SendLikeResp struct {
+ SendLikeResp *SendLikeResp `protobuf:"bytes,307,opt,name=send_like_resp,json=sendLikeResp,proto3,oneof"`
}
-func (m *Frame_GetGroupHonorInfoReq) MarshalToSizedBuffer(dAtA []byte) (int, error) {
- i := len(dAtA)
- if m.GetGroupHonorInfoReq != nil {
- {
- size, err := m.GetGroupHonorInfoReq.MarshalToSizedBuffer(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- i = encodeVarintOnebotFrame(dAtA, i, uint64(size))
- }
- i--
- dAtA[i] = 0xe
- i--
- dAtA[i] = 0x9a
- }
- return len(dAtA) - i, nil
-}
-func (m *Frame_GetCookiesReq) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
+type Frame_SetGroupKickResp struct {
+ SetGroupKickResp *SetGroupKickResp `protobuf:"bytes,308,opt,name=set_group_kick_resp,json=setGroupKickResp,proto3,oneof"`
}
-func (m *Frame_GetCookiesReq) MarshalToSizedBuffer(dAtA []byte) (int, error) {
- i := len(dAtA)
- if m.GetCookiesReq != nil {
- {
- size, err := m.GetCookiesReq.MarshalToSizedBuffer(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- i = encodeVarintOnebotFrame(dAtA, i, uint64(size))
- }
- i--
- dAtA[i] = 0xe
- i--
- dAtA[i] = 0xa2
- }
- return len(dAtA) - i, nil
-}
-func (m *Frame_GetCsrfTokenReq) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
+type Frame_SetGroupBanResp struct {
+ SetGroupBanResp *SetGroupBanResp `protobuf:"bytes,309,opt,name=set_group_ban_resp,json=setGroupBanResp,proto3,oneof"`
}
-func (m *Frame_GetCsrfTokenReq) MarshalToSizedBuffer(dAtA []byte) (int, error) {
- i := len(dAtA)
- if m.GetCsrfTokenReq != nil {
- {
- size, err := m.GetCsrfTokenReq.MarshalToSizedBuffer(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- i = encodeVarintOnebotFrame(dAtA, i, uint64(size))
- }
- i--
- dAtA[i] = 0xe
- i--
- dAtA[i] = 0xaa
- }
- return len(dAtA) - i, nil
-}
-func (m *Frame_GetCredentialsReq) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
+type Frame_SetGroupAnonymousBanResp struct {
+ SetGroupAnonymousBanResp *SetGroupAnonymousBanResp `protobuf:"bytes,310,opt,name=set_group_anonymous_ban_resp,json=setGroupAnonymousBanResp,proto3,oneof"`
}
-func (m *Frame_GetCredentialsReq) MarshalToSizedBuffer(dAtA []byte) (int, error) {
- i := len(dAtA)
- if m.GetCredentialsReq != nil {
- {
- size, err := m.GetCredentialsReq.MarshalToSizedBuffer(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- i = encodeVarintOnebotFrame(dAtA, i, uint64(size))
- }
- i--
- dAtA[i] = 0xe
- i--
- dAtA[i] = 0xb2
- }
- return len(dAtA) - i, nil
-}
-func (m *Frame_GetRecordReq) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
+type Frame_SetGroupWholeBanResp struct {
+ SetGroupWholeBanResp *SetGroupWholeBanResp `protobuf:"bytes,311,opt,name=set_group_whole_ban_resp,json=setGroupWholeBanResp,proto3,oneof"`
}
-func (m *Frame_GetRecordReq) MarshalToSizedBuffer(dAtA []byte) (int, error) {
- i := len(dAtA)
- if m.GetRecordReq != nil {
- {
- size, err := m.GetRecordReq.MarshalToSizedBuffer(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- i = encodeVarintOnebotFrame(dAtA, i, uint64(size))
- }
- i--
- dAtA[i] = 0xe
- i--
- dAtA[i] = 0xba
- }
- return len(dAtA) - i, nil
-}
-func (m *Frame_GetImageReq) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
+type Frame_SetGroupAdminResp struct {
+ SetGroupAdminResp *SetGroupAdminResp `protobuf:"bytes,312,opt,name=set_group_admin_resp,json=setGroupAdminResp,proto3,oneof"`
}
-func (m *Frame_GetImageReq) MarshalToSizedBuffer(dAtA []byte) (int, error) {
- i := len(dAtA)
- if m.GetImageReq != nil {
- {
- size, err := m.GetImageReq.MarshalToSizedBuffer(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- i = encodeVarintOnebotFrame(dAtA, i, uint64(size))
- }
- i--
- dAtA[i] = 0xe
- i--
- dAtA[i] = 0xc2
- }
- return len(dAtA) - i, nil
-}
-func (m *Frame_CanSendImageReq) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
+type Frame_SetGroupAnonymousResp struct {
+ SetGroupAnonymousResp *SetGroupAnonymousResp `protobuf:"bytes,313,opt,name=set_group_anonymous_resp,json=setGroupAnonymousResp,proto3,oneof"`
}
-func (m *Frame_CanSendImageReq) MarshalToSizedBuffer(dAtA []byte) (int, error) {
- i := len(dAtA)
- if m.CanSendImageReq != nil {
- {
- size, err := m.CanSendImageReq.MarshalToSizedBuffer(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- i = encodeVarintOnebotFrame(dAtA, i, uint64(size))
- }
- i--
- dAtA[i] = 0xe
- i--
- dAtA[i] = 0xca
- }
- return len(dAtA) - i, nil
-}
-func (m *Frame_CanSendRecordReq) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
+type Frame_SetGroupCardResp struct {
+ SetGroupCardResp *SetGroupCardResp `protobuf:"bytes,314,opt,name=set_group_card_resp,json=setGroupCardResp,proto3,oneof"`
}
-func (m *Frame_CanSendRecordReq) MarshalToSizedBuffer(dAtA []byte) (int, error) {
- i := len(dAtA)
- if m.CanSendRecordReq != nil {
- {
- size, err := m.CanSendRecordReq.MarshalToSizedBuffer(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- i = encodeVarintOnebotFrame(dAtA, i, uint64(size))
- }
- i--
- dAtA[i] = 0xe
- i--
- dAtA[i] = 0xd2
- }
- return len(dAtA) - i, nil
-}
-func (m *Frame_GetStatusReq) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
+type Frame_SetGroupNameResp struct {
+ SetGroupNameResp *SetGroupNameResp `protobuf:"bytes,315,opt,name=set_group_name_resp,json=setGroupNameResp,proto3,oneof"`
}
-func (m *Frame_GetStatusReq) MarshalToSizedBuffer(dAtA []byte) (int, error) {
- i := len(dAtA)
- if m.GetStatusReq != nil {
- {
- size, err := m.GetStatusReq.MarshalToSizedBuffer(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- i = encodeVarintOnebotFrame(dAtA, i, uint64(size))
- }
- i--
- dAtA[i] = 0xe
- i--
- dAtA[i] = 0xda
- }
- return len(dAtA) - i, nil
-}
-func (m *Frame_GetVersionInfoReq) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
+type Frame_SetGroupLeaveResp struct {
+ SetGroupLeaveResp *SetGroupLeaveResp `protobuf:"bytes,316,opt,name=set_group_leave_resp,json=setGroupLeaveResp,proto3,oneof"`
}
-func (m *Frame_GetVersionInfoReq) MarshalToSizedBuffer(dAtA []byte) (int, error) {
- i := len(dAtA)
- if m.GetVersionInfoReq != nil {
- {
- size, err := m.GetVersionInfoReq.MarshalToSizedBuffer(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- i = encodeVarintOnebotFrame(dAtA, i, uint64(size))
- }
- i--
- dAtA[i] = 0xe
- i--
- dAtA[i] = 0xe2
- }
- return len(dAtA) - i, nil
-}
-func (m *Frame_SetRestartReq) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
+type Frame_SetGroupSpecialTitleResp struct {
+ SetGroupSpecialTitleResp *SetGroupSpecialTitleResp `protobuf:"bytes,317,opt,name=set_group_special_title_resp,json=setGroupSpecialTitleResp,proto3,oneof"`
}
-func (m *Frame_SetRestartReq) MarshalToSizedBuffer(dAtA []byte) (int, error) {
- i := len(dAtA)
- if m.SetRestartReq != nil {
- {
- size, err := m.SetRestartReq.MarshalToSizedBuffer(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- i = encodeVarintOnebotFrame(dAtA, i, uint64(size))
- }
- i--
- dAtA[i] = 0xe
- i--
- dAtA[i] = 0xea
- }
- return len(dAtA) - i, nil
-}
-func (m *Frame_CleanCacheReq) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
+type Frame_SetFriendAddRequestResp struct {
+ SetFriendAddRequestResp *SetFriendAddRequestResp `protobuf:"bytes,318,opt,name=set_friend_add_request_resp,json=setFriendAddRequestResp,proto3,oneof"`
}
-func (m *Frame_CleanCacheReq) MarshalToSizedBuffer(dAtA []byte) (int, error) {
- i := len(dAtA)
- if m.CleanCacheReq != nil {
- {
- size, err := m.CleanCacheReq.MarshalToSizedBuffer(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- i = encodeVarintOnebotFrame(dAtA, i, uint64(size))
- }
- i--
- dAtA[i] = 0xe
- i--
- dAtA[i] = 0xf2
- }
- return len(dAtA) - i, nil
-}
-func (m *Frame_SetGroupSignInReq) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
+type Frame_SetGroupAddRequestResp struct {
+ SetGroupAddRequestResp *SetGroupAddRequestResp `protobuf:"bytes,319,opt,name=set_group_add_request_resp,json=setGroupAddRequestResp,proto3,oneof"`
}
-func (m *Frame_SetGroupSignInReq) MarshalToSizedBuffer(dAtA []byte) (int, error) {
- i := len(dAtA)
- if m.SetGroupSignInReq != nil {
- {
- size, err := m.SetGroupSignInReq.MarshalToSizedBuffer(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- i = encodeVarintOnebotFrame(dAtA, i, uint64(size))
- }
- i--
- dAtA[i] = 0xe
- i--
- dAtA[i] = 0xfa
- }
- return len(dAtA) - i, nil
-}
-func (m *Frame_SendMusicReq) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
+type Frame_GetLoginInfoResp struct {
+ GetLoginInfoResp *GetLoginInfoResp `protobuf:"bytes,320,opt,name=get_login_info_resp,json=getLoginInfoResp,proto3,oneof"`
}
-func (m *Frame_SendMusicReq) MarshalToSizedBuffer(dAtA []byte) (int, error) {
- i := len(dAtA)
- if m.SendMusicReq != nil {
- {
- size, err := m.SendMusicReq.MarshalToSizedBuffer(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- i = encodeVarintOnebotFrame(dAtA, i, uint64(size))
- }
- i--
- dAtA[i] = 0xf
- i--
- dAtA[i] = 0x82
- }
- return len(dAtA) - i, nil
-}
-func (m *Frame_SendGroupPokeReq) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
+type Frame_GetStrangerInfoResp struct {
+ GetStrangerInfoResp *GetStrangerInfoResp `protobuf:"bytes,321,opt,name=get_stranger_info_resp,json=getStrangerInfoResp,proto3,oneof"`
}
-func (m *Frame_SendGroupPokeReq) MarshalToSizedBuffer(dAtA []byte) (int, error) {
- i := len(dAtA)
- if m.SendGroupPokeReq != nil {
- {
- size, err := m.SendGroupPokeReq.MarshalToSizedBuffer(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- i = encodeVarintOnebotFrame(dAtA, i, uint64(size))
- }
- i--
- dAtA[i] = 0xf
- i--
- dAtA[i] = 0x8a
- }
- return len(dAtA) - i, nil
-}
-func (m *Frame_SendFriendPokeReq) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
+type Frame_GetFriendListResp struct {
+ GetFriendListResp *GetFriendListResp `protobuf:"bytes,322,opt,name=get_friend_list_resp,json=getFriendListResp,proto3,oneof"`
}
-func (m *Frame_SendFriendPokeReq) MarshalToSizedBuffer(dAtA []byte) (int, error) {
- i := len(dAtA)
- if m.SendFriendPokeReq != nil {
- {
- size, err := m.SendFriendPokeReq.MarshalToSizedBuffer(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- i = encodeVarintOnebotFrame(dAtA, i, uint64(size))
- }
- i--
- dAtA[i] = 0xf
- i--
- dAtA[i] = 0x92
- }
- return len(dAtA) - i, nil
-}
-func (m *Frame_SendPrivateMsgResp) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
+type Frame_GetGroupInfoResp struct {
+ GetGroupInfoResp *GetGroupInfoResp `protobuf:"bytes,323,opt,name=get_group_info_resp,json=getGroupInfoResp,proto3,oneof"`
}
-func (m *Frame_SendPrivateMsgResp) MarshalToSizedBuffer(dAtA []byte) (int, error) {
- i := len(dAtA)
- if m.SendPrivateMsgResp != nil {
- {
- size, err := m.SendPrivateMsgResp.MarshalToSizedBuffer(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- i = encodeVarintOnebotFrame(dAtA, i, uint64(size))
- }
- i--
- dAtA[i] = 0x12
- i--
- dAtA[i] = 0xea
- }
- return len(dAtA) - i, nil
-}
-func (m *Frame_SendGroupMsgResp) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
+type Frame_GetGroupListResp struct {
+ GetGroupListResp *GetGroupListResp `protobuf:"bytes,324,opt,name=get_group_list_resp,json=getGroupListResp,proto3,oneof"`
}
-func (m *Frame_SendGroupMsgResp) MarshalToSizedBuffer(dAtA []byte) (int, error) {
- i := len(dAtA)
- if m.SendGroupMsgResp != nil {
- {
- size, err := m.SendGroupMsgResp.MarshalToSizedBuffer(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- i = encodeVarintOnebotFrame(dAtA, i, uint64(size))
- }
- i--
- dAtA[i] = 0x12
- i--
- dAtA[i] = 0xf2
- }
- return len(dAtA) - i, nil
-}
-func (m *Frame_SendMsgResp) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
+type Frame_GetGroupMemberInfoResp struct {
+ GetGroupMemberInfoResp *GetGroupMemberInfoResp `protobuf:"bytes,325,opt,name=get_group_member_info_resp,json=getGroupMemberInfoResp,proto3,oneof"`
}
-func (m *Frame_SendMsgResp) MarshalToSizedBuffer(dAtA []byte) (int, error) {
- i := len(dAtA)
- if m.SendMsgResp != nil {
- {
- size, err := m.SendMsgResp.MarshalToSizedBuffer(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- i = encodeVarintOnebotFrame(dAtA, i, uint64(size))
- }
- i--
- dAtA[i] = 0x12
- i--
- dAtA[i] = 0xfa
- }
- return len(dAtA) - i, nil
-}
-func (m *Frame_DeleteMsgResp) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
+type Frame_GetGroupMemberListResp struct {
+ GetGroupMemberListResp *GetGroupMemberListResp `protobuf:"bytes,326,opt,name=get_group_member_list_resp,json=getGroupMemberListResp,proto3,oneof"`
}
-func (m *Frame_DeleteMsgResp) MarshalToSizedBuffer(dAtA []byte) (int, error) {
- i := len(dAtA)
- if m.DeleteMsgResp != nil {
- {
- size, err := m.DeleteMsgResp.MarshalToSizedBuffer(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- i = encodeVarintOnebotFrame(dAtA, i, uint64(size))
- }
- i--
- dAtA[i] = 0x13
- i--
- dAtA[i] = 0x82
- }
- return len(dAtA) - i, nil
-}
-func (m *Frame_GetMsgResp) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
+type Frame_GetGroupHonorInfoResp struct {
+ GetGroupHonorInfoResp *GetGroupHonorInfoResp `protobuf:"bytes,327,opt,name=get_group_honor_info_resp,json=getGroupHonorInfoResp,proto3,oneof"`
}
-func (m *Frame_GetMsgResp) MarshalToSizedBuffer(dAtA []byte) (int, error) {
- i := len(dAtA)
- if m.GetMsgResp != nil {
- {
- size, err := m.GetMsgResp.MarshalToSizedBuffer(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- i = encodeVarintOnebotFrame(dAtA, i, uint64(size))
- }
- i--
- dAtA[i] = 0x13
- i--
- dAtA[i] = 0x8a
- }
- return len(dAtA) - i, nil
-}
-func (m *Frame_GetForwardMsgResp) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
+type Frame_GetCookiesResp struct {
+ GetCookiesResp *GetCookiesResp `protobuf:"bytes,328,opt,name=get_cookies_resp,json=getCookiesResp,proto3,oneof"`
}
-func (m *Frame_GetForwardMsgResp) MarshalToSizedBuffer(dAtA []byte) (int, error) {
- i := len(dAtA)
- if m.GetForwardMsgResp != nil {
- {
- size, err := m.GetForwardMsgResp.MarshalToSizedBuffer(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- i = encodeVarintOnebotFrame(dAtA, i, uint64(size))
- }
- i--
- dAtA[i] = 0x13
- i--
- dAtA[i] = 0x92
- }
- return len(dAtA) - i, nil
-}
-func (m *Frame_SendLikeResp) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
+type Frame_GetCsrfTokenResp struct {
+ GetCsrfTokenResp *GetCsrfTokenResp `protobuf:"bytes,329,opt,name=get_csrf_token_resp,json=getCsrfTokenResp,proto3,oneof"`
}
-func (m *Frame_SendLikeResp) MarshalToSizedBuffer(dAtA []byte) (int, error) {
- i := len(dAtA)
- if m.SendLikeResp != nil {
- {
- size, err := m.SendLikeResp.MarshalToSizedBuffer(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- i = encodeVarintOnebotFrame(dAtA, i, uint64(size))
- }
- i--
- dAtA[i] = 0x13
- i--
- dAtA[i] = 0x9a
- }
- return len(dAtA) - i, nil
-}
-func (m *Frame_SetGroupKickResp) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
+type Frame_GetCredentialsResp struct {
+ GetCredentialsResp *GetCredentialsResp `protobuf:"bytes,330,opt,name=get_credentials_resp,json=getCredentialsResp,proto3,oneof"`
}
-func (m *Frame_SetGroupKickResp) MarshalToSizedBuffer(dAtA []byte) (int, error) {
- i := len(dAtA)
- if m.SetGroupKickResp != nil {
- {
- size, err := m.SetGroupKickResp.MarshalToSizedBuffer(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- i = encodeVarintOnebotFrame(dAtA, i, uint64(size))
- }
- i--
- dAtA[i] = 0x13
- i--
- dAtA[i] = 0xa2
- }
- return len(dAtA) - i, nil
-}
-func (m *Frame_SetGroupBanResp) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
+type Frame_GetRecordResp struct {
+ GetRecordResp *GetRecordResp `protobuf:"bytes,331,opt,name=get_record_resp,json=getRecordResp,proto3,oneof"`
}
-func (m *Frame_SetGroupBanResp) MarshalToSizedBuffer(dAtA []byte) (int, error) {
- i := len(dAtA)
- if m.SetGroupBanResp != nil {
- {
- size, err := m.SetGroupBanResp.MarshalToSizedBuffer(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- i = encodeVarintOnebotFrame(dAtA, i, uint64(size))
- }
- i--
- dAtA[i] = 0x13
- i--
- dAtA[i] = 0xaa
- }
- return len(dAtA) - i, nil
-}
-func (m *Frame_SetGroupAnonymousBanResp) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
+type Frame_GetImageResp struct {
+ GetImageResp *GetImageResp `protobuf:"bytes,332,opt,name=get_image_resp,json=getImageResp,proto3,oneof"`
}
-func (m *Frame_SetGroupAnonymousBanResp) MarshalToSizedBuffer(dAtA []byte) (int, error) {
- i := len(dAtA)
- if m.SetGroupAnonymousBanResp != nil {
- {
- size, err := m.SetGroupAnonymousBanResp.MarshalToSizedBuffer(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- i = encodeVarintOnebotFrame(dAtA, i, uint64(size))
- }
- i--
- dAtA[i] = 0x13
- i--
- dAtA[i] = 0xb2
- }
- return len(dAtA) - i, nil
-}
-func (m *Frame_SetGroupWholeBanResp) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
+type Frame_CanSendImageResp struct {
+ CanSendImageResp *CanSendImageResp `protobuf:"bytes,333,opt,name=can_send_image_resp,json=canSendImageResp,proto3,oneof"`
}
-func (m *Frame_SetGroupWholeBanResp) MarshalToSizedBuffer(dAtA []byte) (int, error) {
- i := len(dAtA)
- if m.SetGroupWholeBanResp != nil {
- {
- size, err := m.SetGroupWholeBanResp.MarshalToSizedBuffer(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- i = encodeVarintOnebotFrame(dAtA, i, uint64(size))
- }
- i--
- dAtA[i] = 0x13
- i--
- dAtA[i] = 0xba
- }
- return len(dAtA) - i, nil
-}
-func (m *Frame_SetGroupAdminResp) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
+type Frame_CanSendRecordResp struct {
+ CanSendRecordResp *CanSendRecordResp `protobuf:"bytes,334,opt,name=can_send_record_resp,json=canSendRecordResp,proto3,oneof"`
}
-func (m *Frame_SetGroupAdminResp) MarshalToSizedBuffer(dAtA []byte) (int, error) {
- i := len(dAtA)
- if m.SetGroupAdminResp != nil {
- {
- size, err := m.SetGroupAdminResp.MarshalToSizedBuffer(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- i = encodeVarintOnebotFrame(dAtA, i, uint64(size))
- }
- i--
- dAtA[i] = 0x13
- i--
- dAtA[i] = 0xc2
- }
- return len(dAtA) - i, nil
-}
-func (m *Frame_SetGroupAnonymousResp) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
+type Frame_GetStatusResp struct {
+ GetStatusResp *GetStatusResp `protobuf:"bytes,335,opt,name=get_status_resp,json=getStatusResp,proto3,oneof"`
}
-func (m *Frame_SetGroupAnonymousResp) MarshalToSizedBuffer(dAtA []byte) (int, error) {
- i := len(dAtA)
- if m.SetGroupAnonymousResp != nil {
- {
- size, err := m.SetGroupAnonymousResp.MarshalToSizedBuffer(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- i = encodeVarintOnebotFrame(dAtA, i, uint64(size))
- }
- i--
- dAtA[i] = 0x13
- i--
- dAtA[i] = 0xca
- }
- return len(dAtA) - i, nil
-}
-func (m *Frame_SetGroupCardResp) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
+type Frame_GetVersionInfoResp struct {
+ GetVersionInfoResp *GetVersionInfoResp `protobuf:"bytes,336,opt,name=get_version_info_resp,json=getVersionInfoResp,proto3,oneof"`
}
-func (m *Frame_SetGroupCardResp) MarshalToSizedBuffer(dAtA []byte) (int, error) {
- i := len(dAtA)
- if m.SetGroupCardResp != nil {
- {
- size, err := m.SetGroupCardResp.MarshalToSizedBuffer(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- i = encodeVarintOnebotFrame(dAtA, i, uint64(size))
- }
- i--
- dAtA[i] = 0x13
- i--
- dAtA[i] = 0xd2
- }
- return len(dAtA) - i, nil
-}
-func (m *Frame_SetGroupNameResp) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
+type Frame_SetRestartResp struct {
+ SetRestartResp *SetRestartResp `protobuf:"bytes,337,opt,name=set_restart_resp,json=setRestartResp,proto3,oneof"`
}
-func (m *Frame_SetGroupNameResp) MarshalToSizedBuffer(dAtA []byte) (int, error) {
- i := len(dAtA)
- if m.SetGroupNameResp != nil {
- {
- size, err := m.SetGroupNameResp.MarshalToSizedBuffer(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- i = encodeVarintOnebotFrame(dAtA, i, uint64(size))
- }
- i--
- dAtA[i] = 0x13
- i--
- dAtA[i] = 0xda
- }
- return len(dAtA) - i, nil
-}
-func (m *Frame_SetGroupLeaveResp) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
+type Frame_CleanCacheResp struct {
+ CleanCacheResp *CleanCacheResp `protobuf:"bytes,338,opt,name=clean_cache_resp,json=cleanCacheResp,proto3,oneof"`
}
-func (m *Frame_SetGroupLeaveResp) MarshalToSizedBuffer(dAtA []byte) (int, error) {
- i := len(dAtA)
- if m.SetGroupLeaveResp != nil {
- {
- size, err := m.SetGroupLeaveResp.MarshalToSizedBuffer(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- i = encodeVarintOnebotFrame(dAtA, i, uint64(size))
- }
- i--
- dAtA[i] = 0x13
- i--
- dAtA[i] = 0xe2
- }
- return len(dAtA) - i, nil
-}
-func (m *Frame_SetGroupSpecialTitleResp) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
+type Frame_SetGroupSignInResp struct {
+ SetGroupSignInResp *SetGroupSignInResp `protobuf:"bytes,339,opt,name=set_group_sign_in_resp,json=setGroupSignInResp,proto3,oneof"`
}
-func (m *Frame_SetGroupSpecialTitleResp) MarshalToSizedBuffer(dAtA []byte) (int, error) {
- i := len(dAtA)
- if m.SetGroupSpecialTitleResp != nil {
- {
- size, err := m.SetGroupSpecialTitleResp.MarshalToSizedBuffer(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- i = encodeVarintOnebotFrame(dAtA, i, uint64(size))
- }
- i--
- dAtA[i] = 0x13
- i--
- dAtA[i] = 0xea
- }
- return len(dAtA) - i, nil
-}
-func (m *Frame_SetFriendAddRequestResp) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
+type Frame_SendMusicResp struct {
+ SendMusicResp *SendMusicResp `protobuf:"bytes,340,opt,name=send_music_resp,json=sendMusicResp,proto3,oneof"`
}
-func (m *Frame_SetFriendAddRequestResp) MarshalToSizedBuffer(dAtA []byte) (int, error) {
- i := len(dAtA)
- if m.SetFriendAddRequestResp != nil {
- {
- size, err := m.SetFriendAddRequestResp.MarshalToSizedBuffer(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- i = encodeVarintOnebotFrame(dAtA, i, uint64(size))
- }
- i--
- dAtA[i] = 0x13
- i--
- dAtA[i] = 0xf2
- }
- return len(dAtA) - i, nil
-}
-func (m *Frame_SetGroupAddRequestResp) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
+type Frame_SendGroupPokeResp struct {
+ SendGroupPokeResp *SendGroupPokeResp `protobuf:"bytes,341,opt,name=send_group_poke_resp,json=sendGroupPokeResp,proto3,oneof"`
}
-func (m *Frame_SetGroupAddRequestResp) MarshalToSizedBuffer(dAtA []byte) (int, error) {
- i := len(dAtA)
- if m.SetGroupAddRequestResp != nil {
- {
- size, err := m.SetGroupAddRequestResp.MarshalToSizedBuffer(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- i = encodeVarintOnebotFrame(dAtA, i, uint64(size))
- }
- i--
- dAtA[i] = 0x13
- i--
- dAtA[i] = 0xfa
- }
- return len(dAtA) - i, nil
-}
-func (m *Frame_GetLoginInfoResp) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
+type Frame_SendFriendPokeResp struct {
+ SendFriendPokeResp *SendFriendPokeResp `protobuf:"bytes,342,opt,name=send_friend_poke_resp,json=sendFriendPokeResp,proto3,oneof"`
}
-func (m *Frame_GetLoginInfoResp) MarshalToSizedBuffer(dAtA []byte) (int, error) {
- i := len(dAtA)
- if m.GetLoginInfoResp != nil {
- {
- size, err := m.GetLoginInfoResp.MarshalToSizedBuffer(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- i = encodeVarintOnebotFrame(dAtA, i, uint64(size))
- }
- i--
- dAtA[i] = 0x14
- i--
- dAtA[i] = 0x82
- }
- return len(dAtA) - i, nil
-}
-func (m *Frame_GetStrangerInfoResp) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
+type Frame_SendChannelMsgResp struct {
+ SendChannelMsgResp *SendChannelMsgResp `protobuf:"bytes,343,opt,name=send_channel_msg_resp,json=sendChannelMsgResp,proto3,oneof"`
}
-func (m *Frame_GetStrangerInfoResp) MarshalToSizedBuffer(dAtA []byte) (int, error) {
- i := len(dAtA)
- if m.GetStrangerInfoResp != nil {
- {
- size, err := m.GetStrangerInfoResp.MarshalToSizedBuffer(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- i = encodeVarintOnebotFrame(dAtA, i, uint64(size))
- }
- i--
- dAtA[i] = 0x14
- i--
- dAtA[i] = 0x8a
- }
- return len(dAtA) - i, nil
-}
-func (m *Frame_GetFriendListResp) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
-}
+func (*Frame_PrivateMessageEvent) isFrame_Data() {}
-func (m *Frame_GetFriendListResp) MarshalToSizedBuffer(dAtA []byte) (int, error) {
- i := len(dAtA)
- if m.GetFriendListResp != nil {
- {
- size, err := m.GetFriendListResp.MarshalToSizedBuffer(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- i = encodeVarintOnebotFrame(dAtA, i, uint64(size))
- }
- i--
- dAtA[i] = 0x14
- i--
- dAtA[i] = 0x92
- }
- return len(dAtA) - i, nil
-}
-func (m *Frame_GetGroupInfoResp) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
-}
+func (*Frame_GroupMessageEvent) isFrame_Data() {}
-func (m *Frame_GetGroupInfoResp) MarshalToSizedBuffer(dAtA []byte) (int, error) {
- i := len(dAtA)
- if m.GetGroupInfoResp != nil {
- {
- size, err := m.GetGroupInfoResp.MarshalToSizedBuffer(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- i = encodeVarintOnebotFrame(dAtA, i, uint64(size))
- }
- i--
- dAtA[i] = 0x14
- i--
- dAtA[i] = 0x9a
- }
- return len(dAtA) - i, nil
-}
-func (m *Frame_GetGroupListResp) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
-}
+func (*Frame_GroupUploadNoticeEvent) isFrame_Data() {}
-func (m *Frame_GetGroupListResp) MarshalToSizedBuffer(dAtA []byte) (int, error) {
- i := len(dAtA)
- if m.GetGroupListResp != nil {
- {
- size, err := m.GetGroupListResp.MarshalToSizedBuffer(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- i = encodeVarintOnebotFrame(dAtA, i, uint64(size))
- }
- i--
- dAtA[i] = 0x14
- i--
- dAtA[i] = 0xa2
- }
- return len(dAtA) - i, nil
-}
-func (m *Frame_GetGroupMemberInfoResp) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
-}
+func (*Frame_GroupAdminNoticeEvent) isFrame_Data() {}
-func (m *Frame_GetGroupMemberInfoResp) MarshalToSizedBuffer(dAtA []byte) (int, error) {
- i := len(dAtA)
- if m.GetGroupMemberInfoResp != nil {
- {
- size, err := m.GetGroupMemberInfoResp.MarshalToSizedBuffer(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- i = encodeVarintOnebotFrame(dAtA, i, uint64(size))
- }
- i--
- dAtA[i] = 0x14
- i--
- dAtA[i] = 0xaa
- }
- return len(dAtA) - i, nil
-}
-func (m *Frame_GetGroupMemberListResp) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
-}
+func (*Frame_GroupDecreaseNoticeEvent) isFrame_Data() {}
-func (m *Frame_GetGroupMemberListResp) MarshalToSizedBuffer(dAtA []byte) (int, error) {
- i := len(dAtA)
- if m.GetGroupMemberListResp != nil {
- {
- size, err := m.GetGroupMemberListResp.MarshalToSizedBuffer(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- i = encodeVarintOnebotFrame(dAtA, i, uint64(size))
- }
- i--
- dAtA[i] = 0x14
- i--
- dAtA[i] = 0xb2
- }
- return len(dAtA) - i, nil
-}
-func (m *Frame_GetGroupHonorInfoResp) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
-}
+func (*Frame_GroupIncreaseNoticeEvent) isFrame_Data() {}
-func (m *Frame_GetGroupHonorInfoResp) MarshalToSizedBuffer(dAtA []byte) (int, error) {
- i := len(dAtA)
- if m.GetGroupHonorInfoResp != nil {
- {
- size, err := m.GetGroupHonorInfoResp.MarshalToSizedBuffer(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- i = encodeVarintOnebotFrame(dAtA, i, uint64(size))
- }
- i--
- dAtA[i] = 0x14
- i--
- dAtA[i] = 0xba
- }
- return len(dAtA) - i, nil
-}
-func (m *Frame_GetCookiesResp) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
-}
+func (*Frame_GroupBanNoticeEvent) isFrame_Data() {}
-func (m *Frame_GetCookiesResp) MarshalToSizedBuffer(dAtA []byte) (int, error) {
- i := len(dAtA)
- if m.GetCookiesResp != nil {
- {
- size, err := m.GetCookiesResp.MarshalToSizedBuffer(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- i = encodeVarintOnebotFrame(dAtA, i, uint64(size))
- }
- i--
- dAtA[i] = 0x14
- i--
- dAtA[i] = 0xc2
- }
- return len(dAtA) - i, nil
-}
-func (m *Frame_GetCsrfTokenResp) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
-}
+func (*Frame_FriendAddNoticeEvent) isFrame_Data() {}
-func (m *Frame_GetCsrfTokenResp) MarshalToSizedBuffer(dAtA []byte) (int, error) {
- i := len(dAtA)
- if m.GetCsrfTokenResp != nil {
- {
- size, err := m.GetCsrfTokenResp.MarshalToSizedBuffer(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- i = encodeVarintOnebotFrame(dAtA, i, uint64(size))
- }
- i--
- dAtA[i] = 0x14
- i--
- dAtA[i] = 0xca
- }
- return len(dAtA) - i, nil
-}
-func (m *Frame_GetCredentialsResp) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
-}
+func (*Frame_GroupRecallNoticeEvent) isFrame_Data() {}
-func (m *Frame_GetCredentialsResp) MarshalToSizedBuffer(dAtA []byte) (int, error) {
- i := len(dAtA)
- if m.GetCredentialsResp != nil {
- {
- size, err := m.GetCredentialsResp.MarshalToSizedBuffer(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- i = encodeVarintOnebotFrame(dAtA, i, uint64(size))
- }
- i--
- dAtA[i] = 0x14
- i--
- dAtA[i] = 0xd2
- }
- return len(dAtA) - i, nil
-}
-func (m *Frame_GetRecordResp) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
-}
+func (*Frame_FriendRecallNoticeEvent) isFrame_Data() {}
-func (m *Frame_GetRecordResp) MarshalToSizedBuffer(dAtA []byte) (int, error) {
- i := len(dAtA)
- if m.GetRecordResp != nil {
- {
- size, err := m.GetRecordResp.MarshalToSizedBuffer(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- i = encodeVarintOnebotFrame(dAtA, i, uint64(size))
- }
- i--
- dAtA[i] = 0x14
- i--
- dAtA[i] = 0xda
- }
- return len(dAtA) - i, nil
-}
-func (m *Frame_GetImageResp) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
-}
+func (*Frame_FriendRequestEvent) isFrame_Data() {}
-func (m *Frame_GetImageResp) MarshalToSizedBuffer(dAtA []byte) (int, error) {
- i := len(dAtA)
- if m.GetImageResp != nil {
- {
- size, err := m.GetImageResp.MarshalToSizedBuffer(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- i = encodeVarintOnebotFrame(dAtA, i, uint64(size))
- }
- i--
- dAtA[i] = 0x14
- i--
- dAtA[i] = 0xe2
- }
- return len(dAtA) - i, nil
-}
-func (m *Frame_CanSendImageResp) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
-}
+func (*Frame_GroupRequestEvent) isFrame_Data() {}
-func (m *Frame_CanSendImageResp) MarshalToSizedBuffer(dAtA []byte) (int, error) {
- i := len(dAtA)
- if m.CanSendImageResp != nil {
- {
- size, err := m.CanSendImageResp.MarshalToSizedBuffer(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- i = encodeVarintOnebotFrame(dAtA, i, uint64(size))
- }
- i--
- dAtA[i] = 0x14
- i--
- dAtA[i] = 0xea
- }
- return len(dAtA) - i, nil
-}
-func (m *Frame_CanSendRecordResp) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
-}
+func (*Frame_GroupTempMessageEvent) isFrame_Data() {}
-func (m *Frame_CanSendRecordResp) MarshalToSizedBuffer(dAtA []byte) (int, error) {
- i := len(dAtA)
- if m.CanSendRecordResp != nil {
- {
- size, err := m.CanSendRecordResp.MarshalToSizedBuffer(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- i = encodeVarintOnebotFrame(dAtA, i, uint64(size))
- }
- i--
- dAtA[i] = 0x14
- i--
- dAtA[i] = 0xf2
- }
- return len(dAtA) - i, nil
-}
-func (m *Frame_GetStatusResp) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
-}
+func (*Frame_GroupNotifyEvent) isFrame_Data() {}
-func (m *Frame_GetStatusResp) MarshalToSizedBuffer(dAtA []byte) (int, error) {
- i := len(dAtA)
- if m.GetStatusResp != nil {
- {
- size, err := m.GetStatusResp.MarshalToSizedBuffer(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- i = encodeVarintOnebotFrame(dAtA, i, uint64(size))
- }
- i--
- dAtA[i] = 0x14
- i--
- dAtA[i] = 0xfa
- }
- return len(dAtA) - i, nil
-}
-func (m *Frame_GetVersionInfoResp) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
-}
+func (*Frame_ChannelMessageEvent) isFrame_Data() {}
-func (m *Frame_GetVersionInfoResp) MarshalToSizedBuffer(dAtA []byte) (int, error) {
- i := len(dAtA)
- if m.GetVersionInfoResp != nil {
- {
- size, err := m.GetVersionInfoResp.MarshalToSizedBuffer(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- i = encodeVarintOnebotFrame(dAtA, i, uint64(size))
- }
- i--
- dAtA[i] = 0x15
- i--
- dAtA[i] = 0x82
- }
- return len(dAtA) - i, nil
-}
-func (m *Frame_SetRestartResp) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
-}
+func (*Frame_SendPrivateMsgReq) isFrame_Data() {}
-func (m *Frame_SetRestartResp) MarshalToSizedBuffer(dAtA []byte) (int, error) {
- i := len(dAtA)
- if m.SetRestartResp != nil {
- {
- size, err := m.SetRestartResp.MarshalToSizedBuffer(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- i = encodeVarintOnebotFrame(dAtA, i, uint64(size))
- }
- i--
- dAtA[i] = 0x15
- i--
- dAtA[i] = 0x8a
- }
- return len(dAtA) - i, nil
-}
-func (m *Frame_CleanCacheResp) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
-}
+func (*Frame_SendGroupMsgReq) isFrame_Data() {}
-func (m *Frame_CleanCacheResp) MarshalToSizedBuffer(dAtA []byte) (int, error) {
- i := len(dAtA)
- if m.CleanCacheResp != nil {
- {
- size, err := m.CleanCacheResp.MarshalToSizedBuffer(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- i = encodeVarintOnebotFrame(dAtA, i, uint64(size))
- }
- i--
- dAtA[i] = 0x15
- i--
- dAtA[i] = 0x92
- }
- return len(dAtA) - i, nil
-}
-func (m *Frame_SetGroupSignInResp) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
-}
+func (*Frame_SendMsgReq) isFrame_Data() {}
-func (m *Frame_SetGroupSignInResp) MarshalToSizedBuffer(dAtA []byte) (int, error) {
- i := len(dAtA)
- if m.SetGroupSignInResp != nil {
- {
- size, err := m.SetGroupSignInResp.MarshalToSizedBuffer(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- i = encodeVarintOnebotFrame(dAtA, i, uint64(size))
- }
- i--
- dAtA[i] = 0x15
- i--
- dAtA[i] = 0x9a
- }
- return len(dAtA) - i, nil
-}
-func (m *Frame_SendMusicResp) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
-}
+func (*Frame_DeleteMsgReq) isFrame_Data() {}
-func (m *Frame_SendMusicResp) MarshalToSizedBuffer(dAtA []byte) (int, error) {
- i := len(dAtA)
- if m.SendMusicResp != nil {
- {
- size, err := m.SendMusicResp.MarshalToSizedBuffer(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- i = encodeVarintOnebotFrame(dAtA, i, uint64(size))
- }
- i--
- dAtA[i] = 0x15
- i--
- dAtA[i] = 0xa2
- }
- return len(dAtA) - i, nil
-}
-func (m *Frame_SendGroupPokeResp) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
-}
+func (*Frame_GetMsgReq) isFrame_Data() {}
-func (m *Frame_SendGroupPokeResp) MarshalToSizedBuffer(dAtA []byte) (int, error) {
- i := len(dAtA)
- if m.SendGroupPokeResp != nil {
- {
- size, err := m.SendGroupPokeResp.MarshalToSizedBuffer(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- i = encodeVarintOnebotFrame(dAtA, i, uint64(size))
- }
- i--
- dAtA[i] = 0x15
- i--
- dAtA[i] = 0xaa
- }
- return len(dAtA) - i, nil
-}
-func (m *Frame_SendFriendPokeResp) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
-}
+func (*Frame_GetForwardMsgReq) isFrame_Data() {}
-func (m *Frame_SendFriendPokeResp) MarshalToSizedBuffer(dAtA []byte) (int, error) {
- i := len(dAtA)
- if m.SendFriendPokeResp != nil {
- {
- size, err := m.SendFriendPokeResp.MarshalToSizedBuffer(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- i = encodeVarintOnebotFrame(dAtA, i, uint64(size))
- }
- i--
- dAtA[i] = 0x15
- i--
- dAtA[i] = 0xb2
- }
- return len(dAtA) - i, nil
-}
-func encodeVarintOnebotFrame(dAtA []byte, offset int, v uint64) int {
- offset -= sovOnebotFrame(v)
- base := offset
- for v >= 1<<7 {
- dAtA[offset] = uint8(v&0x7f | 0x80)
- v >>= 7
- offset++
- }
- dAtA[offset] = uint8(v)
- return base
-}
-func (m *Frame) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- if m.BotId != 0 {
- n += 1 + sovOnebotFrame(uint64(m.BotId))
- }
- if m.FrameType != 0 {
- n += 1 + sovOnebotFrame(uint64(m.FrameType))
- }
- l = len(m.Echo)
- if l > 0 {
- n += 1 + l + sovOnebotFrame(uint64(l))
- }
- if m.Ok {
- n += 2
- }
- if len(m.Extra) > 0 {
- for k, v := range m.Extra {
- _ = k
- _ = v
- mapEntrySize := 1 + len(k) + sovOnebotFrame(uint64(len(k))) + 1 + len(v) + sovOnebotFrame(uint64(len(v)))
- n += mapEntrySize + 2 + sovOnebotFrame(uint64(mapEntrySize))
- }
- }
- if m.Data != nil {
- n += m.Data.Size()
- }
- if m.XXX_unrecognized != nil {
- n += len(m.XXX_unrecognized)
- }
- return n
-}
+func (*Frame_SendLikeReq) isFrame_Data() {}
-func (m *Frame_PrivateMessageEvent) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- if m.PrivateMessageEvent != nil {
- l = m.PrivateMessageEvent.Size()
- n += 2 + l + sovOnebotFrame(uint64(l))
- }
- return n
-}
-func (m *Frame_GroupMessageEvent) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- if m.GroupMessageEvent != nil {
- l = m.GroupMessageEvent.Size()
- n += 2 + l + sovOnebotFrame(uint64(l))
- }
- return n
-}
-func (m *Frame_GroupUploadNoticeEvent) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- if m.GroupUploadNoticeEvent != nil {
- l = m.GroupUploadNoticeEvent.Size()
- n += 2 + l + sovOnebotFrame(uint64(l))
- }
- return n
-}
-func (m *Frame_GroupAdminNoticeEvent) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- if m.GroupAdminNoticeEvent != nil {
- l = m.GroupAdminNoticeEvent.Size()
- n += 2 + l + sovOnebotFrame(uint64(l))
- }
- return n
-}
-func (m *Frame_GroupDecreaseNoticeEvent) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- if m.GroupDecreaseNoticeEvent != nil {
- l = m.GroupDecreaseNoticeEvent.Size()
- n += 2 + l + sovOnebotFrame(uint64(l))
- }
- return n
-}
-func (m *Frame_GroupIncreaseNoticeEvent) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- if m.GroupIncreaseNoticeEvent != nil {
- l = m.GroupIncreaseNoticeEvent.Size()
- n += 2 + l + sovOnebotFrame(uint64(l))
- }
- return n
-}
-func (m *Frame_GroupBanNoticeEvent) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- if m.GroupBanNoticeEvent != nil {
- l = m.GroupBanNoticeEvent.Size()
- n += 2 + l + sovOnebotFrame(uint64(l))
- }
- return n
-}
-func (m *Frame_FriendAddNoticeEvent) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- if m.FriendAddNoticeEvent != nil {
- l = m.FriendAddNoticeEvent.Size()
- n += 2 + l + sovOnebotFrame(uint64(l))
- }
- return n
-}
-func (m *Frame_GroupRecallNoticeEvent) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- if m.GroupRecallNoticeEvent != nil {
- l = m.GroupRecallNoticeEvent.Size()
- n += 2 + l + sovOnebotFrame(uint64(l))
- }
- return n
-}
-func (m *Frame_FriendRecallNoticeEvent) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- if m.FriendRecallNoticeEvent != nil {
- l = m.FriendRecallNoticeEvent.Size()
- n += 2 + l + sovOnebotFrame(uint64(l))
- }
- return n
-}
-func (m *Frame_FriendRequestEvent) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- if m.FriendRequestEvent != nil {
- l = m.FriendRequestEvent.Size()
- n += 2 + l + sovOnebotFrame(uint64(l))
- }
- return n
-}
-func (m *Frame_GroupRequestEvent) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- if m.GroupRequestEvent != nil {
- l = m.GroupRequestEvent.Size()
- n += 2 + l + sovOnebotFrame(uint64(l))
- }
- return n
-}
-func (m *Frame_GroupTempMessageEvent) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- if m.GroupTempMessageEvent != nil {
- l = m.GroupTempMessageEvent.Size()
- n += 2 + l + sovOnebotFrame(uint64(l))
- }
- return n
-}
-func (m *Frame_SendPrivateMsgReq) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- if m.SendPrivateMsgReq != nil {
- l = m.SendPrivateMsgReq.Size()
- n += 2 + l + sovOnebotFrame(uint64(l))
- }
- return n
-}
-func (m *Frame_SendGroupMsgReq) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- if m.SendGroupMsgReq != nil {
- l = m.SendGroupMsgReq.Size()
- n += 2 + l + sovOnebotFrame(uint64(l))
- }
- return n
-}
-func (m *Frame_SendMsgReq) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- if m.SendMsgReq != nil {
- l = m.SendMsgReq.Size()
- n += 2 + l + sovOnebotFrame(uint64(l))
- }
- return n
-}
-func (m *Frame_DeleteMsgReq) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- if m.DeleteMsgReq != nil {
- l = m.DeleteMsgReq.Size()
- n += 2 + l + sovOnebotFrame(uint64(l))
- }
- return n
-}
-func (m *Frame_GetMsgReq) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- if m.GetMsgReq != nil {
- l = m.GetMsgReq.Size()
- n += 2 + l + sovOnebotFrame(uint64(l))
- }
- return n
-}
-func (m *Frame_GetForwardMsgReq) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- if m.GetForwardMsgReq != nil {
- l = m.GetForwardMsgReq.Size()
- n += 2 + l + sovOnebotFrame(uint64(l))
- }
- return n
-}
-func (m *Frame_SendLikeReq) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- if m.SendLikeReq != nil {
- l = m.SendLikeReq.Size()
- n += 2 + l + sovOnebotFrame(uint64(l))
- }
- return n
-}
-func (m *Frame_SetGroupKickReq) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- if m.SetGroupKickReq != nil {
- l = m.SetGroupKickReq.Size()
- n += 2 + l + sovOnebotFrame(uint64(l))
- }
- return n
-}
-func (m *Frame_SetGroupBanReq) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- if m.SetGroupBanReq != nil {
- l = m.SetGroupBanReq.Size()
- n += 2 + l + sovOnebotFrame(uint64(l))
- }
- return n
-}
-func (m *Frame_SetGroupAnonymousBanReq) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- if m.SetGroupAnonymousBanReq != nil {
- l = m.SetGroupAnonymousBanReq.Size()
- n += 2 + l + sovOnebotFrame(uint64(l))
- }
- return n
-}
-func (m *Frame_SetGroupWholeBanReq) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- if m.SetGroupWholeBanReq != nil {
- l = m.SetGroupWholeBanReq.Size()
- n += 2 + l + sovOnebotFrame(uint64(l))
- }
- return n
-}
-func (m *Frame_SetGroupAdminReq) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- if m.SetGroupAdminReq != nil {
- l = m.SetGroupAdminReq.Size()
- n += 2 + l + sovOnebotFrame(uint64(l))
- }
- return n
-}
-func (m *Frame_SetGroupAnonymousReq) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- if m.SetGroupAnonymousReq != nil {
- l = m.SetGroupAnonymousReq.Size()
- n += 2 + l + sovOnebotFrame(uint64(l))
- }
- return n
-}
-func (m *Frame_SetGroupCardReq) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- if m.SetGroupCardReq != nil {
- l = m.SetGroupCardReq.Size()
- n += 2 + l + sovOnebotFrame(uint64(l))
- }
- return n
-}
-func (m *Frame_SetGroupNameReq) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- if m.SetGroupNameReq != nil {
- l = m.SetGroupNameReq.Size()
- n += 2 + l + sovOnebotFrame(uint64(l))
- }
- return n
-}
-func (m *Frame_SetGroupLeaveReq) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- if m.SetGroupLeaveReq != nil {
- l = m.SetGroupLeaveReq.Size()
- n += 2 + l + sovOnebotFrame(uint64(l))
- }
- return n
-}
-func (m *Frame_SetGroupSpecialTitleReq) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- if m.SetGroupSpecialTitleReq != nil {
- l = m.SetGroupSpecialTitleReq.Size()
- n += 2 + l + sovOnebotFrame(uint64(l))
- }
- return n
-}
-func (m *Frame_SetFriendAddRequestReq) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- if m.SetFriendAddRequestReq != nil {
- l = m.SetFriendAddRequestReq.Size()
- n += 2 + l + sovOnebotFrame(uint64(l))
- }
- return n
-}
-func (m *Frame_SetGroupAddRequestReq) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- if m.SetGroupAddRequestReq != nil {
- l = m.SetGroupAddRequestReq.Size()
- n += 2 + l + sovOnebotFrame(uint64(l))
- }
- return n
-}
-func (m *Frame_GetLoginInfoReq) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- if m.GetLoginInfoReq != nil {
- l = m.GetLoginInfoReq.Size()
- n += 2 + l + sovOnebotFrame(uint64(l))
- }
- return n
-}
-func (m *Frame_GetStrangerInfoReq) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- if m.GetStrangerInfoReq != nil {
- l = m.GetStrangerInfoReq.Size()
- n += 2 + l + sovOnebotFrame(uint64(l))
- }
- return n
-}
-func (m *Frame_GetFriendListReq) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- if m.GetFriendListReq != nil {
- l = m.GetFriendListReq.Size()
- n += 2 + l + sovOnebotFrame(uint64(l))
- }
- return n
-}
-func (m *Frame_GetGroupInfoReq) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- if m.GetGroupInfoReq != nil {
- l = m.GetGroupInfoReq.Size()
- n += 2 + l + sovOnebotFrame(uint64(l))
- }
- return n
-}
-func (m *Frame_GetGroupListReq) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- if m.GetGroupListReq != nil {
- l = m.GetGroupListReq.Size()
- n += 2 + l + sovOnebotFrame(uint64(l))
- }
- return n
-}
-func (m *Frame_GetGroupMemberInfoReq) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- if m.GetGroupMemberInfoReq != nil {
- l = m.GetGroupMemberInfoReq.Size()
- n += 2 + l + sovOnebotFrame(uint64(l))
- }
- return n
-}
-func (m *Frame_GetGroupMemberListReq) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- if m.GetGroupMemberListReq != nil {
- l = m.GetGroupMemberListReq.Size()
- n += 2 + l + sovOnebotFrame(uint64(l))
- }
- return n
-}
-func (m *Frame_GetGroupHonorInfoReq) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- if m.GetGroupHonorInfoReq != nil {
- l = m.GetGroupHonorInfoReq.Size()
- n += 2 + l + sovOnebotFrame(uint64(l))
- }
- return n
-}
-func (m *Frame_GetCookiesReq) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- if m.GetCookiesReq != nil {
- l = m.GetCookiesReq.Size()
- n += 2 + l + sovOnebotFrame(uint64(l))
- }
- return n
-}
-func (m *Frame_GetCsrfTokenReq) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- if m.GetCsrfTokenReq != nil {
- l = m.GetCsrfTokenReq.Size()
- n += 2 + l + sovOnebotFrame(uint64(l))
- }
- return n
-}
-func (m *Frame_GetCredentialsReq) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- if m.GetCredentialsReq != nil {
- l = m.GetCredentialsReq.Size()
- n += 2 + l + sovOnebotFrame(uint64(l))
- }
- return n
-}
-func (m *Frame_GetRecordReq) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- if m.GetRecordReq != nil {
- l = m.GetRecordReq.Size()
- n += 2 + l + sovOnebotFrame(uint64(l))
- }
- return n
-}
-func (m *Frame_GetImageReq) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- if m.GetImageReq != nil {
- l = m.GetImageReq.Size()
- n += 2 + l + sovOnebotFrame(uint64(l))
- }
- return n
-}
-func (m *Frame_CanSendImageReq) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- if m.CanSendImageReq != nil {
- l = m.CanSendImageReq.Size()
- n += 2 + l + sovOnebotFrame(uint64(l))
- }
- return n
-}
-func (m *Frame_CanSendRecordReq) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- if m.CanSendRecordReq != nil {
- l = m.CanSendRecordReq.Size()
- n += 2 + l + sovOnebotFrame(uint64(l))
- }
- return n
-}
-func (m *Frame_GetStatusReq) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- if m.GetStatusReq != nil {
- l = m.GetStatusReq.Size()
- n += 2 + l + sovOnebotFrame(uint64(l))
- }
- return n
-}
-func (m *Frame_GetVersionInfoReq) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- if m.GetVersionInfoReq != nil {
- l = m.GetVersionInfoReq.Size()
- n += 2 + l + sovOnebotFrame(uint64(l))
- }
- return n
-}
-func (m *Frame_SetRestartReq) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- if m.SetRestartReq != nil {
- l = m.SetRestartReq.Size()
- n += 2 + l + sovOnebotFrame(uint64(l))
- }
- return n
-}
-func (m *Frame_CleanCacheReq) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- if m.CleanCacheReq != nil {
- l = m.CleanCacheReq.Size()
- n += 2 + l + sovOnebotFrame(uint64(l))
- }
- return n
-}
-func (m *Frame_SetGroupSignInReq) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- if m.SetGroupSignInReq != nil {
- l = m.SetGroupSignInReq.Size()
- n += 2 + l + sovOnebotFrame(uint64(l))
- }
- return n
-}
-func (m *Frame_SendMusicReq) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- if m.SendMusicReq != nil {
- l = m.SendMusicReq.Size()
- n += 2 + l + sovOnebotFrame(uint64(l))
- }
- return n
-}
-func (m *Frame_SendGroupPokeReq) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- if m.SendGroupPokeReq != nil {
- l = m.SendGroupPokeReq.Size()
- n += 2 + l + sovOnebotFrame(uint64(l))
- }
- return n
-}
-func (m *Frame_SendFriendPokeReq) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- if m.SendFriendPokeReq != nil {
- l = m.SendFriendPokeReq.Size()
- n += 2 + l + sovOnebotFrame(uint64(l))
- }
- return n
-}
-func (m *Frame_SendPrivateMsgResp) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- if m.SendPrivateMsgResp != nil {
- l = m.SendPrivateMsgResp.Size()
- n += 2 + l + sovOnebotFrame(uint64(l))
- }
- return n
-}
-func (m *Frame_SendGroupMsgResp) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- if m.SendGroupMsgResp != nil {
- l = m.SendGroupMsgResp.Size()
- n += 2 + l + sovOnebotFrame(uint64(l))
- }
- return n
-}
-func (m *Frame_SendMsgResp) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- if m.SendMsgResp != nil {
- l = m.SendMsgResp.Size()
- n += 2 + l + sovOnebotFrame(uint64(l))
- }
- return n
-}
-func (m *Frame_DeleteMsgResp) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- if m.DeleteMsgResp != nil {
- l = m.DeleteMsgResp.Size()
- n += 2 + l + sovOnebotFrame(uint64(l))
- }
- return n
-}
-func (m *Frame_GetMsgResp) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- if m.GetMsgResp != nil {
- l = m.GetMsgResp.Size()
- n += 2 + l + sovOnebotFrame(uint64(l))
- }
- return n
-}
-func (m *Frame_GetForwardMsgResp) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- if m.GetForwardMsgResp != nil {
- l = m.GetForwardMsgResp.Size()
- n += 2 + l + sovOnebotFrame(uint64(l))
- }
- return n
-}
-func (m *Frame_SendLikeResp) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- if m.SendLikeResp != nil {
- l = m.SendLikeResp.Size()
- n += 2 + l + sovOnebotFrame(uint64(l))
- }
- return n
-}
-func (m *Frame_SetGroupKickResp) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- if m.SetGroupKickResp != nil {
- l = m.SetGroupKickResp.Size()
- n += 2 + l + sovOnebotFrame(uint64(l))
- }
- return n
-}
-func (m *Frame_SetGroupBanResp) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- if m.SetGroupBanResp != nil {
- l = m.SetGroupBanResp.Size()
- n += 2 + l + sovOnebotFrame(uint64(l))
- }
- return n
-}
-func (m *Frame_SetGroupAnonymousBanResp) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- if m.SetGroupAnonymousBanResp != nil {
- l = m.SetGroupAnonymousBanResp.Size()
- n += 2 + l + sovOnebotFrame(uint64(l))
- }
- return n
-}
-func (m *Frame_SetGroupWholeBanResp) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- if m.SetGroupWholeBanResp != nil {
- l = m.SetGroupWholeBanResp.Size()
- n += 2 + l + sovOnebotFrame(uint64(l))
- }
- return n
-}
-func (m *Frame_SetGroupAdminResp) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- if m.SetGroupAdminResp != nil {
- l = m.SetGroupAdminResp.Size()
- n += 2 + l + sovOnebotFrame(uint64(l))
- }
- return n
-}
-func (m *Frame_SetGroupAnonymousResp) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- if m.SetGroupAnonymousResp != nil {
- l = m.SetGroupAnonymousResp.Size()
- n += 2 + l + sovOnebotFrame(uint64(l))
- }
- return n
-}
-func (m *Frame_SetGroupCardResp) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- if m.SetGroupCardResp != nil {
- l = m.SetGroupCardResp.Size()
- n += 2 + l + sovOnebotFrame(uint64(l))
- }
- return n
-}
-func (m *Frame_SetGroupNameResp) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- if m.SetGroupNameResp != nil {
- l = m.SetGroupNameResp.Size()
- n += 2 + l + sovOnebotFrame(uint64(l))
- }
- return n
-}
-func (m *Frame_SetGroupLeaveResp) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- if m.SetGroupLeaveResp != nil {
- l = m.SetGroupLeaveResp.Size()
- n += 2 + l + sovOnebotFrame(uint64(l))
- }
- return n
-}
-func (m *Frame_SetGroupSpecialTitleResp) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- if m.SetGroupSpecialTitleResp != nil {
- l = m.SetGroupSpecialTitleResp.Size()
- n += 2 + l + sovOnebotFrame(uint64(l))
- }
- return n
-}
-func (m *Frame_SetFriendAddRequestResp) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- if m.SetFriendAddRequestResp != nil {
- l = m.SetFriendAddRequestResp.Size()
- n += 2 + l + sovOnebotFrame(uint64(l))
- }
- return n
-}
-func (m *Frame_SetGroupAddRequestResp) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- if m.SetGroupAddRequestResp != nil {
- l = m.SetGroupAddRequestResp.Size()
- n += 2 + l + sovOnebotFrame(uint64(l))
- }
- return n
-}
-func (m *Frame_GetLoginInfoResp) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- if m.GetLoginInfoResp != nil {
- l = m.GetLoginInfoResp.Size()
- n += 2 + l + sovOnebotFrame(uint64(l))
- }
- return n
-}
-func (m *Frame_GetStrangerInfoResp) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- if m.GetStrangerInfoResp != nil {
- l = m.GetStrangerInfoResp.Size()
- n += 2 + l + sovOnebotFrame(uint64(l))
- }
- return n
-}
-func (m *Frame_GetFriendListResp) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- if m.GetFriendListResp != nil {
- l = m.GetFriendListResp.Size()
- n += 2 + l + sovOnebotFrame(uint64(l))
- }
- return n
-}
-func (m *Frame_GetGroupInfoResp) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- if m.GetGroupInfoResp != nil {
- l = m.GetGroupInfoResp.Size()
- n += 2 + l + sovOnebotFrame(uint64(l))
- }
- return n
-}
-func (m *Frame_GetGroupListResp) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- if m.GetGroupListResp != nil {
- l = m.GetGroupListResp.Size()
- n += 2 + l + sovOnebotFrame(uint64(l))
- }
- return n
-}
-func (m *Frame_GetGroupMemberInfoResp) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- if m.GetGroupMemberInfoResp != nil {
- l = m.GetGroupMemberInfoResp.Size()
- n += 2 + l + sovOnebotFrame(uint64(l))
- }
- return n
-}
-func (m *Frame_GetGroupMemberListResp) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- if m.GetGroupMemberListResp != nil {
- l = m.GetGroupMemberListResp.Size()
- n += 2 + l + sovOnebotFrame(uint64(l))
- }
- return n
-}
-func (m *Frame_GetGroupHonorInfoResp) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- if m.GetGroupHonorInfoResp != nil {
- l = m.GetGroupHonorInfoResp.Size()
- n += 2 + l + sovOnebotFrame(uint64(l))
- }
- return n
-}
-func (m *Frame_GetCookiesResp) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- if m.GetCookiesResp != nil {
- l = m.GetCookiesResp.Size()
- n += 2 + l + sovOnebotFrame(uint64(l))
- }
- return n
-}
-func (m *Frame_GetCsrfTokenResp) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- if m.GetCsrfTokenResp != nil {
- l = m.GetCsrfTokenResp.Size()
- n += 2 + l + sovOnebotFrame(uint64(l))
- }
- return n
-}
-func (m *Frame_GetCredentialsResp) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- if m.GetCredentialsResp != nil {
- l = m.GetCredentialsResp.Size()
- n += 2 + l + sovOnebotFrame(uint64(l))
- }
- return n
-}
-func (m *Frame_GetRecordResp) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- if m.GetRecordResp != nil {
- l = m.GetRecordResp.Size()
- n += 2 + l + sovOnebotFrame(uint64(l))
- }
- return n
-}
-func (m *Frame_GetImageResp) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- if m.GetImageResp != nil {
- l = m.GetImageResp.Size()
- n += 2 + l + sovOnebotFrame(uint64(l))
- }
- return n
-}
-func (m *Frame_CanSendImageResp) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- if m.CanSendImageResp != nil {
- l = m.CanSendImageResp.Size()
- n += 2 + l + sovOnebotFrame(uint64(l))
- }
- return n
-}
-func (m *Frame_CanSendRecordResp) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- if m.CanSendRecordResp != nil {
- l = m.CanSendRecordResp.Size()
- n += 2 + l + sovOnebotFrame(uint64(l))
- }
- return n
-}
-func (m *Frame_GetStatusResp) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- if m.GetStatusResp != nil {
- l = m.GetStatusResp.Size()
- n += 2 + l + sovOnebotFrame(uint64(l))
- }
- return n
-}
-func (m *Frame_GetVersionInfoResp) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- if m.GetVersionInfoResp != nil {
- l = m.GetVersionInfoResp.Size()
- n += 2 + l + sovOnebotFrame(uint64(l))
- }
- return n
-}
-func (m *Frame_SetRestartResp) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- if m.SetRestartResp != nil {
- l = m.SetRestartResp.Size()
- n += 2 + l + sovOnebotFrame(uint64(l))
- }
- return n
-}
-func (m *Frame_CleanCacheResp) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- if m.CleanCacheResp != nil {
- l = m.CleanCacheResp.Size()
- n += 2 + l + sovOnebotFrame(uint64(l))
- }
- return n
-}
-func (m *Frame_SetGroupSignInResp) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- if m.SetGroupSignInResp != nil {
- l = m.SetGroupSignInResp.Size()
- n += 2 + l + sovOnebotFrame(uint64(l))
- }
- return n
-}
-func (m *Frame_SendMusicResp) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- if m.SendMusicResp != nil {
- l = m.SendMusicResp.Size()
- n += 2 + l + sovOnebotFrame(uint64(l))
- }
- return n
-}
-func (m *Frame_SendGroupPokeResp) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- if m.SendGroupPokeResp != nil {
- l = m.SendGroupPokeResp.Size()
- n += 2 + l + sovOnebotFrame(uint64(l))
- }
- return n
-}
-func (m *Frame_SendFriendPokeResp) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- if m.SendFriendPokeResp != nil {
- l = m.SendFriendPokeResp.Size()
- n += 2 + l + sovOnebotFrame(uint64(l))
- }
- return n
-}
-
-func sovOnebotFrame(x uint64) (n int) {
- return (math_bits.Len64(x|1) + 6) / 7
-}
-func sozOnebotFrame(x uint64) (n int) {
- return sovOnebotFrame(uint64((x << 1) ^ uint64((int64(x) >> 63))))
-}
-func (m *Frame) Unmarshal(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotFrame
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: Frame: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: Frame: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- case 1:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field BotId", wireType)
- }
- m.BotId = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotFrame
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.BotId |= int64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 2:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field FrameType", wireType)
- }
- m.FrameType = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotFrame
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.FrameType |= Frame_FrameType(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 3:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Echo", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotFrame
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthOnebotFrame
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthOnebotFrame
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.Echo = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- case 4:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field Ok", wireType)
- }
- var v int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotFrame
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- v |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- m.Ok = bool(v != 0)
- case 100:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Extra", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotFrame
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return ErrInvalidLengthOnebotFrame
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return ErrInvalidLengthOnebotFrame
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- if m.Extra == nil {
- m.Extra = make(map[string]string)
- }
- var mapkey string
- var mapvalue string
- for iNdEx < postIndex {
- entryPreIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotFrame
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- if fieldNum == 1 {
- var stringLenmapkey uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotFrame
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLenmapkey |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLenmapkey := int(stringLenmapkey)
- if intStringLenmapkey < 0 {
- return ErrInvalidLengthOnebotFrame
- }
- postStringIndexmapkey := iNdEx + intStringLenmapkey
- if postStringIndexmapkey < 0 {
- return ErrInvalidLengthOnebotFrame
- }
- if postStringIndexmapkey > l {
- return io.ErrUnexpectedEOF
- }
- mapkey = string(dAtA[iNdEx:postStringIndexmapkey])
- iNdEx = postStringIndexmapkey
- } else if fieldNum == 2 {
- var stringLenmapvalue uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotFrame
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLenmapvalue |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLenmapvalue := int(stringLenmapvalue)
- if intStringLenmapvalue < 0 {
- return ErrInvalidLengthOnebotFrame
- }
- postStringIndexmapvalue := iNdEx + intStringLenmapvalue
- if postStringIndexmapvalue < 0 {
- return ErrInvalidLengthOnebotFrame
- }
- if postStringIndexmapvalue > l {
- return io.ErrUnexpectedEOF
- }
- mapvalue = string(dAtA[iNdEx:postStringIndexmapvalue])
- iNdEx = postStringIndexmapvalue
- } else {
- iNdEx = entryPreIndex
- skippy, err := skipOnebotFrame(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if skippy < 0 {
- return ErrInvalidLengthOnebotFrame
- }
- if (iNdEx + skippy) > postIndex {
- return io.ErrUnexpectedEOF
- }
- iNdEx += skippy
- }
- }
- m.Extra[mapkey] = mapvalue
- iNdEx = postIndex
- case 101:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field PrivateMessageEvent", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotFrame
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return ErrInvalidLengthOnebotFrame
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return ErrInvalidLengthOnebotFrame
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- v := &PrivateMessageEvent{}
- if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- m.Data = &Frame_PrivateMessageEvent{v}
- iNdEx = postIndex
- case 102:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field GroupMessageEvent", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotFrame
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return ErrInvalidLengthOnebotFrame
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return ErrInvalidLengthOnebotFrame
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- v := &GroupMessageEvent{}
- if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- m.Data = &Frame_GroupMessageEvent{v}
- iNdEx = postIndex
- case 103:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field GroupUploadNoticeEvent", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotFrame
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return ErrInvalidLengthOnebotFrame
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return ErrInvalidLengthOnebotFrame
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- v := &GroupUploadNoticeEvent{}
- if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- m.Data = &Frame_GroupUploadNoticeEvent{v}
- iNdEx = postIndex
- case 104:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field GroupAdminNoticeEvent", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotFrame
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return ErrInvalidLengthOnebotFrame
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return ErrInvalidLengthOnebotFrame
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- v := &GroupAdminNoticeEvent{}
- if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- m.Data = &Frame_GroupAdminNoticeEvent{v}
- iNdEx = postIndex
- case 105:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field GroupDecreaseNoticeEvent", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotFrame
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return ErrInvalidLengthOnebotFrame
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return ErrInvalidLengthOnebotFrame
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- v := &GroupDecreaseNoticeEvent{}
- if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- m.Data = &Frame_GroupDecreaseNoticeEvent{v}
- iNdEx = postIndex
- case 106:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field GroupIncreaseNoticeEvent", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotFrame
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return ErrInvalidLengthOnebotFrame
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return ErrInvalidLengthOnebotFrame
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- v := &GroupIncreaseNoticeEvent{}
- if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- m.Data = &Frame_GroupIncreaseNoticeEvent{v}
- iNdEx = postIndex
- case 107:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field GroupBanNoticeEvent", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotFrame
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return ErrInvalidLengthOnebotFrame
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return ErrInvalidLengthOnebotFrame
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- v := &GroupBanNoticeEvent{}
- if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- m.Data = &Frame_GroupBanNoticeEvent{v}
- iNdEx = postIndex
- case 108:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field FriendAddNoticeEvent", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotFrame
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return ErrInvalidLengthOnebotFrame
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return ErrInvalidLengthOnebotFrame
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- v := &FriendAddNoticeEvent{}
- if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- m.Data = &Frame_FriendAddNoticeEvent{v}
- iNdEx = postIndex
- case 109:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field GroupRecallNoticeEvent", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotFrame
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return ErrInvalidLengthOnebotFrame
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return ErrInvalidLengthOnebotFrame
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- v := &GroupRecallNoticeEvent{}
- if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- m.Data = &Frame_GroupRecallNoticeEvent{v}
- iNdEx = postIndex
- case 110:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field FriendRecallNoticeEvent", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotFrame
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return ErrInvalidLengthOnebotFrame
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return ErrInvalidLengthOnebotFrame
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- v := &FriendRecallNoticeEvent{}
- if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- m.Data = &Frame_FriendRecallNoticeEvent{v}
- iNdEx = postIndex
- case 111:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field FriendRequestEvent", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotFrame
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return ErrInvalidLengthOnebotFrame
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return ErrInvalidLengthOnebotFrame
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- v := &FriendRequestEvent{}
- if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- m.Data = &Frame_FriendRequestEvent{v}
- iNdEx = postIndex
- case 112:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field GroupRequestEvent", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotFrame
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return ErrInvalidLengthOnebotFrame
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return ErrInvalidLengthOnebotFrame
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- v := &GroupRequestEvent{}
- if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- m.Data = &Frame_GroupRequestEvent{v}
- iNdEx = postIndex
- case 113:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field GroupTempMessageEvent", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotFrame
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return ErrInvalidLengthOnebotFrame
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return ErrInvalidLengthOnebotFrame
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- v := &GroupTempMessageEvent{}
- if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- m.Data = &Frame_GroupTempMessageEvent{v}
- iNdEx = postIndex
- case 201:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field SendPrivateMsgReq", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotFrame
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return ErrInvalidLengthOnebotFrame
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return ErrInvalidLengthOnebotFrame
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- v := &SendPrivateMsgReq{}
- if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- m.Data = &Frame_SendPrivateMsgReq{v}
- iNdEx = postIndex
- case 202:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field SendGroupMsgReq", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotFrame
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return ErrInvalidLengthOnebotFrame
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return ErrInvalidLengthOnebotFrame
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- v := &SendGroupMsgReq{}
- if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- m.Data = &Frame_SendGroupMsgReq{v}
- iNdEx = postIndex
- case 203:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field SendMsgReq", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotFrame
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return ErrInvalidLengthOnebotFrame
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return ErrInvalidLengthOnebotFrame
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- v := &SendMsgReq{}
- if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- m.Data = &Frame_SendMsgReq{v}
- iNdEx = postIndex
- case 204:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field DeleteMsgReq", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotFrame
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return ErrInvalidLengthOnebotFrame
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return ErrInvalidLengthOnebotFrame
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- v := &DeleteMsgReq{}
- if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- m.Data = &Frame_DeleteMsgReq{v}
- iNdEx = postIndex
- case 205:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field GetMsgReq", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotFrame
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return ErrInvalidLengthOnebotFrame
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return ErrInvalidLengthOnebotFrame
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- v := &GetMsgReq{}
- if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- m.Data = &Frame_GetMsgReq{v}
- iNdEx = postIndex
- case 206:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field GetForwardMsgReq", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotFrame
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return ErrInvalidLengthOnebotFrame
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return ErrInvalidLengthOnebotFrame
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- v := &GetForwardMsgReq{}
- if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- m.Data = &Frame_GetForwardMsgReq{v}
- iNdEx = postIndex
- case 207:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field SendLikeReq", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotFrame
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return ErrInvalidLengthOnebotFrame
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return ErrInvalidLengthOnebotFrame
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- v := &SendLikeReq{}
- if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- m.Data = &Frame_SendLikeReq{v}
- iNdEx = postIndex
- case 208:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field SetGroupKickReq", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotFrame
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return ErrInvalidLengthOnebotFrame
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return ErrInvalidLengthOnebotFrame
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- v := &SetGroupKickReq{}
- if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- m.Data = &Frame_SetGroupKickReq{v}
- iNdEx = postIndex
- case 209:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field SetGroupBanReq", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotFrame
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return ErrInvalidLengthOnebotFrame
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return ErrInvalidLengthOnebotFrame
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- v := &SetGroupBanReq{}
- if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- m.Data = &Frame_SetGroupBanReq{v}
- iNdEx = postIndex
- case 210:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field SetGroupAnonymousBanReq", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotFrame
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return ErrInvalidLengthOnebotFrame
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return ErrInvalidLengthOnebotFrame
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- v := &SetGroupAnonymousBanReq{}
- if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- m.Data = &Frame_SetGroupAnonymousBanReq{v}
- iNdEx = postIndex
- case 211:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field SetGroupWholeBanReq", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotFrame
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return ErrInvalidLengthOnebotFrame
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return ErrInvalidLengthOnebotFrame
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- v := &SetGroupWholeBanReq{}
- if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- m.Data = &Frame_SetGroupWholeBanReq{v}
- iNdEx = postIndex
- case 212:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field SetGroupAdminReq", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotFrame
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return ErrInvalidLengthOnebotFrame
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return ErrInvalidLengthOnebotFrame
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- v := &SetGroupAdminReq{}
- if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- m.Data = &Frame_SetGroupAdminReq{v}
- iNdEx = postIndex
- case 213:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field SetGroupAnonymousReq", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotFrame
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return ErrInvalidLengthOnebotFrame
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return ErrInvalidLengthOnebotFrame
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- v := &SetGroupAnonymousReq{}
- if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- m.Data = &Frame_SetGroupAnonymousReq{v}
- iNdEx = postIndex
- case 214:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field SetGroupCardReq", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotFrame
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return ErrInvalidLengthOnebotFrame
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return ErrInvalidLengthOnebotFrame
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- v := &SetGroupCardReq{}
- if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- m.Data = &Frame_SetGroupCardReq{v}
- iNdEx = postIndex
- case 215:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field SetGroupNameReq", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotFrame
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return ErrInvalidLengthOnebotFrame
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return ErrInvalidLengthOnebotFrame
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- v := &SetGroupNameReq{}
- if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- m.Data = &Frame_SetGroupNameReq{v}
- iNdEx = postIndex
- case 216:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field SetGroupLeaveReq", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotFrame
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return ErrInvalidLengthOnebotFrame
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return ErrInvalidLengthOnebotFrame
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- v := &SetGroupLeaveReq{}
- if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- m.Data = &Frame_SetGroupLeaveReq{v}
- iNdEx = postIndex
- case 217:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field SetGroupSpecialTitleReq", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotFrame
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return ErrInvalidLengthOnebotFrame
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return ErrInvalidLengthOnebotFrame
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- v := &SetGroupSpecialTitleReq{}
- if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- m.Data = &Frame_SetGroupSpecialTitleReq{v}
- iNdEx = postIndex
- case 218:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field SetFriendAddRequestReq", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotFrame
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return ErrInvalidLengthOnebotFrame
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return ErrInvalidLengthOnebotFrame
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- v := &SetFriendAddRequestReq{}
- if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- m.Data = &Frame_SetFriendAddRequestReq{v}
- iNdEx = postIndex
- case 219:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field SetGroupAddRequestReq", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotFrame
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return ErrInvalidLengthOnebotFrame
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return ErrInvalidLengthOnebotFrame
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- v := &SetGroupAddRequestReq{}
- if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- m.Data = &Frame_SetGroupAddRequestReq{v}
- iNdEx = postIndex
- case 220:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field GetLoginInfoReq", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotFrame
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return ErrInvalidLengthOnebotFrame
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return ErrInvalidLengthOnebotFrame
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- v := &GetLoginInfoReq{}
- if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- m.Data = &Frame_GetLoginInfoReq{v}
- iNdEx = postIndex
- case 221:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field GetStrangerInfoReq", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotFrame
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return ErrInvalidLengthOnebotFrame
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return ErrInvalidLengthOnebotFrame
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- v := &GetStrangerInfoReq{}
- if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- m.Data = &Frame_GetStrangerInfoReq{v}
- iNdEx = postIndex
- case 222:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field GetFriendListReq", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotFrame
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return ErrInvalidLengthOnebotFrame
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return ErrInvalidLengthOnebotFrame
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- v := &GetFriendListReq{}
- if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- m.Data = &Frame_GetFriendListReq{v}
- iNdEx = postIndex
- case 223:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field GetGroupInfoReq", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotFrame
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return ErrInvalidLengthOnebotFrame
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return ErrInvalidLengthOnebotFrame
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- v := &GetGroupInfoReq{}
- if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- m.Data = &Frame_GetGroupInfoReq{v}
- iNdEx = postIndex
- case 224:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field GetGroupListReq", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotFrame
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return ErrInvalidLengthOnebotFrame
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return ErrInvalidLengthOnebotFrame
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- v := &GetGroupListReq{}
- if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- m.Data = &Frame_GetGroupListReq{v}
- iNdEx = postIndex
- case 225:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field GetGroupMemberInfoReq", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotFrame
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return ErrInvalidLengthOnebotFrame
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return ErrInvalidLengthOnebotFrame
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- v := &GetGroupMemberInfoReq{}
- if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- m.Data = &Frame_GetGroupMemberInfoReq{v}
- iNdEx = postIndex
- case 226:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field GetGroupMemberListReq", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotFrame
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return ErrInvalidLengthOnebotFrame
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return ErrInvalidLengthOnebotFrame
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- v := &GetGroupMemberListReq{}
- if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- m.Data = &Frame_GetGroupMemberListReq{v}
- iNdEx = postIndex
- case 227:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field GetGroupHonorInfoReq", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotFrame
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return ErrInvalidLengthOnebotFrame
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return ErrInvalidLengthOnebotFrame
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- v := &GetGroupHonorInfoReq{}
- if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- m.Data = &Frame_GetGroupHonorInfoReq{v}
- iNdEx = postIndex
- case 228:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field GetCookiesReq", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotFrame
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return ErrInvalidLengthOnebotFrame
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return ErrInvalidLengthOnebotFrame
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- v := &GetCookiesReq{}
- if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- m.Data = &Frame_GetCookiesReq{v}
- iNdEx = postIndex
- case 229:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field GetCsrfTokenReq", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotFrame
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return ErrInvalidLengthOnebotFrame
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return ErrInvalidLengthOnebotFrame
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- v := &GetCsrfTokenReq{}
- if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- m.Data = &Frame_GetCsrfTokenReq{v}
- iNdEx = postIndex
- case 230:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field GetCredentialsReq", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotFrame
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return ErrInvalidLengthOnebotFrame
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return ErrInvalidLengthOnebotFrame
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- v := &GetCredentialsReq{}
- if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- m.Data = &Frame_GetCredentialsReq{v}
- iNdEx = postIndex
- case 231:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field GetRecordReq", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotFrame
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return ErrInvalidLengthOnebotFrame
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return ErrInvalidLengthOnebotFrame
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- v := &GetRecordReq{}
- if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- m.Data = &Frame_GetRecordReq{v}
- iNdEx = postIndex
- case 232:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field GetImageReq", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotFrame
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return ErrInvalidLengthOnebotFrame
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return ErrInvalidLengthOnebotFrame
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- v := &GetImageReq{}
- if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- m.Data = &Frame_GetImageReq{v}
- iNdEx = postIndex
- case 233:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field CanSendImageReq", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotFrame
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return ErrInvalidLengthOnebotFrame
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return ErrInvalidLengthOnebotFrame
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- v := &CanSendImageReq{}
- if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- m.Data = &Frame_CanSendImageReq{v}
- iNdEx = postIndex
- case 234:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field CanSendRecordReq", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotFrame
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return ErrInvalidLengthOnebotFrame
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return ErrInvalidLengthOnebotFrame
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- v := &CanSendRecordReq{}
- if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- m.Data = &Frame_CanSendRecordReq{v}
- iNdEx = postIndex
- case 235:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field GetStatusReq", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotFrame
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return ErrInvalidLengthOnebotFrame
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return ErrInvalidLengthOnebotFrame
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- v := &GetStatusReq{}
- if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- m.Data = &Frame_GetStatusReq{v}
- iNdEx = postIndex
- case 236:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field GetVersionInfoReq", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotFrame
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return ErrInvalidLengthOnebotFrame
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return ErrInvalidLengthOnebotFrame
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- v := &GetVersionInfoReq{}
- if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- m.Data = &Frame_GetVersionInfoReq{v}
- iNdEx = postIndex
- case 237:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field SetRestartReq", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotFrame
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return ErrInvalidLengthOnebotFrame
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return ErrInvalidLengthOnebotFrame
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- v := &SetRestartReq{}
- if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- m.Data = &Frame_SetRestartReq{v}
- iNdEx = postIndex
- case 238:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field CleanCacheReq", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotFrame
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return ErrInvalidLengthOnebotFrame
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return ErrInvalidLengthOnebotFrame
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- v := &CleanCacheReq{}
- if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- m.Data = &Frame_CleanCacheReq{v}
- iNdEx = postIndex
- case 239:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field SetGroupSignInReq", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotFrame
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return ErrInvalidLengthOnebotFrame
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return ErrInvalidLengthOnebotFrame
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- v := &SetGroupSignInReq{}
- if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- m.Data = &Frame_SetGroupSignInReq{v}
- iNdEx = postIndex
- case 240:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field SendMusicReq", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotFrame
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return ErrInvalidLengthOnebotFrame
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return ErrInvalidLengthOnebotFrame
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- v := &SendMusicReq{}
- if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- m.Data = &Frame_SendMusicReq{v}
- iNdEx = postIndex
- case 241:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field SendGroupPokeReq", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotFrame
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return ErrInvalidLengthOnebotFrame
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return ErrInvalidLengthOnebotFrame
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- v := &SendGroupPokeReq{}
- if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- m.Data = &Frame_SendGroupPokeReq{v}
- iNdEx = postIndex
- case 242:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field SendFriendPokeReq", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotFrame
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return ErrInvalidLengthOnebotFrame
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return ErrInvalidLengthOnebotFrame
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- v := &SendFriendPokeReq{}
- if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- m.Data = &Frame_SendFriendPokeReq{v}
- iNdEx = postIndex
- case 301:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field SendPrivateMsgResp", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotFrame
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return ErrInvalidLengthOnebotFrame
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return ErrInvalidLengthOnebotFrame
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- v := &SendPrivateMsgResp{}
- if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- m.Data = &Frame_SendPrivateMsgResp{v}
- iNdEx = postIndex
- case 302:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field SendGroupMsgResp", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotFrame
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return ErrInvalidLengthOnebotFrame
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return ErrInvalidLengthOnebotFrame
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- v := &SendGroupMsgResp{}
- if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- m.Data = &Frame_SendGroupMsgResp{v}
- iNdEx = postIndex
- case 303:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field SendMsgResp", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotFrame
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return ErrInvalidLengthOnebotFrame
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return ErrInvalidLengthOnebotFrame
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- v := &SendMsgResp{}
- if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- m.Data = &Frame_SendMsgResp{v}
- iNdEx = postIndex
- case 304:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field DeleteMsgResp", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotFrame
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return ErrInvalidLengthOnebotFrame
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return ErrInvalidLengthOnebotFrame
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- v := &DeleteMsgResp{}
- if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- m.Data = &Frame_DeleteMsgResp{v}
- iNdEx = postIndex
- case 305:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field GetMsgResp", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotFrame
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return ErrInvalidLengthOnebotFrame
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return ErrInvalidLengthOnebotFrame
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- v := &GetMsgResp{}
- if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- m.Data = &Frame_GetMsgResp{v}
- iNdEx = postIndex
- case 306:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field GetForwardMsgResp", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotFrame
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return ErrInvalidLengthOnebotFrame
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return ErrInvalidLengthOnebotFrame
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- v := &GetForwardMsgResp{}
- if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- m.Data = &Frame_GetForwardMsgResp{v}
- iNdEx = postIndex
- case 307:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field SendLikeResp", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotFrame
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return ErrInvalidLengthOnebotFrame
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return ErrInvalidLengthOnebotFrame
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- v := &SendLikeResp{}
- if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- m.Data = &Frame_SendLikeResp{v}
- iNdEx = postIndex
- case 308:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field SetGroupKickResp", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotFrame
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return ErrInvalidLengthOnebotFrame
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return ErrInvalidLengthOnebotFrame
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- v := &SetGroupKickResp{}
- if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- m.Data = &Frame_SetGroupKickResp{v}
- iNdEx = postIndex
- case 309:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field SetGroupBanResp", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotFrame
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return ErrInvalidLengthOnebotFrame
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return ErrInvalidLengthOnebotFrame
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- v := &SetGroupBanResp{}
- if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- m.Data = &Frame_SetGroupBanResp{v}
- iNdEx = postIndex
- case 310:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field SetGroupAnonymousBanResp", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotFrame
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return ErrInvalidLengthOnebotFrame
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return ErrInvalidLengthOnebotFrame
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- v := &SetGroupAnonymousBanResp{}
- if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- m.Data = &Frame_SetGroupAnonymousBanResp{v}
- iNdEx = postIndex
- case 311:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field SetGroupWholeBanResp", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotFrame
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return ErrInvalidLengthOnebotFrame
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return ErrInvalidLengthOnebotFrame
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- v := &SetGroupWholeBanResp{}
- if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- m.Data = &Frame_SetGroupWholeBanResp{v}
- iNdEx = postIndex
- case 312:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field SetGroupAdminResp", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotFrame
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return ErrInvalidLengthOnebotFrame
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return ErrInvalidLengthOnebotFrame
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- v := &SetGroupAdminResp{}
- if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- m.Data = &Frame_SetGroupAdminResp{v}
- iNdEx = postIndex
- case 313:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field SetGroupAnonymousResp", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotFrame
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return ErrInvalidLengthOnebotFrame
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return ErrInvalidLengthOnebotFrame
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- v := &SetGroupAnonymousResp{}
- if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- m.Data = &Frame_SetGroupAnonymousResp{v}
- iNdEx = postIndex
- case 314:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field SetGroupCardResp", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotFrame
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return ErrInvalidLengthOnebotFrame
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return ErrInvalidLengthOnebotFrame
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- v := &SetGroupCardResp{}
- if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- m.Data = &Frame_SetGroupCardResp{v}
- iNdEx = postIndex
- case 315:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field SetGroupNameResp", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotFrame
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return ErrInvalidLengthOnebotFrame
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return ErrInvalidLengthOnebotFrame
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- v := &SetGroupNameResp{}
- if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- m.Data = &Frame_SetGroupNameResp{v}
- iNdEx = postIndex
- case 316:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field SetGroupLeaveResp", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotFrame
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return ErrInvalidLengthOnebotFrame
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return ErrInvalidLengthOnebotFrame
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- v := &SetGroupLeaveResp{}
- if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- m.Data = &Frame_SetGroupLeaveResp{v}
- iNdEx = postIndex
- case 317:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field SetGroupSpecialTitleResp", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotFrame
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return ErrInvalidLengthOnebotFrame
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return ErrInvalidLengthOnebotFrame
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- v := &SetGroupSpecialTitleResp{}
- if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- m.Data = &Frame_SetGroupSpecialTitleResp{v}
- iNdEx = postIndex
- case 318:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field SetFriendAddRequestResp", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotFrame
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return ErrInvalidLengthOnebotFrame
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return ErrInvalidLengthOnebotFrame
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- v := &SetFriendAddRequestResp{}
- if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- m.Data = &Frame_SetFriendAddRequestResp{v}
- iNdEx = postIndex
- case 319:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field SetGroupAddRequestResp", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotFrame
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return ErrInvalidLengthOnebotFrame
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return ErrInvalidLengthOnebotFrame
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- v := &SetGroupAddRequestResp{}
- if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- m.Data = &Frame_SetGroupAddRequestResp{v}
- iNdEx = postIndex
- case 320:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field GetLoginInfoResp", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotFrame
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return ErrInvalidLengthOnebotFrame
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return ErrInvalidLengthOnebotFrame
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- v := &GetLoginInfoResp{}
- if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- m.Data = &Frame_GetLoginInfoResp{v}
- iNdEx = postIndex
- case 321:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field GetStrangerInfoResp", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotFrame
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return ErrInvalidLengthOnebotFrame
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return ErrInvalidLengthOnebotFrame
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- v := &GetStrangerInfoResp{}
- if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- m.Data = &Frame_GetStrangerInfoResp{v}
- iNdEx = postIndex
- case 322:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field GetFriendListResp", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotFrame
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return ErrInvalidLengthOnebotFrame
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return ErrInvalidLengthOnebotFrame
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- v := &GetFriendListResp{}
- if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- m.Data = &Frame_GetFriendListResp{v}
- iNdEx = postIndex
- case 323:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field GetGroupInfoResp", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotFrame
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return ErrInvalidLengthOnebotFrame
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return ErrInvalidLengthOnebotFrame
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- v := &GetGroupInfoResp{}
- if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- m.Data = &Frame_GetGroupInfoResp{v}
- iNdEx = postIndex
- case 324:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field GetGroupListResp", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotFrame
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return ErrInvalidLengthOnebotFrame
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return ErrInvalidLengthOnebotFrame
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- v := &GetGroupListResp{}
- if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- m.Data = &Frame_GetGroupListResp{v}
- iNdEx = postIndex
- case 325:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field GetGroupMemberInfoResp", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotFrame
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return ErrInvalidLengthOnebotFrame
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return ErrInvalidLengthOnebotFrame
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- v := &GetGroupMemberInfoResp{}
- if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- m.Data = &Frame_GetGroupMemberInfoResp{v}
- iNdEx = postIndex
- case 326:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field GetGroupMemberListResp", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotFrame
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return ErrInvalidLengthOnebotFrame
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return ErrInvalidLengthOnebotFrame
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- v := &GetGroupMemberListResp{}
- if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- m.Data = &Frame_GetGroupMemberListResp{v}
- iNdEx = postIndex
- case 327:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field GetGroupHonorInfoResp", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotFrame
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return ErrInvalidLengthOnebotFrame
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return ErrInvalidLengthOnebotFrame
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- v := &GetGroupHonorInfoResp{}
- if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- m.Data = &Frame_GetGroupHonorInfoResp{v}
- iNdEx = postIndex
- case 328:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field GetCookiesResp", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotFrame
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return ErrInvalidLengthOnebotFrame
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return ErrInvalidLengthOnebotFrame
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- v := &GetCookiesResp{}
- if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- m.Data = &Frame_GetCookiesResp{v}
- iNdEx = postIndex
- case 329:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field GetCsrfTokenResp", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotFrame
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return ErrInvalidLengthOnebotFrame
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return ErrInvalidLengthOnebotFrame
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- v := &GetCsrfTokenResp{}
- if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- m.Data = &Frame_GetCsrfTokenResp{v}
- iNdEx = postIndex
- case 330:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field GetCredentialsResp", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotFrame
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return ErrInvalidLengthOnebotFrame
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return ErrInvalidLengthOnebotFrame
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- v := &GetCredentialsResp{}
- if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- m.Data = &Frame_GetCredentialsResp{v}
- iNdEx = postIndex
- case 331:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field GetRecordResp", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotFrame
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return ErrInvalidLengthOnebotFrame
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return ErrInvalidLengthOnebotFrame
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- v := &GetRecordResp{}
- if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- m.Data = &Frame_GetRecordResp{v}
- iNdEx = postIndex
- case 332:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field GetImageResp", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotFrame
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return ErrInvalidLengthOnebotFrame
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return ErrInvalidLengthOnebotFrame
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- v := &GetImageResp{}
- if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- m.Data = &Frame_GetImageResp{v}
- iNdEx = postIndex
- case 333:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field CanSendImageResp", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotFrame
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return ErrInvalidLengthOnebotFrame
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return ErrInvalidLengthOnebotFrame
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- v := &CanSendImageResp{}
- if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- m.Data = &Frame_CanSendImageResp{v}
- iNdEx = postIndex
- case 334:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field CanSendRecordResp", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotFrame
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return ErrInvalidLengthOnebotFrame
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return ErrInvalidLengthOnebotFrame
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- v := &CanSendRecordResp{}
- if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- m.Data = &Frame_CanSendRecordResp{v}
- iNdEx = postIndex
- case 335:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field GetStatusResp", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotFrame
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return ErrInvalidLengthOnebotFrame
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return ErrInvalidLengthOnebotFrame
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- v := &GetStatusResp{}
- if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- m.Data = &Frame_GetStatusResp{v}
- iNdEx = postIndex
- case 336:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field GetVersionInfoResp", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotFrame
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return ErrInvalidLengthOnebotFrame
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return ErrInvalidLengthOnebotFrame
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- v := &GetVersionInfoResp{}
- if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- m.Data = &Frame_GetVersionInfoResp{v}
- iNdEx = postIndex
- case 337:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field SetRestartResp", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotFrame
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return ErrInvalidLengthOnebotFrame
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return ErrInvalidLengthOnebotFrame
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- v := &SetRestartResp{}
- if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- m.Data = &Frame_SetRestartResp{v}
- iNdEx = postIndex
- case 338:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field CleanCacheResp", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotFrame
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return ErrInvalidLengthOnebotFrame
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return ErrInvalidLengthOnebotFrame
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- v := &CleanCacheResp{}
- if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- m.Data = &Frame_CleanCacheResp{v}
- iNdEx = postIndex
- case 339:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field SetGroupSignInResp", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotFrame
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return ErrInvalidLengthOnebotFrame
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return ErrInvalidLengthOnebotFrame
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- v := &SetGroupSignInResp{}
- if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- m.Data = &Frame_SetGroupSignInResp{v}
- iNdEx = postIndex
- case 340:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field SendMusicResp", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotFrame
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return ErrInvalidLengthOnebotFrame
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return ErrInvalidLengthOnebotFrame
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- v := &SendMusicResp{}
- if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- m.Data = &Frame_SendMusicResp{v}
- iNdEx = postIndex
- case 341:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field SendGroupPokeResp", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotFrame
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return ErrInvalidLengthOnebotFrame
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return ErrInvalidLengthOnebotFrame
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- v := &SendGroupPokeResp{}
- if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- m.Data = &Frame_SendGroupPokeResp{v}
- iNdEx = postIndex
- case 342:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field SendFriendPokeResp", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowOnebotFrame
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return ErrInvalidLengthOnebotFrame
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return ErrInvalidLengthOnebotFrame
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- v := &SendFriendPokeResp{}
- if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- m.Data = &Frame_SendFriendPokeResp{v}
- iNdEx = postIndex
- default:
- iNdEx = preIndex
- skippy, err := skipOnebotFrame(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if skippy < 0 {
- return ErrInvalidLengthOnebotFrame
- }
- if (iNdEx + skippy) < 0 {
- return ErrInvalidLengthOnebotFrame
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
- iNdEx += skippy
- }
- }
-
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
-}
-func skipOnebotFrame(dAtA []byte) (n int, err error) {
- l := len(dAtA)
- iNdEx := 0
- depth := 0
- for iNdEx < l {
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return 0, ErrIntOverflowOnebotFrame
- }
- if iNdEx >= l {
- return 0, io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= (uint64(b) & 0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- wireType := int(wire & 0x7)
- switch wireType {
- case 0:
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return 0, ErrIntOverflowOnebotFrame
- }
- if iNdEx >= l {
- return 0, io.ErrUnexpectedEOF
- }
- iNdEx++
- if dAtA[iNdEx-1] < 0x80 {
- break
- }
- }
- case 1:
- iNdEx += 8
- case 2:
- var length int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return 0, ErrIntOverflowOnebotFrame
- }
- if iNdEx >= l {
- return 0, io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- length |= (int(b) & 0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if length < 0 {
- return 0, ErrInvalidLengthOnebotFrame
- }
- iNdEx += length
- case 3:
- depth++
- case 4:
- if depth == 0 {
- return 0, ErrUnexpectedEndOfGroupOnebotFrame
- }
- depth--
- case 5:
- iNdEx += 4
- default:
- return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
- }
- if iNdEx < 0 {
- return 0, ErrInvalidLengthOnebotFrame
- }
- if depth == 0 {
- return iNdEx, nil
- }
- }
- return 0, io.ErrUnexpectedEOF
+func (*Frame_SetGroupKickReq) isFrame_Data() {}
+
+func (*Frame_SetGroupBanReq) isFrame_Data() {}
+
+func (*Frame_SetGroupAnonymousBanReq) isFrame_Data() {}
+
+func (*Frame_SetGroupWholeBanReq) isFrame_Data() {}
+
+func (*Frame_SetGroupAdminReq) isFrame_Data() {}
+
+func (*Frame_SetGroupAnonymousReq) isFrame_Data() {}
+
+func (*Frame_SetGroupCardReq) isFrame_Data() {}
+
+func (*Frame_SetGroupNameReq) isFrame_Data() {}
+
+func (*Frame_SetGroupLeaveReq) isFrame_Data() {}
+
+func (*Frame_SetGroupSpecialTitleReq) isFrame_Data() {}
+
+func (*Frame_SetFriendAddRequestReq) isFrame_Data() {}
+
+func (*Frame_SetGroupAddRequestReq) isFrame_Data() {}
+
+func (*Frame_GetLoginInfoReq) isFrame_Data() {}
+
+func (*Frame_GetStrangerInfoReq) isFrame_Data() {}
+
+func (*Frame_GetFriendListReq) isFrame_Data() {}
+
+func (*Frame_GetGroupInfoReq) isFrame_Data() {}
+
+func (*Frame_GetGroupListReq) isFrame_Data() {}
+
+func (*Frame_GetGroupMemberInfoReq) isFrame_Data() {}
+
+func (*Frame_GetGroupMemberListReq) isFrame_Data() {}
+
+func (*Frame_GetGroupHonorInfoReq) isFrame_Data() {}
+
+func (*Frame_GetCookiesReq) isFrame_Data() {}
+
+func (*Frame_GetCsrfTokenReq) isFrame_Data() {}
+
+func (*Frame_GetCredentialsReq) isFrame_Data() {}
+
+func (*Frame_GetRecordReq) isFrame_Data() {}
+
+func (*Frame_GetImageReq) isFrame_Data() {}
+
+func (*Frame_CanSendImageReq) isFrame_Data() {}
+
+func (*Frame_CanSendRecordReq) isFrame_Data() {}
+
+func (*Frame_GetStatusReq) isFrame_Data() {}
+
+func (*Frame_GetVersionInfoReq) isFrame_Data() {}
+
+func (*Frame_SetRestartReq) isFrame_Data() {}
+
+func (*Frame_CleanCacheReq) isFrame_Data() {}
+
+func (*Frame_SetGroupSignInReq) isFrame_Data() {}
+
+func (*Frame_SendMusicReq) isFrame_Data() {}
+
+func (*Frame_SendGroupPokeReq) isFrame_Data() {}
+
+func (*Frame_SendFriendPokeReq) isFrame_Data() {}
+
+func (*Frame_SendChannelMsgReq) isFrame_Data() {}
+
+func (*Frame_SendPrivateMsgResp) isFrame_Data() {}
+
+func (*Frame_SendGroupMsgResp) isFrame_Data() {}
+
+func (*Frame_SendMsgResp) isFrame_Data() {}
+
+func (*Frame_DeleteMsgResp) isFrame_Data() {}
+
+func (*Frame_GetMsgResp) isFrame_Data() {}
+
+func (*Frame_GetForwardMsgResp) isFrame_Data() {}
+
+func (*Frame_SendLikeResp) isFrame_Data() {}
+
+func (*Frame_SetGroupKickResp) isFrame_Data() {}
+
+func (*Frame_SetGroupBanResp) isFrame_Data() {}
+
+func (*Frame_SetGroupAnonymousBanResp) isFrame_Data() {}
+
+func (*Frame_SetGroupWholeBanResp) isFrame_Data() {}
+
+func (*Frame_SetGroupAdminResp) isFrame_Data() {}
+
+func (*Frame_SetGroupAnonymousResp) isFrame_Data() {}
+
+func (*Frame_SetGroupCardResp) isFrame_Data() {}
+
+func (*Frame_SetGroupNameResp) isFrame_Data() {}
+
+func (*Frame_SetGroupLeaveResp) isFrame_Data() {}
+
+func (*Frame_SetGroupSpecialTitleResp) isFrame_Data() {}
+
+func (*Frame_SetFriendAddRequestResp) isFrame_Data() {}
+
+func (*Frame_SetGroupAddRequestResp) isFrame_Data() {}
+
+func (*Frame_GetLoginInfoResp) isFrame_Data() {}
+
+func (*Frame_GetStrangerInfoResp) isFrame_Data() {}
+
+func (*Frame_GetFriendListResp) isFrame_Data() {}
+
+func (*Frame_GetGroupInfoResp) isFrame_Data() {}
+
+func (*Frame_GetGroupListResp) isFrame_Data() {}
+
+func (*Frame_GetGroupMemberInfoResp) isFrame_Data() {}
+
+func (*Frame_GetGroupMemberListResp) isFrame_Data() {}
+
+func (*Frame_GetGroupHonorInfoResp) isFrame_Data() {}
+
+func (*Frame_GetCookiesResp) isFrame_Data() {}
+
+func (*Frame_GetCsrfTokenResp) isFrame_Data() {}
+
+func (*Frame_GetCredentialsResp) isFrame_Data() {}
+
+func (*Frame_GetRecordResp) isFrame_Data() {}
+
+func (*Frame_GetImageResp) isFrame_Data() {}
+
+func (*Frame_CanSendImageResp) isFrame_Data() {}
+
+func (*Frame_CanSendRecordResp) isFrame_Data() {}
+
+func (*Frame_GetStatusResp) isFrame_Data() {}
+
+func (*Frame_GetVersionInfoResp) isFrame_Data() {}
+
+func (*Frame_SetRestartResp) isFrame_Data() {}
+
+func (*Frame_CleanCacheResp) isFrame_Data() {}
+
+func (*Frame_SetGroupSignInResp) isFrame_Data() {}
+
+func (*Frame_SendMusicResp) isFrame_Data() {}
+
+func (*Frame_SendGroupPokeResp) isFrame_Data() {}
+
+func (*Frame_SendFriendPokeResp) isFrame_Data() {}
+
+func (*Frame_SendChannelMsgResp) isFrame_Data() {}
+
+var File_onebot_frame_proto protoreflect.FileDescriptor
+
+var file_onebot_frame_proto_rawDesc = []byte{
+ 0x0a, 0x12, 0x6f, 0x6e, 0x65, 0x62, 0x6f, 0x74, 0x5f, 0x66, 0x72, 0x61, 0x6d, 0x65, 0x2e, 0x70,
+ 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x06, 0x6f, 0x6e, 0x65, 0x62, 0x6f, 0x74, 0x1a, 0x10, 0x6f, 0x6e,
+ 0x65, 0x62, 0x6f, 0x74, 0x5f, 0x61, 0x70, 0x69, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x12,
+ 0x6f, 0x6e, 0x65, 0x62, 0x6f, 0x74, 0x5f, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f,
+ 0x74, 0x6f, 0x22, 0xce, 0x53, 0x0a, 0x05, 0x46, 0x72, 0x61, 0x6d, 0x65, 0x12, 0x15, 0x0a, 0x06,
+ 0x62, 0x6f, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x62, 0x6f,
+ 0x74, 0x49, 0x64, 0x12, 0x36, 0x0a, 0x0a, 0x66, 0x72, 0x61, 0x6d, 0x65, 0x5f, 0x74, 0x79, 0x70,
+ 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x17, 0x2e, 0x6f, 0x6e, 0x65, 0x62, 0x6f, 0x74,
+ 0x2e, 0x46, 0x72, 0x61, 0x6d, 0x65, 0x2e, 0x46, 0x72, 0x61, 0x6d, 0x65, 0x54, 0x79, 0x70, 0x65,
+ 0x52, 0x09, 0x66, 0x72, 0x61, 0x6d, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x65,
+ 0x63, 0x68, 0x6f, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x65, 0x63, 0x68, 0x6f, 0x12,
+ 0x0e, 0x0a, 0x02, 0x6f, 0x6b, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x02, 0x6f, 0x6b, 0x12,
+ 0x2e, 0x0a, 0x05, 0x65, 0x78, 0x74, 0x72, 0x61, 0x18, 0x64, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x18,
+ 0x2e, 0x6f, 0x6e, 0x65, 0x62, 0x6f, 0x74, 0x2e, 0x46, 0x72, 0x61, 0x6d, 0x65, 0x2e, 0x45, 0x78,
+ 0x74, 0x72, 0x61, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x05, 0x65, 0x78, 0x74, 0x72, 0x61, 0x12,
+ 0x51, 0x0a, 0x15, 0x70, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61,
+ 0x67, 0x65, 0x5f, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x18, 0x65, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b,
+ 0x2e, 0x6f, 0x6e, 0x65, 0x62, 0x6f, 0x74, 0x2e, 0x50, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x4d,
+ 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x48, 0x00, 0x52, 0x13, 0x70,
+ 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x45, 0x76, 0x65,
+ 0x6e, 0x74, 0x12, 0x4b, 0x0a, 0x13, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x5f, 0x6d, 0x65, 0x73, 0x73,
+ 0x61, 0x67, 0x65, 0x5f, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x18, 0x66, 0x20, 0x01, 0x28, 0x0b, 0x32,
+ 0x19, 0x2e, 0x6f, 0x6e, 0x65, 0x62, 0x6f, 0x74, 0x2e, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x4d, 0x65,
+ 0x73, 0x73, 0x61, 0x67, 0x65, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x48, 0x00, 0x52, 0x11, 0x67, 0x72,
+ 0x6f, 0x75, 0x70, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x12,
+ 0x5b, 0x0a, 0x19, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x5f, 0x75, 0x70, 0x6c, 0x6f, 0x61, 0x64, 0x5f,
+ 0x6e, 0x6f, 0x74, 0x69, 0x63, 0x65, 0x5f, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x18, 0x67, 0x20, 0x01,
+ 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x6f, 0x6e, 0x65, 0x62, 0x6f, 0x74, 0x2e, 0x47, 0x72, 0x6f, 0x75,
+ 0x70, 0x55, 0x70, 0x6c, 0x6f, 0x61, 0x64, 0x4e, 0x6f, 0x74, 0x69, 0x63, 0x65, 0x45, 0x76, 0x65,
+ 0x6e, 0x74, 0x48, 0x00, 0x52, 0x16, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x55, 0x70, 0x6c, 0x6f, 0x61,
+ 0x64, 0x4e, 0x6f, 0x74, 0x69, 0x63, 0x65, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x12, 0x58, 0x0a, 0x18,
+ 0x67, 0x72, 0x6f, 0x75, 0x70, 0x5f, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x5f, 0x6e, 0x6f, 0x74, 0x69,
+ 0x63, 0x65, 0x5f, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x18, 0x68, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d,
+ 0x2e, 0x6f, 0x6e, 0x65, 0x62, 0x6f, 0x74, 0x2e, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x41, 0x64, 0x6d,
+ 0x69, 0x6e, 0x4e, 0x6f, 0x74, 0x69, 0x63, 0x65, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x48, 0x00, 0x52,
+ 0x15, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x4e, 0x6f, 0x74, 0x69, 0x63,
+ 0x65, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x12, 0x61, 0x0a, 0x1b, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x5f,
+ 0x64, 0x65, 0x63, 0x72, 0x65, 0x61, 0x73, 0x65, 0x5f, 0x6e, 0x6f, 0x74, 0x69, 0x63, 0x65, 0x5f,
+ 0x65, 0x76, 0x65, 0x6e, 0x74, 0x18, 0x69, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x6f, 0x6e,
+ 0x65, 0x62, 0x6f, 0x74, 0x2e, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x44, 0x65, 0x63, 0x72, 0x65, 0x61,
+ 0x73, 0x65, 0x4e, 0x6f, 0x74, 0x69, 0x63, 0x65, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x48, 0x00, 0x52,
+ 0x18, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x44, 0x65, 0x63, 0x72, 0x65, 0x61, 0x73, 0x65, 0x4e, 0x6f,
+ 0x74, 0x69, 0x63, 0x65, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x12, 0x61, 0x0a, 0x1b, 0x67, 0x72, 0x6f,
+ 0x75, 0x70, 0x5f, 0x69, 0x6e, 0x63, 0x72, 0x65, 0x61, 0x73, 0x65, 0x5f, 0x6e, 0x6f, 0x74, 0x69,
+ 0x63, 0x65, 0x5f, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x18, 0x6a, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20,
+ 0x2e, 0x6f, 0x6e, 0x65, 0x62, 0x6f, 0x74, 0x2e, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x49, 0x6e, 0x63,
+ 0x72, 0x65, 0x61, 0x73, 0x65, 0x4e, 0x6f, 0x74, 0x69, 0x63, 0x65, 0x45, 0x76, 0x65, 0x6e, 0x74,
+ 0x48, 0x00, 0x52, 0x18, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x49, 0x6e, 0x63, 0x72, 0x65, 0x61, 0x73,
+ 0x65, 0x4e, 0x6f, 0x74, 0x69, 0x63, 0x65, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x12, 0x52, 0x0a, 0x16,
+ 0x67, 0x72, 0x6f, 0x75, 0x70, 0x5f, 0x62, 0x61, 0x6e, 0x5f, 0x6e, 0x6f, 0x74, 0x69, 0x63, 0x65,
+ 0x5f, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x18, 0x6b, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x6f,
+ 0x6e, 0x65, 0x62, 0x6f, 0x74, 0x2e, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x42, 0x61, 0x6e, 0x4e, 0x6f,
+ 0x74, 0x69, 0x63, 0x65, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x48, 0x00, 0x52, 0x13, 0x67, 0x72, 0x6f,
+ 0x75, 0x70, 0x42, 0x61, 0x6e, 0x4e, 0x6f, 0x74, 0x69, 0x63, 0x65, 0x45, 0x76, 0x65, 0x6e, 0x74,
+ 0x12, 0x55, 0x0a, 0x17, 0x66, 0x72, 0x69, 0x65, 0x6e, 0x64, 0x5f, 0x61, 0x64, 0x64, 0x5f, 0x6e,
+ 0x6f, 0x74, 0x69, 0x63, 0x65, 0x5f, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x18, 0x6c, 0x20, 0x01, 0x28,
+ 0x0b, 0x32, 0x1c, 0x2e, 0x6f, 0x6e, 0x65, 0x62, 0x6f, 0x74, 0x2e, 0x46, 0x72, 0x69, 0x65, 0x6e,
+ 0x64, 0x41, 0x64, 0x64, 0x4e, 0x6f, 0x74, 0x69, 0x63, 0x65, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x48,
+ 0x00, 0x52, 0x14, 0x66, 0x72, 0x69, 0x65, 0x6e, 0x64, 0x41, 0x64, 0x64, 0x4e, 0x6f, 0x74, 0x69,
+ 0x63, 0x65, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x12, 0x5b, 0x0a, 0x19, 0x67, 0x72, 0x6f, 0x75, 0x70,
+ 0x5f, 0x72, 0x65, 0x63, 0x61, 0x6c, 0x6c, 0x5f, 0x6e, 0x6f, 0x74, 0x69, 0x63, 0x65, 0x5f, 0x65,
+ 0x76, 0x65, 0x6e, 0x74, 0x18, 0x6d, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x6f, 0x6e, 0x65,
+ 0x62, 0x6f, 0x74, 0x2e, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x52, 0x65, 0x63, 0x61, 0x6c, 0x6c, 0x4e,
+ 0x6f, 0x74, 0x69, 0x63, 0x65, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x48, 0x00, 0x52, 0x16, 0x67, 0x72,
+ 0x6f, 0x75, 0x70, 0x52, 0x65, 0x63, 0x61, 0x6c, 0x6c, 0x4e, 0x6f, 0x74, 0x69, 0x63, 0x65, 0x45,
+ 0x76, 0x65, 0x6e, 0x74, 0x12, 0x5e, 0x0a, 0x1a, 0x66, 0x72, 0x69, 0x65, 0x6e, 0x64, 0x5f, 0x72,
+ 0x65, 0x63, 0x61, 0x6c, 0x6c, 0x5f, 0x6e, 0x6f, 0x74, 0x69, 0x63, 0x65, 0x5f, 0x65, 0x76, 0x65,
+ 0x6e, 0x74, 0x18, 0x6e, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x6f, 0x6e, 0x65, 0x62, 0x6f,
+ 0x74, 0x2e, 0x46, 0x72, 0x69, 0x65, 0x6e, 0x64, 0x52, 0x65, 0x63, 0x61, 0x6c, 0x6c, 0x4e, 0x6f,
+ 0x74, 0x69, 0x63, 0x65, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x48, 0x00, 0x52, 0x17, 0x66, 0x72, 0x69,
+ 0x65, 0x6e, 0x64, 0x52, 0x65, 0x63, 0x61, 0x6c, 0x6c, 0x4e, 0x6f, 0x74, 0x69, 0x63, 0x65, 0x45,
+ 0x76, 0x65, 0x6e, 0x74, 0x12, 0x4e, 0x0a, 0x14, 0x66, 0x72, 0x69, 0x65, 0x6e, 0x64, 0x5f, 0x72,
+ 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x5f, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x18, 0x6f, 0x20, 0x01,
+ 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x6f, 0x6e, 0x65, 0x62, 0x6f, 0x74, 0x2e, 0x46, 0x72, 0x69, 0x65,
+ 0x6e, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x48, 0x00,
+ 0x52, 0x12, 0x66, 0x72, 0x69, 0x65, 0x6e, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x45,
+ 0x76, 0x65, 0x6e, 0x74, 0x12, 0x4b, 0x0a, 0x13, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x5f, 0x72, 0x65,
+ 0x71, 0x75, 0x65, 0x73, 0x74, 0x5f, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x18, 0x70, 0x20, 0x01, 0x28,
+ 0x0b, 0x32, 0x19, 0x2e, 0x6f, 0x6e, 0x65, 0x62, 0x6f, 0x74, 0x2e, 0x47, 0x72, 0x6f, 0x75, 0x70,
+ 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x48, 0x00, 0x52, 0x11,
+ 0x67, 0x72, 0x6f, 0x75, 0x70, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x45, 0x76, 0x65, 0x6e,
+ 0x74, 0x12, 0x58, 0x0a, 0x18, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x5f, 0x74, 0x65, 0x6d, 0x70, 0x5f,
+ 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x18, 0x71, 0x20,
+ 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x6f, 0x6e, 0x65, 0x62, 0x6f, 0x74, 0x2e, 0x47, 0x72, 0x6f,
+ 0x75, 0x70, 0x54, 0x65, 0x6d, 0x70, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x45, 0x76, 0x65,
+ 0x6e, 0x74, 0x48, 0x00, 0x52, 0x15, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x54, 0x65, 0x6d, 0x70, 0x4d,
+ 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x12, 0x48, 0x0a, 0x12, 0x67,
+ 0x72, 0x6f, 0x75, 0x70, 0x5f, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x79, 0x5f, 0x65, 0x76, 0x65, 0x6e,
+ 0x74, 0x18, 0x72, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x6f, 0x6e, 0x65, 0x62, 0x6f, 0x74,
+ 0x2e, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x4e, 0x6f, 0x74, 0x69, 0x66, 0x79, 0x45, 0x76, 0x65, 0x6e,
+ 0x74, 0x48, 0x00, 0x52, 0x10, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x4e, 0x6f, 0x74, 0x69, 0x66, 0x79,
+ 0x45, 0x76, 0x65, 0x6e, 0x74, 0x12, 0x51, 0x0a, 0x15, 0x63, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c,
+ 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x18, 0x73,
+ 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x6f, 0x6e, 0x65, 0x62, 0x6f, 0x74, 0x2e, 0x43, 0x68,
+ 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x45, 0x76, 0x65, 0x6e,
+ 0x74, 0x48, 0x00, 0x52, 0x13, 0x63, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x4d, 0x65, 0x73, 0x73,
+ 0x61, 0x67, 0x65, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x12, 0x4d, 0x0a, 0x14, 0x73, 0x65, 0x6e, 0x64,
+ 0x5f, 0x70, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x5f, 0x6d, 0x73, 0x67, 0x5f, 0x72, 0x65, 0x71,
+ 0x18, 0xc9, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x6f, 0x6e, 0x65, 0x62, 0x6f, 0x74,
+ 0x2e, 0x53, 0x65, 0x6e, 0x64, 0x50, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x4d, 0x73, 0x67, 0x52,
+ 0x65, 0x71, 0x48, 0x00, 0x52, 0x11, 0x73, 0x65, 0x6e, 0x64, 0x50, 0x72, 0x69, 0x76, 0x61, 0x74,
+ 0x65, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x71, 0x12, 0x47, 0x0a, 0x12, 0x73, 0x65, 0x6e, 0x64, 0x5f,
+ 0x67, 0x72, 0x6f, 0x75, 0x70, 0x5f, 0x6d, 0x73, 0x67, 0x5f, 0x72, 0x65, 0x71, 0x18, 0xca, 0x01,
+ 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x6f, 0x6e, 0x65, 0x62, 0x6f, 0x74, 0x2e, 0x53, 0x65,
+ 0x6e, 0x64, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x71, 0x48, 0x00, 0x52,
+ 0x0f, 0x73, 0x65, 0x6e, 0x64, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x71,
+ 0x12, 0x37, 0x0a, 0x0c, 0x73, 0x65, 0x6e, 0x64, 0x5f, 0x6d, 0x73, 0x67, 0x5f, 0x72, 0x65, 0x71,
+ 0x18, 0xcb, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x6f, 0x6e, 0x65, 0x62, 0x6f, 0x74,
+ 0x2e, 0x53, 0x65, 0x6e, 0x64, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x71, 0x48, 0x00, 0x52, 0x0a, 0x73,
+ 0x65, 0x6e, 0x64, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x71, 0x12, 0x3d, 0x0a, 0x0e, 0x64, 0x65, 0x6c,
+ 0x65, 0x74, 0x65, 0x5f, 0x6d, 0x73, 0x67, 0x5f, 0x72, 0x65, 0x71, 0x18, 0xcc, 0x01, 0x20, 0x01,
+ 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x6f, 0x6e, 0x65, 0x62, 0x6f, 0x74, 0x2e, 0x44, 0x65, 0x6c, 0x65,
+ 0x74, 0x65, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x71, 0x48, 0x00, 0x52, 0x0c, 0x64, 0x65, 0x6c, 0x65,
+ 0x74, 0x65, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x71, 0x12, 0x34, 0x0a, 0x0b, 0x67, 0x65, 0x74, 0x5f,
+ 0x6d, 0x73, 0x67, 0x5f, 0x72, 0x65, 0x71, 0x18, 0xcd, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x11,
+ 0x2e, 0x6f, 0x6e, 0x65, 0x62, 0x6f, 0x74, 0x2e, 0x47, 0x65, 0x74, 0x4d, 0x73, 0x67, 0x52, 0x65,
+ 0x71, 0x48, 0x00, 0x52, 0x09, 0x67, 0x65, 0x74, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x71, 0x12, 0x4a,
+ 0x0a, 0x13, 0x67, 0x65, 0x74, 0x5f, 0x66, 0x6f, 0x72, 0x77, 0x61, 0x72, 0x64, 0x5f, 0x6d, 0x73,
+ 0x67, 0x5f, 0x72, 0x65, 0x71, 0x18, 0xce, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x6f,
+ 0x6e, 0x65, 0x62, 0x6f, 0x74, 0x2e, 0x47, 0x65, 0x74, 0x46, 0x6f, 0x72, 0x77, 0x61, 0x72, 0x64,
+ 0x4d, 0x73, 0x67, 0x52, 0x65, 0x71, 0x48, 0x00, 0x52, 0x10, 0x67, 0x65, 0x74, 0x46, 0x6f, 0x72,
+ 0x77, 0x61, 0x72, 0x64, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x71, 0x12, 0x3a, 0x0a, 0x0d, 0x73, 0x65,
+ 0x6e, 0x64, 0x5f, 0x6c, 0x69, 0x6b, 0x65, 0x5f, 0x72, 0x65, 0x71, 0x18, 0xcf, 0x01, 0x20, 0x01,
+ 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x6f, 0x6e, 0x65, 0x62, 0x6f, 0x74, 0x2e, 0x53, 0x65, 0x6e, 0x64,
+ 0x4c, 0x69, 0x6b, 0x65, 0x52, 0x65, 0x71, 0x48, 0x00, 0x52, 0x0b, 0x73, 0x65, 0x6e, 0x64, 0x4c,
+ 0x69, 0x6b, 0x65, 0x52, 0x65, 0x71, 0x12, 0x47, 0x0a, 0x12, 0x73, 0x65, 0x74, 0x5f, 0x67, 0x72,
+ 0x6f, 0x75, 0x70, 0x5f, 0x6b, 0x69, 0x63, 0x6b, 0x5f, 0x72, 0x65, 0x71, 0x18, 0xd0, 0x01, 0x20,
+ 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x6f, 0x6e, 0x65, 0x62, 0x6f, 0x74, 0x2e, 0x53, 0x65, 0x74,
+ 0x47, 0x72, 0x6f, 0x75, 0x70, 0x4b, 0x69, 0x63, 0x6b, 0x52, 0x65, 0x71, 0x48, 0x00, 0x52, 0x0f,
+ 0x73, 0x65, 0x74, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x4b, 0x69, 0x63, 0x6b, 0x52, 0x65, 0x71, 0x12,
+ 0x44, 0x0a, 0x11, 0x73, 0x65, 0x74, 0x5f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x5f, 0x62, 0x61, 0x6e,
+ 0x5f, 0x72, 0x65, 0x71, 0x18, 0xd1, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x6f, 0x6e,
+ 0x65, 0x62, 0x6f, 0x74, 0x2e, 0x53, 0x65, 0x74, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x42, 0x61, 0x6e,
+ 0x52, 0x65, 0x71, 0x48, 0x00, 0x52, 0x0e, 0x73, 0x65, 0x74, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x42,
+ 0x61, 0x6e, 0x52, 0x65, 0x71, 0x12, 0x60, 0x0a, 0x1b, 0x73, 0x65, 0x74, 0x5f, 0x67, 0x72, 0x6f,
+ 0x75, 0x70, 0x5f, 0x61, 0x6e, 0x6f, 0x6e, 0x79, 0x6d, 0x6f, 0x75, 0x73, 0x5f, 0x62, 0x61, 0x6e,
+ 0x5f, 0x72, 0x65, 0x71, 0x18, 0xd2, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x6f, 0x6e,
+ 0x65, 0x62, 0x6f, 0x74, 0x2e, 0x53, 0x65, 0x74, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x41, 0x6e, 0x6f,
+ 0x6e, 0x79, 0x6d, 0x6f, 0x75, 0x73, 0x42, 0x61, 0x6e, 0x52, 0x65, 0x71, 0x48, 0x00, 0x52, 0x17,
+ 0x73, 0x65, 0x74, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x41, 0x6e, 0x6f, 0x6e, 0x79, 0x6d, 0x6f, 0x75,
+ 0x73, 0x42, 0x61, 0x6e, 0x52, 0x65, 0x71, 0x12, 0x54, 0x0a, 0x17, 0x73, 0x65, 0x74, 0x5f, 0x67,
+ 0x72, 0x6f, 0x75, 0x70, 0x5f, 0x77, 0x68, 0x6f, 0x6c, 0x65, 0x5f, 0x62, 0x61, 0x6e, 0x5f, 0x72,
+ 0x65, 0x71, 0x18, 0xd3, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x6f, 0x6e, 0x65, 0x62,
+ 0x6f, 0x74, 0x2e, 0x53, 0x65, 0x74, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x57, 0x68, 0x6f, 0x6c, 0x65,
+ 0x42, 0x61, 0x6e, 0x52, 0x65, 0x71, 0x48, 0x00, 0x52, 0x13, 0x73, 0x65, 0x74, 0x47, 0x72, 0x6f,
+ 0x75, 0x70, 0x57, 0x68, 0x6f, 0x6c, 0x65, 0x42, 0x61, 0x6e, 0x52, 0x65, 0x71, 0x12, 0x4a, 0x0a,
+ 0x13, 0x73, 0x65, 0x74, 0x5f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x5f, 0x61, 0x64, 0x6d, 0x69, 0x6e,
+ 0x5f, 0x72, 0x65, 0x71, 0x18, 0xd4, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x6f, 0x6e,
+ 0x65, 0x62, 0x6f, 0x74, 0x2e, 0x53, 0x65, 0x74, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x41, 0x64, 0x6d,
+ 0x69, 0x6e, 0x52, 0x65, 0x71, 0x48, 0x00, 0x52, 0x10, 0x73, 0x65, 0x74, 0x47, 0x72, 0x6f, 0x75,
+ 0x70, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x52, 0x65, 0x71, 0x12, 0x56, 0x0a, 0x17, 0x73, 0x65, 0x74,
+ 0x5f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x5f, 0x61, 0x6e, 0x6f, 0x6e, 0x79, 0x6d, 0x6f, 0x75, 0x73,
+ 0x5f, 0x72, 0x65, 0x71, 0x18, 0xd5, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x6f, 0x6e,
+ 0x65, 0x62, 0x6f, 0x74, 0x2e, 0x53, 0x65, 0x74, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x41, 0x6e, 0x6f,
+ 0x6e, 0x79, 0x6d, 0x6f, 0x75, 0x73, 0x52, 0x65, 0x71, 0x48, 0x00, 0x52, 0x14, 0x73, 0x65, 0x74,
+ 0x47, 0x72, 0x6f, 0x75, 0x70, 0x41, 0x6e, 0x6f, 0x6e, 0x79, 0x6d, 0x6f, 0x75, 0x73, 0x52, 0x65,
+ 0x71, 0x12, 0x47, 0x0a, 0x12, 0x73, 0x65, 0x74, 0x5f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x5f, 0x63,
+ 0x61, 0x72, 0x64, 0x5f, 0x72, 0x65, 0x71, 0x18, 0xd6, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17,
+ 0x2e, 0x6f, 0x6e, 0x65, 0x62, 0x6f, 0x74, 0x2e, 0x53, 0x65, 0x74, 0x47, 0x72, 0x6f, 0x75, 0x70,
+ 0x43, 0x61, 0x72, 0x64, 0x52, 0x65, 0x71, 0x48, 0x00, 0x52, 0x0f, 0x73, 0x65, 0x74, 0x47, 0x72,
+ 0x6f, 0x75, 0x70, 0x43, 0x61, 0x72, 0x64, 0x52, 0x65, 0x71, 0x12, 0x47, 0x0a, 0x12, 0x73, 0x65,
+ 0x74, 0x5f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x5f, 0x72, 0x65, 0x71,
+ 0x18, 0xd7, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x6f, 0x6e, 0x65, 0x62, 0x6f, 0x74,
+ 0x2e, 0x53, 0x65, 0x74, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x4e, 0x61, 0x6d, 0x65, 0x52, 0x65, 0x71,
+ 0x48, 0x00, 0x52, 0x0f, 0x73, 0x65, 0x74, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x4e, 0x61, 0x6d, 0x65,
+ 0x52, 0x65, 0x71, 0x12, 0x4a, 0x0a, 0x13, 0x73, 0x65, 0x74, 0x5f, 0x67, 0x72, 0x6f, 0x75, 0x70,
+ 0x5f, 0x6c, 0x65, 0x61, 0x76, 0x65, 0x5f, 0x72, 0x65, 0x71, 0x18, 0xd8, 0x01, 0x20, 0x01, 0x28,
+ 0x0b, 0x32, 0x18, 0x2e, 0x6f, 0x6e, 0x65, 0x62, 0x6f, 0x74, 0x2e, 0x53, 0x65, 0x74, 0x47, 0x72,
+ 0x6f, 0x75, 0x70, 0x4c, 0x65, 0x61, 0x76, 0x65, 0x52, 0x65, 0x71, 0x48, 0x00, 0x52, 0x10, 0x73,
+ 0x65, 0x74, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x4c, 0x65, 0x61, 0x76, 0x65, 0x52, 0x65, 0x71, 0x12,
+ 0x60, 0x0a, 0x1b, 0x73, 0x65, 0x74, 0x5f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x5f, 0x73, 0x70, 0x65,
+ 0x63, 0x69, 0x61, 0x6c, 0x5f, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x5f, 0x72, 0x65, 0x71, 0x18, 0xd9,
+ 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x6f, 0x6e, 0x65, 0x62, 0x6f, 0x74, 0x2e, 0x53,
+ 0x65, 0x74, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x53, 0x70, 0x65, 0x63, 0x69, 0x61, 0x6c, 0x54, 0x69,
+ 0x74, 0x6c, 0x65, 0x52, 0x65, 0x71, 0x48, 0x00, 0x52, 0x17, 0x73, 0x65, 0x74, 0x47, 0x72, 0x6f,
+ 0x75, 0x70, 0x53, 0x70, 0x65, 0x63, 0x69, 0x61, 0x6c, 0x54, 0x69, 0x74, 0x6c, 0x65, 0x52, 0x65,
+ 0x71, 0x12, 0x5d, 0x0a, 0x1a, 0x73, 0x65, 0x74, 0x5f, 0x66, 0x72, 0x69, 0x65, 0x6e, 0x64, 0x5f,
+ 0x61, 0x64, 0x64, 0x5f, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x5f, 0x72, 0x65, 0x71, 0x18,
+ 0xda, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x6f, 0x6e, 0x65, 0x62, 0x6f, 0x74, 0x2e,
+ 0x53, 0x65, 0x74, 0x46, 0x72, 0x69, 0x65, 0x6e, 0x64, 0x41, 0x64, 0x64, 0x52, 0x65, 0x71, 0x75,
+ 0x65, 0x73, 0x74, 0x52, 0x65, 0x71, 0x48, 0x00, 0x52, 0x16, 0x73, 0x65, 0x74, 0x46, 0x72, 0x69,
+ 0x65, 0x6e, 0x64, 0x41, 0x64, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x65, 0x71,
+ 0x12, 0x5a, 0x0a, 0x19, 0x73, 0x65, 0x74, 0x5f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x5f, 0x61, 0x64,
+ 0x64, 0x5f, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x5f, 0x72, 0x65, 0x71, 0x18, 0xdb, 0x01,
+ 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x6f, 0x6e, 0x65, 0x62, 0x6f, 0x74, 0x2e, 0x53, 0x65,
+ 0x74, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x41, 0x64, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
+ 0x52, 0x65, 0x71, 0x48, 0x00, 0x52, 0x15, 0x73, 0x65, 0x74, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x41,
+ 0x64, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x65, 0x71, 0x12, 0x47, 0x0a, 0x12,
+ 0x67, 0x65, 0x74, 0x5f, 0x6c, 0x6f, 0x67, 0x69, 0x6e, 0x5f, 0x69, 0x6e, 0x66, 0x6f, 0x5f, 0x72,
+ 0x65, 0x71, 0x18, 0xdc, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x6f, 0x6e, 0x65, 0x62,
+ 0x6f, 0x74, 0x2e, 0x47, 0x65, 0x74, 0x4c, 0x6f, 0x67, 0x69, 0x6e, 0x49, 0x6e, 0x66, 0x6f, 0x52,
+ 0x65, 0x71, 0x48, 0x00, 0x52, 0x0f, 0x67, 0x65, 0x74, 0x4c, 0x6f, 0x67, 0x69, 0x6e, 0x49, 0x6e,
+ 0x66, 0x6f, 0x52, 0x65, 0x71, 0x12, 0x50, 0x0a, 0x15, 0x67, 0x65, 0x74, 0x5f, 0x73, 0x74, 0x72,
+ 0x61, 0x6e, 0x67, 0x65, 0x72, 0x5f, 0x69, 0x6e, 0x66, 0x6f, 0x5f, 0x72, 0x65, 0x71, 0x18, 0xdd,
+ 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x6f, 0x6e, 0x65, 0x62, 0x6f, 0x74, 0x2e, 0x47,
+ 0x65, 0x74, 0x53, 0x74, 0x72, 0x61, 0x6e, 0x67, 0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65,
+ 0x71, 0x48, 0x00, 0x52, 0x12, 0x67, 0x65, 0x74, 0x53, 0x74, 0x72, 0x61, 0x6e, 0x67, 0x65, 0x72,
+ 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x71, 0x12, 0x4a, 0x0a, 0x13, 0x67, 0x65, 0x74, 0x5f, 0x66,
+ 0x72, 0x69, 0x65, 0x6e, 0x64, 0x5f, 0x6c, 0x69, 0x73, 0x74, 0x5f, 0x72, 0x65, 0x71, 0x18, 0xde,
+ 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x6f, 0x6e, 0x65, 0x62, 0x6f, 0x74, 0x2e, 0x47,
+ 0x65, 0x74, 0x46, 0x72, 0x69, 0x65, 0x6e, 0x64, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x71, 0x48,
+ 0x00, 0x52, 0x10, 0x67, 0x65, 0x74, 0x46, 0x72, 0x69, 0x65, 0x6e, 0x64, 0x4c, 0x69, 0x73, 0x74,
+ 0x52, 0x65, 0x71, 0x12, 0x47, 0x0a, 0x12, 0x67, 0x65, 0x74, 0x5f, 0x67, 0x72, 0x6f, 0x75, 0x70,
+ 0x5f, 0x69, 0x6e, 0x66, 0x6f, 0x5f, 0x72, 0x65, 0x71, 0x18, 0xdf, 0x01, 0x20, 0x01, 0x28, 0x0b,
+ 0x32, 0x17, 0x2e, 0x6f, 0x6e, 0x65, 0x62, 0x6f, 0x74, 0x2e, 0x47, 0x65, 0x74, 0x47, 0x72, 0x6f,
+ 0x75, 0x70, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x71, 0x48, 0x00, 0x52, 0x0f, 0x67, 0x65, 0x74,
+ 0x47, 0x72, 0x6f, 0x75, 0x70, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x71, 0x12, 0x47, 0x0a, 0x12,
+ 0x67, 0x65, 0x74, 0x5f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x5f, 0x6c, 0x69, 0x73, 0x74, 0x5f, 0x72,
+ 0x65, 0x71, 0x18, 0xe0, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x6f, 0x6e, 0x65, 0x62,
+ 0x6f, 0x74, 0x2e, 0x47, 0x65, 0x74, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x4c, 0x69, 0x73, 0x74, 0x52,
+ 0x65, 0x71, 0x48, 0x00, 0x52, 0x0f, 0x67, 0x65, 0x74, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x4c, 0x69,
+ 0x73, 0x74, 0x52, 0x65, 0x71, 0x12, 0x5a, 0x0a, 0x19, 0x67, 0x65, 0x74, 0x5f, 0x67, 0x72, 0x6f,
+ 0x75, 0x70, 0x5f, 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x5f, 0x69, 0x6e, 0x66, 0x6f, 0x5f, 0x72,
+ 0x65, 0x71, 0x18, 0xe1, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x6f, 0x6e, 0x65, 0x62,
+ 0x6f, 0x74, 0x2e, 0x47, 0x65, 0x74, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x4d, 0x65, 0x6d, 0x62, 0x65,
+ 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x71, 0x48, 0x00, 0x52, 0x15, 0x67, 0x65, 0x74, 0x47,
+ 0x72, 0x6f, 0x75, 0x70, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65,
+ 0x71, 0x12, 0x5a, 0x0a, 0x19, 0x67, 0x65, 0x74, 0x5f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x5f, 0x6d,
+ 0x65, 0x6d, 0x62, 0x65, 0x72, 0x5f, 0x6c, 0x69, 0x73, 0x74, 0x5f, 0x72, 0x65, 0x71, 0x18, 0xe2,
+ 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x6f, 0x6e, 0x65, 0x62, 0x6f, 0x74, 0x2e, 0x47,
+ 0x65, 0x74, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x4c, 0x69, 0x73,
+ 0x74, 0x52, 0x65, 0x71, 0x48, 0x00, 0x52, 0x15, 0x67, 0x65, 0x74, 0x47, 0x72, 0x6f, 0x75, 0x70,
+ 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x71, 0x12, 0x57, 0x0a,
+ 0x18, 0x67, 0x65, 0x74, 0x5f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x5f, 0x68, 0x6f, 0x6e, 0x6f, 0x72,
+ 0x5f, 0x69, 0x6e, 0x66, 0x6f, 0x5f, 0x72, 0x65, 0x71, 0x18, 0xe3, 0x01, 0x20, 0x01, 0x28, 0x0b,
+ 0x32, 0x1c, 0x2e, 0x6f, 0x6e, 0x65, 0x62, 0x6f, 0x74, 0x2e, 0x47, 0x65, 0x74, 0x47, 0x72, 0x6f,
+ 0x75, 0x70, 0x48, 0x6f, 0x6e, 0x6f, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x71, 0x48, 0x00,
+ 0x52, 0x14, 0x67, 0x65, 0x74, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x48, 0x6f, 0x6e, 0x6f, 0x72, 0x49,
+ 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x71, 0x12, 0x40, 0x0a, 0x0f, 0x67, 0x65, 0x74, 0x5f, 0x63, 0x6f,
+ 0x6f, 0x6b, 0x69, 0x65, 0x73, 0x5f, 0x72, 0x65, 0x71, 0x18, 0xe4, 0x01, 0x20, 0x01, 0x28, 0x0b,
+ 0x32, 0x15, 0x2e, 0x6f, 0x6e, 0x65, 0x62, 0x6f, 0x74, 0x2e, 0x47, 0x65, 0x74, 0x43, 0x6f, 0x6f,
+ 0x6b, 0x69, 0x65, 0x73, 0x52, 0x65, 0x71, 0x48, 0x00, 0x52, 0x0d, 0x67, 0x65, 0x74, 0x43, 0x6f,
+ 0x6f, 0x6b, 0x69, 0x65, 0x73, 0x52, 0x65, 0x71, 0x12, 0x47, 0x0a, 0x12, 0x67, 0x65, 0x74, 0x5f,
+ 0x63, 0x73, 0x72, 0x66, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x5f, 0x72, 0x65, 0x71, 0x18, 0xe5,
+ 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x6f, 0x6e, 0x65, 0x62, 0x6f, 0x74, 0x2e, 0x47,
+ 0x65, 0x74, 0x43, 0x73, 0x72, 0x66, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x65, 0x71, 0x48, 0x00,
+ 0x52, 0x0f, 0x67, 0x65, 0x74, 0x43, 0x73, 0x72, 0x66, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x65,
+ 0x71, 0x12, 0x4c, 0x0a, 0x13, 0x67, 0x65, 0x74, 0x5f, 0x63, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74,
+ 0x69, 0x61, 0x6c, 0x73, 0x5f, 0x72, 0x65, 0x71, 0x18, 0xe6, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32,
+ 0x19, 0x2e, 0x6f, 0x6e, 0x65, 0x62, 0x6f, 0x74, 0x2e, 0x47, 0x65, 0x74, 0x43, 0x72, 0x65, 0x64,
+ 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x73, 0x52, 0x65, 0x71, 0x48, 0x00, 0x52, 0x11, 0x67, 0x65,
+ 0x74, 0x43, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x73, 0x52, 0x65, 0x71, 0x12,
+ 0x3d, 0x0a, 0x0e, 0x67, 0x65, 0x74, 0x5f, 0x72, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x5f, 0x72, 0x65,
+ 0x71, 0x18, 0xe7, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x6f, 0x6e, 0x65, 0x62, 0x6f,
+ 0x74, 0x2e, 0x47, 0x65, 0x74, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x52, 0x65, 0x71, 0x48, 0x00,
+ 0x52, 0x0c, 0x67, 0x65, 0x74, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x52, 0x65, 0x71, 0x12, 0x3a,
+ 0x0a, 0x0d, 0x67, 0x65, 0x74, 0x5f, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x5f, 0x72, 0x65, 0x71, 0x18,
+ 0xe8, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x6f, 0x6e, 0x65, 0x62, 0x6f, 0x74, 0x2e,
+ 0x47, 0x65, 0x74, 0x49, 0x6d, 0x61, 0x67, 0x65, 0x52, 0x65, 0x71, 0x48, 0x00, 0x52, 0x0b, 0x67,
+ 0x65, 0x74, 0x49, 0x6d, 0x61, 0x67, 0x65, 0x52, 0x65, 0x71, 0x12, 0x47, 0x0a, 0x12, 0x63, 0x61,
+ 0x6e, 0x5f, 0x73, 0x65, 0x6e, 0x64, 0x5f, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x5f, 0x72, 0x65, 0x71,
+ 0x18, 0xe9, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x6f, 0x6e, 0x65, 0x62, 0x6f, 0x74,
+ 0x2e, 0x43, 0x61, 0x6e, 0x53, 0x65, 0x6e, 0x64, 0x49, 0x6d, 0x61, 0x67, 0x65, 0x52, 0x65, 0x71,
+ 0x48, 0x00, 0x52, 0x0f, 0x63, 0x61, 0x6e, 0x53, 0x65, 0x6e, 0x64, 0x49, 0x6d, 0x61, 0x67, 0x65,
+ 0x52, 0x65, 0x71, 0x12, 0x4a, 0x0a, 0x13, 0x63, 0x61, 0x6e, 0x5f, 0x73, 0x65, 0x6e, 0x64, 0x5f,
+ 0x72, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x5f, 0x72, 0x65, 0x71, 0x18, 0xea, 0x01, 0x20, 0x01, 0x28,
+ 0x0b, 0x32, 0x18, 0x2e, 0x6f, 0x6e, 0x65, 0x62, 0x6f, 0x74, 0x2e, 0x43, 0x61, 0x6e, 0x53, 0x65,
+ 0x6e, 0x64, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x52, 0x65, 0x71, 0x48, 0x00, 0x52, 0x10, 0x63,
+ 0x61, 0x6e, 0x53, 0x65, 0x6e, 0x64, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x52, 0x65, 0x71, 0x12,
+ 0x3d, 0x0a, 0x0e, 0x67, 0x65, 0x74, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x5f, 0x72, 0x65,
+ 0x71, 0x18, 0xeb, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x6f, 0x6e, 0x65, 0x62, 0x6f,
+ 0x74, 0x2e, 0x47, 0x65, 0x74, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x71, 0x48, 0x00,
+ 0x52, 0x0c, 0x67, 0x65, 0x74, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x71, 0x12, 0x4d,
+ 0x0a, 0x14, 0x67, 0x65, 0x74, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x6e,
+ 0x66, 0x6f, 0x5f, 0x72, 0x65, 0x71, 0x18, 0xec, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e,
+ 0x6f, 0x6e, 0x65, 0x62, 0x6f, 0x74, 0x2e, 0x47, 0x65, 0x74, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f,
+ 0x6e, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x71, 0x48, 0x00, 0x52, 0x11, 0x67, 0x65, 0x74, 0x56,
+ 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x71, 0x12, 0x40, 0x0a,
+ 0x0f, 0x73, 0x65, 0x74, 0x5f, 0x72, 0x65, 0x73, 0x74, 0x61, 0x72, 0x74, 0x5f, 0x72, 0x65, 0x71,
+ 0x18, 0xed, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x6f, 0x6e, 0x65, 0x62, 0x6f, 0x74,
+ 0x2e, 0x53, 0x65, 0x74, 0x52, 0x65, 0x73, 0x74, 0x61, 0x72, 0x74, 0x52, 0x65, 0x71, 0x48, 0x00,
+ 0x52, 0x0d, 0x73, 0x65, 0x74, 0x52, 0x65, 0x73, 0x74, 0x61, 0x72, 0x74, 0x52, 0x65, 0x71, 0x12,
+ 0x40, 0x0a, 0x0f, 0x63, 0x6c, 0x65, 0x61, 0x6e, 0x5f, 0x63, 0x61, 0x63, 0x68, 0x65, 0x5f, 0x72,
+ 0x65, 0x71, 0x18, 0xee, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x6f, 0x6e, 0x65, 0x62,
+ 0x6f, 0x74, 0x2e, 0x43, 0x6c, 0x65, 0x61, 0x6e, 0x43, 0x61, 0x63, 0x68, 0x65, 0x52, 0x65, 0x71,
+ 0x48, 0x00, 0x52, 0x0d, 0x63, 0x6c, 0x65, 0x61, 0x6e, 0x43, 0x61, 0x63, 0x68, 0x65, 0x52, 0x65,
+ 0x71, 0x12, 0x4e, 0x0a, 0x15, 0x73, 0x65, 0x74, 0x5f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x5f, 0x73,
+ 0x69, 0x67, 0x6e, 0x5f, 0x69, 0x6e, 0x5f, 0x72, 0x65, 0x71, 0x18, 0xef, 0x01, 0x20, 0x01, 0x28,
+ 0x0b, 0x32, 0x19, 0x2e, 0x6f, 0x6e, 0x65, 0x62, 0x6f, 0x74, 0x2e, 0x53, 0x65, 0x74, 0x47, 0x72,
+ 0x6f, 0x75, 0x70, 0x53, 0x69, 0x67, 0x6e, 0x49, 0x6e, 0x52, 0x65, 0x71, 0x48, 0x00, 0x52, 0x11,
+ 0x73, 0x65, 0x74, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x53, 0x69, 0x67, 0x6e, 0x49, 0x6e, 0x52, 0x65,
+ 0x71, 0x12, 0x3d, 0x0a, 0x0e, 0x73, 0x65, 0x6e, 0x64, 0x5f, 0x6d, 0x75, 0x73, 0x69, 0x63, 0x5f,
+ 0x72, 0x65, 0x71, 0x18, 0xf0, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x6f, 0x6e, 0x65,
+ 0x62, 0x6f, 0x74, 0x2e, 0x53, 0x65, 0x6e, 0x64, 0x4d, 0x75, 0x73, 0x69, 0x63, 0x52, 0x65, 0x71,
+ 0x48, 0x00, 0x52, 0x0c, 0x73, 0x65, 0x6e, 0x64, 0x4d, 0x75, 0x73, 0x69, 0x63, 0x52, 0x65, 0x71,
+ 0x12, 0x4a, 0x0a, 0x13, 0x73, 0x65, 0x6e, 0x64, 0x5f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x5f, 0x70,
+ 0x6f, 0x6b, 0x65, 0x5f, 0x72, 0x65, 0x71, 0x18, 0xf1, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18,
+ 0x2e, 0x6f, 0x6e, 0x65, 0x62, 0x6f, 0x74, 0x2e, 0x53, 0x65, 0x6e, 0x64, 0x47, 0x72, 0x6f, 0x75,
+ 0x70, 0x50, 0x6f, 0x6b, 0x65, 0x52, 0x65, 0x71, 0x48, 0x00, 0x52, 0x10, 0x73, 0x65, 0x6e, 0x64,
+ 0x47, 0x72, 0x6f, 0x75, 0x70, 0x50, 0x6f, 0x6b, 0x65, 0x52, 0x65, 0x71, 0x12, 0x4d, 0x0a, 0x14,
+ 0x73, 0x65, 0x6e, 0x64, 0x5f, 0x66, 0x72, 0x69, 0x65, 0x6e, 0x64, 0x5f, 0x70, 0x6f, 0x6b, 0x65,
+ 0x5f, 0x72, 0x65, 0x71, 0x18, 0xf2, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x6f, 0x6e,
+ 0x65, 0x62, 0x6f, 0x74, 0x2e, 0x53, 0x65, 0x6e, 0x64, 0x46, 0x72, 0x69, 0x65, 0x6e, 0x64, 0x50,
+ 0x6f, 0x6b, 0x65, 0x52, 0x65, 0x71, 0x48, 0x00, 0x52, 0x11, 0x73, 0x65, 0x6e, 0x64, 0x46, 0x72,
+ 0x69, 0x65, 0x6e, 0x64, 0x50, 0x6f, 0x6b, 0x65, 0x52, 0x65, 0x71, 0x12, 0x4d, 0x0a, 0x14, 0x73,
+ 0x65, 0x6e, 0x64, 0x5f, 0x63, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x5f, 0x6d, 0x73, 0x67, 0x5f,
+ 0x72, 0x65, 0x71, 0x18, 0xf3, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x6f, 0x6e, 0x65,
+ 0x62, 0x6f, 0x74, 0x2e, 0x53, 0x65, 0x6e, 0x64, 0x43, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x4d,
+ 0x73, 0x67, 0x52, 0x65, 0x71, 0x48, 0x00, 0x52, 0x11, 0x73, 0x65, 0x6e, 0x64, 0x43, 0x68, 0x61,
+ 0x6e, 0x6e, 0x65, 0x6c, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x71, 0x12, 0x50, 0x0a, 0x15, 0x73, 0x65,
+ 0x6e, 0x64, 0x5f, 0x70, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x5f, 0x6d, 0x73, 0x67, 0x5f, 0x72,
+ 0x65, 0x73, 0x70, 0x18, 0xad, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x6f, 0x6e, 0x65,
+ 0x62, 0x6f, 0x74, 0x2e, 0x53, 0x65, 0x6e, 0x64, 0x50, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x4d,
+ 0x73, 0x67, 0x52, 0x65, 0x73, 0x70, 0x48, 0x00, 0x52, 0x12, 0x73, 0x65, 0x6e, 0x64, 0x50, 0x72,
+ 0x69, 0x76, 0x61, 0x74, 0x65, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x73, 0x70, 0x12, 0x4a, 0x0a, 0x13,
+ 0x73, 0x65, 0x6e, 0x64, 0x5f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x5f, 0x6d, 0x73, 0x67, 0x5f, 0x72,
+ 0x65, 0x73, 0x70, 0x18, 0xae, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x6f, 0x6e, 0x65,
+ 0x62, 0x6f, 0x74, 0x2e, 0x53, 0x65, 0x6e, 0x64, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x4d, 0x73, 0x67,
+ 0x52, 0x65, 0x73, 0x70, 0x48, 0x00, 0x52, 0x10, 0x73, 0x65, 0x6e, 0x64, 0x47, 0x72, 0x6f, 0x75,
+ 0x70, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x73, 0x70, 0x12, 0x3a, 0x0a, 0x0d, 0x73, 0x65, 0x6e, 0x64,
+ 0x5f, 0x6d, 0x73, 0x67, 0x5f, 0x72, 0x65, 0x73, 0x70, 0x18, 0xaf, 0x02, 0x20, 0x01, 0x28, 0x0b,
+ 0x32, 0x13, 0x2e, 0x6f, 0x6e, 0x65, 0x62, 0x6f, 0x74, 0x2e, 0x53, 0x65, 0x6e, 0x64, 0x4d, 0x73,
+ 0x67, 0x52, 0x65, 0x73, 0x70, 0x48, 0x00, 0x52, 0x0b, 0x73, 0x65, 0x6e, 0x64, 0x4d, 0x73, 0x67,
+ 0x52, 0x65, 0x73, 0x70, 0x12, 0x40, 0x0a, 0x0f, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x5f, 0x6d,
+ 0x73, 0x67, 0x5f, 0x72, 0x65, 0x73, 0x70, 0x18, 0xb0, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15,
+ 0x2e, 0x6f, 0x6e, 0x65, 0x62, 0x6f, 0x74, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4d, 0x73,
+ 0x67, 0x52, 0x65, 0x73, 0x70, 0x48, 0x00, 0x52, 0x0d, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4d,
+ 0x73, 0x67, 0x52, 0x65, 0x73, 0x70, 0x12, 0x37, 0x0a, 0x0c, 0x67, 0x65, 0x74, 0x5f, 0x6d, 0x73,
+ 0x67, 0x5f, 0x72, 0x65, 0x73, 0x70, 0x18, 0xb1, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e,
+ 0x6f, 0x6e, 0x65, 0x62, 0x6f, 0x74, 0x2e, 0x47, 0x65, 0x74, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x73,
+ 0x70, 0x48, 0x00, 0x52, 0x0a, 0x67, 0x65, 0x74, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x73, 0x70, 0x12,
+ 0x4d, 0x0a, 0x14, 0x67, 0x65, 0x74, 0x5f, 0x66, 0x6f, 0x72, 0x77, 0x61, 0x72, 0x64, 0x5f, 0x6d,
+ 0x73, 0x67, 0x5f, 0x72, 0x65, 0x73, 0x70, 0x18, 0xb2, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19,
+ 0x2e, 0x6f, 0x6e, 0x65, 0x62, 0x6f, 0x74, 0x2e, 0x47, 0x65, 0x74, 0x46, 0x6f, 0x72, 0x77, 0x61,
+ 0x72, 0x64, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x73, 0x70, 0x48, 0x00, 0x52, 0x11, 0x67, 0x65, 0x74,
+ 0x46, 0x6f, 0x72, 0x77, 0x61, 0x72, 0x64, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x73, 0x70, 0x12, 0x3d,
+ 0x0a, 0x0e, 0x73, 0x65, 0x6e, 0x64, 0x5f, 0x6c, 0x69, 0x6b, 0x65, 0x5f, 0x72, 0x65, 0x73, 0x70,
+ 0x18, 0xb3, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x6f, 0x6e, 0x65, 0x62, 0x6f, 0x74,
+ 0x2e, 0x53, 0x65, 0x6e, 0x64, 0x4c, 0x69, 0x6b, 0x65, 0x52, 0x65, 0x73, 0x70, 0x48, 0x00, 0x52,
+ 0x0c, 0x73, 0x65, 0x6e, 0x64, 0x4c, 0x69, 0x6b, 0x65, 0x52, 0x65, 0x73, 0x70, 0x12, 0x4a, 0x0a,
+ 0x13, 0x73, 0x65, 0x74, 0x5f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x5f, 0x6b, 0x69, 0x63, 0x6b, 0x5f,
+ 0x72, 0x65, 0x73, 0x70, 0x18, 0xb4, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x6f, 0x6e,
+ 0x65, 0x62, 0x6f, 0x74, 0x2e, 0x53, 0x65, 0x74, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x4b, 0x69, 0x63,
+ 0x6b, 0x52, 0x65, 0x73, 0x70, 0x48, 0x00, 0x52, 0x10, 0x73, 0x65, 0x74, 0x47, 0x72, 0x6f, 0x75,
+ 0x70, 0x4b, 0x69, 0x63, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x12, 0x47, 0x0a, 0x12, 0x73, 0x65, 0x74,
+ 0x5f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x5f, 0x62, 0x61, 0x6e, 0x5f, 0x72, 0x65, 0x73, 0x70, 0x18,
+ 0xb5, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x6f, 0x6e, 0x65, 0x62, 0x6f, 0x74, 0x2e,
+ 0x53, 0x65, 0x74, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x42, 0x61, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x48,
+ 0x00, 0x52, 0x0f, 0x73, 0x65, 0x74, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x42, 0x61, 0x6e, 0x52, 0x65,
+ 0x73, 0x70, 0x12, 0x63, 0x0a, 0x1c, 0x73, 0x65, 0x74, 0x5f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x5f,
+ 0x61, 0x6e, 0x6f, 0x6e, 0x79, 0x6d, 0x6f, 0x75, 0x73, 0x5f, 0x62, 0x61, 0x6e, 0x5f, 0x72, 0x65,
+ 0x73, 0x70, 0x18, 0xb6, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x6f, 0x6e, 0x65, 0x62,
+ 0x6f, 0x74, 0x2e, 0x53, 0x65, 0x74, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x41, 0x6e, 0x6f, 0x6e, 0x79,
+ 0x6d, 0x6f, 0x75, 0x73, 0x42, 0x61, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x48, 0x00, 0x52, 0x18, 0x73,
+ 0x65, 0x74, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x41, 0x6e, 0x6f, 0x6e, 0x79, 0x6d, 0x6f, 0x75, 0x73,
+ 0x42, 0x61, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x12, 0x57, 0x0a, 0x18, 0x73, 0x65, 0x74, 0x5f, 0x67,
+ 0x72, 0x6f, 0x75, 0x70, 0x5f, 0x77, 0x68, 0x6f, 0x6c, 0x65, 0x5f, 0x62, 0x61, 0x6e, 0x5f, 0x72,
+ 0x65, 0x73, 0x70, 0x18, 0xb7, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x6f, 0x6e, 0x65,
+ 0x62, 0x6f, 0x74, 0x2e, 0x53, 0x65, 0x74, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x57, 0x68, 0x6f, 0x6c,
+ 0x65, 0x42, 0x61, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x48, 0x00, 0x52, 0x14, 0x73, 0x65, 0x74, 0x47,
+ 0x72, 0x6f, 0x75, 0x70, 0x57, 0x68, 0x6f, 0x6c, 0x65, 0x42, 0x61, 0x6e, 0x52, 0x65, 0x73, 0x70,
+ 0x12, 0x4d, 0x0a, 0x14, 0x73, 0x65, 0x74, 0x5f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x5f, 0x61, 0x64,
+ 0x6d, 0x69, 0x6e, 0x5f, 0x72, 0x65, 0x73, 0x70, 0x18, 0xb8, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32,
+ 0x19, 0x2e, 0x6f, 0x6e, 0x65, 0x62, 0x6f, 0x74, 0x2e, 0x53, 0x65, 0x74, 0x47, 0x72, 0x6f, 0x75,
+ 0x70, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x48, 0x00, 0x52, 0x11, 0x73, 0x65,
+ 0x74, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x12,
+ 0x59, 0x0a, 0x18, 0x73, 0x65, 0x74, 0x5f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x5f, 0x61, 0x6e, 0x6f,
+ 0x6e, 0x79, 0x6d, 0x6f, 0x75, 0x73, 0x5f, 0x72, 0x65, 0x73, 0x70, 0x18, 0xb9, 0x02, 0x20, 0x01,
+ 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x6f, 0x6e, 0x65, 0x62, 0x6f, 0x74, 0x2e, 0x53, 0x65, 0x74, 0x47,
+ 0x72, 0x6f, 0x75, 0x70, 0x41, 0x6e, 0x6f, 0x6e, 0x79, 0x6d, 0x6f, 0x75, 0x73, 0x52, 0x65, 0x73,
+ 0x70, 0x48, 0x00, 0x52, 0x15, 0x73, 0x65, 0x74, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x41, 0x6e, 0x6f,
+ 0x6e, 0x79, 0x6d, 0x6f, 0x75, 0x73, 0x52, 0x65, 0x73, 0x70, 0x12, 0x4a, 0x0a, 0x13, 0x73, 0x65,
+ 0x74, 0x5f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x5f, 0x63, 0x61, 0x72, 0x64, 0x5f, 0x72, 0x65, 0x73,
+ 0x70, 0x18, 0xba, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x6f, 0x6e, 0x65, 0x62, 0x6f,
+ 0x74, 0x2e, 0x53, 0x65, 0x74, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x43, 0x61, 0x72, 0x64, 0x52, 0x65,
+ 0x73, 0x70, 0x48, 0x00, 0x52, 0x10, 0x73, 0x65, 0x74, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x43, 0x61,
+ 0x72, 0x64, 0x52, 0x65, 0x73, 0x70, 0x12, 0x4a, 0x0a, 0x13, 0x73, 0x65, 0x74, 0x5f, 0x67, 0x72,
+ 0x6f, 0x75, 0x70, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x5f, 0x72, 0x65, 0x73, 0x70, 0x18, 0xbb, 0x02,
+ 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x6f, 0x6e, 0x65, 0x62, 0x6f, 0x74, 0x2e, 0x53, 0x65,
+ 0x74, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x4e, 0x61, 0x6d, 0x65, 0x52, 0x65, 0x73, 0x70, 0x48, 0x00,
+ 0x52, 0x10, 0x73, 0x65, 0x74, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x4e, 0x61, 0x6d, 0x65, 0x52, 0x65,
+ 0x73, 0x70, 0x12, 0x4d, 0x0a, 0x14, 0x73, 0x65, 0x74, 0x5f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x5f,
+ 0x6c, 0x65, 0x61, 0x76, 0x65, 0x5f, 0x72, 0x65, 0x73, 0x70, 0x18, 0xbc, 0x02, 0x20, 0x01, 0x28,
+ 0x0b, 0x32, 0x19, 0x2e, 0x6f, 0x6e, 0x65, 0x62, 0x6f, 0x74, 0x2e, 0x53, 0x65, 0x74, 0x47, 0x72,
+ 0x6f, 0x75, 0x70, 0x4c, 0x65, 0x61, 0x76, 0x65, 0x52, 0x65, 0x73, 0x70, 0x48, 0x00, 0x52, 0x11,
+ 0x73, 0x65, 0x74, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x4c, 0x65, 0x61, 0x76, 0x65, 0x52, 0x65, 0x73,
+ 0x70, 0x12, 0x63, 0x0a, 0x1c, 0x73, 0x65, 0x74, 0x5f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x5f, 0x73,
+ 0x70, 0x65, 0x63, 0x69, 0x61, 0x6c, 0x5f, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x5f, 0x72, 0x65, 0x73,
+ 0x70, 0x18, 0xbd, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x6f, 0x6e, 0x65, 0x62, 0x6f,
+ 0x74, 0x2e, 0x53, 0x65, 0x74, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x53, 0x70, 0x65, 0x63, 0x69, 0x61,
+ 0x6c, 0x54, 0x69, 0x74, 0x6c, 0x65, 0x52, 0x65, 0x73, 0x70, 0x48, 0x00, 0x52, 0x18, 0x73, 0x65,
+ 0x74, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x53, 0x70, 0x65, 0x63, 0x69, 0x61, 0x6c, 0x54, 0x69, 0x74,
+ 0x6c, 0x65, 0x52, 0x65, 0x73, 0x70, 0x12, 0x60, 0x0a, 0x1b, 0x73, 0x65, 0x74, 0x5f, 0x66, 0x72,
+ 0x69, 0x65, 0x6e, 0x64, 0x5f, 0x61, 0x64, 0x64, 0x5f, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
+ 0x5f, 0x72, 0x65, 0x73, 0x70, 0x18, 0xbe, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x6f,
+ 0x6e, 0x65, 0x62, 0x6f, 0x74, 0x2e, 0x53, 0x65, 0x74, 0x46, 0x72, 0x69, 0x65, 0x6e, 0x64, 0x41,
+ 0x64, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x48, 0x00, 0x52,
+ 0x17, 0x73, 0x65, 0x74, 0x46, 0x72, 0x69, 0x65, 0x6e, 0x64, 0x41, 0x64, 0x64, 0x52, 0x65, 0x71,
+ 0x75, 0x65, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x12, 0x5d, 0x0a, 0x1a, 0x73, 0x65, 0x74, 0x5f,
+ 0x67, 0x72, 0x6f, 0x75, 0x70, 0x5f, 0x61, 0x64, 0x64, 0x5f, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73,
+ 0x74, 0x5f, 0x72, 0x65, 0x73, 0x70, 0x18, 0xbf, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e,
+ 0x6f, 0x6e, 0x65, 0x62, 0x6f, 0x74, 0x2e, 0x53, 0x65, 0x74, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x41,
+ 0x64, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x48, 0x00, 0x52,
+ 0x16, 0x73, 0x65, 0x74, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x41, 0x64, 0x64, 0x52, 0x65, 0x71, 0x75,
+ 0x65, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x12, 0x4a, 0x0a, 0x13, 0x67, 0x65, 0x74, 0x5f, 0x6c,
+ 0x6f, 0x67, 0x69, 0x6e, 0x5f, 0x69, 0x6e, 0x66, 0x6f, 0x5f, 0x72, 0x65, 0x73, 0x70, 0x18, 0xc0,
+ 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x6f, 0x6e, 0x65, 0x62, 0x6f, 0x74, 0x2e, 0x47,
+ 0x65, 0x74, 0x4c, 0x6f, 0x67, 0x69, 0x6e, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x73, 0x70, 0x48,
+ 0x00, 0x52, 0x10, 0x67, 0x65, 0x74, 0x4c, 0x6f, 0x67, 0x69, 0x6e, 0x49, 0x6e, 0x66, 0x6f, 0x52,
+ 0x65, 0x73, 0x70, 0x12, 0x53, 0x0a, 0x16, 0x67, 0x65, 0x74, 0x5f, 0x73, 0x74, 0x72, 0x61, 0x6e,
+ 0x67, 0x65, 0x72, 0x5f, 0x69, 0x6e, 0x66, 0x6f, 0x5f, 0x72, 0x65, 0x73, 0x70, 0x18, 0xc1, 0x02,
+ 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x6f, 0x6e, 0x65, 0x62, 0x6f, 0x74, 0x2e, 0x47, 0x65,
+ 0x74, 0x53, 0x74, 0x72, 0x61, 0x6e, 0x67, 0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x73,
+ 0x70, 0x48, 0x00, 0x52, 0x13, 0x67, 0x65, 0x74, 0x53, 0x74, 0x72, 0x61, 0x6e, 0x67, 0x65, 0x72,
+ 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x73, 0x70, 0x12, 0x4d, 0x0a, 0x14, 0x67, 0x65, 0x74, 0x5f,
+ 0x66, 0x72, 0x69, 0x65, 0x6e, 0x64, 0x5f, 0x6c, 0x69, 0x73, 0x74, 0x5f, 0x72, 0x65, 0x73, 0x70,
+ 0x18, 0xc2, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x6f, 0x6e, 0x65, 0x62, 0x6f, 0x74,
+ 0x2e, 0x47, 0x65, 0x74, 0x46, 0x72, 0x69, 0x65, 0x6e, 0x64, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65,
+ 0x73, 0x70, 0x48, 0x00, 0x52, 0x11, 0x67, 0x65, 0x74, 0x46, 0x72, 0x69, 0x65, 0x6e, 0x64, 0x4c,
+ 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x12, 0x4a, 0x0a, 0x13, 0x67, 0x65, 0x74, 0x5f, 0x67,
+ 0x72, 0x6f, 0x75, 0x70, 0x5f, 0x69, 0x6e, 0x66, 0x6f, 0x5f, 0x72, 0x65, 0x73, 0x70, 0x18, 0xc3,
+ 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x6f, 0x6e, 0x65, 0x62, 0x6f, 0x74, 0x2e, 0x47,
+ 0x65, 0x74, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x73, 0x70, 0x48,
+ 0x00, 0x52, 0x10, 0x67, 0x65, 0x74, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x49, 0x6e, 0x66, 0x6f, 0x52,
+ 0x65, 0x73, 0x70, 0x12, 0x4a, 0x0a, 0x13, 0x67, 0x65, 0x74, 0x5f, 0x67, 0x72, 0x6f, 0x75, 0x70,
+ 0x5f, 0x6c, 0x69, 0x73, 0x74, 0x5f, 0x72, 0x65, 0x73, 0x70, 0x18, 0xc4, 0x02, 0x20, 0x01, 0x28,
+ 0x0b, 0x32, 0x18, 0x2e, 0x6f, 0x6e, 0x65, 0x62, 0x6f, 0x74, 0x2e, 0x47, 0x65, 0x74, 0x47, 0x72,
+ 0x6f, 0x75, 0x70, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x48, 0x00, 0x52, 0x10, 0x67,
+ 0x65, 0x74, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x12,
+ 0x5d, 0x0a, 0x1a, 0x67, 0x65, 0x74, 0x5f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x5f, 0x6d, 0x65, 0x6d,
+ 0x62, 0x65, 0x72, 0x5f, 0x69, 0x6e, 0x66, 0x6f, 0x5f, 0x72, 0x65, 0x73, 0x70, 0x18, 0xc5, 0x02,
+ 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x6f, 0x6e, 0x65, 0x62, 0x6f, 0x74, 0x2e, 0x47, 0x65,
+ 0x74, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f,
+ 0x52, 0x65, 0x73, 0x70, 0x48, 0x00, 0x52, 0x16, 0x67, 0x65, 0x74, 0x47, 0x72, 0x6f, 0x75, 0x70,
+ 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x73, 0x70, 0x12, 0x5d,
+ 0x0a, 0x1a, 0x67, 0x65, 0x74, 0x5f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x5f, 0x6d, 0x65, 0x6d, 0x62,
+ 0x65, 0x72, 0x5f, 0x6c, 0x69, 0x73, 0x74, 0x5f, 0x72, 0x65, 0x73, 0x70, 0x18, 0xc6, 0x02, 0x20,
+ 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x6f, 0x6e, 0x65, 0x62, 0x6f, 0x74, 0x2e, 0x47, 0x65, 0x74,
+ 0x47, 0x72, 0x6f, 0x75, 0x70, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x4c, 0x69, 0x73, 0x74, 0x52,
+ 0x65, 0x73, 0x70, 0x48, 0x00, 0x52, 0x16, 0x67, 0x65, 0x74, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x4d,
+ 0x65, 0x6d, 0x62, 0x65, 0x72, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x12, 0x5a, 0x0a,
+ 0x19, 0x67, 0x65, 0x74, 0x5f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x5f, 0x68, 0x6f, 0x6e, 0x6f, 0x72,
+ 0x5f, 0x69, 0x6e, 0x66, 0x6f, 0x5f, 0x72, 0x65, 0x73, 0x70, 0x18, 0xc7, 0x02, 0x20, 0x01, 0x28,
+ 0x0b, 0x32, 0x1d, 0x2e, 0x6f, 0x6e, 0x65, 0x62, 0x6f, 0x74, 0x2e, 0x47, 0x65, 0x74, 0x47, 0x72,
+ 0x6f, 0x75, 0x70, 0x48, 0x6f, 0x6e, 0x6f, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x73, 0x70,
+ 0x48, 0x00, 0x52, 0x15, 0x67, 0x65, 0x74, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x48, 0x6f, 0x6e, 0x6f,
+ 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x73, 0x70, 0x12, 0x43, 0x0a, 0x10, 0x67, 0x65, 0x74,
+ 0x5f, 0x63, 0x6f, 0x6f, 0x6b, 0x69, 0x65, 0x73, 0x5f, 0x72, 0x65, 0x73, 0x70, 0x18, 0xc8, 0x02,
+ 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x6f, 0x6e, 0x65, 0x62, 0x6f, 0x74, 0x2e, 0x47, 0x65,
+ 0x74, 0x43, 0x6f, 0x6f, 0x6b, 0x69, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x48, 0x00, 0x52, 0x0e,
+ 0x67, 0x65, 0x74, 0x43, 0x6f, 0x6f, 0x6b, 0x69, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x12, 0x4a,
+ 0x0a, 0x13, 0x67, 0x65, 0x74, 0x5f, 0x63, 0x73, 0x72, 0x66, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e,
+ 0x5f, 0x72, 0x65, 0x73, 0x70, 0x18, 0xc9, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x6f,
+ 0x6e, 0x65, 0x62, 0x6f, 0x74, 0x2e, 0x47, 0x65, 0x74, 0x43, 0x73, 0x72, 0x66, 0x54, 0x6f, 0x6b,
+ 0x65, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x48, 0x00, 0x52, 0x10, 0x67, 0x65, 0x74, 0x43, 0x73, 0x72,
+ 0x66, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x12, 0x4f, 0x0a, 0x14, 0x67, 0x65,
+ 0x74, 0x5f, 0x63, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x73, 0x5f, 0x72, 0x65,
+ 0x73, 0x70, 0x18, 0xca, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x6f, 0x6e, 0x65, 0x62,
+ 0x6f, 0x74, 0x2e, 0x47, 0x65, 0x74, 0x43, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c,
+ 0x73, 0x52, 0x65, 0x73, 0x70, 0x48, 0x00, 0x52, 0x12, 0x67, 0x65, 0x74, 0x43, 0x72, 0x65, 0x64,
+ 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x73, 0x52, 0x65, 0x73, 0x70, 0x12, 0x40, 0x0a, 0x0f, 0x67,
+ 0x65, 0x74, 0x5f, 0x72, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x5f, 0x72, 0x65, 0x73, 0x70, 0x18, 0xcb,
+ 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x6f, 0x6e, 0x65, 0x62, 0x6f, 0x74, 0x2e, 0x47,
+ 0x65, 0x74, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x52, 0x65, 0x73, 0x70, 0x48, 0x00, 0x52, 0x0d,
+ 0x67, 0x65, 0x74, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x52, 0x65, 0x73, 0x70, 0x12, 0x3d, 0x0a,
+ 0x0e, 0x67, 0x65, 0x74, 0x5f, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x5f, 0x72, 0x65, 0x73, 0x70, 0x18,
+ 0xcc, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x6f, 0x6e, 0x65, 0x62, 0x6f, 0x74, 0x2e,
+ 0x47, 0x65, 0x74, 0x49, 0x6d, 0x61, 0x67, 0x65, 0x52, 0x65, 0x73, 0x70, 0x48, 0x00, 0x52, 0x0c,
+ 0x67, 0x65, 0x74, 0x49, 0x6d, 0x61, 0x67, 0x65, 0x52, 0x65, 0x73, 0x70, 0x12, 0x4a, 0x0a, 0x13,
+ 0x63, 0x61, 0x6e, 0x5f, 0x73, 0x65, 0x6e, 0x64, 0x5f, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x5f, 0x72,
+ 0x65, 0x73, 0x70, 0x18, 0xcd, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x6f, 0x6e, 0x65,
+ 0x62, 0x6f, 0x74, 0x2e, 0x43, 0x61, 0x6e, 0x53, 0x65, 0x6e, 0x64, 0x49, 0x6d, 0x61, 0x67, 0x65,
+ 0x52, 0x65, 0x73, 0x70, 0x48, 0x00, 0x52, 0x10, 0x63, 0x61, 0x6e, 0x53, 0x65, 0x6e, 0x64, 0x49,
+ 0x6d, 0x61, 0x67, 0x65, 0x52, 0x65, 0x73, 0x70, 0x12, 0x4d, 0x0a, 0x14, 0x63, 0x61, 0x6e, 0x5f,
+ 0x73, 0x65, 0x6e, 0x64, 0x5f, 0x72, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x5f, 0x72, 0x65, 0x73, 0x70,
+ 0x18, 0xce, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x6f, 0x6e, 0x65, 0x62, 0x6f, 0x74,
+ 0x2e, 0x43, 0x61, 0x6e, 0x53, 0x65, 0x6e, 0x64, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x52, 0x65,
+ 0x73, 0x70, 0x48, 0x00, 0x52, 0x11, 0x63, 0x61, 0x6e, 0x53, 0x65, 0x6e, 0x64, 0x52, 0x65, 0x63,
+ 0x6f, 0x72, 0x64, 0x52, 0x65, 0x73, 0x70, 0x12, 0x40, 0x0a, 0x0f, 0x67, 0x65, 0x74, 0x5f, 0x73,
+ 0x74, 0x61, 0x74, 0x75, 0x73, 0x5f, 0x72, 0x65, 0x73, 0x70, 0x18, 0xcf, 0x02, 0x20, 0x01, 0x28,
+ 0x0b, 0x32, 0x15, 0x2e, 0x6f, 0x6e, 0x65, 0x62, 0x6f, 0x74, 0x2e, 0x47, 0x65, 0x74, 0x53, 0x74,
+ 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x73, 0x70, 0x48, 0x00, 0x52, 0x0d, 0x67, 0x65, 0x74, 0x53,
+ 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x73, 0x70, 0x12, 0x50, 0x0a, 0x15, 0x67, 0x65, 0x74,
+ 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x6e, 0x66, 0x6f, 0x5f, 0x72, 0x65,
+ 0x73, 0x70, 0x18, 0xd0, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x6f, 0x6e, 0x65, 0x62,
+ 0x6f, 0x74, 0x2e, 0x47, 0x65, 0x74, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x49, 0x6e, 0x66,
+ 0x6f, 0x52, 0x65, 0x73, 0x70, 0x48, 0x00, 0x52, 0x12, 0x67, 0x65, 0x74, 0x56, 0x65, 0x72, 0x73,
+ 0x69, 0x6f, 0x6e, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x73, 0x70, 0x12, 0x43, 0x0a, 0x10, 0x73,
+ 0x65, 0x74, 0x5f, 0x72, 0x65, 0x73, 0x74, 0x61, 0x72, 0x74, 0x5f, 0x72, 0x65, 0x73, 0x70, 0x18,
+ 0xd1, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x6f, 0x6e, 0x65, 0x62, 0x6f, 0x74, 0x2e,
+ 0x53, 0x65, 0x74, 0x52, 0x65, 0x73, 0x74, 0x61, 0x72, 0x74, 0x52, 0x65, 0x73, 0x70, 0x48, 0x00,
+ 0x52, 0x0e, 0x73, 0x65, 0x74, 0x52, 0x65, 0x73, 0x74, 0x61, 0x72, 0x74, 0x52, 0x65, 0x73, 0x70,
+ 0x12, 0x43, 0x0a, 0x10, 0x63, 0x6c, 0x65, 0x61, 0x6e, 0x5f, 0x63, 0x61, 0x63, 0x68, 0x65, 0x5f,
+ 0x72, 0x65, 0x73, 0x70, 0x18, 0xd2, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x6f, 0x6e,
+ 0x65, 0x62, 0x6f, 0x74, 0x2e, 0x43, 0x6c, 0x65, 0x61, 0x6e, 0x43, 0x61, 0x63, 0x68, 0x65, 0x52,
+ 0x65, 0x73, 0x70, 0x48, 0x00, 0x52, 0x0e, 0x63, 0x6c, 0x65, 0x61, 0x6e, 0x43, 0x61, 0x63, 0x68,
+ 0x65, 0x52, 0x65, 0x73, 0x70, 0x12, 0x51, 0x0a, 0x16, 0x73, 0x65, 0x74, 0x5f, 0x67, 0x72, 0x6f,
+ 0x75, 0x70, 0x5f, 0x73, 0x69, 0x67, 0x6e, 0x5f, 0x69, 0x6e, 0x5f, 0x72, 0x65, 0x73, 0x70, 0x18,
+ 0xd3, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x6f, 0x6e, 0x65, 0x62, 0x6f, 0x74, 0x2e,
+ 0x53, 0x65, 0x74, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x53, 0x69, 0x67, 0x6e, 0x49, 0x6e, 0x52, 0x65,
+ 0x73, 0x70, 0x48, 0x00, 0x52, 0x12, 0x73, 0x65, 0x74, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x53, 0x69,
+ 0x67, 0x6e, 0x49, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x12, 0x40, 0x0a, 0x0f, 0x73, 0x65, 0x6e, 0x64,
+ 0x5f, 0x6d, 0x75, 0x73, 0x69, 0x63, 0x5f, 0x72, 0x65, 0x73, 0x70, 0x18, 0xd4, 0x02, 0x20, 0x01,
+ 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x6f, 0x6e, 0x65, 0x62, 0x6f, 0x74, 0x2e, 0x53, 0x65, 0x6e, 0x64,
+ 0x4d, 0x75, 0x73, 0x69, 0x63, 0x52, 0x65, 0x73, 0x70, 0x48, 0x00, 0x52, 0x0d, 0x73, 0x65, 0x6e,
+ 0x64, 0x4d, 0x75, 0x73, 0x69, 0x63, 0x52, 0x65, 0x73, 0x70, 0x12, 0x4d, 0x0a, 0x14, 0x73, 0x65,
+ 0x6e, 0x64, 0x5f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x5f, 0x70, 0x6f, 0x6b, 0x65, 0x5f, 0x72, 0x65,
+ 0x73, 0x70, 0x18, 0xd5, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x6f, 0x6e, 0x65, 0x62,
+ 0x6f, 0x74, 0x2e, 0x53, 0x65, 0x6e, 0x64, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x50, 0x6f, 0x6b, 0x65,
+ 0x52, 0x65, 0x73, 0x70, 0x48, 0x00, 0x52, 0x11, 0x73, 0x65, 0x6e, 0x64, 0x47, 0x72, 0x6f, 0x75,
+ 0x70, 0x50, 0x6f, 0x6b, 0x65, 0x52, 0x65, 0x73, 0x70, 0x12, 0x50, 0x0a, 0x15, 0x73, 0x65, 0x6e,
+ 0x64, 0x5f, 0x66, 0x72, 0x69, 0x65, 0x6e, 0x64, 0x5f, 0x70, 0x6f, 0x6b, 0x65, 0x5f, 0x72, 0x65,
+ 0x73, 0x70, 0x18, 0xd6, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x6f, 0x6e, 0x65, 0x62,
+ 0x6f, 0x74, 0x2e, 0x53, 0x65, 0x6e, 0x64, 0x46, 0x72, 0x69, 0x65, 0x6e, 0x64, 0x50, 0x6f, 0x6b,
+ 0x65, 0x52, 0x65, 0x73, 0x70, 0x48, 0x00, 0x52, 0x12, 0x73, 0x65, 0x6e, 0x64, 0x46, 0x72, 0x69,
+ 0x65, 0x6e, 0x64, 0x50, 0x6f, 0x6b, 0x65, 0x52, 0x65, 0x73, 0x70, 0x12, 0x50, 0x0a, 0x15, 0x73,
+ 0x65, 0x6e, 0x64, 0x5f, 0x63, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x5f, 0x6d, 0x73, 0x67, 0x5f,
+ 0x72, 0x65, 0x73, 0x70, 0x18, 0xd7, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x6f, 0x6e,
+ 0x65, 0x62, 0x6f, 0x74, 0x2e, 0x53, 0x65, 0x6e, 0x64, 0x43, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c,
+ 0x4d, 0x73, 0x67, 0x52, 0x65, 0x73, 0x70, 0x48, 0x00, 0x52, 0x12, 0x73, 0x65, 0x6e, 0x64, 0x43,
+ 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x73, 0x70, 0x1a, 0x38, 0x0a,
+ 0x0a, 0x45, 0x78, 0x74, 0x72, 0x61, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b,
+ 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a,
+ 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61,
+ 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0xe1, 0x13, 0x0a, 0x09, 0x46, 0x72, 0x61, 0x6d,
+ 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x0c, 0x0a, 0x08, 0x54, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57,
+ 0x4e, 0x10, 0x00, 0x12, 0x18, 0x0a, 0x14, 0x54, 0x50, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x4d,
+ 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x10, 0x65, 0x12, 0x16, 0x0a,
+ 0x12, 0x54, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x45, 0x76,
+ 0x65, 0x6e, 0x74, 0x10, 0x66, 0x12, 0x1b, 0x0a, 0x17, 0x54, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x55,
+ 0x70, 0x6c, 0x6f, 0x61, 0x64, 0x4e, 0x6f, 0x74, 0x69, 0x63, 0x65, 0x45, 0x76, 0x65, 0x6e, 0x74,
+ 0x10, 0x67, 0x12, 0x1a, 0x0a, 0x16, 0x54, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x41, 0x64, 0x6d, 0x69,
+ 0x6e, 0x4e, 0x6f, 0x74, 0x69, 0x63, 0x65, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x10, 0x68, 0x12, 0x1d,
+ 0x0a, 0x19, 0x54, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x44, 0x65, 0x63, 0x72, 0x65, 0x61, 0x73, 0x65,
+ 0x4e, 0x6f, 0x74, 0x69, 0x63, 0x65, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x10, 0x69, 0x12, 0x1d, 0x0a,
+ 0x19, 0x54, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x49, 0x6e, 0x63, 0x72, 0x65, 0x61, 0x73, 0x65, 0x4e,
+ 0x6f, 0x74, 0x69, 0x63, 0x65, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x10, 0x6a, 0x12, 0x18, 0x0a, 0x14,
+ 0x54, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x42, 0x61, 0x6e, 0x4e, 0x6f, 0x74, 0x69, 0x63, 0x65, 0x45,
+ 0x76, 0x65, 0x6e, 0x74, 0x10, 0x6b, 0x12, 0x19, 0x0a, 0x15, 0x54, 0x46, 0x72, 0x69, 0x65, 0x6e,
+ 0x64, 0x41, 0x64, 0x64, 0x4e, 0x6f, 0x74, 0x69, 0x63, 0x65, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x10,
+ 0x6c, 0x12, 0x1b, 0x0a, 0x17, 0x54, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x52, 0x65, 0x63, 0x61, 0x6c,
+ 0x6c, 0x4e, 0x6f, 0x74, 0x69, 0x63, 0x65, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x10, 0x6d, 0x12, 0x1c,
+ 0x0a, 0x18, 0x54, 0x46, 0x72, 0x69, 0x65, 0x6e, 0x64, 0x52, 0x65, 0x63, 0x61, 0x6c, 0x6c, 0x4e,
+ 0x6f, 0x74, 0x69, 0x63, 0x65, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x10, 0x6e, 0x12, 0x17, 0x0a, 0x13,
+ 0x54, 0x46, 0x72, 0x69, 0x65, 0x6e, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x45, 0x76,
+ 0x65, 0x6e, 0x74, 0x10, 0x6f, 0x12, 0x16, 0x0a, 0x12, 0x54, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x52,
+ 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x10, 0x70, 0x12, 0x1a, 0x0a,
+ 0x16, 0x54, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x54, 0x65, 0x6d, 0x70, 0x4d, 0x65, 0x73, 0x73, 0x61,
+ 0x67, 0x65, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x10, 0x71, 0x12, 0x15, 0x0a, 0x11, 0x54, 0x47, 0x72,
+ 0x6f, 0x75, 0x70, 0x4e, 0x6f, 0x74, 0x69, 0x66, 0x79, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x10, 0x72,
+ 0x12, 0x18, 0x0a, 0x14, 0x54, 0x43, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x4d, 0x65, 0x73, 0x73,
+ 0x61, 0x67, 0x65, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x10, 0x73, 0x12, 0x17, 0x0a, 0x12, 0x54, 0x53,
+ 0x65, 0x6e, 0x64, 0x50, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x71,
+ 0x10, 0xc9, 0x01, 0x12, 0x15, 0x0a, 0x10, 0x54, 0x53, 0x65, 0x6e, 0x64, 0x47, 0x72, 0x6f, 0x75,
+ 0x70, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x71, 0x10, 0xca, 0x01, 0x12, 0x10, 0x0a, 0x0b, 0x54, 0x53,
+ 0x65, 0x6e, 0x64, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x71, 0x10, 0xcb, 0x01, 0x12, 0x12, 0x0a, 0x0d,
+ 0x54, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x71, 0x10, 0xcc, 0x01,
+ 0x12, 0x0f, 0x0a, 0x0a, 0x54, 0x47, 0x65, 0x74, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x71, 0x10, 0xcd,
+ 0x01, 0x12, 0x16, 0x0a, 0x11, 0x54, 0x47, 0x65, 0x74, 0x46, 0x6f, 0x72, 0x77, 0x61, 0x72, 0x64,
+ 0x4d, 0x73, 0x67, 0x52, 0x65, 0x71, 0x10, 0xce, 0x01, 0x12, 0x11, 0x0a, 0x0c, 0x54, 0x53, 0x65,
+ 0x6e, 0x64, 0x4c, 0x69, 0x6b, 0x65, 0x52, 0x65, 0x71, 0x10, 0xcf, 0x01, 0x12, 0x15, 0x0a, 0x10,
+ 0x54, 0x53, 0x65, 0x74, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x4b, 0x69, 0x63, 0x6b, 0x52, 0x65, 0x71,
+ 0x10, 0xd0, 0x01, 0x12, 0x14, 0x0a, 0x0f, 0x54, 0x53, 0x65, 0x74, 0x47, 0x72, 0x6f, 0x75, 0x70,
+ 0x42, 0x61, 0x6e, 0x52, 0x65, 0x71, 0x10, 0xd1, 0x01, 0x12, 0x1a, 0x0a, 0x15, 0x54, 0x53, 0x65,
+ 0x74, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x41, 0x6e, 0x6f, 0x6e, 0x79, 0x6d, 0x6f, 0x75, 0x73, 0x52,
+ 0x65, 0x71, 0x10, 0xd2, 0x01, 0x12, 0x19, 0x0a, 0x14, 0x54, 0x53, 0x65, 0x74, 0x47, 0x72, 0x6f,
+ 0x75, 0x70, 0x57, 0x68, 0x6f, 0x6c, 0x65, 0x42, 0x61, 0x6e, 0x52, 0x65, 0x71, 0x10, 0xd3, 0x01,
+ 0x12, 0x16, 0x0a, 0x11, 0x54, 0x53, 0x65, 0x74, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x41, 0x64, 0x6d,
+ 0x69, 0x6e, 0x52, 0x65, 0x71, 0x10, 0xd4, 0x01, 0x12, 0x1d, 0x0a, 0x18, 0x54, 0x53, 0x65, 0x74,
+ 0x47, 0x72, 0x6f, 0x75, 0x70, 0x41, 0x6e, 0x6f, 0x6e, 0x79, 0x6d, 0x6f, 0x75, 0x73, 0x42, 0x61,
+ 0x6e, 0x52, 0x65, 0x71, 0x10, 0xd5, 0x01, 0x12, 0x15, 0x0a, 0x10, 0x54, 0x53, 0x65, 0x74, 0x47,
+ 0x72, 0x6f, 0x75, 0x70, 0x43, 0x61, 0x72, 0x64, 0x52, 0x65, 0x71, 0x10, 0xd6, 0x01, 0x12, 0x15,
+ 0x0a, 0x10, 0x54, 0x53, 0x65, 0x74, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x4e, 0x61, 0x6d, 0x65, 0x52,
+ 0x65, 0x71, 0x10, 0xd7, 0x01, 0x12, 0x16, 0x0a, 0x11, 0x54, 0x53, 0x65, 0x74, 0x47, 0x72, 0x6f,
+ 0x75, 0x70, 0x4c, 0x65, 0x61, 0x76, 0x65, 0x52, 0x65, 0x71, 0x10, 0xd8, 0x01, 0x12, 0x1d, 0x0a,
+ 0x18, 0x54, 0x53, 0x65, 0x74, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x53, 0x70, 0x65, 0x63, 0x69, 0x61,
+ 0x6c, 0x54, 0x69, 0x74, 0x6c, 0x65, 0x52, 0x65, 0x71, 0x10, 0xd9, 0x01, 0x12, 0x1c, 0x0a, 0x17,
+ 0x54, 0x53, 0x65, 0x74, 0x46, 0x72, 0x69, 0x65, 0x6e, 0x64, 0x41, 0x64, 0x64, 0x52, 0x65, 0x71,
+ 0x75, 0x65, 0x73, 0x74, 0x52, 0x65, 0x71, 0x10, 0xda, 0x01, 0x12, 0x1b, 0x0a, 0x16, 0x54, 0x53,
+ 0x65, 0x74, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x41, 0x64, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
+ 0x74, 0x52, 0x65, 0x71, 0x10, 0xdb, 0x01, 0x12, 0x15, 0x0a, 0x10, 0x54, 0x47, 0x65, 0x74, 0x4c,
+ 0x6f, 0x67, 0x69, 0x6e, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x71, 0x10, 0xdc, 0x01, 0x12, 0x18,
+ 0x0a, 0x13, 0x54, 0x47, 0x65, 0x74, 0x53, 0x74, 0x72, 0x61, 0x6e, 0x67, 0x65, 0x72, 0x49, 0x6e,
+ 0x66, 0x6f, 0x52, 0x65, 0x71, 0x10, 0xdd, 0x01, 0x12, 0x16, 0x0a, 0x11, 0x54, 0x47, 0x65, 0x74,
+ 0x46, 0x72, 0x69, 0x65, 0x6e, 0x64, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x71, 0x10, 0xde, 0x01,
+ 0x12, 0x15, 0x0a, 0x10, 0x54, 0x47, 0x65, 0x74, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x49, 0x6e, 0x66,
+ 0x6f, 0x52, 0x65, 0x71, 0x10, 0xdf, 0x01, 0x12, 0x15, 0x0a, 0x10, 0x54, 0x47, 0x65, 0x74, 0x47,
+ 0x72, 0x6f, 0x75, 0x70, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x71, 0x10, 0xe0, 0x01, 0x12, 0x1b,
+ 0x0a, 0x16, 0x54, 0x47, 0x65, 0x74, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x4d, 0x65, 0x6d, 0x62, 0x65,
+ 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x71, 0x10, 0xe1, 0x01, 0x12, 0x1b, 0x0a, 0x16, 0x54,
+ 0x47, 0x65, 0x74, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x4c, 0x69,
+ 0x73, 0x74, 0x52, 0x65, 0x71, 0x10, 0xe2, 0x01, 0x12, 0x1a, 0x0a, 0x15, 0x54, 0x47, 0x65, 0x74,
+ 0x47, 0x72, 0x6f, 0x75, 0x70, 0x48, 0x6f, 0x6e, 0x6f, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65,
+ 0x71, 0x10, 0xe3, 0x01, 0x12, 0x13, 0x0a, 0x0e, 0x54, 0x47, 0x65, 0x74, 0x43, 0x6f, 0x6f, 0x6b,
+ 0x69, 0x65, 0x73, 0x52, 0x65, 0x71, 0x10, 0xe4, 0x01, 0x12, 0x15, 0x0a, 0x10, 0x54, 0x47, 0x65,
+ 0x74, 0x43, 0x73, 0x72, 0x66, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x65, 0x71, 0x10, 0xe5, 0x01,
+ 0x12, 0x17, 0x0a, 0x12, 0x54, 0x47, 0x65, 0x74, 0x43, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69,
+ 0x61, 0x6c, 0x73, 0x52, 0x65, 0x71, 0x10, 0xe6, 0x01, 0x12, 0x12, 0x0a, 0x0d, 0x54, 0x47, 0x65,
+ 0x74, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x52, 0x65, 0x71, 0x10, 0xe7, 0x01, 0x12, 0x11, 0x0a,
+ 0x0c, 0x54, 0x47, 0x65, 0x74, 0x49, 0x6d, 0x61, 0x67, 0x65, 0x52, 0x65, 0x71, 0x10, 0xe8, 0x01,
+ 0x12, 0x15, 0x0a, 0x10, 0x54, 0x43, 0x61, 0x6e, 0x53, 0x65, 0x6e, 0x64, 0x49, 0x6d, 0x61, 0x67,
+ 0x65, 0x52, 0x65, 0x71, 0x10, 0xe9, 0x01, 0x12, 0x16, 0x0a, 0x11, 0x54, 0x43, 0x61, 0x6e, 0x53,
+ 0x65, 0x6e, 0x64, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x52, 0x65, 0x71, 0x10, 0xea, 0x01, 0x12,
+ 0x12, 0x0a, 0x0d, 0x54, 0x47, 0x65, 0x74, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x71,
+ 0x10, 0xeb, 0x01, 0x12, 0x17, 0x0a, 0x12, 0x54, 0x47, 0x65, 0x74, 0x56, 0x65, 0x72, 0x73, 0x69,
+ 0x6f, 0x6e, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x71, 0x10, 0xec, 0x01, 0x12, 0x13, 0x0a, 0x0e,
+ 0x54, 0x53, 0x65, 0x74, 0x52, 0x65, 0x73, 0x74, 0x61, 0x72, 0x74, 0x52, 0x65, 0x71, 0x10, 0xed,
+ 0x01, 0x12, 0x13, 0x0a, 0x0e, 0x54, 0x43, 0x6c, 0x65, 0x61, 0x6e, 0x43, 0x61, 0x63, 0x68, 0x65,
+ 0x52, 0x65, 0x71, 0x10, 0xee, 0x01, 0x12, 0x17, 0x0a, 0x12, 0x54, 0x53, 0x65, 0x74, 0x47, 0x72,
+ 0x6f, 0x75, 0x70, 0x53, 0x69, 0x67, 0x6e, 0x49, 0x6e, 0x52, 0x65, 0x71, 0x10, 0xef, 0x01, 0x12,
+ 0x12, 0x0a, 0x0d, 0x54, 0x53, 0x65, 0x6e, 0x64, 0x4d, 0x75, 0x73, 0x69, 0x63, 0x52, 0x65, 0x71,
+ 0x10, 0xf0, 0x01, 0x12, 0x16, 0x0a, 0x11, 0x54, 0x53, 0x65, 0x6e, 0x64, 0x47, 0x72, 0x6f, 0x75,
+ 0x70, 0x50, 0x6f, 0x6b, 0x65, 0x52, 0x65, 0x71, 0x10, 0xf1, 0x01, 0x12, 0x17, 0x0a, 0x12, 0x54,
+ 0x53, 0x65, 0x6e, 0x64, 0x46, 0x72, 0x69, 0x65, 0x6e, 0x64, 0x50, 0x6f, 0x6b, 0x65, 0x52, 0x65,
+ 0x71, 0x10, 0xf2, 0x01, 0x12, 0x17, 0x0a, 0x12, 0x54, 0x53, 0x65, 0x6e, 0x64, 0x43, 0x68, 0x61,
+ 0x6e, 0x6e, 0x65, 0x6c, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x71, 0x10, 0xf3, 0x01, 0x12, 0x18, 0x0a,
+ 0x13, 0x54, 0x53, 0x65, 0x6e, 0x64, 0x50, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x4d, 0x73, 0x67,
+ 0x52, 0x65, 0x73, 0x70, 0x10, 0xad, 0x02, 0x12, 0x16, 0x0a, 0x11, 0x54, 0x53, 0x65, 0x6e, 0x64,
+ 0x47, 0x72, 0x6f, 0x75, 0x70, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x73, 0x70, 0x10, 0xae, 0x02, 0x12,
+ 0x11, 0x0a, 0x0c, 0x54, 0x53, 0x65, 0x6e, 0x64, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x73, 0x70, 0x10,
+ 0xaf, 0x02, 0x12, 0x13, 0x0a, 0x0e, 0x54, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4d, 0x73, 0x67,
+ 0x52, 0x65, 0x73, 0x70, 0x10, 0xb0, 0x02, 0x12, 0x10, 0x0a, 0x0b, 0x54, 0x47, 0x65, 0x74, 0x4d,
+ 0x73, 0x67, 0x52, 0x65, 0x73, 0x70, 0x10, 0xb1, 0x02, 0x12, 0x17, 0x0a, 0x12, 0x54, 0x47, 0x65,
+ 0x74, 0x46, 0x6f, 0x72, 0x77, 0x61, 0x72, 0x64, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x73, 0x70, 0x10,
+ 0xb2, 0x02, 0x12, 0x12, 0x0a, 0x0d, 0x54, 0x53, 0x65, 0x6e, 0x64, 0x4c, 0x69, 0x6b, 0x65, 0x52,
+ 0x65, 0x73, 0x70, 0x10, 0xb3, 0x02, 0x12, 0x16, 0x0a, 0x11, 0x54, 0x53, 0x65, 0x74, 0x47, 0x72,
+ 0x6f, 0x75, 0x70, 0x4b, 0x69, 0x63, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x10, 0xb4, 0x02, 0x12, 0x15,
+ 0x0a, 0x10, 0x54, 0x53, 0x65, 0x74, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x42, 0x61, 0x6e, 0x52, 0x65,
+ 0x73, 0x70, 0x10, 0xb5, 0x02, 0x12, 0x1b, 0x0a, 0x16, 0x54, 0x53, 0x65, 0x74, 0x47, 0x72, 0x6f,
+ 0x75, 0x70, 0x41, 0x6e, 0x6f, 0x6e, 0x79, 0x6d, 0x6f, 0x75, 0x73, 0x52, 0x65, 0x73, 0x70, 0x10,
+ 0xb6, 0x02, 0x12, 0x1a, 0x0a, 0x15, 0x54, 0x53, 0x65, 0x74, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x57,
+ 0x68, 0x6f, 0x6c, 0x65, 0x42, 0x61, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x10, 0xb7, 0x02, 0x12, 0x17,
+ 0x0a, 0x12, 0x54, 0x53, 0x65, 0x74, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x41, 0x64, 0x6d, 0x69, 0x6e,
+ 0x52, 0x65, 0x73, 0x70, 0x10, 0xb8, 0x02, 0x12, 0x1e, 0x0a, 0x19, 0x54, 0x53, 0x65, 0x74, 0x47,
+ 0x72, 0x6f, 0x75, 0x70, 0x41, 0x6e, 0x6f, 0x6e, 0x79, 0x6d, 0x6f, 0x75, 0x73, 0x42, 0x61, 0x6e,
+ 0x52, 0x65, 0x73, 0x70, 0x10, 0xb9, 0x02, 0x12, 0x16, 0x0a, 0x11, 0x54, 0x53, 0x65, 0x74, 0x47,
+ 0x72, 0x6f, 0x75, 0x70, 0x43, 0x61, 0x72, 0x64, 0x52, 0x65, 0x73, 0x70, 0x10, 0xba, 0x02, 0x12,
+ 0x16, 0x0a, 0x11, 0x54, 0x53, 0x65, 0x74, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x4e, 0x61, 0x6d, 0x65,
+ 0x52, 0x65, 0x73, 0x70, 0x10, 0xbb, 0x02, 0x12, 0x17, 0x0a, 0x12, 0x54, 0x53, 0x65, 0x74, 0x47,
+ 0x72, 0x6f, 0x75, 0x70, 0x4c, 0x65, 0x61, 0x76, 0x65, 0x52, 0x65, 0x73, 0x70, 0x10, 0xbc, 0x02,
+ 0x12, 0x1e, 0x0a, 0x19, 0x54, 0x53, 0x65, 0x74, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x53, 0x70, 0x65,
+ 0x63, 0x69, 0x61, 0x6c, 0x54, 0x69, 0x74, 0x6c, 0x65, 0x52, 0x65, 0x73, 0x70, 0x10, 0xbd, 0x02,
+ 0x12, 0x1d, 0x0a, 0x18, 0x54, 0x53, 0x65, 0x74, 0x46, 0x72, 0x69, 0x65, 0x6e, 0x64, 0x41, 0x64,
+ 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x10, 0xbe, 0x02, 0x12,
+ 0x1c, 0x0a, 0x17, 0x54, 0x53, 0x65, 0x74, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x41, 0x64, 0x64, 0x52,
+ 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x10, 0xbf, 0x02, 0x12, 0x16, 0x0a,
+ 0x11, 0x54, 0x47, 0x65, 0x74, 0x4c, 0x6f, 0x67, 0x69, 0x6e, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65,
+ 0x73, 0x70, 0x10, 0xc0, 0x02, 0x12, 0x19, 0x0a, 0x14, 0x54, 0x47, 0x65, 0x74, 0x53, 0x74, 0x72,
+ 0x61, 0x6e, 0x67, 0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x73, 0x70, 0x10, 0xc1, 0x02,
+ 0x12, 0x17, 0x0a, 0x12, 0x54, 0x47, 0x65, 0x74, 0x46, 0x72, 0x69, 0x65, 0x6e, 0x64, 0x4c, 0x69,
+ 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x10, 0xc2, 0x02, 0x12, 0x16, 0x0a, 0x11, 0x54, 0x47, 0x65,
+ 0x74, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x73, 0x70, 0x10, 0xc3,
+ 0x02, 0x12, 0x16, 0x0a, 0x11, 0x54, 0x47, 0x65, 0x74, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x4c, 0x69,
+ 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x10, 0xc4, 0x02, 0x12, 0x1c, 0x0a, 0x17, 0x54, 0x47, 0x65,
+ 0x74, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f,
+ 0x52, 0x65, 0x73, 0x70, 0x10, 0xc5, 0x02, 0x12, 0x1c, 0x0a, 0x17, 0x54, 0x47, 0x65, 0x74, 0x47,
+ 0x72, 0x6f, 0x75, 0x70, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65,
+ 0x73, 0x70, 0x10, 0xc6, 0x02, 0x12, 0x1b, 0x0a, 0x16, 0x54, 0x47, 0x65, 0x74, 0x47, 0x72, 0x6f,
+ 0x75, 0x70, 0x48, 0x6f, 0x6e, 0x6f, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x73, 0x70, 0x10,
+ 0xc7, 0x02, 0x12, 0x14, 0x0a, 0x0f, 0x54, 0x47, 0x65, 0x74, 0x43, 0x6f, 0x6f, 0x6b, 0x69, 0x65,
+ 0x73, 0x52, 0x65, 0x73, 0x70, 0x10, 0xc8, 0x02, 0x12, 0x16, 0x0a, 0x11, 0x54, 0x47, 0x65, 0x74,
+ 0x43, 0x73, 0x72, 0x66, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x10, 0xc9, 0x02,
+ 0x12, 0x18, 0x0a, 0x13, 0x54, 0x47, 0x65, 0x74, 0x43, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69,
+ 0x61, 0x6c, 0x73, 0x52, 0x65, 0x73, 0x70, 0x10, 0xca, 0x02, 0x12, 0x13, 0x0a, 0x0e, 0x54, 0x47,
+ 0x65, 0x74, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x52, 0x65, 0x73, 0x70, 0x10, 0xcb, 0x02, 0x12,
+ 0x12, 0x0a, 0x0d, 0x54, 0x47, 0x65, 0x74, 0x49, 0x6d, 0x61, 0x67, 0x65, 0x52, 0x65, 0x73, 0x70,
+ 0x10, 0xcc, 0x02, 0x12, 0x16, 0x0a, 0x11, 0x54, 0x43, 0x61, 0x6e, 0x53, 0x65, 0x6e, 0x64, 0x49,
+ 0x6d, 0x61, 0x67, 0x65, 0x52, 0x65, 0x73, 0x70, 0x10, 0xcd, 0x02, 0x12, 0x17, 0x0a, 0x12, 0x54,
+ 0x43, 0x61, 0x6e, 0x53, 0x65, 0x6e, 0x64, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x52, 0x65, 0x73,
+ 0x70, 0x10, 0xce, 0x02, 0x12, 0x13, 0x0a, 0x0e, 0x54, 0x47, 0x65, 0x74, 0x53, 0x74, 0x61, 0x74,
+ 0x75, 0x73, 0x52, 0x65, 0x73, 0x70, 0x10, 0xcf, 0x02, 0x12, 0x18, 0x0a, 0x13, 0x54, 0x47, 0x65,
+ 0x74, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x73, 0x70,
+ 0x10, 0xd0, 0x02, 0x12, 0x14, 0x0a, 0x0f, 0x54, 0x53, 0x65, 0x74, 0x52, 0x65, 0x73, 0x74, 0x61,
+ 0x72, 0x74, 0x52, 0x65, 0x73, 0x70, 0x10, 0xd1, 0x02, 0x12, 0x14, 0x0a, 0x0f, 0x54, 0x43, 0x6c,
+ 0x65, 0x61, 0x6e, 0x43, 0x61, 0x63, 0x68, 0x65, 0x52, 0x65, 0x73, 0x70, 0x10, 0xd2, 0x02, 0x12,
+ 0x18, 0x0a, 0x13, 0x54, 0x53, 0x65, 0x74, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x53, 0x69, 0x67, 0x6e,
+ 0x49, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x10, 0xd3, 0x02, 0x12, 0x13, 0x0a, 0x0e, 0x54, 0x53, 0x65,
+ 0x6e, 0x64, 0x4d, 0x75, 0x73, 0x69, 0x63, 0x52, 0x65, 0x73, 0x70, 0x10, 0xd4, 0x02, 0x12, 0x17,
+ 0x0a, 0x12, 0x54, 0x53, 0x65, 0x6e, 0x64, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x50, 0x6f, 0x6b, 0x65,
+ 0x52, 0x65, 0x73, 0x70, 0x10, 0xd5, 0x02, 0x12, 0x18, 0x0a, 0x13, 0x54, 0x53, 0x65, 0x6e, 0x64,
+ 0x46, 0x72, 0x69, 0x65, 0x6e, 0x64, 0x50, 0x6f, 0x6b, 0x65, 0x52, 0x65, 0x73, 0x70, 0x10, 0xd6,
+ 0x02, 0x12, 0x18, 0x0a, 0x13, 0x54, 0x53, 0x65, 0x6e, 0x64, 0x43, 0x68, 0x61, 0x6e, 0x6e, 0x65,
+ 0x6c, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x73, 0x70, 0x10, 0xd7, 0x02, 0x42, 0x06, 0x0a, 0x04, 0x64,
+ 0x61, 0x74, 0x61, 0x42, 0x0a, 0x5a, 0x08, 0x2e, 0x2f, 0x6f, 0x6e, 0x65, 0x62, 0x6f, 0x74, 0x62,
+ 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
}
var (
- ErrInvalidLengthOnebotFrame = fmt.Errorf("proto: negative length found during unmarshaling")
- ErrIntOverflowOnebotFrame = fmt.Errorf("proto: integer overflow")
- ErrUnexpectedEndOfGroupOnebotFrame = fmt.Errorf("proto: unexpected end of group")
+ file_onebot_frame_proto_rawDescOnce sync.Once
+ file_onebot_frame_proto_rawDescData = file_onebot_frame_proto_rawDesc
)
+
+func file_onebot_frame_proto_rawDescGZIP() []byte {
+ file_onebot_frame_proto_rawDescOnce.Do(func() {
+ file_onebot_frame_proto_rawDescData = protoimpl.X.CompressGZIP(file_onebot_frame_proto_rawDescData)
+ })
+ return file_onebot_frame_proto_rawDescData
+}
+
+var file_onebot_frame_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
+var file_onebot_frame_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
+var file_onebot_frame_proto_goTypes = []interface{}{
+ (Frame_FrameType)(0), // 0: onebot.Frame.FrameType
+ (*Frame)(nil), // 1: onebot.Frame
+ nil, // 2: onebot.Frame.ExtraEntry
+ (*PrivateMessageEvent)(nil), // 3: onebot.PrivateMessageEvent
+ (*GroupMessageEvent)(nil), // 4: onebot.GroupMessageEvent
+ (*GroupUploadNoticeEvent)(nil), // 5: onebot.GroupUploadNoticeEvent
+ (*GroupAdminNoticeEvent)(nil), // 6: onebot.GroupAdminNoticeEvent
+ (*GroupDecreaseNoticeEvent)(nil), // 7: onebot.GroupDecreaseNoticeEvent
+ (*GroupIncreaseNoticeEvent)(nil), // 8: onebot.GroupIncreaseNoticeEvent
+ (*GroupBanNoticeEvent)(nil), // 9: onebot.GroupBanNoticeEvent
+ (*FriendAddNoticeEvent)(nil), // 10: onebot.FriendAddNoticeEvent
+ (*GroupRecallNoticeEvent)(nil), // 11: onebot.GroupRecallNoticeEvent
+ (*FriendRecallNoticeEvent)(nil), // 12: onebot.FriendRecallNoticeEvent
+ (*FriendRequestEvent)(nil), // 13: onebot.FriendRequestEvent
+ (*GroupRequestEvent)(nil), // 14: onebot.GroupRequestEvent
+ (*GroupTempMessageEvent)(nil), // 15: onebot.GroupTempMessageEvent
+ (*GroupNotifyEvent)(nil), // 16: onebot.GroupNotifyEvent
+ (*ChannelMessageEvent)(nil), // 17: onebot.ChannelMessageEvent
+ (*SendPrivateMsgReq)(nil), // 18: onebot.SendPrivateMsgReq
+ (*SendGroupMsgReq)(nil), // 19: onebot.SendGroupMsgReq
+ (*SendMsgReq)(nil), // 20: onebot.SendMsgReq
+ (*DeleteMsgReq)(nil), // 21: onebot.DeleteMsgReq
+ (*GetMsgReq)(nil), // 22: onebot.GetMsgReq
+ (*GetForwardMsgReq)(nil), // 23: onebot.GetForwardMsgReq
+ (*SendLikeReq)(nil), // 24: onebot.SendLikeReq
+ (*SetGroupKickReq)(nil), // 25: onebot.SetGroupKickReq
+ (*SetGroupBanReq)(nil), // 26: onebot.SetGroupBanReq
+ (*SetGroupAnonymousBanReq)(nil), // 27: onebot.SetGroupAnonymousBanReq
+ (*SetGroupWholeBanReq)(nil), // 28: onebot.SetGroupWholeBanReq
+ (*SetGroupAdminReq)(nil), // 29: onebot.SetGroupAdminReq
+ (*SetGroupAnonymousReq)(nil), // 30: onebot.SetGroupAnonymousReq
+ (*SetGroupCardReq)(nil), // 31: onebot.SetGroupCardReq
+ (*SetGroupNameReq)(nil), // 32: onebot.SetGroupNameReq
+ (*SetGroupLeaveReq)(nil), // 33: onebot.SetGroupLeaveReq
+ (*SetGroupSpecialTitleReq)(nil), // 34: onebot.SetGroupSpecialTitleReq
+ (*SetFriendAddRequestReq)(nil), // 35: onebot.SetFriendAddRequestReq
+ (*SetGroupAddRequestReq)(nil), // 36: onebot.SetGroupAddRequestReq
+ (*GetLoginInfoReq)(nil), // 37: onebot.GetLoginInfoReq
+ (*GetStrangerInfoReq)(nil), // 38: onebot.GetStrangerInfoReq
+ (*GetFriendListReq)(nil), // 39: onebot.GetFriendListReq
+ (*GetGroupInfoReq)(nil), // 40: onebot.GetGroupInfoReq
+ (*GetGroupListReq)(nil), // 41: onebot.GetGroupListReq
+ (*GetGroupMemberInfoReq)(nil), // 42: onebot.GetGroupMemberInfoReq
+ (*GetGroupMemberListReq)(nil), // 43: onebot.GetGroupMemberListReq
+ (*GetGroupHonorInfoReq)(nil), // 44: onebot.GetGroupHonorInfoReq
+ (*GetCookiesReq)(nil), // 45: onebot.GetCookiesReq
+ (*GetCsrfTokenReq)(nil), // 46: onebot.GetCsrfTokenReq
+ (*GetCredentialsReq)(nil), // 47: onebot.GetCredentialsReq
+ (*GetRecordReq)(nil), // 48: onebot.GetRecordReq
+ (*GetImageReq)(nil), // 49: onebot.GetImageReq
+ (*CanSendImageReq)(nil), // 50: onebot.CanSendImageReq
+ (*CanSendRecordReq)(nil), // 51: onebot.CanSendRecordReq
+ (*GetStatusReq)(nil), // 52: onebot.GetStatusReq
+ (*GetVersionInfoReq)(nil), // 53: onebot.GetVersionInfoReq
+ (*SetRestartReq)(nil), // 54: onebot.SetRestartReq
+ (*CleanCacheReq)(nil), // 55: onebot.CleanCacheReq
+ (*SetGroupSignInReq)(nil), // 56: onebot.SetGroupSignInReq
+ (*SendMusicReq)(nil), // 57: onebot.SendMusicReq
+ (*SendGroupPokeReq)(nil), // 58: onebot.SendGroupPokeReq
+ (*SendFriendPokeReq)(nil), // 59: onebot.SendFriendPokeReq
+ (*SendChannelMsgReq)(nil), // 60: onebot.SendChannelMsgReq
+ (*SendPrivateMsgResp)(nil), // 61: onebot.SendPrivateMsgResp
+ (*SendGroupMsgResp)(nil), // 62: onebot.SendGroupMsgResp
+ (*SendMsgResp)(nil), // 63: onebot.SendMsgResp
+ (*DeleteMsgResp)(nil), // 64: onebot.DeleteMsgResp
+ (*GetMsgResp)(nil), // 65: onebot.GetMsgResp
+ (*GetForwardMsgResp)(nil), // 66: onebot.GetForwardMsgResp
+ (*SendLikeResp)(nil), // 67: onebot.SendLikeResp
+ (*SetGroupKickResp)(nil), // 68: onebot.SetGroupKickResp
+ (*SetGroupBanResp)(nil), // 69: onebot.SetGroupBanResp
+ (*SetGroupAnonymousBanResp)(nil), // 70: onebot.SetGroupAnonymousBanResp
+ (*SetGroupWholeBanResp)(nil), // 71: onebot.SetGroupWholeBanResp
+ (*SetGroupAdminResp)(nil), // 72: onebot.SetGroupAdminResp
+ (*SetGroupAnonymousResp)(nil), // 73: onebot.SetGroupAnonymousResp
+ (*SetGroupCardResp)(nil), // 74: onebot.SetGroupCardResp
+ (*SetGroupNameResp)(nil), // 75: onebot.SetGroupNameResp
+ (*SetGroupLeaveResp)(nil), // 76: onebot.SetGroupLeaveResp
+ (*SetGroupSpecialTitleResp)(nil), // 77: onebot.SetGroupSpecialTitleResp
+ (*SetFriendAddRequestResp)(nil), // 78: onebot.SetFriendAddRequestResp
+ (*SetGroupAddRequestResp)(nil), // 79: onebot.SetGroupAddRequestResp
+ (*GetLoginInfoResp)(nil), // 80: onebot.GetLoginInfoResp
+ (*GetStrangerInfoResp)(nil), // 81: onebot.GetStrangerInfoResp
+ (*GetFriendListResp)(nil), // 82: onebot.GetFriendListResp
+ (*GetGroupInfoResp)(nil), // 83: onebot.GetGroupInfoResp
+ (*GetGroupListResp)(nil), // 84: onebot.GetGroupListResp
+ (*GetGroupMemberInfoResp)(nil), // 85: onebot.GetGroupMemberInfoResp
+ (*GetGroupMemberListResp)(nil), // 86: onebot.GetGroupMemberListResp
+ (*GetGroupHonorInfoResp)(nil), // 87: onebot.GetGroupHonorInfoResp
+ (*GetCookiesResp)(nil), // 88: onebot.GetCookiesResp
+ (*GetCsrfTokenResp)(nil), // 89: onebot.GetCsrfTokenResp
+ (*GetCredentialsResp)(nil), // 90: onebot.GetCredentialsResp
+ (*GetRecordResp)(nil), // 91: onebot.GetRecordResp
+ (*GetImageResp)(nil), // 92: onebot.GetImageResp
+ (*CanSendImageResp)(nil), // 93: onebot.CanSendImageResp
+ (*CanSendRecordResp)(nil), // 94: onebot.CanSendRecordResp
+ (*GetStatusResp)(nil), // 95: onebot.GetStatusResp
+ (*GetVersionInfoResp)(nil), // 96: onebot.GetVersionInfoResp
+ (*SetRestartResp)(nil), // 97: onebot.SetRestartResp
+ (*CleanCacheResp)(nil), // 98: onebot.CleanCacheResp
+ (*SetGroupSignInResp)(nil), // 99: onebot.SetGroupSignInResp
+ (*SendMusicResp)(nil), // 100: onebot.SendMusicResp
+ (*SendGroupPokeResp)(nil), // 101: onebot.SendGroupPokeResp
+ (*SendFriendPokeResp)(nil), // 102: onebot.SendFriendPokeResp
+ (*SendChannelMsgResp)(nil), // 103: onebot.SendChannelMsgResp
+}
+var file_onebot_frame_proto_depIdxs = []int32{
+ 0, // 0: onebot.Frame.frame_type:type_name -> onebot.Frame.FrameType
+ 2, // 1: onebot.Frame.extra:type_name -> onebot.Frame.ExtraEntry
+ 3, // 2: onebot.Frame.private_message_event:type_name -> onebot.PrivateMessageEvent
+ 4, // 3: onebot.Frame.group_message_event:type_name -> onebot.GroupMessageEvent
+ 5, // 4: onebot.Frame.group_upload_notice_event:type_name -> onebot.GroupUploadNoticeEvent
+ 6, // 5: onebot.Frame.group_admin_notice_event:type_name -> onebot.GroupAdminNoticeEvent
+ 7, // 6: onebot.Frame.group_decrease_notice_event:type_name -> onebot.GroupDecreaseNoticeEvent
+ 8, // 7: onebot.Frame.group_increase_notice_event:type_name -> onebot.GroupIncreaseNoticeEvent
+ 9, // 8: onebot.Frame.group_ban_notice_event:type_name -> onebot.GroupBanNoticeEvent
+ 10, // 9: onebot.Frame.friend_add_notice_event:type_name -> onebot.FriendAddNoticeEvent
+ 11, // 10: onebot.Frame.group_recall_notice_event:type_name -> onebot.GroupRecallNoticeEvent
+ 12, // 11: onebot.Frame.friend_recall_notice_event:type_name -> onebot.FriendRecallNoticeEvent
+ 13, // 12: onebot.Frame.friend_request_event:type_name -> onebot.FriendRequestEvent
+ 14, // 13: onebot.Frame.group_request_event:type_name -> onebot.GroupRequestEvent
+ 15, // 14: onebot.Frame.group_temp_message_event:type_name -> onebot.GroupTempMessageEvent
+ 16, // 15: onebot.Frame.group_notify_event:type_name -> onebot.GroupNotifyEvent
+ 17, // 16: onebot.Frame.channel_message_event:type_name -> onebot.ChannelMessageEvent
+ 18, // 17: onebot.Frame.send_private_msg_req:type_name -> onebot.SendPrivateMsgReq
+ 19, // 18: onebot.Frame.send_group_msg_req:type_name -> onebot.SendGroupMsgReq
+ 20, // 19: onebot.Frame.send_msg_req:type_name -> onebot.SendMsgReq
+ 21, // 20: onebot.Frame.delete_msg_req:type_name -> onebot.DeleteMsgReq
+ 22, // 21: onebot.Frame.get_msg_req:type_name -> onebot.GetMsgReq
+ 23, // 22: onebot.Frame.get_forward_msg_req:type_name -> onebot.GetForwardMsgReq
+ 24, // 23: onebot.Frame.send_like_req:type_name -> onebot.SendLikeReq
+ 25, // 24: onebot.Frame.set_group_kick_req:type_name -> onebot.SetGroupKickReq
+ 26, // 25: onebot.Frame.set_group_ban_req:type_name -> onebot.SetGroupBanReq
+ 27, // 26: onebot.Frame.set_group_anonymous_ban_req:type_name -> onebot.SetGroupAnonymousBanReq
+ 28, // 27: onebot.Frame.set_group_whole_ban_req:type_name -> onebot.SetGroupWholeBanReq
+ 29, // 28: onebot.Frame.set_group_admin_req:type_name -> onebot.SetGroupAdminReq
+ 30, // 29: onebot.Frame.set_group_anonymous_req:type_name -> onebot.SetGroupAnonymousReq
+ 31, // 30: onebot.Frame.set_group_card_req:type_name -> onebot.SetGroupCardReq
+ 32, // 31: onebot.Frame.set_group_name_req:type_name -> onebot.SetGroupNameReq
+ 33, // 32: onebot.Frame.set_group_leave_req:type_name -> onebot.SetGroupLeaveReq
+ 34, // 33: onebot.Frame.set_group_special_title_req:type_name -> onebot.SetGroupSpecialTitleReq
+ 35, // 34: onebot.Frame.set_friend_add_request_req:type_name -> onebot.SetFriendAddRequestReq
+ 36, // 35: onebot.Frame.set_group_add_request_req:type_name -> onebot.SetGroupAddRequestReq
+ 37, // 36: onebot.Frame.get_login_info_req:type_name -> onebot.GetLoginInfoReq
+ 38, // 37: onebot.Frame.get_stranger_info_req:type_name -> onebot.GetStrangerInfoReq
+ 39, // 38: onebot.Frame.get_friend_list_req:type_name -> onebot.GetFriendListReq
+ 40, // 39: onebot.Frame.get_group_info_req:type_name -> onebot.GetGroupInfoReq
+ 41, // 40: onebot.Frame.get_group_list_req:type_name -> onebot.GetGroupListReq
+ 42, // 41: onebot.Frame.get_group_member_info_req:type_name -> onebot.GetGroupMemberInfoReq
+ 43, // 42: onebot.Frame.get_group_member_list_req:type_name -> onebot.GetGroupMemberListReq
+ 44, // 43: onebot.Frame.get_group_honor_info_req:type_name -> onebot.GetGroupHonorInfoReq
+ 45, // 44: onebot.Frame.get_cookies_req:type_name -> onebot.GetCookiesReq
+ 46, // 45: onebot.Frame.get_csrf_token_req:type_name -> onebot.GetCsrfTokenReq
+ 47, // 46: onebot.Frame.get_credentials_req:type_name -> onebot.GetCredentialsReq
+ 48, // 47: onebot.Frame.get_record_req:type_name -> onebot.GetRecordReq
+ 49, // 48: onebot.Frame.get_image_req:type_name -> onebot.GetImageReq
+ 50, // 49: onebot.Frame.can_send_image_req:type_name -> onebot.CanSendImageReq
+ 51, // 50: onebot.Frame.can_send_record_req:type_name -> onebot.CanSendRecordReq
+ 52, // 51: onebot.Frame.get_status_req:type_name -> onebot.GetStatusReq
+ 53, // 52: onebot.Frame.get_version_info_req:type_name -> onebot.GetVersionInfoReq
+ 54, // 53: onebot.Frame.set_restart_req:type_name -> onebot.SetRestartReq
+ 55, // 54: onebot.Frame.clean_cache_req:type_name -> onebot.CleanCacheReq
+ 56, // 55: onebot.Frame.set_group_sign_in_req:type_name -> onebot.SetGroupSignInReq
+ 57, // 56: onebot.Frame.send_music_req:type_name -> onebot.SendMusicReq
+ 58, // 57: onebot.Frame.send_group_poke_req:type_name -> onebot.SendGroupPokeReq
+ 59, // 58: onebot.Frame.send_friend_poke_req:type_name -> onebot.SendFriendPokeReq
+ 60, // 59: onebot.Frame.send_channel_msg_req:type_name -> onebot.SendChannelMsgReq
+ 61, // 60: onebot.Frame.send_private_msg_resp:type_name -> onebot.SendPrivateMsgResp
+ 62, // 61: onebot.Frame.send_group_msg_resp:type_name -> onebot.SendGroupMsgResp
+ 63, // 62: onebot.Frame.send_msg_resp:type_name -> onebot.SendMsgResp
+ 64, // 63: onebot.Frame.delete_msg_resp:type_name -> onebot.DeleteMsgResp
+ 65, // 64: onebot.Frame.get_msg_resp:type_name -> onebot.GetMsgResp
+ 66, // 65: onebot.Frame.get_forward_msg_resp:type_name -> onebot.GetForwardMsgResp
+ 67, // 66: onebot.Frame.send_like_resp:type_name -> onebot.SendLikeResp
+ 68, // 67: onebot.Frame.set_group_kick_resp:type_name -> onebot.SetGroupKickResp
+ 69, // 68: onebot.Frame.set_group_ban_resp:type_name -> onebot.SetGroupBanResp
+ 70, // 69: onebot.Frame.set_group_anonymous_ban_resp:type_name -> onebot.SetGroupAnonymousBanResp
+ 71, // 70: onebot.Frame.set_group_whole_ban_resp:type_name -> onebot.SetGroupWholeBanResp
+ 72, // 71: onebot.Frame.set_group_admin_resp:type_name -> onebot.SetGroupAdminResp
+ 73, // 72: onebot.Frame.set_group_anonymous_resp:type_name -> onebot.SetGroupAnonymousResp
+ 74, // 73: onebot.Frame.set_group_card_resp:type_name -> onebot.SetGroupCardResp
+ 75, // 74: onebot.Frame.set_group_name_resp:type_name -> onebot.SetGroupNameResp
+ 76, // 75: onebot.Frame.set_group_leave_resp:type_name -> onebot.SetGroupLeaveResp
+ 77, // 76: onebot.Frame.set_group_special_title_resp:type_name -> onebot.SetGroupSpecialTitleResp
+ 78, // 77: onebot.Frame.set_friend_add_request_resp:type_name -> onebot.SetFriendAddRequestResp
+ 79, // 78: onebot.Frame.set_group_add_request_resp:type_name -> onebot.SetGroupAddRequestResp
+ 80, // 79: onebot.Frame.get_login_info_resp:type_name -> onebot.GetLoginInfoResp
+ 81, // 80: onebot.Frame.get_stranger_info_resp:type_name -> onebot.GetStrangerInfoResp
+ 82, // 81: onebot.Frame.get_friend_list_resp:type_name -> onebot.GetFriendListResp
+ 83, // 82: onebot.Frame.get_group_info_resp:type_name -> onebot.GetGroupInfoResp
+ 84, // 83: onebot.Frame.get_group_list_resp:type_name -> onebot.GetGroupListResp
+ 85, // 84: onebot.Frame.get_group_member_info_resp:type_name -> onebot.GetGroupMemberInfoResp
+ 86, // 85: onebot.Frame.get_group_member_list_resp:type_name -> onebot.GetGroupMemberListResp
+ 87, // 86: onebot.Frame.get_group_honor_info_resp:type_name -> onebot.GetGroupHonorInfoResp
+ 88, // 87: onebot.Frame.get_cookies_resp:type_name -> onebot.GetCookiesResp
+ 89, // 88: onebot.Frame.get_csrf_token_resp:type_name -> onebot.GetCsrfTokenResp
+ 90, // 89: onebot.Frame.get_credentials_resp:type_name -> onebot.GetCredentialsResp
+ 91, // 90: onebot.Frame.get_record_resp:type_name -> onebot.GetRecordResp
+ 92, // 91: onebot.Frame.get_image_resp:type_name -> onebot.GetImageResp
+ 93, // 92: onebot.Frame.can_send_image_resp:type_name -> onebot.CanSendImageResp
+ 94, // 93: onebot.Frame.can_send_record_resp:type_name -> onebot.CanSendRecordResp
+ 95, // 94: onebot.Frame.get_status_resp:type_name -> onebot.GetStatusResp
+ 96, // 95: onebot.Frame.get_version_info_resp:type_name -> onebot.GetVersionInfoResp
+ 97, // 96: onebot.Frame.set_restart_resp:type_name -> onebot.SetRestartResp
+ 98, // 97: onebot.Frame.clean_cache_resp:type_name -> onebot.CleanCacheResp
+ 99, // 98: onebot.Frame.set_group_sign_in_resp:type_name -> onebot.SetGroupSignInResp
+ 100, // 99: onebot.Frame.send_music_resp:type_name -> onebot.SendMusicResp
+ 101, // 100: onebot.Frame.send_group_poke_resp:type_name -> onebot.SendGroupPokeResp
+ 102, // 101: onebot.Frame.send_friend_poke_resp:type_name -> onebot.SendFriendPokeResp
+ 103, // 102: onebot.Frame.send_channel_msg_resp:type_name -> onebot.SendChannelMsgResp
+ 103, // [103:103] is the sub-list for method output_type
+ 103, // [103:103] is the sub-list for method input_type
+ 103, // [103:103] is the sub-list for extension type_name
+ 103, // [103:103] is the sub-list for extension extendee
+ 0, // [0:103] is the sub-list for field type_name
+}
+
+func init() { file_onebot_frame_proto_init() }
+func file_onebot_frame_proto_init() {
+ if File_onebot_frame_proto != nil {
+ return
+ }
+ file_onebot_api_proto_init()
+ file_onebot_event_proto_init()
+ if !protoimpl.UnsafeEnabled {
+ file_onebot_frame_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*Frame); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ }
+ file_onebot_frame_proto_msgTypes[0].OneofWrappers = []interface{}{
+ (*Frame_PrivateMessageEvent)(nil),
+ (*Frame_GroupMessageEvent)(nil),
+ (*Frame_GroupUploadNoticeEvent)(nil),
+ (*Frame_GroupAdminNoticeEvent)(nil),
+ (*Frame_GroupDecreaseNoticeEvent)(nil),
+ (*Frame_GroupIncreaseNoticeEvent)(nil),
+ (*Frame_GroupBanNoticeEvent)(nil),
+ (*Frame_FriendAddNoticeEvent)(nil),
+ (*Frame_GroupRecallNoticeEvent)(nil),
+ (*Frame_FriendRecallNoticeEvent)(nil),
+ (*Frame_FriendRequestEvent)(nil),
+ (*Frame_GroupRequestEvent)(nil),
+ (*Frame_GroupTempMessageEvent)(nil),
+ (*Frame_GroupNotifyEvent)(nil),
+ (*Frame_ChannelMessageEvent)(nil),
+ (*Frame_SendPrivateMsgReq)(nil),
+ (*Frame_SendGroupMsgReq)(nil),
+ (*Frame_SendMsgReq)(nil),
+ (*Frame_DeleteMsgReq)(nil),
+ (*Frame_GetMsgReq)(nil),
+ (*Frame_GetForwardMsgReq)(nil),
+ (*Frame_SendLikeReq)(nil),
+ (*Frame_SetGroupKickReq)(nil),
+ (*Frame_SetGroupBanReq)(nil),
+ (*Frame_SetGroupAnonymousBanReq)(nil),
+ (*Frame_SetGroupWholeBanReq)(nil),
+ (*Frame_SetGroupAdminReq)(nil),
+ (*Frame_SetGroupAnonymousReq)(nil),
+ (*Frame_SetGroupCardReq)(nil),
+ (*Frame_SetGroupNameReq)(nil),
+ (*Frame_SetGroupLeaveReq)(nil),
+ (*Frame_SetGroupSpecialTitleReq)(nil),
+ (*Frame_SetFriendAddRequestReq)(nil),
+ (*Frame_SetGroupAddRequestReq)(nil),
+ (*Frame_GetLoginInfoReq)(nil),
+ (*Frame_GetStrangerInfoReq)(nil),
+ (*Frame_GetFriendListReq)(nil),
+ (*Frame_GetGroupInfoReq)(nil),
+ (*Frame_GetGroupListReq)(nil),
+ (*Frame_GetGroupMemberInfoReq)(nil),
+ (*Frame_GetGroupMemberListReq)(nil),
+ (*Frame_GetGroupHonorInfoReq)(nil),
+ (*Frame_GetCookiesReq)(nil),
+ (*Frame_GetCsrfTokenReq)(nil),
+ (*Frame_GetCredentialsReq)(nil),
+ (*Frame_GetRecordReq)(nil),
+ (*Frame_GetImageReq)(nil),
+ (*Frame_CanSendImageReq)(nil),
+ (*Frame_CanSendRecordReq)(nil),
+ (*Frame_GetStatusReq)(nil),
+ (*Frame_GetVersionInfoReq)(nil),
+ (*Frame_SetRestartReq)(nil),
+ (*Frame_CleanCacheReq)(nil),
+ (*Frame_SetGroupSignInReq)(nil),
+ (*Frame_SendMusicReq)(nil),
+ (*Frame_SendGroupPokeReq)(nil),
+ (*Frame_SendFriendPokeReq)(nil),
+ (*Frame_SendChannelMsgReq)(nil),
+ (*Frame_SendPrivateMsgResp)(nil),
+ (*Frame_SendGroupMsgResp)(nil),
+ (*Frame_SendMsgResp)(nil),
+ (*Frame_DeleteMsgResp)(nil),
+ (*Frame_GetMsgResp)(nil),
+ (*Frame_GetForwardMsgResp)(nil),
+ (*Frame_SendLikeResp)(nil),
+ (*Frame_SetGroupKickResp)(nil),
+ (*Frame_SetGroupBanResp)(nil),
+ (*Frame_SetGroupAnonymousBanResp)(nil),
+ (*Frame_SetGroupWholeBanResp)(nil),
+ (*Frame_SetGroupAdminResp)(nil),
+ (*Frame_SetGroupAnonymousResp)(nil),
+ (*Frame_SetGroupCardResp)(nil),
+ (*Frame_SetGroupNameResp)(nil),
+ (*Frame_SetGroupLeaveResp)(nil),
+ (*Frame_SetGroupSpecialTitleResp)(nil),
+ (*Frame_SetFriendAddRequestResp)(nil),
+ (*Frame_SetGroupAddRequestResp)(nil),
+ (*Frame_GetLoginInfoResp)(nil),
+ (*Frame_GetStrangerInfoResp)(nil),
+ (*Frame_GetFriendListResp)(nil),
+ (*Frame_GetGroupInfoResp)(nil),
+ (*Frame_GetGroupListResp)(nil),
+ (*Frame_GetGroupMemberInfoResp)(nil),
+ (*Frame_GetGroupMemberListResp)(nil),
+ (*Frame_GetGroupHonorInfoResp)(nil),
+ (*Frame_GetCookiesResp)(nil),
+ (*Frame_GetCsrfTokenResp)(nil),
+ (*Frame_GetCredentialsResp)(nil),
+ (*Frame_GetRecordResp)(nil),
+ (*Frame_GetImageResp)(nil),
+ (*Frame_CanSendImageResp)(nil),
+ (*Frame_CanSendRecordResp)(nil),
+ (*Frame_GetStatusResp)(nil),
+ (*Frame_GetVersionInfoResp)(nil),
+ (*Frame_SetRestartResp)(nil),
+ (*Frame_CleanCacheResp)(nil),
+ (*Frame_SetGroupSignInResp)(nil),
+ (*Frame_SendMusicResp)(nil),
+ (*Frame_SendGroupPokeResp)(nil),
+ (*Frame_SendFriendPokeResp)(nil),
+ (*Frame_SendChannelMsgResp)(nil),
+ }
+ type x struct{}
+ out := protoimpl.TypeBuilder{
+ File: protoimpl.DescBuilder{
+ GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
+ RawDescriptor: file_onebot_frame_proto_rawDesc,
+ NumEnums: 1,
+ NumMessages: 2,
+ NumExtensions: 0,
+ NumServices: 0,
+ },
+ GoTypes: file_onebot_frame_proto_goTypes,
+ DependencyIndexes: file_onebot_frame_proto_depIdxs,
+ EnumInfos: file_onebot_frame_proto_enumTypes,
+ MessageInfos: file_onebot_frame_proto_msgTypes,
+ }.Build()
+ File_onebot_frame_proto = out.File
+ file_onebot_frame_proto_rawDesc = nil
+ file_onebot_frame_proto_goTypes = nil
+ file_onebot_frame_proto_depIdxs = nil
+}