github.com/emcfarlane/larking@v0.0.0-20220605172417-1704b45ee6c3/apipb/controlpb/control.pb.go (about) 1 // Copyright 2022 Edward McFarlane. All rights reserved. 2 // Use of this source code is governed by a BSD-style 3 // license that can be found in the LICENSE file. 4 5 // Code generated by protoc-gen-go. DO NOT EDIT. 6 // versions: 7 // protoc-gen-go v1.26.0 8 // protoc v3.19.3 9 // source: apipb/controlpb/control.proto 10 11 package controlpb 12 13 import ( 14 _ "google.golang.org/genproto/googleapis/api/annotations" 15 status "google.golang.org/genproto/googleapis/rpc/status" 16 protoreflect "google.golang.org/protobuf/reflect/protoreflect" 17 protoimpl "google.golang.org/protobuf/runtime/protoimpl" 18 reflect "reflect" 19 sync "sync" 20 ) 21 22 const ( 23 // Verify that this generated code is sufficiently up-to-date. 24 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) 25 // Verify that runtime/protoimpl is sufficiently up-to-date. 26 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) 27 ) 28 29 type Credentials struct { 30 state protoimpl.MessageState 31 sizeCache protoimpl.SizeCache 32 unknownFields protoimpl.UnknownFields 33 34 // The resource name. 35 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` 36 // Types that are assignable to Type: 37 // *Credentials_Insecure 38 // *Credentials_Bearer 39 // *Credentials_Basic 40 Type isCredentials_Type `protobuf_oneof:"type"` 41 } 42 43 func (x *Credentials) Reset() { 44 *x = Credentials{} 45 if protoimpl.UnsafeEnabled { 46 mi := &file_apipb_controlpb_control_proto_msgTypes[0] 47 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 48 ms.StoreMessageInfo(mi) 49 } 50 } 51 52 func (x *Credentials) String() string { 53 return protoimpl.X.MessageStringOf(x) 54 } 55 56 func (*Credentials) ProtoMessage() {} 57 58 func (x *Credentials) ProtoReflect() protoreflect.Message { 59 mi := &file_apipb_controlpb_control_proto_msgTypes[0] 60 if protoimpl.UnsafeEnabled && x != nil { 61 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 62 if ms.LoadMessageInfo() == nil { 63 ms.StoreMessageInfo(mi) 64 } 65 return ms 66 } 67 return mi.MessageOf(x) 68 } 69 70 // Deprecated: Use Credentials.ProtoReflect.Descriptor instead. 71 func (*Credentials) Descriptor() ([]byte, []int) { 72 return file_apipb_controlpb_control_proto_rawDescGZIP(), []int{0} 73 } 74 75 func (x *Credentials) GetName() string { 76 if x != nil { 77 return x.Name 78 } 79 return "" 80 } 81 82 func (m *Credentials) GetType() isCredentials_Type { 83 if m != nil { 84 return m.Type 85 } 86 return nil 87 } 88 89 func (x *Credentials) GetInsecure() bool { 90 if x, ok := x.GetType().(*Credentials_Insecure); ok { 91 return x.Insecure 92 } 93 return false 94 } 95 96 func (x *Credentials) GetBearer() *Credentials_BearerToken { 97 if x, ok := x.GetType().(*Credentials_Bearer); ok { 98 return x.Bearer 99 } 100 return nil 101 } 102 103 func (x *Credentials) GetBasic() *Credentials_BasicAuth { 104 if x, ok := x.GetType().(*Credentials_Basic); ok { 105 return x.Basic 106 } 107 return nil 108 } 109 110 type isCredentials_Type interface { 111 isCredentials_Type() 112 } 113 114 type Credentials_Insecure struct { 115 Insecure bool `protobuf:"varint,2,opt,name=insecure,proto3,oneof"` 116 } 117 118 type Credentials_Bearer struct { 119 Bearer *Credentials_BearerToken `protobuf:"bytes,3,opt,name=bearer,proto3,oneof"` 120 } 121 122 type Credentials_Basic struct { 123 Basic *Credentials_BasicAuth `protobuf:"bytes,4,opt,name=basic,proto3,oneof"` 124 } 125 126 func (*Credentials_Insecure) isCredentials_Type() {} 127 128 func (*Credentials_Bearer) isCredentials_Type() {} 129 130 func (*Credentials_Basic) isCredentials_Type() {} 131 132 type Values struct { 133 state protoimpl.MessageState 134 sizeCache protoimpl.SizeCache 135 unknownFields protoimpl.UnknownFields 136 137 Values []string `protobuf:"bytes,1,rep,name=values,proto3" json:"values,omitempty"` 138 } 139 140 func (x *Values) Reset() { 141 *x = Values{} 142 if protoimpl.UnsafeEnabled { 143 mi := &file_apipb_controlpb_control_proto_msgTypes[1] 144 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 145 ms.StoreMessageInfo(mi) 146 } 147 } 148 149 func (x *Values) String() string { 150 return protoimpl.X.MessageStringOf(x) 151 } 152 153 func (*Values) ProtoMessage() {} 154 155 func (x *Values) ProtoReflect() protoreflect.Message { 156 mi := &file_apipb_controlpb_control_proto_msgTypes[1] 157 if protoimpl.UnsafeEnabled && x != nil { 158 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 159 if ms.LoadMessageInfo() == nil { 160 ms.StoreMessageInfo(mi) 161 } 162 return ms 163 } 164 return mi.MessageOf(x) 165 } 166 167 // Deprecated: Use Values.ProtoReflect.Descriptor instead. 168 func (*Values) Descriptor() ([]byte, []int) { 169 return file_apipb_controlpb_control_proto_rawDescGZIP(), []int{1} 170 } 171 172 func (x *Values) GetValues() []string { 173 if x != nil { 174 return x.Values 175 } 176 return nil 177 } 178 179 type Operation struct { 180 state protoimpl.MessageState 181 sizeCache protoimpl.SizeCache 182 unknownFields protoimpl.UnknownFields 183 184 // The operation name. 185 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` 186 // The operation credentials if user initiated. 187 Credentials *Credentials `protobuf:"bytes,2,opt,name=credentials,proto3" json:"credentials,omitempty"` 188 } 189 190 func (x *Operation) Reset() { 191 *x = Operation{} 192 if protoimpl.UnsafeEnabled { 193 mi := &file_apipb_controlpb_control_proto_msgTypes[2] 194 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 195 ms.StoreMessageInfo(mi) 196 } 197 } 198 199 func (x *Operation) String() string { 200 return protoimpl.X.MessageStringOf(x) 201 } 202 203 func (*Operation) ProtoMessage() {} 204 205 func (x *Operation) ProtoReflect() protoreflect.Message { 206 mi := &file_apipb_controlpb_control_proto_msgTypes[2] 207 if protoimpl.UnsafeEnabled && x != nil { 208 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 209 if ms.LoadMessageInfo() == nil { 210 ms.StoreMessageInfo(mi) 211 } 212 return ms 213 } 214 return mi.MessageOf(x) 215 } 216 217 // Deprecated: Use Operation.ProtoReflect.Descriptor instead. 218 func (*Operation) Descriptor() ([]byte, []int) { 219 return file_apipb_controlpb_control_proto_rawDescGZIP(), []int{2} 220 } 221 222 func (x *Operation) GetName() string { 223 if x != nil { 224 return x.Name 225 } 226 return "" 227 } 228 229 func (x *Operation) GetCredentials() *Credentials { 230 if x != nil { 231 return x.Credentials 232 } 233 return nil 234 } 235 236 // Request message for the Check method. 237 type CheckRequest struct { 238 state protoimpl.MessageState 239 sizeCache protoimpl.SizeCache 240 unknownFields protoimpl.UnknownFields 241 242 // The resource name. 243 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` 244 // The operation to be checked. 245 Operation *Operation `protobuf:"bytes,2,opt,name=operation,proto3" json:"operation,omitempty"` 246 } 247 248 func (x *CheckRequest) Reset() { 249 *x = CheckRequest{} 250 if protoimpl.UnsafeEnabled { 251 mi := &file_apipb_controlpb_control_proto_msgTypes[3] 252 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 253 ms.StoreMessageInfo(mi) 254 } 255 } 256 257 func (x *CheckRequest) String() string { 258 return protoimpl.X.MessageStringOf(x) 259 } 260 261 func (*CheckRequest) ProtoMessage() {} 262 263 func (x *CheckRequest) ProtoReflect() protoreflect.Message { 264 mi := &file_apipb_controlpb_control_proto_msgTypes[3] 265 if protoimpl.UnsafeEnabled && x != nil { 266 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 267 if ms.LoadMessageInfo() == nil { 268 ms.StoreMessageInfo(mi) 269 } 270 return ms 271 } 272 return mi.MessageOf(x) 273 } 274 275 // Deprecated: Use CheckRequest.ProtoReflect.Descriptor instead. 276 func (*CheckRequest) Descriptor() ([]byte, []int) { 277 return file_apipb_controlpb_control_proto_rawDescGZIP(), []int{3} 278 } 279 280 func (x *CheckRequest) GetName() string { 281 if x != nil { 282 return x.Name 283 } 284 return "" 285 } 286 287 func (x *CheckRequest) GetOperation() *Operation { 288 if x != nil { 289 return x.Operation 290 } 291 return nil 292 } 293 294 type CheckResponse struct { 295 state protoimpl.MessageState 296 sizeCache protoimpl.SizeCache 297 unknownFields protoimpl.UnknownFields 298 299 Status *status.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` 300 } 301 302 func (x *CheckResponse) Reset() { 303 *x = CheckResponse{} 304 if protoimpl.UnsafeEnabled { 305 mi := &file_apipb_controlpb_control_proto_msgTypes[4] 306 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 307 ms.StoreMessageInfo(mi) 308 } 309 } 310 311 func (x *CheckResponse) String() string { 312 return protoimpl.X.MessageStringOf(x) 313 } 314 315 func (*CheckResponse) ProtoMessage() {} 316 317 func (x *CheckResponse) ProtoReflect() protoreflect.Message { 318 mi := &file_apipb_controlpb_control_proto_msgTypes[4] 319 if protoimpl.UnsafeEnabled && x != nil { 320 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 321 if ms.LoadMessageInfo() == nil { 322 ms.StoreMessageInfo(mi) 323 } 324 return ms 325 } 326 return mi.MessageOf(x) 327 } 328 329 // Deprecated: Use CheckResponse.ProtoReflect.Descriptor instead. 330 func (*CheckResponse) Descriptor() ([]byte, []int) { 331 return file_apipb_controlpb_control_proto_rawDescGZIP(), []int{4} 332 } 333 334 func (x *CheckResponse) GetStatus() *status.Status { 335 if x != nil { 336 return x.Status 337 } 338 return nil 339 } 340 341 // BearerToken is a credential type. 342 // Include the access token as metadata in all requests. 343 type Credentials_BearerToken struct { 344 state protoimpl.MessageState 345 sizeCache protoimpl.SizeCache 346 unknownFields protoimpl.UnknownFields 347 348 // The access token. 349 AccessToken string `protobuf:"bytes,2,opt,name=access_token,json=accessToken,proto3" json:"access_token,omitempty"` 350 // The public key, optional. 351 PublicKey string `protobuf:"bytes,3,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"` 352 } 353 354 func (x *Credentials_BearerToken) Reset() { 355 *x = Credentials_BearerToken{} 356 if protoimpl.UnsafeEnabled { 357 mi := &file_apipb_controlpb_control_proto_msgTypes[5] 358 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 359 ms.StoreMessageInfo(mi) 360 } 361 } 362 363 func (x *Credentials_BearerToken) String() string { 364 return protoimpl.X.MessageStringOf(x) 365 } 366 367 func (*Credentials_BearerToken) ProtoMessage() {} 368 369 func (x *Credentials_BearerToken) ProtoReflect() protoreflect.Message { 370 mi := &file_apipb_controlpb_control_proto_msgTypes[5] 371 if protoimpl.UnsafeEnabled && x != nil { 372 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 373 if ms.LoadMessageInfo() == nil { 374 ms.StoreMessageInfo(mi) 375 } 376 return ms 377 } 378 return mi.MessageOf(x) 379 } 380 381 // Deprecated: Use Credentials_BearerToken.ProtoReflect.Descriptor instead. 382 func (*Credentials_BearerToken) Descriptor() ([]byte, []int) { 383 return file_apipb_controlpb_control_proto_rawDescGZIP(), []int{0, 0} 384 } 385 386 func (x *Credentials_BearerToken) GetAccessToken() string { 387 if x != nil { 388 return x.AccessToken 389 } 390 return "" 391 } 392 393 func (x *Credentials_BearerToken) GetPublicKey() string { 394 if x != nil { 395 return x.PublicKey 396 } 397 return "" 398 } 399 400 // Basic is a credential type. 401 // Include the username and password in all requests. 402 type Credentials_BasicAuth struct { 403 state protoimpl.MessageState 404 sizeCache protoimpl.SizeCache 405 unknownFields protoimpl.UnknownFields 406 407 // The username. 408 Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"` 409 // The password. 410 Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"` 411 // The public key, optional. 412 PublicKey string `protobuf:"bytes,3,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"` 413 } 414 415 func (x *Credentials_BasicAuth) Reset() { 416 *x = Credentials_BasicAuth{} 417 if protoimpl.UnsafeEnabled { 418 mi := &file_apipb_controlpb_control_proto_msgTypes[6] 419 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 420 ms.StoreMessageInfo(mi) 421 } 422 } 423 424 func (x *Credentials_BasicAuth) String() string { 425 return protoimpl.X.MessageStringOf(x) 426 } 427 428 func (*Credentials_BasicAuth) ProtoMessage() {} 429 430 func (x *Credentials_BasicAuth) ProtoReflect() protoreflect.Message { 431 mi := &file_apipb_controlpb_control_proto_msgTypes[6] 432 if protoimpl.UnsafeEnabled && x != nil { 433 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 434 if ms.LoadMessageInfo() == nil { 435 ms.StoreMessageInfo(mi) 436 } 437 return ms 438 } 439 return mi.MessageOf(x) 440 } 441 442 // Deprecated: Use Credentials_BasicAuth.ProtoReflect.Descriptor instead. 443 func (*Credentials_BasicAuth) Descriptor() ([]byte, []int) { 444 return file_apipb_controlpb_control_proto_rawDescGZIP(), []int{0, 1} 445 } 446 447 func (x *Credentials_BasicAuth) GetUsername() string { 448 if x != nil { 449 return x.Username 450 } 451 return "" 452 } 453 454 func (x *Credentials_BasicAuth) GetPassword() string { 455 if x != nil { 456 return x.Password 457 } 458 return "" 459 } 460 461 func (x *Credentials_BasicAuth) GetPublicKey() string { 462 if x != nil { 463 return x.PublicKey 464 } 465 return "" 466 } 467 468 var File_apipb_controlpb_control_proto protoreflect.FileDescriptor 469 470 var file_apipb_controlpb_control_proto_rawDesc = []byte{ 471 0x0a, 0x1d, 0x61, 0x70, 0x69, 0x70, 0x62, 0x2f, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x70, 472 0x62, 0x2f, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 473 0x13, 0x6c, 0x61, 0x72, 0x6b, 0x69, 0x6e, 0x67, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x63, 0x6f, 0x6e, 474 0x74, 0x72, 0x6f, 0x6c, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 475 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 476 0x74, 0x6f, 0x1a, 0x17, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x72, 0x70, 0x63, 0x2f, 0x73, 477 0x74, 0x61, 0x74, 0x75, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x88, 0x03, 0x0a, 0x0b, 478 0x43, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x6e, 479 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 480 0x1c, 0x0a, 0x08, 0x69, 0x6e, 0x73, 0x65, 0x63, 0x75, 0x72, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 481 0x08, 0x48, 0x00, 0x52, 0x08, 0x69, 0x6e, 0x73, 0x65, 0x63, 0x75, 0x72, 0x65, 0x12, 0x46, 0x0a, 482 0x06, 0x62, 0x65, 0x61, 0x72, 0x65, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2c, 0x2e, 483 0x6c, 0x61, 0x72, 0x6b, 0x69, 0x6e, 0x67, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x63, 0x6f, 0x6e, 0x74, 484 0x72, 0x6f, 0x6c, 0x2e, 0x43, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x73, 0x2e, 485 0x42, 0x65, 0x61, 0x72, 0x65, 0x72, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x48, 0x00, 0x52, 0x06, 0x62, 486 0x65, 0x61, 0x72, 0x65, 0x72, 0x12, 0x42, 0x0a, 0x05, 0x62, 0x61, 0x73, 0x69, 0x63, 0x18, 0x04, 487 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2a, 0x2e, 0x6c, 0x61, 0x72, 0x6b, 0x69, 0x6e, 0x67, 0x2e, 0x61, 488 0x70, 0x69, 0x2e, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x2e, 0x43, 0x72, 0x65, 0x64, 0x65, 489 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x73, 0x2e, 0x42, 0x61, 0x73, 0x69, 0x63, 0x41, 0x75, 0x74, 0x68, 490 0x48, 0x00, 0x52, 0x05, 0x62, 0x61, 0x73, 0x69, 0x63, 0x1a, 0x4f, 0x0a, 0x0b, 0x42, 0x65, 0x61, 491 0x72, 0x65, 0x72, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x21, 0x0a, 0x0c, 0x61, 0x63, 0x63, 0x65, 492 0x73, 0x73, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 493 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 494 0x75, 0x62, 0x6c, 0x69, 0x63, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 495 0x09, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x4b, 0x65, 0x79, 0x1a, 0x62, 0x0a, 0x09, 0x42, 0x61, 496 0x73, 0x69, 0x63, 0x41, 0x75, 0x74, 0x68, 0x12, 0x1a, 0x0a, 0x08, 0x75, 0x73, 0x65, 0x72, 0x6e, 497 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x75, 0x73, 0x65, 0x72, 0x6e, 498 0x61, 0x6d, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x18, 499 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x12, 500 0x1d, 0x0a, 0x0a, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x03, 0x20, 501 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x4b, 0x65, 0x79, 0x42, 0x06, 502 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x22, 0x20, 0x0a, 0x06, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 503 0x12, 0x16, 0x0a, 0x06, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 504 0x52, 0x06, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x22, 0x63, 0x0a, 0x09, 0x4f, 0x70, 0x65, 0x72, 505 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 506 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x42, 0x0a, 0x0b, 0x63, 0x72, 0x65, 507 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 508 0x2e, 0x6c, 0x61, 0x72, 0x6b, 0x69, 0x6e, 0x67, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x63, 0x6f, 0x6e, 509 0x74, 0x72, 0x6f, 0x6c, 0x2e, 0x43, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x73, 510 0x52, 0x0b, 0x63, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x73, 0x22, 0x60, 0x0a, 511 0x0c, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, 512 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 513 0x65, 0x12, 0x3c, 0x0a, 0x09, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 514 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x6c, 0x61, 0x72, 0x6b, 0x69, 0x6e, 0x67, 0x2e, 0x61, 515 0x70, 0x69, 0x2e, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x2e, 0x4f, 0x70, 0x65, 0x72, 0x61, 516 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x09, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 517 0x3b, 0x0a, 0x0d, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 518 0x12, 0x2a, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 519 0x32, 0x12, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x53, 0x74, 520 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x32, 0x79, 0x0a, 0x07, 521 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x12, 0x6e, 0x0a, 0x05, 0x43, 0x68, 0x65, 0x63, 0x6b, 522 0x12, 0x21, 0x2e, 0x6c, 0x61, 0x72, 0x6b, 0x69, 0x6e, 0x67, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x63, 523 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x2e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x52, 0x65, 0x71, 0x75, 524 0x65, 0x73, 0x74, 0x1a, 0x22, 0x2e, 0x6c, 0x61, 0x72, 0x6b, 0x69, 0x6e, 0x67, 0x2e, 0x61, 0x70, 525 0x69, 0x2e, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x2e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x52, 526 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x1e, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x18, 0x22, 527 0x13, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x2a, 0x2a, 0x7d, 0x3a, 0x63, 528 0x68, 0x65, 0x63, 0x6b, 0x3a, 0x01, 0x2a, 0x42, 0x39, 0x5a, 0x37, 0x67, 0x69, 0x74, 0x68, 0x75, 529 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x65, 0x6d, 0x63, 0x66, 0x61, 0x72, 0x6c, 0x61, 0x6e, 0x65, 530 0x2f, 0x6c, 0x61, 0x72, 0x6b, 0x69, 0x6e, 0x67, 0x2f, 0x61, 0x70, 0x69, 0x70, 0x62, 0x2f, 0x63, 531 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x70, 0x62, 0x3b, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 532 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 533 } 534 535 var ( 536 file_apipb_controlpb_control_proto_rawDescOnce sync.Once 537 file_apipb_controlpb_control_proto_rawDescData = file_apipb_controlpb_control_proto_rawDesc 538 ) 539 540 func file_apipb_controlpb_control_proto_rawDescGZIP() []byte { 541 file_apipb_controlpb_control_proto_rawDescOnce.Do(func() { 542 file_apipb_controlpb_control_proto_rawDescData = protoimpl.X.CompressGZIP(file_apipb_controlpb_control_proto_rawDescData) 543 }) 544 return file_apipb_controlpb_control_proto_rawDescData 545 } 546 547 var file_apipb_controlpb_control_proto_msgTypes = make([]protoimpl.MessageInfo, 7) 548 var file_apipb_controlpb_control_proto_goTypes = []interface{}{ 549 (*Credentials)(nil), // 0: larking.api.control.Credentials 550 (*Values)(nil), // 1: larking.api.control.Values 551 (*Operation)(nil), // 2: larking.api.control.Operation 552 (*CheckRequest)(nil), // 3: larking.api.control.CheckRequest 553 (*CheckResponse)(nil), // 4: larking.api.control.CheckResponse 554 (*Credentials_BearerToken)(nil), // 5: larking.api.control.Credentials.BearerToken 555 (*Credentials_BasicAuth)(nil), // 6: larking.api.control.Credentials.BasicAuth 556 (*status.Status)(nil), // 7: google.rpc.Status 557 } 558 var file_apipb_controlpb_control_proto_depIdxs = []int32{ 559 5, // 0: larking.api.control.Credentials.bearer:type_name -> larking.api.control.Credentials.BearerToken 560 6, // 1: larking.api.control.Credentials.basic:type_name -> larking.api.control.Credentials.BasicAuth 561 0, // 2: larking.api.control.Operation.credentials:type_name -> larking.api.control.Credentials 562 2, // 3: larking.api.control.CheckRequest.operation:type_name -> larking.api.control.Operation 563 7, // 4: larking.api.control.CheckResponse.status:type_name -> google.rpc.Status 564 3, // 5: larking.api.control.Control.Check:input_type -> larking.api.control.CheckRequest 565 4, // 6: larking.api.control.Control.Check:output_type -> larking.api.control.CheckResponse 566 6, // [6:7] is the sub-list for method output_type 567 5, // [5:6] is the sub-list for method input_type 568 5, // [5:5] is the sub-list for extension type_name 569 5, // [5:5] is the sub-list for extension extendee 570 0, // [0:5] is the sub-list for field type_name 571 } 572 573 func init() { file_apipb_controlpb_control_proto_init() } 574 func file_apipb_controlpb_control_proto_init() { 575 if File_apipb_controlpb_control_proto != nil { 576 return 577 } 578 if !protoimpl.UnsafeEnabled { 579 file_apipb_controlpb_control_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 580 switch v := v.(*Credentials); i { 581 case 0: 582 return &v.state 583 case 1: 584 return &v.sizeCache 585 case 2: 586 return &v.unknownFields 587 default: 588 return nil 589 } 590 } 591 file_apipb_controlpb_control_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { 592 switch v := v.(*Values); i { 593 case 0: 594 return &v.state 595 case 1: 596 return &v.sizeCache 597 case 2: 598 return &v.unknownFields 599 default: 600 return nil 601 } 602 } 603 file_apipb_controlpb_control_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { 604 switch v := v.(*Operation); i { 605 case 0: 606 return &v.state 607 case 1: 608 return &v.sizeCache 609 case 2: 610 return &v.unknownFields 611 default: 612 return nil 613 } 614 } 615 file_apipb_controlpb_control_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { 616 switch v := v.(*CheckRequest); i { 617 case 0: 618 return &v.state 619 case 1: 620 return &v.sizeCache 621 case 2: 622 return &v.unknownFields 623 default: 624 return nil 625 } 626 } 627 file_apipb_controlpb_control_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { 628 switch v := v.(*CheckResponse); i { 629 case 0: 630 return &v.state 631 case 1: 632 return &v.sizeCache 633 case 2: 634 return &v.unknownFields 635 default: 636 return nil 637 } 638 } 639 file_apipb_controlpb_control_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { 640 switch v := v.(*Credentials_BearerToken); i { 641 case 0: 642 return &v.state 643 case 1: 644 return &v.sizeCache 645 case 2: 646 return &v.unknownFields 647 default: 648 return nil 649 } 650 } 651 file_apipb_controlpb_control_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { 652 switch v := v.(*Credentials_BasicAuth); i { 653 case 0: 654 return &v.state 655 case 1: 656 return &v.sizeCache 657 case 2: 658 return &v.unknownFields 659 default: 660 return nil 661 } 662 } 663 } 664 file_apipb_controlpb_control_proto_msgTypes[0].OneofWrappers = []interface{}{ 665 (*Credentials_Insecure)(nil), 666 (*Credentials_Bearer)(nil), 667 (*Credentials_Basic)(nil), 668 } 669 type x struct{} 670 out := protoimpl.TypeBuilder{ 671 File: protoimpl.DescBuilder{ 672 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 673 RawDescriptor: file_apipb_controlpb_control_proto_rawDesc, 674 NumEnums: 0, 675 NumMessages: 7, 676 NumExtensions: 0, 677 NumServices: 1, 678 }, 679 GoTypes: file_apipb_controlpb_control_proto_goTypes, 680 DependencyIndexes: file_apipb_controlpb_control_proto_depIdxs, 681 MessageInfos: file_apipb_controlpb_control_proto_msgTypes, 682 }.Build() 683 File_apipb_controlpb_control_proto = out.File 684 file_apipb_controlpb_control_proto_rawDesc = nil 685 file_apipb_controlpb_control_proto_goTypes = nil 686 file_apipb_controlpb_control_proto_depIdxs = nil 687 }