Jens Geyer | 731975a | 2014-05-02 00:24:24 +0200 | [diff] [blame] | 1 | /* |
| 2 | * Licensed to the Apache Software Foundation (ASF) under one |
| 3 | * or more contributor license agreements. See the NOTICE file |
| 4 | * distributed with this work for additional information |
| 5 | * regarding copyright ownership. The ASF licenses this file |
| 6 | * to you under the Apache License, Version 2.0 (the |
| 7 | * "License"); you may not use this file except in compliance |
| 8 | * with the License. You may obtain a copy of the License at |
| 9 | * |
| 10 | * http://www.apache.org/licenses/LICENSE-2.0 |
| 11 | * |
| 12 | * Unless required by applicable law or agreed to in writing, |
| 13 | * software distributed under the License is distributed on an |
| 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
| 15 | * KIND, either express or implied. See the License for the |
| 16 | * specific language governing permissions and limitations |
| 17 | * under the License. |
| 18 | */ |
| 19 | |
| 20 | // Automatically generated by MockGen. DO NOT EDIT! |
| 21 | // Source: thrift (interfaces: TProtocol) |
| 22 | |
| 23 | package tests |
| 24 | |
| 25 | import ( |
John Boiles | 5785279 | 2018-01-05 14:37:05 -0800 | [diff] [blame] | 26 | "context" |
Jens Geyer | 731975a | 2014-05-02 00:24:24 +0200 | [diff] [blame] | 27 | thrift "thrift" |
D. Can Celasun | 4f77ab8 | 2017-09-21 15:21:00 +0200 | [diff] [blame] | 28 | |
Jens Geyer | 56a03be | 2015-06-17 22:21:27 +0200 | [diff] [blame] | 29 | gomock "github.com/golang/mock/gomock" |
Jens Geyer | 731975a | 2014-05-02 00:24:24 +0200 | [diff] [blame] | 30 | ) |
| 31 | |
| 32 | // Mock of TProtocol interface |
| 33 | type MockTProtocol struct { |
| 34 | ctrl *gomock.Controller |
| 35 | recorder *_MockTProtocolRecorder |
| 36 | } |
| 37 | |
| 38 | // Recorder for MockTProtocol (not exported) |
| 39 | type _MockTProtocolRecorder struct { |
| 40 | mock *MockTProtocol |
| 41 | } |
| 42 | |
| 43 | func NewMockTProtocol(ctrl *gomock.Controller) *MockTProtocol { |
| 44 | mock := &MockTProtocol{ctrl: ctrl} |
| 45 | mock.recorder = &_MockTProtocolRecorder{mock} |
| 46 | return mock |
| 47 | } |
| 48 | |
| 49 | func (_m *MockTProtocol) EXPECT() *_MockTProtocolRecorder { |
| 50 | return _m.recorder |
| 51 | } |
| 52 | |
John Boiles | 5785279 | 2018-01-05 14:37:05 -0800 | [diff] [blame] | 53 | func (_m *MockTProtocol) Flush(ctx context.Context) error { |
Jens Geyer | 731975a | 2014-05-02 00:24:24 +0200 | [diff] [blame] | 54 | ret := _m.ctrl.Call(_m, "Flush") |
| 55 | ret0, _ := ret[0].(error) |
| 56 | return ret0 |
| 57 | } |
| 58 | |
John Boiles | 5785279 | 2018-01-05 14:37:05 -0800 | [diff] [blame] | 59 | func (_mr *_MockTProtocolRecorder) Flush(ctx context.Context) *gomock.Call { |
Jens Geyer | 731975a | 2014-05-02 00:24:24 +0200 | [diff] [blame] | 60 | return _mr.mock.ctrl.RecordCall(_mr.mock, "Flush") |
| 61 | } |
| 62 | |
Yuxuan 'fishy' Wang | e79f764 | 2020-06-12 22:22:35 -0700 | [diff] [blame] | 63 | func (_m *MockTProtocol) ReadBinary(ctx context.Context) ([]byte, error) { |
| 64 | ret := _m.ctrl.Call(_m, "ReadBinary", ctx) |
Jens Geyer | 731975a | 2014-05-02 00:24:24 +0200 | [diff] [blame] | 65 | ret0, _ := ret[0].([]byte) |
| 66 | ret1, _ := ret[1].(error) |
| 67 | return ret0, ret1 |
| 68 | } |
| 69 | |
Yuxuan 'fishy' Wang | e79f764 | 2020-06-12 22:22:35 -0700 | [diff] [blame] | 70 | func (_mr *_MockTProtocolRecorder) ReadBinary(ctx context.Context) *gomock.Call { |
| 71 | return _mr.mock.ctrl.RecordCall(_mr.mock, "ReadBinary", ctx) |
Jens Geyer | 731975a | 2014-05-02 00:24:24 +0200 | [diff] [blame] | 72 | } |
| 73 | |
Yuxuan 'fishy' Wang | e79f764 | 2020-06-12 22:22:35 -0700 | [diff] [blame] | 74 | func (_m *MockTProtocol) ReadBool(ctx context.Context) (bool, error) { |
| 75 | ret := _m.ctrl.Call(_m, "ReadBool", ctx) |
Jens Geyer | 731975a | 2014-05-02 00:24:24 +0200 | [diff] [blame] | 76 | ret0, _ := ret[0].(bool) |
| 77 | ret1, _ := ret[1].(error) |
| 78 | return ret0, ret1 |
| 79 | } |
| 80 | |
Yuxuan 'fishy' Wang | e79f764 | 2020-06-12 22:22:35 -0700 | [diff] [blame] | 81 | func (_mr *_MockTProtocolRecorder) ReadBool(ctx context.Context) *gomock.Call { |
| 82 | return _mr.mock.ctrl.RecordCall(_mr.mock, "ReadBool", ctx) |
Jens Geyer | 731975a | 2014-05-02 00:24:24 +0200 | [diff] [blame] | 83 | } |
| 84 | |
Yuxuan 'fishy' Wang | e79f764 | 2020-06-12 22:22:35 -0700 | [diff] [blame] | 85 | func (_m *MockTProtocol) ReadByte(ctx context.Context) (int8, error) { |
| 86 | ret := _m.ctrl.Call(_m, "ReadByte", ctx) |
Jens Geyer | 5bc8b5a | 2015-09-05 12:50:24 +0200 | [diff] [blame] | 87 | ret0, _ := ret[0].(int8) |
Jens Geyer | 731975a | 2014-05-02 00:24:24 +0200 | [diff] [blame] | 88 | ret1, _ := ret[1].(error) |
| 89 | return ret0, ret1 |
| 90 | } |
| 91 | |
Yuxuan 'fishy' Wang | e79f764 | 2020-06-12 22:22:35 -0700 | [diff] [blame] | 92 | func (_mr *_MockTProtocolRecorder) ReadByte(ctx context.Context) *gomock.Call { |
| 93 | return _mr.mock.ctrl.RecordCall(_mr.mock, "ReadByte", ctx) |
Jens Geyer | 731975a | 2014-05-02 00:24:24 +0200 | [diff] [blame] | 94 | } |
| 95 | |
Yuxuan 'fishy' Wang | e79f764 | 2020-06-12 22:22:35 -0700 | [diff] [blame] | 96 | func (_m *MockTProtocol) ReadDouble(ctx context.Context) (float64, error) { |
| 97 | ret := _m.ctrl.Call(_m, "ReadDouble", ctx) |
Jens Geyer | 731975a | 2014-05-02 00:24:24 +0200 | [diff] [blame] | 98 | ret0, _ := ret[0].(float64) |
| 99 | ret1, _ := ret[1].(error) |
| 100 | return ret0, ret1 |
| 101 | } |
| 102 | |
Yuxuan 'fishy' Wang | e79f764 | 2020-06-12 22:22:35 -0700 | [diff] [blame] | 103 | func (_mr *_MockTProtocolRecorder) ReadDouble(ctx context.Context) *gomock.Call { |
| 104 | return _mr.mock.ctrl.RecordCall(_mr.mock, "ReadDouble", ctx) |
Jens Geyer | 731975a | 2014-05-02 00:24:24 +0200 | [diff] [blame] | 105 | } |
| 106 | |
Yuxuan 'fishy' Wang | e79f764 | 2020-06-12 22:22:35 -0700 | [diff] [blame] | 107 | func (_m *MockTProtocol) ReadFieldBegin(ctx context.Context) (string, thrift.TType, int16, error) { |
| 108 | ret := _m.ctrl.Call(_m, "ReadFieldBegin", ctx) |
Jens Geyer | 731975a | 2014-05-02 00:24:24 +0200 | [diff] [blame] | 109 | ret0, _ := ret[0].(string) |
| 110 | ret1, _ := ret[1].(thrift.TType) |
| 111 | ret2, _ := ret[2].(int16) |
| 112 | ret3, _ := ret[3].(error) |
| 113 | return ret0, ret1, ret2, ret3 |
| 114 | } |
| 115 | |
Yuxuan 'fishy' Wang | e79f764 | 2020-06-12 22:22:35 -0700 | [diff] [blame] | 116 | func (_mr *_MockTProtocolRecorder) ReadFieldBegin(ctx context.Context) *gomock.Call { |
| 117 | return _mr.mock.ctrl.RecordCall(_mr.mock, "ReadFieldBegin", ctx) |
Jens Geyer | 731975a | 2014-05-02 00:24:24 +0200 | [diff] [blame] | 118 | } |
| 119 | |
Yuxuan 'fishy' Wang | e79f764 | 2020-06-12 22:22:35 -0700 | [diff] [blame] | 120 | func (_m *MockTProtocol) ReadFieldEnd(ctx context.Context) error { |
| 121 | ret := _m.ctrl.Call(_m, "ReadFieldEnd", ctx) |
Jens Geyer | 731975a | 2014-05-02 00:24:24 +0200 | [diff] [blame] | 122 | ret0, _ := ret[0].(error) |
| 123 | return ret0 |
| 124 | } |
| 125 | |
Yuxuan 'fishy' Wang | e79f764 | 2020-06-12 22:22:35 -0700 | [diff] [blame] | 126 | func (_mr *_MockTProtocolRecorder) ReadFieldEnd(ctx context.Context) *gomock.Call { |
| 127 | return _mr.mock.ctrl.RecordCall(_mr.mock, "ReadFieldEnd", ctx) |
Jens Geyer | 731975a | 2014-05-02 00:24:24 +0200 | [diff] [blame] | 128 | } |
| 129 | |
Yuxuan 'fishy' Wang | e79f764 | 2020-06-12 22:22:35 -0700 | [diff] [blame] | 130 | func (_m *MockTProtocol) ReadI16(ctx context.Context) (int16, error) { |
| 131 | ret := _m.ctrl.Call(_m, "ReadI16", ctx) |
Jens Geyer | 731975a | 2014-05-02 00:24:24 +0200 | [diff] [blame] | 132 | ret0, _ := ret[0].(int16) |
| 133 | ret1, _ := ret[1].(error) |
| 134 | return ret0, ret1 |
| 135 | } |
| 136 | |
Yuxuan 'fishy' Wang | e79f764 | 2020-06-12 22:22:35 -0700 | [diff] [blame] | 137 | func (_mr *_MockTProtocolRecorder) ReadI16(ctx context.Context) *gomock.Call { |
| 138 | return _mr.mock.ctrl.RecordCall(_mr.mock, "ReadI16", ctx) |
Jens Geyer | 731975a | 2014-05-02 00:24:24 +0200 | [diff] [blame] | 139 | } |
| 140 | |
Yuxuan 'fishy' Wang | e79f764 | 2020-06-12 22:22:35 -0700 | [diff] [blame] | 141 | func (_m *MockTProtocol) ReadI32(ctx context.Context) (int32, error) { |
| 142 | ret := _m.ctrl.Call(_m, "ReadI32", ctx) |
Jens Geyer | 731975a | 2014-05-02 00:24:24 +0200 | [diff] [blame] | 143 | ret0, _ := ret[0].(int32) |
| 144 | ret1, _ := ret[1].(error) |
| 145 | return ret0, ret1 |
| 146 | } |
| 147 | |
Yuxuan 'fishy' Wang | e79f764 | 2020-06-12 22:22:35 -0700 | [diff] [blame] | 148 | func (_mr *_MockTProtocolRecorder) ReadI32(ctx context.Context) *gomock.Call { |
| 149 | return _mr.mock.ctrl.RecordCall(_mr.mock, "ReadI32", ctx) |
Jens Geyer | 731975a | 2014-05-02 00:24:24 +0200 | [diff] [blame] | 150 | } |
| 151 | |
Yuxuan 'fishy' Wang | e79f764 | 2020-06-12 22:22:35 -0700 | [diff] [blame] | 152 | func (_m *MockTProtocol) ReadI64(ctx context.Context) (int64, error) { |
| 153 | ret := _m.ctrl.Call(_m, "ReadI64", ctx) |
Jens Geyer | 731975a | 2014-05-02 00:24:24 +0200 | [diff] [blame] | 154 | ret0, _ := ret[0].(int64) |
| 155 | ret1, _ := ret[1].(error) |
| 156 | return ret0, ret1 |
| 157 | } |
| 158 | |
Yuxuan 'fishy' Wang | e79f764 | 2020-06-12 22:22:35 -0700 | [diff] [blame] | 159 | func (_mr *_MockTProtocolRecorder) ReadI64(ctx context.Context) *gomock.Call { |
| 160 | return _mr.mock.ctrl.RecordCall(_mr.mock, "ReadI64", ctx) |
Jens Geyer | 731975a | 2014-05-02 00:24:24 +0200 | [diff] [blame] | 161 | } |
| 162 | |
Yuxuan 'fishy' Wang | e79f764 | 2020-06-12 22:22:35 -0700 | [diff] [blame] | 163 | func (_m *MockTProtocol) ReadListBegin(ctx context.Context) (thrift.TType, int, error) { |
| 164 | ret := _m.ctrl.Call(_m, "ReadListBegin", ctx) |
Jens Geyer | 731975a | 2014-05-02 00:24:24 +0200 | [diff] [blame] | 165 | ret0, _ := ret[0].(thrift.TType) |
| 166 | ret1, _ := ret[1].(int) |
| 167 | ret2, _ := ret[2].(error) |
| 168 | return ret0, ret1, ret2 |
| 169 | } |
| 170 | |
Yuxuan 'fishy' Wang | e79f764 | 2020-06-12 22:22:35 -0700 | [diff] [blame] | 171 | func (_mr *_MockTProtocolRecorder) ReadListBegin(ctx context.Context) *gomock.Call { |
| 172 | return _mr.mock.ctrl.RecordCall(_mr.mock, "ReadListBegin", ctx) |
Jens Geyer | 731975a | 2014-05-02 00:24:24 +0200 | [diff] [blame] | 173 | } |
| 174 | |
Yuxuan 'fishy' Wang | e79f764 | 2020-06-12 22:22:35 -0700 | [diff] [blame] | 175 | func (_m *MockTProtocol) ReadListEnd(ctx context.Context) error { |
| 176 | ret := _m.ctrl.Call(_m, "ReadListEnd", ctx) |
Jens Geyer | 731975a | 2014-05-02 00:24:24 +0200 | [diff] [blame] | 177 | ret0, _ := ret[0].(error) |
| 178 | return ret0 |
| 179 | } |
| 180 | |
Yuxuan 'fishy' Wang | e79f764 | 2020-06-12 22:22:35 -0700 | [diff] [blame] | 181 | func (_mr *_MockTProtocolRecorder) ReadListEnd(ctx context.Context) *gomock.Call { |
| 182 | return _mr.mock.ctrl.RecordCall(_mr.mock, "ReadListEnd", ctx) |
Jens Geyer | 731975a | 2014-05-02 00:24:24 +0200 | [diff] [blame] | 183 | } |
| 184 | |
Yuxuan 'fishy' Wang | e79f764 | 2020-06-12 22:22:35 -0700 | [diff] [blame] | 185 | func (_m *MockTProtocol) ReadMapBegin(ctx context.Context) (thrift.TType, thrift.TType, int, error) { |
| 186 | ret := _m.ctrl.Call(_m, "ReadMapBegin", ctx) |
Jens Geyer | 731975a | 2014-05-02 00:24:24 +0200 | [diff] [blame] | 187 | ret0, _ := ret[0].(thrift.TType) |
| 188 | ret1, _ := ret[1].(thrift.TType) |
| 189 | ret2, _ := ret[2].(int) |
| 190 | ret3, _ := ret[3].(error) |
| 191 | return ret0, ret1, ret2, ret3 |
| 192 | } |
| 193 | |
Yuxuan 'fishy' Wang | e79f764 | 2020-06-12 22:22:35 -0700 | [diff] [blame] | 194 | func (_mr *_MockTProtocolRecorder) ReadMapBegin(ctx context.Context) *gomock.Call { |
| 195 | return _mr.mock.ctrl.RecordCall(_mr.mock, "ReadMapBegin", ctx) |
Jens Geyer | 731975a | 2014-05-02 00:24:24 +0200 | [diff] [blame] | 196 | } |
| 197 | |
Yuxuan 'fishy' Wang | e79f764 | 2020-06-12 22:22:35 -0700 | [diff] [blame] | 198 | func (_m *MockTProtocol) ReadMapEnd(ctx context.Context) error { |
| 199 | ret := _m.ctrl.Call(_m, "ReadMapEnd", ctx) |
Jens Geyer | 731975a | 2014-05-02 00:24:24 +0200 | [diff] [blame] | 200 | ret0, _ := ret[0].(error) |
| 201 | return ret0 |
| 202 | } |
| 203 | |
Yuxuan 'fishy' Wang | e79f764 | 2020-06-12 22:22:35 -0700 | [diff] [blame] | 204 | func (_mr *_MockTProtocolRecorder) ReadMapEnd(ctx context.Context) *gomock.Call { |
| 205 | return _mr.mock.ctrl.RecordCall(_mr.mock, "ReadMapEnd", ctx) |
Jens Geyer | 731975a | 2014-05-02 00:24:24 +0200 | [diff] [blame] | 206 | } |
| 207 | |
Yuxuan 'fishy' Wang | e79f764 | 2020-06-12 22:22:35 -0700 | [diff] [blame] | 208 | func (_m *MockTProtocol) ReadMessageBegin(ctx context.Context) (string, thrift.TMessageType, int32, error) { |
| 209 | ret := _m.ctrl.Call(_m, "ReadMessageBegin", ctx) |
Jens Geyer | 731975a | 2014-05-02 00:24:24 +0200 | [diff] [blame] | 210 | ret0, _ := ret[0].(string) |
| 211 | ret1, _ := ret[1].(thrift.TMessageType) |
| 212 | ret2, _ := ret[2].(int32) |
| 213 | ret3, _ := ret[3].(error) |
| 214 | return ret0, ret1, ret2, ret3 |
| 215 | } |
| 216 | |
Yuxuan 'fishy' Wang | e79f764 | 2020-06-12 22:22:35 -0700 | [diff] [blame] | 217 | func (_mr *_MockTProtocolRecorder) ReadMessageBegin(ctx context.Context) *gomock.Call { |
| 218 | return _mr.mock.ctrl.RecordCall(_mr.mock, "ReadMessageBegin", ctx) |
Jens Geyer | 731975a | 2014-05-02 00:24:24 +0200 | [diff] [blame] | 219 | } |
| 220 | |
Yuxuan 'fishy' Wang | e79f764 | 2020-06-12 22:22:35 -0700 | [diff] [blame] | 221 | func (_m *MockTProtocol) ReadMessageEnd(ctx context.Context) error { |
| 222 | ret := _m.ctrl.Call(_m, "ReadMessageEnd", ctx) |
Jens Geyer | 731975a | 2014-05-02 00:24:24 +0200 | [diff] [blame] | 223 | ret0, _ := ret[0].(error) |
| 224 | return ret0 |
| 225 | } |
| 226 | |
Yuxuan 'fishy' Wang | e79f764 | 2020-06-12 22:22:35 -0700 | [diff] [blame] | 227 | func (_mr *_MockTProtocolRecorder) ReadMessageEnd(ctx context.Context) *gomock.Call { |
| 228 | return _mr.mock.ctrl.RecordCall(_mr.mock, "ReadMessageEnd", ctx) |
Jens Geyer | 731975a | 2014-05-02 00:24:24 +0200 | [diff] [blame] | 229 | } |
| 230 | |
Yuxuan 'fishy' Wang | e79f764 | 2020-06-12 22:22:35 -0700 | [diff] [blame] | 231 | func (_m *MockTProtocol) ReadSetBegin(ctx context.Context) (thrift.TType, int, error) { |
| 232 | ret := _m.ctrl.Call(_m, "ReadSetBegin", ctx) |
Jens Geyer | 731975a | 2014-05-02 00:24:24 +0200 | [diff] [blame] | 233 | ret0, _ := ret[0].(thrift.TType) |
| 234 | ret1, _ := ret[1].(int) |
| 235 | ret2, _ := ret[2].(error) |
| 236 | return ret0, ret1, ret2 |
| 237 | } |
| 238 | |
Yuxuan 'fishy' Wang | e79f764 | 2020-06-12 22:22:35 -0700 | [diff] [blame] | 239 | func (_mr *_MockTProtocolRecorder) ReadSetBegin(ctx context.Context) *gomock.Call { |
| 240 | return _mr.mock.ctrl.RecordCall(_mr.mock, "ReadSetBegin", ctx) |
Jens Geyer | 731975a | 2014-05-02 00:24:24 +0200 | [diff] [blame] | 241 | } |
| 242 | |
Yuxuan 'fishy' Wang | e79f764 | 2020-06-12 22:22:35 -0700 | [diff] [blame] | 243 | func (_m *MockTProtocol) ReadSetEnd(ctx context.Context) error { |
| 244 | ret := _m.ctrl.Call(_m, "ReadSetEnd", ctx) |
Jens Geyer | 731975a | 2014-05-02 00:24:24 +0200 | [diff] [blame] | 245 | ret0, _ := ret[0].(error) |
| 246 | return ret0 |
| 247 | } |
| 248 | |
Yuxuan 'fishy' Wang | e79f764 | 2020-06-12 22:22:35 -0700 | [diff] [blame] | 249 | func (_mr *_MockTProtocolRecorder) ReadSetEnd(ctx context.Context) *gomock.Call { |
| 250 | return _mr.mock.ctrl.RecordCall(_mr.mock, "ReadSetEnd", ctx) |
Jens Geyer | 731975a | 2014-05-02 00:24:24 +0200 | [diff] [blame] | 251 | } |
| 252 | |
Yuxuan 'fishy' Wang | e79f764 | 2020-06-12 22:22:35 -0700 | [diff] [blame] | 253 | func (_m *MockTProtocol) ReadString(ctx context.Context) (string, error) { |
| 254 | ret := _m.ctrl.Call(_m, "ReadString", ctx) |
Jens Geyer | 731975a | 2014-05-02 00:24:24 +0200 | [diff] [blame] | 255 | ret0, _ := ret[0].(string) |
| 256 | ret1, _ := ret[1].(error) |
| 257 | return ret0, ret1 |
| 258 | } |
| 259 | |
Yuxuan 'fishy' Wang | e79f764 | 2020-06-12 22:22:35 -0700 | [diff] [blame] | 260 | func (_mr *_MockTProtocolRecorder) ReadString(ctx context.Context) *gomock.Call { |
| 261 | return _mr.mock.ctrl.RecordCall(_mr.mock, "ReadString", ctx) |
Jens Geyer | 731975a | 2014-05-02 00:24:24 +0200 | [diff] [blame] | 262 | } |
| 263 | |
Yuxuan 'fishy' Wang | e79f764 | 2020-06-12 22:22:35 -0700 | [diff] [blame] | 264 | func (_m *MockTProtocol) ReadStructBegin(ctx context.Context) (string, error) { |
| 265 | ret := _m.ctrl.Call(_m, "ReadStructBegin", ctx) |
Jens Geyer | 731975a | 2014-05-02 00:24:24 +0200 | [diff] [blame] | 266 | ret0, _ := ret[0].(string) |
| 267 | ret1, _ := ret[1].(error) |
| 268 | return ret0, ret1 |
| 269 | } |
| 270 | |
Yuxuan 'fishy' Wang | e79f764 | 2020-06-12 22:22:35 -0700 | [diff] [blame] | 271 | func (_mr *_MockTProtocolRecorder) ReadStructBegin(ctx context.Context) *gomock.Call { |
| 272 | return _mr.mock.ctrl.RecordCall(_mr.mock, "ReadStructBegin", ctx) |
Jens Geyer | 731975a | 2014-05-02 00:24:24 +0200 | [diff] [blame] | 273 | } |
| 274 | |
Yuxuan 'fishy' Wang | e79f764 | 2020-06-12 22:22:35 -0700 | [diff] [blame] | 275 | func (_m *MockTProtocol) ReadStructEnd(ctx context.Context) error { |
| 276 | ret := _m.ctrl.Call(_m, "ReadStructEnd", ctx) |
Jens Geyer | 731975a | 2014-05-02 00:24:24 +0200 | [diff] [blame] | 277 | ret0, _ := ret[0].(error) |
| 278 | return ret0 |
| 279 | } |
| 280 | |
Yuxuan 'fishy' Wang | e79f764 | 2020-06-12 22:22:35 -0700 | [diff] [blame] | 281 | func (_mr *_MockTProtocolRecorder) ReadStructEnd(ctx context.Context) *gomock.Call { |
| 282 | return _mr.mock.ctrl.RecordCall(_mr.mock, "ReadStructEnd", ctx) |
Jens Geyer | 731975a | 2014-05-02 00:24:24 +0200 | [diff] [blame] | 283 | } |
| 284 | |
Yuxuan 'fishy' Wang | e79f764 | 2020-06-12 22:22:35 -0700 | [diff] [blame] | 285 | func (_m *MockTProtocol) Skip(ctx context.Context, _param0 thrift.TType) error { |
| 286 | ret := _m.ctrl.Call(_m, "Skip", ctx, _param0) |
Jens Geyer | 731975a | 2014-05-02 00:24:24 +0200 | [diff] [blame] | 287 | ret0, _ := ret[0].(error) |
| 288 | return ret0 |
| 289 | } |
| 290 | |
Yuxuan 'fishy' Wang | e79f764 | 2020-06-12 22:22:35 -0700 | [diff] [blame] | 291 | func (_mr *_MockTProtocolRecorder) Skip(ctx context.Context, arg0 interface{}) *gomock.Call { |
| 292 | return _mr.mock.ctrl.RecordCall(_mr.mock, "Skip", ctx, arg0) |
Jens Geyer | 731975a | 2014-05-02 00:24:24 +0200 | [diff] [blame] | 293 | } |
| 294 | |
| 295 | func (_m *MockTProtocol) Transport() thrift.TTransport { |
| 296 | ret := _m.ctrl.Call(_m, "Transport") |
| 297 | ret0, _ := ret[0].(thrift.TTransport) |
| 298 | return ret0 |
| 299 | } |
| 300 | |
| 301 | func (_mr *_MockTProtocolRecorder) Transport() *gomock.Call { |
| 302 | return _mr.mock.ctrl.RecordCall(_mr.mock, "Transport") |
| 303 | } |
| 304 | |
Yuxuan 'fishy' Wang | e79f764 | 2020-06-12 22:22:35 -0700 | [diff] [blame] | 305 | func (_m *MockTProtocol) WriteBinary(ctx context.Context, _param0 []byte) error { |
| 306 | ret := _m.ctrl.Call(_m, "WriteBinary", ctx, _param0) |
Jens Geyer | 731975a | 2014-05-02 00:24:24 +0200 | [diff] [blame] | 307 | ret0, _ := ret[0].(error) |
| 308 | return ret0 |
| 309 | } |
| 310 | |
Yuxuan 'fishy' Wang | e79f764 | 2020-06-12 22:22:35 -0700 | [diff] [blame] | 311 | func (_mr *_MockTProtocolRecorder) WriteBinary(ctx context.Context, arg0 interface{}) *gomock.Call { |
| 312 | return _mr.mock.ctrl.RecordCall(_mr.mock, "WriteBinary", ctx, arg0) |
Jens Geyer | 731975a | 2014-05-02 00:24:24 +0200 | [diff] [blame] | 313 | } |
| 314 | |
Yuxuan 'fishy' Wang | e79f764 | 2020-06-12 22:22:35 -0700 | [diff] [blame] | 315 | func (_m *MockTProtocol) WriteBool(ctx context.Context, _param0 bool) error { |
| 316 | ret := _m.ctrl.Call(_m, "WriteBool", ctx, _param0) |
Jens Geyer | 731975a | 2014-05-02 00:24:24 +0200 | [diff] [blame] | 317 | ret0, _ := ret[0].(error) |
| 318 | return ret0 |
| 319 | } |
| 320 | |
Yuxuan 'fishy' Wang | e79f764 | 2020-06-12 22:22:35 -0700 | [diff] [blame] | 321 | func (_mr *_MockTProtocolRecorder) WriteBool(ctx context.Context, arg0 interface{}) *gomock.Call { |
| 322 | return _mr.mock.ctrl.RecordCall(_mr.mock, "WriteBool", ctx, arg0) |
Jens Geyer | 731975a | 2014-05-02 00:24:24 +0200 | [diff] [blame] | 323 | } |
| 324 | |
Yuxuan 'fishy' Wang | e79f764 | 2020-06-12 22:22:35 -0700 | [diff] [blame] | 325 | func (_m *MockTProtocol) WriteByte(ctx context.Context, _param0 int8) error { |
| 326 | ret := _m.ctrl.Call(_m, "WriteByte", ctx, _param0) |
Jens Geyer | 731975a | 2014-05-02 00:24:24 +0200 | [diff] [blame] | 327 | ret0, _ := ret[0].(error) |
| 328 | return ret0 |
| 329 | } |
| 330 | |
Yuxuan 'fishy' Wang | e79f764 | 2020-06-12 22:22:35 -0700 | [diff] [blame] | 331 | func (_mr *_MockTProtocolRecorder) WriteByte(ctx context.Context, arg0 interface{}) *gomock.Call { |
| 332 | return _mr.mock.ctrl.RecordCall(_mr.mock, "WriteByte", ctx, arg0) |
Jens Geyer | 731975a | 2014-05-02 00:24:24 +0200 | [diff] [blame] | 333 | } |
| 334 | |
Yuxuan 'fishy' Wang | e79f764 | 2020-06-12 22:22:35 -0700 | [diff] [blame] | 335 | func (_m *MockTProtocol) WriteDouble(ctx context.Context, _param0 float64) error { |
| 336 | ret := _m.ctrl.Call(_m, "WriteDouble", ctx, _param0) |
Jens Geyer | 731975a | 2014-05-02 00:24:24 +0200 | [diff] [blame] | 337 | ret0, _ := ret[0].(error) |
| 338 | return ret0 |
| 339 | } |
| 340 | |
Yuxuan 'fishy' Wang | e79f764 | 2020-06-12 22:22:35 -0700 | [diff] [blame] | 341 | func (_mr *_MockTProtocolRecorder) WriteDouble(ctx context.Context, arg0 interface{}) *gomock.Call { |
| 342 | return _mr.mock.ctrl.RecordCall(_mr.mock, "WriteDouble", ctx, arg0) |
Jens Geyer | 731975a | 2014-05-02 00:24:24 +0200 | [diff] [blame] | 343 | } |
| 344 | |
Yuxuan 'fishy' Wang | e79f764 | 2020-06-12 22:22:35 -0700 | [diff] [blame] | 345 | func (_m *MockTProtocol) WriteFieldBegin(ctx context.Context, _param0 string, _param1 thrift.TType, _param2 int16) error { |
| 346 | ret := _m.ctrl.Call(_m, "WriteFieldBegin", ctx, _param0, _param1, _param2) |
Jens Geyer | 731975a | 2014-05-02 00:24:24 +0200 | [diff] [blame] | 347 | ret0, _ := ret[0].(error) |
| 348 | return ret0 |
| 349 | } |
| 350 | |
Yuxuan 'fishy' Wang | e79f764 | 2020-06-12 22:22:35 -0700 | [diff] [blame] | 351 | func (_mr *_MockTProtocolRecorder) WriteFieldBegin(ctx context.Context, arg0, arg1, arg2 interface{}) *gomock.Call { |
| 352 | return _mr.mock.ctrl.RecordCall(_mr.mock, "WriteFieldBegin", ctx, arg0, arg1, arg2) |
Jens Geyer | 731975a | 2014-05-02 00:24:24 +0200 | [diff] [blame] | 353 | } |
| 354 | |
Yuxuan 'fishy' Wang | e79f764 | 2020-06-12 22:22:35 -0700 | [diff] [blame] | 355 | func (_m *MockTProtocol) WriteFieldEnd(ctx context.Context) error { |
| 356 | ret := _m.ctrl.Call(_m, "WriteFieldEnd", ctx) |
Jens Geyer | 731975a | 2014-05-02 00:24:24 +0200 | [diff] [blame] | 357 | ret0, _ := ret[0].(error) |
| 358 | return ret0 |
| 359 | } |
| 360 | |
Yuxuan 'fishy' Wang | e79f764 | 2020-06-12 22:22:35 -0700 | [diff] [blame] | 361 | func (_mr *_MockTProtocolRecorder) WriteFieldEnd(ctx context.Context) *gomock.Call { |
| 362 | return _mr.mock.ctrl.RecordCall(_mr.mock, "WriteFieldEnd", ctx) |
Jens Geyer | 731975a | 2014-05-02 00:24:24 +0200 | [diff] [blame] | 363 | } |
| 364 | |
Yuxuan 'fishy' Wang | e79f764 | 2020-06-12 22:22:35 -0700 | [diff] [blame] | 365 | func (_m *MockTProtocol) WriteFieldStop(ctx context.Context) error { |
| 366 | ret := _m.ctrl.Call(_m, "WriteFieldStop", ctx) |
Jens Geyer | 731975a | 2014-05-02 00:24:24 +0200 | [diff] [blame] | 367 | ret0, _ := ret[0].(error) |
| 368 | return ret0 |
| 369 | } |
| 370 | |
Yuxuan 'fishy' Wang | e79f764 | 2020-06-12 22:22:35 -0700 | [diff] [blame] | 371 | func (_mr *_MockTProtocolRecorder) WriteFieldStop(ctx context.Context) *gomock.Call { |
| 372 | return _mr.mock.ctrl.RecordCall(_mr.mock, "WriteFieldStop", ctx) |
Jens Geyer | 731975a | 2014-05-02 00:24:24 +0200 | [diff] [blame] | 373 | } |
| 374 | |
Yuxuan 'fishy' Wang | e79f764 | 2020-06-12 22:22:35 -0700 | [diff] [blame] | 375 | func (_m *MockTProtocol) WriteI16(ctx context.Context, _param0 int16) error { |
| 376 | ret := _m.ctrl.Call(_m, "WriteI16", ctx, _param0) |
Jens Geyer | 731975a | 2014-05-02 00:24:24 +0200 | [diff] [blame] | 377 | ret0, _ := ret[0].(error) |
| 378 | return ret0 |
| 379 | } |
| 380 | |
Yuxuan 'fishy' Wang | e79f764 | 2020-06-12 22:22:35 -0700 | [diff] [blame] | 381 | func (_mr *_MockTProtocolRecorder) WriteI16(ctx context.Context, arg0 interface{}) *gomock.Call { |
| 382 | return _mr.mock.ctrl.RecordCall(_mr.mock, "WriteI16", ctx, arg0) |
Jens Geyer | 731975a | 2014-05-02 00:24:24 +0200 | [diff] [blame] | 383 | } |
| 384 | |
Yuxuan 'fishy' Wang | e79f764 | 2020-06-12 22:22:35 -0700 | [diff] [blame] | 385 | func (_m *MockTProtocol) WriteI32(ctx context.Context, _param0 int32) error { |
| 386 | ret := _m.ctrl.Call(_m, "WriteI32", ctx, _param0) |
Jens Geyer | 731975a | 2014-05-02 00:24:24 +0200 | [diff] [blame] | 387 | ret0, _ := ret[0].(error) |
| 388 | return ret0 |
| 389 | } |
| 390 | |
Yuxuan 'fishy' Wang | e79f764 | 2020-06-12 22:22:35 -0700 | [diff] [blame] | 391 | func (_mr *_MockTProtocolRecorder) WriteI32(ctx context.Context, arg0 interface{}) *gomock.Call { |
| 392 | return _mr.mock.ctrl.RecordCall(_mr.mock, "WriteI32", ctx, arg0) |
Jens Geyer | 731975a | 2014-05-02 00:24:24 +0200 | [diff] [blame] | 393 | } |
| 394 | |
Yuxuan 'fishy' Wang | e79f764 | 2020-06-12 22:22:35 -0700 | [diff] [blame] | 395 | func (_m *MockTProtocol) WriteI64(ctx context.Context, _param0 int64) error { |
| 396 | ret := _m.ctrl.Call(_m, "WriteI64", ctx, _param0) |
Jens Geyer | 731975a | 2014-05-02 00:24:24 +0200 | [diff] [blame] | 397 | ret0, _ := ret[0].(error) |
| 398 | return ret0 |
| 399 | } |
| 400 | |
Yuxuan 'fishy' Wang | e79f764 | 2020-06-12 22:22:35 -0700 | [diff] [blame] | 401 | func (_mr *_MockTProtocolRecorder) WriteI64(ctx context.Context, arg0 interface{}) *gomock.Call { |
| 402 | return _mr.mock.ctrl.RecordCall(_mr.mock, "WriteI64", ctx, arg0) |
Jens Geyer | 731975a | 2014-05-02 00:24:24 +0200 | [diff] [blame] | 403 | } |
| 404 | |
Yuxuan 'fishy' Wang | e79f764 | 2020-06-12 22:22:35 -0700 | [diff] [blame] | 405 | func (_m *MockTProtocol) WriteListBegin(ctx context.Context, _param0 thrift.TType, _param1 int) error { |
| 406 | ret := _m.ctrl.Call(_m, "WriteListBegin", ctx, _param0, _param1) |
Jens Geyer | 731975a | 2014-05-02 00:24:24 +0200 | [diff] [blame] | 407 | ret0, _ := ret[0].(error) |
| 408 | return ret0 |
| 409 | } |
| 410 | |
Yuxuan 'fishy' Wang | e79f764 | 2020-06-12 22:22:35 -0700 | [diff] [blame] | 411 | func (_mr *_MockTProtocolRecorder) WriteListBegin(ctx context.Context, arg0, arg1 interface{}) *gomock.Call { |
| 412 | return _mr.mock.ctrl.RecordCall(_mr.mock, "WriteListBegin", ctx, arg0, arg1) |
Jens Geyer | 731975a | 2014-05-02 00:24:24 +0200 | [diff] [blame] | 413 | } |
| 414 | |
Yuxuan 'fishy' Wang | e79f764 | 2020-06-12 22:22:35 -0700 | [diff] [blame] | 415 | func (_m *MockTProtocol) WriteListEnd(ctx context.Context) error { |
| 416 | ret := _m.ctrl.Call(_m, "WriteListEnd", ctx) |
Jens Geyer | 731975a | 2014-05-02 00:24:24 +0200 | [diff] [blame] | 417 | ret0, _ := ret[0].(error) |
| 418 | return ret0 |
| 419 | } |
| 420 | |
Yuxuan 'fishy' Wang | e79f764 | 2020-06-12 22:22:35 -0700 | [diff] [blame] | 421 | func (_mr *_MockTProtocolRecorder) WriteListEnd(ctx context.Context) *gomock.Call { |
| 422 | return _mr.mock.ctrl.RecordCall(_mr.mock, "WriteListEnd", ctx) |
Jens Geyer | 731975a | 2014-05-02 00:24:24 +0200 | [diff] [blame] | 423 | } |
| 424 | |
Yuxuan 'fishy' Wang | e79f764 | 2020-06-12 22:22:35 -0700 | [diff] [blame] | 425 | func (_m *MockTProtocol) WriteMapBegin(ctx context.Context, _param0 thrift.TType, _param1 thrift.TType, _param2 int) error { |
| 426 | ret := _m.ctrl.Call(_m, "WriteMapBegin", ctx, _param0, _param1, _param2) |
Jens Geyer | 731975a | 2014-05-02 00:24:24 +0200 | [diff] [blame] | 427 | ret0, _ := ret[0].(error) |
| 428 | return ret0 |
| 429 | } |
| 430 | |
Yuxuan 'fishy' Wang | e79f764 | 2020-06-12 22:22:35 -0700 | [diff] [blame] | 431 | func (_mr *_MockTProtocolRecorder) WriteMapBegin(ctx context.Context, arg0, arg1, arg2 interface{}) *gomock.Call { |
| 432 | return _mr.mock.ctrl.RecordCall(_mr.mock, "WriteMapBegin", ctx, arg0, arg1, arg2) |
Jens Geyer | 731975a | 2014-05-02 00:24:24 +0200 | [diff] [blame] | 433 | } |
| 434 | |
Yuxuan 'fishy' Wang | e79f764 | 2020-06-12 22:22:35 -0700 | [diff] [blame] | 435 | func (_m *MockTProtocol) WriteMapEnd(ctx context.Context) error { |
| 436 | ret := _m.ctrl.Call(_m, "WriteMapEnd", ctx) |
Jens Geyer | 731975a | 2014-05-02 00:24:24 +0200 | [diff] [blame] | 437 | ret0, _ := ret[0].(error) |
| 438 | return ret0 |
| 439 | } |
| 440 | |
Yuxuan 'fishy' Wang | e79f764 | 2020-06-12 22:22:35 -0700 | [diff] [blame] | 441 | func (_mr *_MockTProtocolRecorder) WriteMapEnd(ctx context.Context) *gomock.Call { |
| 442 | return _mr.mock.ctrl.RecordCall(_mr.mock, "WriteMapEnd", ctx) |
Jens Geyer | 731975a | 2014-05-02 00:24:24 +0200 | [diff] [blame] | 443 | } |
| 444 | |
Yuxuan 'fishy' Wang | e79f764 | 2020-06-12 22:22:35 -0700 | [diff] [blame] | 445 | func (_m *MockTProtocol) WriteMessageBegin(ctx context.Context, _param0 string, _param1 thrift.TMessageType, _param2 int32) error { |
| 446 | ret := _m.ctrl.Call(_m, "WriteMessageBegin", ctx, _param0, _param1, _param2) |
Jens Geyer | 731975a | 2014-05-02 00:24:24 +0200 | [diff] [blame] | 447 | ret0, _ := ret[0].(error) |
| 448 | return ret0 |
| 449 | } |
| 450 | |
Yuxuan 'fishy' Wang | e79f764 | 2020-06-12 22:22:35 -0700 | [diff] [blame] | 451 | func (_mr *_MockTProtocolRecorder) WriteMessageBegin(ctx context.Context, arg0, arg1, arg2 interface{}) *gomock.Call { |
| 452 | return _mr.mock.ctrl.RecordCall(_mr.mock, "WriteMessageBegin", ctx, arg0, arg1, arg2) |
Jens Geyer | 731975a | 2014-05-02 00:24:24 +0200 | [diff] [blame] | 453 | } |
| 454 | |
Yuxuan 'fishy' Wang | e79f764 | 2020-06-12 22:22:35 -0700 | [diff] [blame] | 455 | func (_m *MockTProtocol) WriteMessageEnd(ctx context.Context) error { |
| 456 | ret := _m.ctrl.Call(_m, "WriteMessageEnd", ctx) |
Jens Geyer | 731975a | 2014-05-02 00:24:24 +0200 | [diff] [blame] | 457 | ret0, _ := ret[0].(error) |
| 458 | return ret0 |
| 459 | } |
| 460 | |
Yuxuan 'fishy' Wang | e79f764 | 2020-06-12 22:22:35 -0700 | [diff] [blame] | 461 | func (_mr *_MockTProtocolRecorder) WriteMessageEnd(ctx context.Context) *gomock.Call { |
| 462 | return _mr.mock.ctrl.RecordCall(_mr.mock, "WriteMessageEnd", ctx) |
Jens Geyer | 731975a | 2014-05-02 00:24:24 +0200 | [diff] [blame] | 463 | } |
| 464 | |
Yuxuan 'fishy' Wang | e79f764 | 2020-06-12 22:22:35 -0700 | [diff] [blame] | 465 | func (_m *MockTProtocol) WriteSetBegin(ctx context.Context, _param0 thrift.TType, _param1 int) error { |
| 466 | ret := _m.ctrl.Call(_m, "WriteSetBegin", ctx, _param0, _param1) |
Jens Geyer | 731975a | 2014-05-02 00:24:24 +0200 | [diff] [blame] | 467 | ret0, _ := ret[0].(error) |
| 468 | return ret0 |
| 469 | } |
| 470 | |
Yuxuan 'fishy' Wang | e79f764 | 2020-06-12 22:22:35 -0700 | [diff] [blame] | 471 | func (_mr *_MockTProtocolRecorder) WriteSetBegin(ctx context.Context, arg0, arg1 interface{}) *gomock.Call { |
| 472 | return _mr.mock.ctrl.RecordCall(_mr.mock, "WriteSetBegin", ctx, arg0, arg1) |
Jens Geyer | 731975a | 2014-05-02 00:24:24 +0200 | [diff] [blame] | 473 | } |
| 474 | |
Yuxuan 'fishy' Wang | e79f764 | 2020-06-12 22:22:35 -0700 | [diff] [blame] | 475 | func (_m *MockTProtocol) WriteSetEnd(ctx context.Context) error { |
| 476 | ret := _m.ctrl.Call(_m, "WriteSetEnd", ctx) |
Jens Geyer | 731975a | 2014-05-02 00:24:24 +0200 | [diff] [blame] | 477 | ret0, _ := ret[0].(error) |
| 478 | return ret0 |
| 479 | } |
| 480 | |
Yuxuan 'fishy' Wang | e79f764 | 2020-06-12 22:22:35 -0700 | [diff] [blame] | 481 | func (_mr *_MockTProtocolRecorder) WriteSetEnd(ctx context.Context) *gomock.Call { |
| 482 | return _mr.mock.ctrl.RecordCall(_mr.mock, "WriteSetEnd", ctx) |
Jens Geyer | 731975a | 2014-05-02 00:24:24 +0200 | [diff] [blame] | 483 | } |
| 484 | |
Yuxuan 'fishy' Wang | e79f764 | 2020-06-12 22:22:35 -0700 | [diff] [blame] | 485 | func (_m *MockTProtocol) WriteString(ctx context.Context, _param0 string) error { |
| 486 | ret := _m.ctrl.Call(_m, "WriteString", ctx, _param0) |
Jens Geyer | 731975a | 2014-05-02 00:24:24 +0200 | [diff] [blame] | 487 | ret0, _ := ret[0].(error) |
| 488 | return ret0 |
| 489 | } |
| 490 | |
Yuxuan 'fishy' Wang | e79f764 | 2020-06-12 22:22:35 -0700 | [diff] [blame] | 491 | func (_mr *_MockTProtocolRecorder) WriteString(ctx context.Context, arg0 interface{}) *gomock.Call { |
| 492 | return _mr.mock.ctrl.RecordCall(_mr.mock, "WriteString", ctx, arg0) |
Jens Geyer | 731975a | 2014-05-02 00:24:24 +0200 | [diff] [blame] | 493 | } |
| 494 | |
Yuxuan 'fishy' Wang | e79f764 | 2020-06-12 22:22:35 -0700 | [diff] [blame] | 495 | func (_m *MockTProtocol) WriteStructBegin(ctx context.Context, _param0 string) error { |
| 496 | ret := _m.ctrl.Call(_m, "WriteStructBegin", ctx, _param0) |
Jens Geyer | 731975a | 2014-05-02 00:24:24 +0200 | [diff] [blame] | 497 | ret0, _ := ret[0].(error) |
| 498 | return ret0 |
| 499 | } |
| 500 | |
Yuxuan 'fishy' Wang | e79f764 | 2020-06-12 22:22:35 -0700 | [diff] [blame] | 501 | func (_mr *_MockTProtocolRecorder) WriteStructBegin(ctx context.Context, arg0 interface{}) *gomock.Call { |
| 502 | return _mr.mock.ctrl.RecordCall(_mr.mock, "WriteStructBegin", ctx, arg0) |
Jens Geyer | 731975a | 2014-05-02 00:24:24 +0200 | [diff] [blame] | 503 | } |
| 504 | |
Yuxuan 'fishy' Wang | e79f764 | 2020-06-12 22:22:35 -0700 | [diff] [blame] | 505 | func (_m *MockTProtocol) WriteStructEnd(ctx context.Context) error { |
| 506 | ret := _m.ctrl.Call(_m, "WriteStructEnd", ctx) |
Jens Geyer | 731975a | 2014-05-02 00:24:24 +0200 | [diff] [blame] | 507 | ret0, _ := ret[0].(error) |
| 508 | return ret0 |
| 509 | } |
| 510 | |
Yuxuan 'fishy' Wang | e79f764 | 2020-06-12 22:22:35 -0700 | [diff] [blame] | 511 | func (_mr *_MockTProtocolRecorder) WriteStructEnd(ctx context.Context) *gomock.Call { |
| 512 | return _mr.mock.ctrl.RecordCall(_mr.mock, "WriteStructEnd", ctx) |
Jens Geyer | 731975a | 2014-05-02 00:24:24 +0200 | [diff] [blame] | 513 | } |