go.chromium.org/luci@v0.0.0-20240309015107-7cdc2e660f33/config_service/proto/config_service.mock.pb.go (about) 1 // Code generated by MockGen. DO NOT EDIT. 2 // Source: config_service_grpc.pb.go 3 4 package configpb 5 6 import ( 7 context "context" 8 reflect "reflect" 9 10 gomock "github.com/golang/mock/gomock" 11 config "go.chromium.org/luci/common/proto/config" 12 grpc "google.golang.org/grpc" 13 ) 14 15 // MockConfigsClient is a mock of ConfigsClient interface. 16 type MockConfigsClient struct { 17 ctrl *gomock.Controller 18 recorder *MockConfigsClientMockRecorder 19 } 20 21 // MockConfigsClientMockRecorder is the mock recorder for MockConfigsClient. 22 type MockConfigsClientMockRecorder struct { 23 mock *MockConfigsClient 24 } 25 26 // NewMockConfigsClient creates a new mock instance. 27 func NewMockConfigsClient(ctrl *gomock.Controller) *MockConfigsClient { 28 mock := &MockConfigsClient{ctrl: ctrl} 29 mock.recorder = &MockConfigsClientMockRecorder{mock} 30 return mock 31 } 32 33 // EXPECT returns an object that allows the caller to indicate expected use. 34 func (m *MockConfigsClient) EXPECT() *MockConfigsClientMockRecorder { 35 return m.recorder 36 } 37 38 // GetConfig mocks base method. 39 func (m *MockConfigsClient) GetConfig(ctx context.Context, in *GetConfigRequest, opts ...grpc.CallOption) (*Config, error) { 40 m.ctrl.T.Helper() 41 varargs := []interface{}{ctx, in} 42 for _, a := range opts { 43 varargs = append(varargs, a) 44 } 45 ret := m.ctrl.Call(m, "GetConfig", varargs...) 46 ret0, _ := ret[0].(*Config) 47 ret1, _ := ret[1].(error) 48 return ret0, ret1 49 } 50 51 // GetConfig indicates an expected call of GetConfig. 52 func (mr *MockConfigsClientMockRecorder) GetConfig(ctx, in interface{}, opts ...interface{}) *gomock.Call { 53 mr.mock.ctrl.T.Helper() 54 varargs := append([]interface{}{ctx, in}, opts...) 55 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetConfig", reflect.TypeOf((*MockConfigsClient)(nil).GetConfig), varargs...) 56 } 57 58 // GetConfigSet mocks base method. 59 func (m *MockConfigsClient) GetConfigSet(ctx context.Context, in *GetConfigSetRequest, opts ...grpc.CallOption) (*ConfigSet, error) { 60 m.ctrl.T.Helper() 61 varargs := []interface{}{ctx, in} 62 for _, a := range opts { 63 varargs = append(varargs, a) 64 } 65 ret := m.ctrl.Call(m, "GetConfigSet", varargs...) 66 ret0, _ := ret[0].(*ConfigSet) 67 ret1, _ := ret[1].(error) 68 return ret0, ret1 69 } 70 71 // GetConfigSet indicates an expected call of GetConfigSet. 72 func (mr *MockConfigsClientMockRecorder) GetConfigSet(ctx, in interface{}, opts ...interface{}) *gomock.Call { 73 mr.mock.ctrl.T.Helper() 74 varargs := append([]interface{}{ctx, in}, opts...) 75 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetConfigSet", reflect.TypeOf((*MockConfigsClient)(nil).GetConfigSet), varargs...) 76 } 77 78 // GetProjectConfigs mocks base method. 79 func (m *MockConfigsClient) GetProjectConfigs(ctx context.Context, in *GetProjectConfigsRequest, opts ...grpc.CallOption) (*GetProjectConfigsResponse, error) { 80 m.ctrl.T.Helper() 81 varargs := []interface{}{ctx, in} 82 for _, a := range opts { 83 varargs = append(varargs, a) 84 } 85 ret := m.ctrl.Call(m, "GetProjectConfigs", varargs...) 86 ret0, _ := ret[0].(*GetProjectConfigsResponse) 87 ret1, _ := ret[1].(error) 88 return ret0, ret1 89 } 90 91 // GetProjectConfigs indicates an expected call of GetProjectConfigs. 92 func (mr *MockConfigsClientMockRecorder) GetProjectConfigs(ctx, in interface{}, opts ...interface{}) *gomock.Call { 93 mr.mock.ctrl.T.Helper() 94 varargs := append([]interface{}{ctx, in}, opts...) 95 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetProjectConfigs", reflect.TypeOf((*MockConfigsClient)(nil).GetProjectConfigs), varargs...) 96 } 97 98 // ListConfigSets mocks base method. 99 func (m *MockConfigsClient) ListConfigSets(ctx context.Context, in *ListConfigSetsRequest, opts ...grpc.CallOption) (*ListConfigSetsResponse, error) { 100 m.ctrl.T.Helper() 101 varargs := []interface{}{ctx, in} 102 for _, a := range opts { 103 varargs = append(varargs, a) 104 } 105 ret := m.ctrl.Call(m, "ListConfigSets", varargs...) 106 ret0, _ := ret[0].(*ListConfigSetsResponse) 107 ret1, _ := ret[1].(error) 108 return ret0, ret1 109 } 110 111 // ListConfigSets indicates an expected call of ListConfigSets. 112 func (mr *MockConfigsClientMockRecorder) ListConfigSets(ctx, in interface{}, opts ...interface{}) *gomock.Call { 113 mr.mock.ctrl.T.Helper() 114 varargs := append([]interface{}{ctx, in}, opts...) 115 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListConfigSets", reflect.TypeOf((*MockConfigsClient)(nil).ListConfigSets), varargs...) 116 } 117 118 // ValidateConfigs mocks base method. 119 func (m *MockConfigsClient) ValidateConfigs(ctx context.Context, in *ValidateConfigsRequest, opts ...grpc.CallOption) (*config.ValidationResult, error) { 120 m.ctrl.T.Helper() 121 varargs := []interface{}{ctx, in} 122 for _, a := range opts { 123 varargs = append(varargs, a) 124 } 125 ret := m.ctrl.Call(m, "ValidateConfigs", varargs...) 126 ret0, _ := ret[0].(*config.ValidationResult) 127 ret1, _ := ret[1].(error) 128 return ret0, ret1 129 } 130 131 // ValidateConfigs indicates an expected call of ValidateConfigs. 132 func (mr *MockConfigsClientMockRecorder) ValidateConfigs(ctx, in interface{}, opts ...interface{}) *gomock.Call { 133 mr.mock.ctrl.T.Helper() 134 varargs := append([]interface{}{ctx, in}, opts...) 135 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ValidateConfigs", reflect.TypeOf((*MockConfigsClient)(nil).ValidateConfigs), varargs...) 136 } 137 138 // MockConfigsServer is a mock of ConfigsServer interface. 139 type MockConfigsServer struct { 140 ctrl *gomock.Controller 141 recorder *MockConfigsServerMockRecorder 142 } 143 144 // MockConfigsServerMockRecorder is the mock recorder for MockConfigsServer. 145 type MockConfigsServerMockRecorder struct { 146 mock *MockConfigsServer 147 } 148 149 // NewMockConfigsServer creates a new mock instance. 150 func NewMockConfigsServer(ctrl *gomock.Controller) *MockConfigsServer { 151 mock := &MockConfigsServer{ctrl: ctrl} 152 mock.recorder = &MockConfigsServerMockRecorder{mock} 153 return mock 154 } 155 156 // EXPECT returns an object that allows the caller to indicate expected use. 157 func (m *MockConfigsServer) EXPECT() *MockConfigsServerMockRecorder { 158 return m.recorder 159 } 160 161 // GetConfig mocks base method. 162 func (m *MockConfigsServer) GetConfig(arg0 context.Context, arg1 *GetConfigRequest) (*Config, error) { 163 m.ctrl.T.Helper() 164 ret := m.ctrl.Call(m, "GetConfig", arg0, arg1) 165 ret0, _ := ret[0].(*Config) 166 ret1, _ := ret[1].(error) 167 return ret0, ret1 168 } 169 170 // GetConfig indicates an expected call of GetConfig. 171 func (mr *MockConfigsServerMockRecorder) GetConfig(arg0, arg1 interface{}) *gomock.Call { 172 mr.mock.ctrl.T.Helper() 173 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetConfig", reflect.TypeOf((*MockConfigsServer)(nil).GetConfig), arg0, arg1) 174 } 175 176 // GetConfigSet mocks base method. 177 func (m *MockConfigsServer) GetConfigSet(arg0 context.Context, arg1 *GetConfigSetRequest) (*ConfigSet, error) { 178 m.ctrl.T.Helper() 179 ret := m.ctrl.Call(m, "GetConfigSet", arg0, arg1) 180 ret0, _ := ret[0].(*ConfigSet) 181 ret1, _ := ret[1].(error) 182 return ret0, ret1 183 } 184 185 // GetConfigSet indicates an expected call of GetConfigSet. 186 func (mr *MockConfigsServerMockRecorder) GetConfigSet(arg0, arg1 interface{}) *gomock.Call { 187 mr.mock.ctrl.T.Helper() 188 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetConfigSet", reflect.TypeOf((*MockConfigsServer)(nil).GetConfigSet), arg0, arg1) 189 } 190 191 // GetProjectConfigs mocks base method. 192 func (m *MockConfigsServer) GetProjectConfigs(arg0 context.Context, arg1 *GetProjectConfigsRequest) (*GetProjectConfigsResponse, error) { 193 m.ctrl.T.Helper() 194 ret := m.ctrl.Call(m, "GetProjectConfigs", arg0, arg1) 195 ret0, _ := ret[0].(*GetProjectConfigsResponse) 196 ret1, _ := ret[1].(error) 197 return ret0, ret1 198 } 199 200 // GetProjectConfigs indicates an expected call of GetProjectConfigs. 201 func (mr *MockConfigsServerMockRecorder) GetProjectConfigs(arg0, arg1 interface{}) *gomock.Call { 202 mr.mock.ctrl.T.Helper() 203 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetProjectConfigs", reflect.TypeOf((*MockConfigsServer)(nil).GetProjectConfigs), arg0, arg1) 204 } 205 206 // ListConfigSets mocks base method. 207 func (m *MockConfigsServer) ListConfigSets(arg0 context.Context, arg1 *ListConfigSetsRequest) (*ListConfigSetsResponse, error) { 208 m.ctrl.T.Helper() 209 ret := m.ctrl.Call(m, "ListConfigSets", arg0, arg1) 210 ret0, _ := ret[0].(*ListConfigSetsResponse) 211 ret1, _ := ret[1].(error) 212 return ret0, ret1 213 } 214 215 // ListConfigSets indicates an expected call of ListConfigSets. 216 func (mr *MockConfigsServerMockRecorder) ListConfigSets(arg0, arg1 interface{}) *gomock.Call { 217 mr.mock.ctrl.T.Helper() 218 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListConfigSets", reflect.TypeOf((*MockConfigsServer)(nil).ListConfigSets), arg0, arg1) 219 } 220 221 // ValidateConfigs mocks base method. 222 func (m *MockConfigsServer) ValidateConfigs(arg0 context.Context, arg1 *ValidateConfigsRequest) (*config.ValidationResult, error) { 223 m.ctrl.T.Helper() 224 ret := m.ctrl.Call(m, "ValidateConfigs", arg0, arg1) 225 ret0, _ := ret[0].(*config.ValidationResult) 226 ret1, _ := ret[1].(error) 227 return ret0, ret1 228 } 229 230 // ValidateConfigs indicates an expected call of ValidateConfigs. 231 func (mr *MockConfigsServerMockRecorder) ValidateConfigs(arg0, arg1 interface{}) *gomock.Call { 232 mr.mock.ctrl.T.Helper() 233 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ValidateConfigs", reflect.TypeOf((*MockConfigsServer)(nil).ValidateConfigs), arg0, arg1) 234 } 235 236 // mustEmbedUnimplementedConfigsServer mocks base method. 237 func (m *MockConfigsServer) mustEmbedUnimplementedConfigsServer() { 238 m.ctrl.T.Helper() 239 m.ctrl.Call(m, "mustEmbedUnimplementedConfigsServer") 240 } 241 242 // mustEmbedUnimplementedConfigsServer indicates an expected call of mustEmbedUnimplementedConfigsServer. 243 func (mr *MockConfigsServerMockRecorder) mustEmbedUnimplementedConfigsServer() *gomock.Call { 244 mr.mock.ctrl.T.Helper() 245 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "mustEmbedUnimplementedConfigsServer", reflect.TypeOf((*MockConfigsServer)(nil).mustEmbedUnimplementedConfigsServer)) 246 } 247 248 // MockUnsafeConfigsServer is a mock of UnsafeConfigsServer interface. 249 type MockUnsafeConfigsServer struct { 250 ctrl *gomock.Controller 251 recorder *MockUnsafeConfigsServerMockRecorder 252 } 253 254 // MockUnsafeConfigsServerMockRecorder is the mock recorder for MockUnsafeConfigsServer. 255 type MockUnsafeConfigsServerMockRecorder struct { 256 mock *MockUnsafeConfigsServer 257 } 258 259 // NewMockUnsafeConfigsServer creates a new mock instance. 260 func NewMockUnsafeConfigsServer(ctrl *gomock.Controller) *MockUnsafeConfigsServer { 261 mock := &MockUnsafeConfigsServer{ctrl: ctrl} 262 mock.recorder = &MockUnsafeConfigsServerMockRecorder{mock} 263 return mock 264 } 265 266 // EXPECT returns an object that allows the caller to indicate expected use. 267 func (m *MockUnsafeConfigsServer) EXPECT() *MockUnsafeConfigsServerMockRecorder { 268 return m.recorder 269 } 270 271 // mustEmbedUnimplementedConfigsServer mocks base method. 272 func (m *MockUnsafeConfigsServer) mustEmbedUnimplementedConfigsServer() { 273 m.ctrl.T.Helper() 274 m.ctrl.Call(m, "mustEmbedUnimplementedConfigsServer") 275 } 276 277 // mustEmbedUnimplementedConfigsServer indicates an expected call of mustEmbedUnimplementedConfigsServer. 278 func (mr *MockUnsafeConfigsServerMockRecorder) mustEmbedUnimplementedConfigsServer() *gomock.Call { 279 mr.mock.ctrl.T.Helper() 280 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "mustEmbedUnimplementedConfigsServer", reflect.TypeOf((*MockUnsafeConfigsServer)(nil).mustEmbedUnimplementedConfigsServer)) 281 }