github.com/cloudwan/edgelq-sdk@v1.15.4/devices/client/v1alpha2/provisioning_policy/provisioning_policy_custom.pb.go (about) 1 // Code generated by protoc-gen-goten-go 2 // File: edgelq/devices/proto/v1alpha2/provisioning_policy_custom.proto 3 // DO NOT EDIT!!! 4 5 package provisioning_policy_client 6 7 import ( 8 "fmt" 9 "reflect" 10 "sync" 11 12 "google.golang.org/protobuf/encoding/protojson" 13 "google.golang.org/protobuf/proto" 14 preflect "google.golang.org/protobuf/reflect/protoreflect" 15 "google.golang.org/protobuf/runtime/protoimpl" 16 ) 17 18 // proto imports 19 import ( 20 api "github.com/cloudwan/edgelq-sdk/common/api" 21 device "github.com/cloudwan/edgelq-sdk/devices/resources/v1alpha2/device" 22 project "github.com/cloudwan/edgelq-sdk/devices/resources/v1alpha2/project" 23 provisioning_approval_request "github.com/cloudwan/edgelq-sdk/devices/resources/v1alpha2/provisioning_approval_request" 24 provisioning_policy "github.com/cloudwan/edgelq-sdk/devices/resources/v1alpha2/provisioning_policy" 25 ) 26 27 // Reference imports to suppress errors if they are not otherwise used. 28 var ( 29 _ = fmt.Errorf 30 _ = reflect.Method{} 31 _ = sync.Once{} 32 33 _ = protojson.MarshalOptions{} 34 _ = proto.MarshalOptions{} 35 _ = preflect.Value{} 36 _ = protoimpl.DescBuilder{} 37 ) 38 39 // make sure we're using proto imports 40 var ( 41 _ = &api.Account{} 42 _ = &device.Device{} 43 _ = &project.Project{} 44 _ = &provisioning_approval_request.ProvisioningApprovalRequest{} 45 _ = &provisioning_policy.ProvisioningPolicy{} 46 ) 47 48 const ( 49 // Verify that this generated code is sufficiently up-to-date. 50 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) 51 // Verify that runtime/protoimpl is sufficiently up-to-date. 52 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) 53 ) 54 55 // Request message for method 56 // [ProvisionServiceAccountToProvisioningPolicy][ntt.devices.v1alpha2.ProvisionServiceAccountToProvisioningPolicy] 57 type ProvisionServiceAccountToProvisioningPolicyRequest struct { 58 state protoimpl.MessageState 59 sizeCache protoimpl.SizeCache 60 unknownFields protoimpl.UnknownFields 61 // Name of ntt.devices.v1alpha2.ProvisioningPolicy 62 Name *provisioning_policy.Name `protobuf:"bytes,1,opt,customtype=Name,name=name,proto3" json:"name,omitempty"` 63 } 64 65 func (m *ProvisionServiceAccountToProvisioningPolicyRequest) Reset() { 66 *m = ProvisionServiceAccountToProvisioningPolicyRequest{} 67 if protoimpl.UnsafeEnabled { 68 mi := &edgelq_devices_proto_v1alpha2_provisioning_policy_custom_proto_msgTypes[0] 69 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(m)) 70 ms.StoreMessageInfo(mi) 71 } 72 } 73 74 func (m *ProvisionServiceAccountToProvisioningPolicyRequest) String() string { 75 return protoimpl.X.MessageStringOf(m) 76 } 77 78 func (*ProvisionServiceAccountToProvisioningPolicyRequest) ProtoMessage() {} 79 80 func (m *ProvisionServiceAccountToProvisioningPolicyRequest) ProtoReflect() preflect.Message { 81 mi := &edgelq_devices_proto_v1alpha2_provisioning_policy_custom_proto_msgTypes[0] 82 if protoimpl.UnsafeEnabled && m != nil { 83 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(m)) 84 if ms.LoadMessageInfo() == nil { 85 ms.StoreMessageInfo(mi) 86 } 87 return ms 88 } 89 return mi.MessageOf(m) 90 } 91 92 func (*ProvisionServiceAccountToProvisioningPolicyRequest) GotenMessage() {} 93 94 // Deprecated, Use ProvisionServiceAccountToProvisioningPolicyRequest.ProtoReflect.Descriptor instead. 95 func (*ProvisionServiceAccountToProvisioningPolicyRequest) Descriptor() ([]byte, []int) { 96 return edgelq_devices_proto_v1alpha2_provisioning_policy_custom_proto_rawDescGZIP(), []int{0} 97 } 98 99 func (m *ProvisionServiceAccountToProvisioningPolicyRequest) Unmarshal(b []byte) error { 100 return proto.Unmarshal(b, m) 101 } 102 103 func (m *ProvisionServiceAccountToProvisioningPolicyRequest) Marshal() ([]byte, error) { 104 return proto.Marshal(m) 105 } 106 107 func (m *ProvisionServiceAccountToProvisioningPolicyRequest) MarshalJSON() ([]byte, error) { 108 return protojson.MarshalOptions{}.Marshal(m) 109 } 110 111 func (m *ProvisionServiceAccountToProvisioningPolicyRequest) UnmarshalJSON(data []byte) error { 112 return protojson.Unmarshal(data, m) 113 } 114 115 func (m *ProvisionServiceAccountToProvisioningPolicyRequest) GetName() *provisioning_policy.Name { 116 if m != nil { 117 return m.Name 118 } 119 return nil 120 } 121 122 func (m *ProvisionServiceAccountToProvisioningPolicyRequest) SetName(fv *provisioning_policy.Name) { 123 if m == nil { 124 panic(fmt.Errorf("can't set %s on nil %s", "Name", "ProvisionServiceAccountToProvisioningPolicyRequest")) 125 } 126 m.Name = fv 127 } 128 129 // Response message for method 130 // [ProvisionServiceAccountToProvisioningPolicy][ntt.devices.v1alpha2.ProvisionServiceAccountToProvisioningPolicy] 131 type ProvisionServiceAccountToProvisioningPolicyResponse struct { 132 state protoimpl.MessageState 133 sizeCache protoimpl.SizeCache 134 unknownFields protoimpl.UnknownFields 135 ServiceAccount *api.ServiceAccount `protobuf:"bytes,1,opt,name=service_account,json=serviceAccount,proto3" json:"service_account,omitempty"` 136 } 137 138 func (m *ProvisionServiceAccountToProvisioningPolicyResponse) Reset() { 139 *m = ProvisionServiceAccountToProvisioningPolicyResponse{} 140 if protoimpl.UnsafeEnabled { 141 mi := &edgelq_devices_proto_v1alpha2_provisioning_policy_custom_proto_msgTypes[1] 142 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(m)) 143 ms.StoreMessageInfo(mi) 144 } 145 } 146 147 func (m *ProvisionServiceAccountToProvisioningPolicyResponse) String() string { 148 return protoimpl.X.MessageStringOf(m) 149 } 150 151 func (*ProvisionServiceAccountToProvisioningPolicyResponse) ProtoMessage() {} 152 153 func (m *ProvisionServiceAccountToProvisioningPolicyResponse) ProtoReflect() preflect.Message { 154 mi := &edgelq_devices_proto_v1alpha2_provisioning_policy_custom_proto_msgTypes[1] 155 if protoimpl.UnsafeEnabled && m != nil { 156 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(m)) 157 if ms.LoadMessageInfo() == nil { 158 ms.StoreMessageInfo(mi) 159 } 160 return ms 161 } 162 return mi.MessageOf(m) 163 } 164 165 func (*ProvisionServiceAccountToProvisioningPolicyResponse) GotenMessage() {} 166 167 // Deprecated, Use ProvisionServiceAccountToProvisioningPolicyResponse.ProtoReflect.Descriptor instead. 168 func (*ProvisionServiceAccountToProvisioningPolicyResponse) Descriptor() ([]byte, []int) { 169 return edgelq_devices_proto_v1alpha2_provisioning_policy_custom_proto_rawDescGZIP(), []int{1} 170 } 171 172 func (m *ProvisionServiceAccountToProvisioningPolicyResponse) Unmarshal(b []byte) error { 173 return proto.Unmarshal(b, m) 174 } 175 176 func (m *ProvisionServiceAccountToProvisioningPolicyResponse) Marshal() ([]byte, error) { 177 return proto.Marshal(m) 178 } 179 180 func (m *ProvisionServiceAccountToProvisioningPolicyResponse) MarshalJSON() ([]byte, error) { 181 return protojson.MarshalOptions{}.Marshal(m) 182 } 183 184 func (m *ProvisionServiceAccountToProvisioningPolicyResponse) UnmarshalJSON(data []byte) error { 185 return protojson.Unmarshal(data, m) 186 } 187 188 func (m *ProvisionServiceAccountToProvisioningPolicyResponse) GetServiceAccount() *api.ServiceAccount { 189 if m != nil { 190 return m.ServiceAccount 191 } 192 return nil 193 } 194 195 func (m *ProvisionServiceAccountToProvisioningPolicyResponse) SetServiceAccount(fv *api.ServiceAccount) { 196 if m == nil { 197 panic(fmt.Errorf("can't set %s on nil %s", "ServiceAccount", "ProvisionServiceAccountToProvisioningPolicyResponse")) 198 } 199 m.ServiceAccount = fv 200 } 201 202 // Request message for method 203 // [RemoveServiceAccountFromProvisioningPolicy][ntt.devices.v1alpha2.RemoveServiceAccountFromProvisioningPolicy] 204 type RemoveServiceAccountFromProvisioningPolicyRequest struct { 205 state protoimpl.MessageState 206 sizeCache protoimpl.SizeCache 207 unknownFields protoimpl.UnknownFields 208 // Name of ntt.devices.v1alpha2.ProvisioningPolicy 209 Name *provisioning_policy.Name `protobuf:"bytes,1,opt,customtype=Name,name=name,proto3" json:"name,omitempty"` 210 } 211 212 func (m *RemoveServiceAccountFromProvisioningPolicyRequest) Reset() { 213 *m = RemoveServiceAccountFromProvisioningPolicyRequest{} 214 if protoimpl.UnsafeEnabled { 215 mi := &edgelq_devices_proto_v1alpha2_provisioning_policy_custom_proto_msgTypes[2] 216 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(m)) 217 ms.StoreMessageInfo(mi) 218 } 219 } 220 221 func (m *RemoveServiceAccountFromProvisioningPolicyRequest) String() string { 222 return protoimpl.X.MessageStringOf(m) 223 } 224 225 func (*RemoveServiceAccountFromProvisioningPolicyRequest) ProtoMessage() {} 226 227 func (m *RemoveServiceAccountFromProvisioningPolicyRequest) ProtoReflect() preflect.Message { 228 mi := &edgelq_devices_proto_v1alpha2_provisioning_policy_custom_proto_msgTypes[2] 229 if protoimpl.UnsafeEnabled && m != nil { 230 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(m)) 231 if ms.LoadMessageInfo() == nil { 232 ms.StoreMessageInfo(mi) 233 } 234 return ms 235 } 236 return mi.MessageOf(m) 237 } 238 239 func (*RemoveServiceAccountFromProvisioningPolicyRequest) GotenMessage() {} 240 241 // Deprecated, Use RemoveServiceAccountFromProvisioningPolicyRequest.ProtoReflect.Descriptor instead. 242 func (*RemoveServiceAccountFromProvisioningPolicyRequest) Descriptor() ([]byte, []int) { 243 return edgelq_devices_proto_v1alpha2_provisioning_policy_custom_proto_rawDescGZIP(), []int{2} 244 } 245 246 func (m *RemoveServiceAccountFromProvisioningPolicyRequest) Unmarshal(b []byte) error { 247 return proto.Unmarshal(b, m) 248 } 249 250 func (m *RemoveServiceAccountFromProvisioningPolicyRequest) Marshal() ([]byte, error) { 251 return proto.Marshal(m) 252 } 253 254 func (m *RemoveServiceAccountFromProvisioningPolicyRequest) MarshalJSON() ([]byte, error) { 255 return protojson.MarshalOptions{}.Marshal(m) 256 } 257 258 func (m *RemoveServiceAccountFromProvisioningPolicyRequest) UnmarshalJSON(data []byte) error { 259 return protojson.Unmarshal(data, m) 260 } 261 262 func (m *RemoveServiceAccountFromProvisioningPolicyRequest) GetName() *provisioning_policy.Name { 263 if m != nil { 264 return m.Name 265 } 266 return nil 267 } 268 269 func (m *RemoveServiceAccountFromProvisioningPolicyRequest) SetName(fv *provisioning_policy.Name) { 270 if m == nil { 271 panic(fmt.Errorf("can't set %s on nil %s", "Name", "RemoveServiceAccountFromProvisioningPolicyRequest")) 272 } 273 m.Name = fv 274 } 275 276 // Response message for method 277 // [RemoveServiceAccountFromProvisioningPolicy][ntt.devices.v1alpha2.RemoveServiceAccountFromProvisioningPolicy] 278 type RemoveServiceAccountFromProvisioningPolicyResponse struct { 279 state protoimpl.MessageState 280 sizeCache protoimpl.SizeCache 281 unknownFields protoimpl.UnknownFields 282 Removed bool `protobuf:"varint,1,opt,name=removed,proto3" json:"removed,omitempty"` 283 } 284 285 func (m *RemoveServiceAccountFromProvisioningPolicyResponse) Reset() { 286 *m = RemoveServiceAccountFromProvisioningPolicyResponse{} 287 if protoimpl.UnsafeEnabled { 288 mi := &edgelq_devices_proto_v1alpha2_provisioning_policy_custom_proto_msgTypes[3] 289 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(m)) 290 ms.StoreMessageInfo(mi) 291 } 292 } 293 294 func (m *RemoveServiceAccountFromProvisioningPolicyResponse) String() string { 295 return protoimpl.X.MessageStringOf(m) 296 } 297 298 func (*RemoveServiceAccountFromProvisioningPolicyResponse) ProtoMessage() {} 299 300 func (m *RemoveServiceAccountFromProvisioningPolicyResponse) ProtoReflect() preflect.Message { 301 mi := &edgelq_devices_proto_v1alpha2_provisioning_policy_custom_proto_msgTypes[3] 302 if protoimpl.UnsafeEnabled && m != nil { 303 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(m)) 304 if ms.LoadMessageInfo() == nil { 305 ms.StoreMessageInfo(mi) 306 } 307 return ms 308 } 309 return mi.MessageOf(m) 310 } 311 312 func (*RemoveServiceAccountFromProvisioningPolicyResponse) GotenMessage() {} 313 314 // Deprecated, Use RemoveServiceAccountFromProvisioningPolicyResponse.ProtoReflect.Descriptor instead. 315 func (*RemoveServiceAccountFromProvisioningPolicyResponse) Descriptor() ([]byte, []int) { 316 return edgelq_devices_proto_v1alpha2_provisioning_policy_custom_proto_rawDescGZIP(), []int{3} 317 } 318 319 func (m *RemoveServiceAccountFromProvisioningPolicyResponse) Unmarshal(b []byte) error { 320 return proto.Unmarshal(b, m) 321 } 322 323 func (m *RemoveServiceAccountFromProvisioningPolicyResponse) Marshal() ([]byte, error) { 324 return proto.Marshal(m) 325 } 326 327 func (m *RemoveServiceAccountFromProvisioningPolicyResponse) MarshalJSON() ([]byte, error) { 328 return protojson.MarshalOptions{}.Marshal(m) 329 } 330 331 func (m *RemoveServiceAccountFromProvisioningPolicyResponse) UnmarshalJSON(data []byte) error { 332 return protojson.Unmarshal(data, m) 333 } 334 335 func (m *RemoveServiceAccountFromProvisioningPolicyResponse) GetRemoved() bool { 336 if m != nil { 337 return m.Removed 338 } 339 return false 340 } 341 342 func (m *RemoveServiceAccountFromProvisioningPolicyResponse) SetRemoved(fv bool) { 343 if m == nil { 344 panic(fmt.Errorf("can't set %s on nil %s", "Removed", "RemoveServiceAccountFromProvisioningPolicyResponse")) 345 } 346 m.Removed = fv 347 } 348 349 // Request message for method 350 // [ProvisionDeviceViaPolicy][ntt.devices.v1alpha2.ProvisionDeviceViaPolicy] 351 type ProvisionDeviceViaPolicyRequest struct { 352 state protoimpl.MessageState 353 sizeCache protoimpl.SizeCache 354 unknownFields protoimpl.UnknownFields 355 // Name of ntt.devices.v1alpha2.ProvisioningPolicy 356 Name *provisioning_policy.Name `protobuf:"bytes,1,opt,customtype=Name,name=name,proto3" json:"name,omitempty"` 357 DeviceStatus *device.Device_Status `protobuf:"bytes,2,opt,name=device_status,json=deviceStatus,proto3" json:"device_status,omitempty"` 358 // external public key to use for service account for this device. 359 // If not present, a keypair will be generated by the server. 360 ExternalPubkey string `protobuf:"bytes,3,opt,name=external_pubkey,json=externalPubkey,proto3" json:"external_pubkey,omitempty"` 361 } 362 363 func (m *ProvisionDeviceViaPolicyRequest) Reset() { 364 *m = ProvisionDeviceViaPolicyRequest{} 365 if protoimpl.UnsafeEnabled { 366 mi := &edgelq_devices_proto_v1alpha2_provisioning_policy_custom_proto_msgTypes[4] 367 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(m)) 368 ms.StoreMessageInfo(mi) 369 } 370 } 371 372 func (m *ProvisionDeviceViaPolicyRequest) String() string { 373 return protoimpl.X.MessageStringOf(m) 374 } 375 376 func (*ProvisionDeviceViaPolicyRequest) ProtoMessage() {} 377 378 func (m *ProvisionDeviceViaPolicyRequest) ProtoReflect() preflect.Message { 379 mi := &edgelq_devices_proto_v1alpha2_provisioning_policy_custom_proto_msgTypes[4] 380 if protoimpl.UnsafeEnabled && m != nil { 381 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(m)) 382 if ms.LoadMessageInfo() == nil { 383 ms.StoreMessageInfo(mi) 384 } 385 return ms 386 } 387 return mi.MessageOf(m) 388 } 389 390 func (*ProvisionDeviceViaPolicyRequest) GotenMessage() {} 391 392 // Deprecated, Use ProvisionDeviceViaPolicyRequest.ProtoReflect.Descriptor instead. 393 func (*ProvisionDeviceViaPolicyRequest) Descriptor() ([]byte, []int) { 394 return edgelq_devices_proto_v1alpha2_provisioning_policy_custom_proto_rawDescGZIP(), []int{4} 395 } 396 397 func (m *ProvisionDeviceViaPolicyRequest) Unmarshal(b []byte) error { 398 return proto.Unmarshal(b, m) 399 } 400 401 func (m *ProvisionDeviceViaPolicyRequest) Marshal() ([]byte, error) { 402 return proto.Marshal(m) 403 } 404 405 func (m *ProvisionDeviceViaPolicyRequest) MarshalJSON() ([]byte, error) { 406 return protojson.MarshalOptions{}.Marshal(m) 407 } 408 409 func (m *ProvisionDeviceViaPolicyRequest) UnmarshalJSON(data []byte) error { 410 return protojson.Unmarshal(data, m) 411 } 412 413 func (m *ProvisionDeviceViaPolicyRequest) GetName() *provisioning_policy.Name { 414 if m != nil { 415 return m.Name 416 } 417 return nil 418 } 419 420 func (m *ProvisionDeviceViaPolicyRequest) GetDeviceStatus() *device.Device_Status { 421 if m != nil { 422 return m.DeviceStatus 423 } 424 return nil 425 } 426 427 func (m *ProvisionDeviceViaPolicyRequest) GetExternalPubkey() string { 428 if m != nil { 429 return m.ExternalPubkey 430 } 431 return "" 432 } 433 434 func (m *ProvisionDeviceViaPolicyRequest) SetName(fv *provisioning_policy.Name) { 435 if m == nil { 436 panic(fmt.Errorf("can't set %s on nil %s", "Name", "ProvisionDeviceViaPolicyRequest")) 437 } 438 m.Name = fv 439 } 440 441 func (m *ProvisionDeviceViaPolicyRequest) SetDeviceStatus(fv *device.Device_Status) { 442 if m == nil { 443 panic(fmt.Errorf("can't set %s on nil %s", "DeviceStatus", "ProvisionDeviceViaPolicyRequest")) 444 } 445 m.DeviceStatus = fv 446 } 447 448 func (m *ProvisionDeviceViaPolicyRequest) SetExternalPubkey(fv string) { 449 if m == nil { 450 panic(fmt.Errorf("can't set %s on nil %s", "ExternalPubkey", "ProvisionDeviceViaPolicyRequest")) 451 } 452 m.ExternalPubkey = fv 453 } 454 455 // Response message for method 456 // [ProvisionDeviceViaPolicy][ntt.devices.v1alpha2.ProvisionDeviceViaPolicy] 457 type ProvisionDeviceViaPolicyResponse struct { 458 state protoimpl.MessageState 459 sizeCache protoimpl.SizeCache 460 unknownFields protoimpl.UnknownFields 461 Device *device.Device `protobuf:"bytes,1,opt,name=device,proto3" json:"device,omitempty"` 462 ServiceAccount *api.ServiceAccount `protobuf:"bytes,2,opt,name=service_account,json=serviceAccount,proto3" json:"service_account,omitempty"` 463 } 464 465 func (m *ProvisionDeviceViaPolicyResponse) Reset() { 466 *m = ProvisionDeviceViaPolicyResponse{} 467 if protoimpl.UnsafeEnabled { 468 mi := &edgelq_devices_proto_v1alpha2_provisioning_policy_custom_proto_msgTypes[5] 469 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(m)) 470 ms.StoreMessageInfo(mi) 471 } 472 } 473 474 func (m *ProvisionDeviceViaPolicyResponse) String() string { 475 return protoimpl.X.MessageStringOf(m) 476 } 477 478 func (*ProvisionDeviceViaPolicyResponse) ProtoMessage() {} 479 480 func (m *ProvisionDeviceViaPolicyResponse) ProtoReflect() preflect.Message { 481 mi := &edgelq_devices_proto_v1alpha2_provisioning_policy_custom_proto_msgTypes[5] 482 if protoimpl.UnsafeEnabled && m != nil { 483 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(m)) 484 if ms.LoadMessageInfo() == nil { 485 ms.StoreMessageInfo(mi) 486 } 487 return ms 488 } 489 return mi.MessageOf(m) 490 } 491 492 func (*ProvisionDeviceViaPolicyResponse) GotenMessage() {} 493 494 // Deprecated, Use ProvisionDeviceViaPolicyResponse.ProtoReflect.Descriptor instead. 495 func (*ProvisionDeviceViaPolicyResponse) Descriptor() ([]byte, []int) { 496 return edgelq_devices_proto_v1alpha2_provisioning_policy_custom_proto_rawDescGZIP(), []int{5} 497 } 498 499 func (m *ProvisionDeviceViaPolicyResponse) Unmarshal(b []byte) error { 500 return proto.Unmarshal(b, m) 501 } 502 503 func (m *ProvisionDeviceViaPolicyResponse) Marshal() ([]byte, error) { 504 return proto.Marshal(m) 505 } 506 507 func (m *ProvisionDeviceViaPolicyResponse) MarshalJSON() ([]byte, error) { 508 return protojson.MarshalOptions{}.Marshal(m) 509 } 510 511 func (m *ProvisionDeviceViaPolicyResponse) UnmarshalJSON(data []byte) error { 512 return protojson.Unmarshal(data, m) 513 } 514 515 func (m *ProvisionDeviceViaPolicyResponse) GetDevice() *device.Device { 516 if m != nil { 517 return m.Device 518 } 519 return nil 520 } 521 522 func (m *ProvisionDeviceViaPolicyResponse) GetServiceAccount() *api.ServiceAccount { 523 if m != nil { 524 return m.ServiceAccount 525 } 526 return nil 527 } 528 529 func (m *ProvisionDeviceViaPolicyResponse) SetDevice(fv *device.Device) { 530 if m == nil { 531 panic(fmt.Errorf("can't set %s on nil %s", "Device", "ProvisionDeviceViaPolicyResponse")) 532 } 533 m.Device = fv 534 } 535 536 func (m *ProvisionDeviceViaPolicyResponse) SetServiceAccount(fv *api.ServiceAccount) { 537 if m == nil { 538 panic(fmt.Errorf("can't set %s on nil %s", "ServiceAccount", "ProvisionDeviceViaPolicyResponse")) 539 } 540 m.ServiceAccount = fv 541 } 542 543 // Request message for method 544 // [RequestProvisioningApproval][ntt.devices.v1alpha2.RequestProvisioningApproval] 545 type RequestProvisioningApprovalRequest struct { 546 state protoimpl.MessageState 547 sizeCache protoimpl.SizeCache 548 unknownFields protoimpl.UnknownFields 549 // Name of ntt.devices.v1alpha2.ProvisioningPolicy 550 Name *provisioning_policy.Name `protobuf:"bytes,1,opt,customtype=Name,name=name,proto3" json:"name,omitempty"` 551 // external public key to use for service account for this device. 552 // If not present, a keypair will be generated by the server. 553 ExternalPubkey string `protobuf:"bytes,3,opt,name=external_pubkey,json=externalPubkey,proto3" json:"external_pubkey,omitempty"` 554 } 555 556 func (m *RequestProvisioningApprovalRequest) Reset() { 557 *m = RequestProvisioningApprovalRequest{} 558 if protoimpl.UnsafeEnabled { 559 mi := &edgelq_devices_proto_v1alpha2_provisioning_policy_custom_proto_msgTypes[6] 560 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(m)) 561 ms.StoreMessageInfo(mi) 562 } 563 } 564 565 func (m *RequestProvisioningApprovalRequest) String() string { 566 return protoimpl.X.MessageStringOf(m) 567 } 568 569 func (*RequestProvisioningApprovalRequest) ProtoMessage() {} 570 571 func (m *RequestProvisioningApprovalRequest) ProtoReflect() preflect.Message { 572 mi := &edgelq_devices_proto_v1alpha2_provisioning_policy_custom_proto_msgTypes[6] 573 if protoimpl.UnsafeEnabled && m != nil { 574 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(m)) 575 if ms.LoadMessageInfo() == nil { 576 ms.StoreMessageInfo(mi) 577 } 578 return ms 579 } 580 return mi.MessageOf(m) 581 } 582 583 func (*RequestProvisioningApprovalRequest) GotenMessage() {} 584 585 // Deprecated, Use RequestProvisioningApprovalRequest.ProtoReflect.Descriptor instead. 586 func (*RequestProvisioningApprovalRequest) Descriptor() ([]byte, []int) { 587 return edgelq_devices_proto_v1alpha2_provisioning_policy_custom_proto_rawDescGZIP(), []int{6} 588 } 589 590 func (m *RequestProvisioningApprovalRequest) Unmarshal(b []byte) error { 591 return proto.Unmarshal(b, m) 592 } 593 594 func (m *RequestProvisioningApprovalRequest) Marshal() ([]byte, error) { 595 return proto.Marshal(m) 596 } 597 598 func (m *RequestProvisioningApprovalRequest) MarshalJSON() ([]byte, error) { 599 return protojson.MarshalOptions{}.Marshal(m) 600 } 601 602 func (m *RequestProvisioningApprovalRequest) UnmarshalJSON(data []byte) error { 603 return protojson.Unmarshal(data, m) 604 } 605 606 func (m *RequestProvisioningApprovalRequest) GetName() *provisioning_policy.Name { 607 if m != nil { 608 return m.Name 609 } 610 return nil 611 } 612 613 func (m *RequestProvisioningApprovalRequest) GetExternalPubkey() string { 614 if m != nil { 615 return m.ExternalPubkey 616 } 617 return "" 618 } 619 620 func (m *RequestProvisioningApprovalRequest) SetName(fv *provisioning_policy.Name) { 621 if m == nil { 622 panic(fmt.Errorf("can't set %s on nil %s", "Name", "RequestProvisioningApprovalRequest")) 623 } 624 m.Name = fv 625 } 626 627 func (m *RequestProvisioningApprovalRequest) SetExternalPubkey(fv string) { 628 if m == nil { 629 panic(fmt.Errorf("can't set %s on nil %s", "ExternalPubkey", "RequestProvisioningApprovalRequest")) 630 } 631 m.ExternalPubkey = fv 632 } 633 634 // Response message for method 635 // [RequestProvisioningApproval][ntt.devices.v1alpha2.RequestProvisioningApproval] 636 type RequestProvisioningApprovalResponse struct { 637 state protoimpl.MessageState 638 sizeCache protoimpl.SizeCache 639 unknownFields protoimpl.UnknownFields 640 Request *provisioning_approval_request.ProvisioningApprovalRequest `protobuf:"bytes,1,opt,name=request,proto3" json:"request,omitempty"` 641 ServiceAccount *api.ServiceAccount `protobuf:"bytes,2,opt,name=service_account,json=serviceAccount,proto3" json:"service_account,omitempty"` 642 } 643 644 func (m *RequestProvisioningApprovalResponse) Reset() { 645 *m = RequestProvisioningApprovalResponse{} 646 if protoimpl.UnsafeEnabled { 647 mi := &edgelq_devices_proto_v1alpha2_provisioning_policy_custom_proto_msgTypes[7] 648 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(m)) 649 ms.StoreMessageInfo(mi) 650 } 651 } 652 653 func (m *RequestProvisioningApprovalResponse) String() string { 654 return protoimpl.X.MessageStringOf(m) 655 } 656 657 func (*RequestProvisioningApprovalResponse) ProtoMessage() {} 658 659 func (m *RequestProvisioningApprovalResponse) ProtoReflect() preflect.Message { 660 mi := &edgelq_devices_proto_v1alpha2_provisioning_policy_custom_proto_msgTypes[7] 661 if protoimpl.UnsafeEnabled && m != nil { 662 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(m)) 663 if ms.LoadMessageInfo() == nil { 664 ms.StoreMessageInfo(mi) 665 } 666 return ms 667 } 668 return mi.MessageOf(m) 669 } 670 671 func (*RequestProvisioningApprovalResponse) GotenMessage() {} 672 673 // Deprecated, Use RequestProvisioningApprovalResponse.ProtoReflect.Descriptor instead. 674 func (*RequestProvisioningApprovalResponse) Descriptor() ([]byte, []int) { 675 return edgelq_devices_proto_v1alpha2_provisioning_policy_custom_proto_rawDescGZIP(), []int{7} 676 } 677 678 func (m *RequestProvisioningApprovalResponse) Unmarshal(b []byte) error { 679 return proto.Unmarshal(b, m) 680 } 681 682 func (m *RequestProvisioningApprovalResponse) Marshal() ([]byte, error) { 683 return proto.Marshal(m) 684 } 685 686 func (m *RequestProvisioningApprovalResponse) MarshalJSON() ([]byte, error) { 687 return protojson.MarshalOptions{}.Marshal(m) 688 } 689 690 func (m *RequestProvisioningApprovalResponse) UnmarshalJSON(data []byte) error { 691 return protojson.Unmarshal(data, m) 692 } 693 694 func (m *RequestProvisioningApprovalResponse) GetRequest() *provisioning_approval_request.ProvisioningApprovalRequest { 695 if m != nil { 696 return m.Request 697 } 698 return nil 699 } 700 701 func (m *RequestProvisioningApprovalResponse) GetServiceAccount() *api.ServiceAccount { 702 if m != nil { 703 return m.ServiceAccount 704 } 705 return nil 706 } 707 708 func (m *RequestProvisioningApprovalResponse) SetRequest(fv *provisioning_approval_request.ProvisioningApprovalRequest) { 709 if m == nil { 710 panic(fmt.Errorf("can't set %s on nil %s", "Request", "RequestProvisioningApprovalResponse")) 711 } 712 m.Request = fv 713 } 714 715 func (m *RequestProvisioningApprovalResponse) SetServiceAccount(fv *api.ServiceAccount) { 716 if m == nil { 717 panic(fmt.Errorf("can't set %s on nil %s", "ServiceAccount", "RequestProvisioningApprovalResponse")) 718 } 719 m.ServiceAccount = fv 720 } 721 722 var edgelq_devices_proto_v1alpha2_provisioning_policy_custom_proto preflect.FileDescriptor 723 724 var edgelq_devices_proto_v1alpha2_provisioning_policy_custom_proto_rawDesc = []byte{ 725 0x0a, 0x3e, 0x65, 0x64, 0x67, 0x65, 0x6c, 0x71, 0x2f, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x73, 726 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x32, 0x2f, 727 0x70, 0x72, 0x6f, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x69, 0x6e, 0x67, 0x5f, 0x70, 0x6f, 0x6c, 728 0x69, 0x63, 0x79, 0x5f, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 729 0x12, 0x14, 0x6e, 0x74, 0x74, 0x2e, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x76, 0x31, 730 0x61, 0x6c, 0x70, 0x68, 0x61, 0x32, 0x1a, 0x20, 0x67, 0x6f, 0x74, 0x65, 0x6e, 0x2f, 0x61, 0x6e, 731 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 732 0x74, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1d, 0x67, 0x6f, 0x74, 0x65, 0x6e, 0x2f, 733 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x67, 0x6f, 0x74, 0x65, 734 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x20, 0x65, 0x64, 0x67, 0x65, 0x6c, 0x71, 0x2f, 735 0x69, 0x61, 0x6d, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 736 0x69, 0x61, 0x6d, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x24, 0x65, 0x64, 0x67, 0x65, 0x6c, 737 0x71, 0x2f, 0x61, 0x75, 0x64, 0x69, 0x74, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 738 0x6f, 0x6e, 0x73, 0x2f, 0x61, 0x75, 0x64, 0x69, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 739 0x23, 0x65, 0x64, 0x67, 0x65, 0x6c, 0x71, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x61, 740 0x70, 0x69, 0x2f, 0x63, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x73, 0x2e, 0x70, 741 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x2a, 0x65, 0x64, 0x67, 0x65, 0x6c, 0x71, 0x2f, 0x64, 0x65, 0x76, 742 0x69, 0x63, 0x65, 0x73, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 743 0x68, 0x61, 0x32, 0x2f, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 744 0x1a, 0x41, 0x65, 0x64, 0x67, 0x65, 0x6c, 0x71, 0x2f, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x73, 745 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x32, 0x2f, 746 0x70, 0x72, 0x6f, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x69, 0x6e, 0x67, 0x5f, 0x61, 0x70, 0x70, 747 0x72, 0x6f, 0x76, 0x61, 0x6c, 0x5f, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x70, 0x72, 748 0x6f, 0x74, 0x6f, 0x1a, 0x37, 0x65, 0x64, 0x67, 0x65, 0x6c, 0x71, 0x2f, 0x64, 0x65, 0x76, 0x69, 749 0x63, 0x65, 0x73, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 750 0x61, 0x32, 0x2f, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x69, 0x6e, 0x67, 0x5f, 751 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x3e, 0x65, 0x64, 752 0x67, 0x65, 0x6c, 0x71, 0x2f, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2f, 0x70, 0x72, 0x6f, 753 0x74, 0x6f, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x32, 0x2f, 0x70, 0x72, 0x6f, 0x76, 754 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x69, 0x6e, 0x67, 0x5f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x5f, 755 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x8c, 0x01, 0x0a, 756 0x32, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 757 0x65, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x54, 0x6f, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x73, 758 0x69, 0x6f, 0x6e, 0x69, 0x6e, 0x67, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x65, 0x71, 0x75, 759 0x65, 0x73, 0x74, 0x12, 0x2e, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 760 0x09, 0x42, 0x1a, 0xb2, 0xda, 0x21, 0x16, 0x0a, 0x14, 0x0a, 0x12, 0x50, 0x72, 0x6f, 0x76, 0x69, 761 0x73, 0x69, 0x6f, 0x6e, 0x69, 0x6e, 0x67, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x04, 0x6e, 762 0x61, 0x6d, 0x65, 0x3a, 0x26, 0xc2, 0x85, 0x2c, 0x22, 0x0a, 0x20, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 763 0x65, 0x12, 0x18, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x69, 0x6e, 0x67, 0x5f, 764 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x9a, 0x01, 0x0a, 0x33, 765 0x50, 0x72, 0x6f, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 766 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x54, 0x6f, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x73, 0x69, 767 0x6f, 0x6e, 0x69, 0x6e, 0x67, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 768 0x6e, 0x73, 0x65, 0x12, 0x40, 0x0a, 0x0f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x61, 769 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x6e, 770 0x74, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x41, 0x63, 771 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x0e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x41, 0x63, 772 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x3a, 0x21, 0xc2, 0x85, 0x2c, 0x1d, 0x1a, 0x1b, 0x73, 0x65, 0x72, 773 0x76, 0x69, 0x63, 0x65, 0x5f, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x69, 774 0x76, 0x61, 0x74, 0x65, 0x5f, 0x6b, 0x65, 0x79, 0x22, 0x8b, 0x01, 0x0a, 0x31, 0x52, 0x65, 0x6d, 775 0x6f, 0x76, 0x65, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 776 0x74, 0x46, 0x72, 0x6f, 0x6d, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x69, 0x6e, 777 0x67, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x2e, 778 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x1a, 0xb2, 0xda, 779 0x21, 0x16, 0x0a, 0x14, 0x0a, 0x12, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x69, 780 0x6e, 0x67, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x3a, 0x26, 781 0xc2, 0x85, 0x2c, 0x22, 0x0a, 0x20, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x18, 0x70, 0x72, 782 0x6f, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x69, 0x6e, 0x67, 0x5f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 783 0x79, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x4e, 0x0a, 0x32, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 784 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x46, 0x72, 785 0x6f, 0x6d, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x69, 0x6e, 0x67, 0x50, 0x6f, 786 0x6c, 0x69, 0x63, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x18, 0x0a, 0x07, 787 0x72, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x72, 788 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x64, 0x22, 0xec, 0x01, 0x0a, 0x1f, 0x50, 0x72, 0x6f, 0x76, 0x69, 789 0x73, 0x69, 0x6f, 0x6e, 0x44, 0x65, 0x76, 0x69, 0x63, 0x65, 0x56, 0x69, 0x61, 0x50, 0x6f, 0x6c, 790 0x69, 0x63, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x2e, 0x0a, 0x04, 0x6e, 0x61, 791 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x1a, 0xb2, 0xda, 0x21, 0x16, 0x0a, 0x14, 792 0x0a, 0x12, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x69, 0x6e, 0x67, 0x50, 0x6f, 793 0x6c, 0x69, 0x63, 0x79, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x48, 0x0a, 0x0d, 0x64, 0x65, 794 0x76, 0x69, 0x63, 0x65, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 795 0x0b, 0x32, 0x23, 0x2e, 0x6e, 0x74, 0x74, 0x2e, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 796 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x32, 0x2e, 0x44, 0x65, 0x76, 0x69, 0x63, 0x65, 0x2e, 797 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x0c, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x53, 0x74, 798 0x61, 0x74, 0x75, 0x73, 0x12, 0x27, 0x0a, 0x0f, 0x65, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 799 0x5f, 0x70, 0x75, 0x62, 0x6b, 0x65, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x65, 800 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x50, 0x75, 0x62, 0x6b, 0x65, 0x79, 0x3a, 0x26, 0xc2, 801 0x85, 0x2c, 0x22, 0x0a, 0x20, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x18, 0x70, 0x72, 0x6f, 802 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x69, 0x6e, 0x67, 0x5f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 803 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0xbd, 0x01, 0x0a, 0x20, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x73, 804 0x69, 0x6f, 0x6e, 0x44, 0x65, 0x76, 0x69, 0x63, 0x65, 0x56, 0x69, 0x61, 0x50, 0x6f, 0x6c, 0x69, 805 0x63, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x34, 0x0a, 0x06, 0x64, 0x65, 806 0x76, 0x69, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x6e, 0x74, 0x74, 807 0x2e, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 808 0x32, 0x2e, 0x44, 0x65, 0x76, 0x69, 0x63, 0x65, 0x52, 0x06, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 809 0x12, 0x40, 0x0a, 0x0f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x61, 0x63, 0x63, 0x6f, 810 0x75, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x6e, 0x74, 0x74, 0x2e, 811 0x61, 0x70, 0x69, 0x2e, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x41, 0x63, 0x63, 0x6f, 0x75, 812 0x6e, 0x74, 0x52, 0x0e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x41, 0x63, 0x63, 0x6f, 0x75, 813 0x6e, 0x74, 0x3a, 0x21, 0xc2, 0x85, 0x2c, 0x1d, 0x1a, 0x1b, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 814 0x65, 0x5f, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x69, 0x76, 0x61, 0x74, 815 0x65, 0x5f, 0x6b, 0x65, 0x79, 0x22, 0xa5, 0x01, 0x0a, 0x22, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 816 0x74, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x69, 0x6e, 0x67, 0x41, 0x70, 0x70, 817 0x72, 0x6f, 0x76, 0x61, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x2e, 0x0a, 0x04, 818 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x1a, 0xb2, 0xda, 0x21, 0x16, 819 0x0a, 0x14, 0x0a, 0x12, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x69, 0x6e, 0x67, 820 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x27, 0x0a, 0x0f, 821 0x65, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x5f, 0x70, 0x75, 0x62, 0x6b, 0x65, 0x79, 0x18, 822 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x65, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x50, 823 0x75, 0x62, 0x6b, 0x65, 0x79, 0x3a, 0x26, 0xc2, 0x85, 0x2c, 0x22, 0x0a, 0x20, 0x0a, 0x04, 0x6e, 824 0x61, 0x6d, 0x65, 0x12, 0x18, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x69, 0x6e, 825 0x67, 0x5f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0xd7, 0x01, 826 0x0a, 0x23, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x73, 0x69, 827 0x6f, 0x6e, 0x69, 0x6e, 0x67, 0x41, 0x70, 0x70, 0x72, 0x6f, 0x76, 0x61, 0x6c, 0x52, 0x65, 0x73, 828 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4b, 0x0a, 0x07, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 829 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x31, 0x2e, 0x6e, 0x74, 0x74, 0x2e, 0x64, 0x65, 0x76, 830 0x69, 0x63, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x32, 0x2e, 0x50, 0x72, 831 0x6f, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x69, 0x6e, 0x67, 0x41, 0x70, 0x70, 0x72, 0x6f, 0x76, 832 0x61, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x07, 0x72, 0x65, 0x71, 0x75, 0x65, 833 0x73, 0x74, 0x12, 0x40, 0x0a, 0x0f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x61, 0x63, 834 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x6e, 0x74, 835 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x41, 0x63, 0x63, 836 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x0e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x41, 0x63, 0x63, 837 0x6f, 0x75, 0x6e, 0x74, 0x3a, 0x21, 0xc2, 0x85, 0x2c, 0x1d, 0x1a, 0x1b, 0x73, 0x65, 0x72, 0x76, 838 0x69, 0x63, 0x65, 0x5f, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x69, 0x76, 839 0x61, 0x74, 0x65, 0x5f, 0x6b, 0x65, 0x79, 0x42, 0xa1, 0x01, 0x0a, 0x1b, 0x63, 0x6f, 0x6d, 0x2e, 840 0x6e, 0x74, 0x74, 0x2e, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x70, 0x62, 0x2e, 0x76, 841 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x32, 0x42, 0x1d, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x73, 0x69, 842 0x6f, 0x6e, 0x69, 0x6e, 0x67, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x43, 0x75, 0x73, 0x74, 0x6f, 843 0x6d, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x00, 0x5a, 0x61, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 844 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x77, 0x61, 0x6e, 0x2f, 0x65, 0x64, 845 0x67, 0x65, 0x6c, 0x71, 0x2f, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2f, 0x63, 0x6c, 0x69, 846 0x65, 0x6e, 0x74, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x32, 0x2f, 0x70, 0x72, 0x6f, 847 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x69, 0x6e, 0x67, 0x5f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 848 0x3b, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x69, 0x6e, 0x67, 0x5f, 0x70, 0x6f, 849 0x6c, 0x69, 0x63, 0x79, 0x5f, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x62, 0x06, 0x70, 0x72, 0x6f, 850 0x74, 0x6f, 0x33, 851 } 852 853 var ( 854 edgelq_devices_proto_v1alpha2_provisioning_policy_custom_proto_rawDescOnce sync.Once 855 edgelq_devices_proto_v1alpha2_provisioning_policy_custom_proto_rawDescData = edgelq_devices_proto_v1alpha2_provisioning_policy_custom_proto_rawDesc 856 ) 857 858 func edgelq_devices_proto_v1alpha2_provisioning_policy_custom_proto_rawDescGZIP() []byte { 859 edgelq_devices_proto_v1alpha2_provisioning_policy_custom_proto_rawDescOnce.Do(func() { 860 edgelq_devices_proto_v1alpha2_provisioning_policy_custom_proto_rawDescData = protoimpl.X.CompressGZIP(edgelq_devices_proto_v1alpha2_provisioning_policy_custom_proto_rawDescData) 861 }) 862 return edgelq_devices_proto_v1alpha2_provisioning_policy_custom_proto_rawDescData 863 } 864 865 var edgelq_devices_proto_v1alpha2_provisioning_policy_custom_proto_msgTypes = make([]protoimpl.MessageInfo, 8) 866 var edgelq_devices_proto_v1alpha2_provisioning_policy_custom_proto_goTypes = []interface{}{ 867 (*ProvisionServiceAccountToProvisioningPolicyRequest)(nil), // 0: ntt.devices.v1alpha2.ProvisionServiceAccountToProvisioningPolicyRequest 868 (*ProvisionServiceAccountToProvisioningPolicyResponse)(nil), // 1: ntt.devices.v1alpha2.ProvisionServiceAccountToProvisioningPolicyResponse 869 (*RemoveServiceAccountFromProvisioningPolicyRequest)(nil), // 2: ntt.devices.v1alpha2.RemoveServiceAccountFromProvisioningPolicyRequest 870 (*RemoveServiceAccountFromProvisioningPolicyResponse)(nil), // 3: ntt.devices.v1alpha2.RemoveServiceAccountFromProvisioningPolicyResponse 871 (*ProvisionDeviceViaPolicyRequest)(nil), // 4: ntt.devices.v1alpha2.ProvisionDeviceViaPolicyRequest 872 (*ProvisionDeviceViaPolicyResponse)(nil), // 5: ntt.devices.v1alpha2.ProvisionDeviceViaPolicyResponse 873 (*RequestProvisioningApprovalRequest)(nil), // 6: ntt.devices.v1alpha2.RequestProvisioningApprovalRequest 874 (*RequestProvisioningApprovalResponse)(nil), // 7: ntt.devices.v1alpha2.RequestProvisioningApprovalResponse 875 (*api.ServiceAccount)(nil), // 8: ntt.api.ServiceAccount 876 (*device.Device_Status)(nil), // 9: ntt.devices.v1alpha2.Device.Status 877 (*device.Device)(nil), // 10: ntt.devices.v1alpha2.Device 878 (*provisioning_approval_request.ProvisioningApprovalRequest)(nil), // 11: ntt.devices.v1alpha2.ProvisioningApprovalRequest 879 } 880 var edgelq_devices_proto_v1alpha2_provisioning_policy_custom_proto_depIdxs = []int32{ 881 8, // 0: ntt.devices.v1alpha2.ProvisionServiceAccountToProvisioningPolicyResponse.service_account:type_name -> ntt.api.ServiceAccount 882 9, // 1: ntt.devices.v1alpha2.ProvisionDeviceViaPolicyRequest.device_status:type_name -> ntt.devices.v1alpha2.Device.Status 883 10, // 2: ntt.devices.v1alpha2.ProvisionDeviceViaPolicyResponse.device:type_name -> ntt.devices.v1alpha2.Device 884 8, // 3: ntt.devices.v1alpha2.ProvisionDeviceViaPolicyResponse.service_account:type_name -> ntt.api.ServiceAccount 885 11, // 4: ntt.devices.v1alpha2.RequestProvisioningApprovalResponse.request:type_name -> ntt.devices.v1alpha2.ProvisioningApprovalRequest 886 8, // 5: ntt.devices.v1alpha2.RequestProvisioningApprovalResponse.service_account:type_name -> ntt.api.ServiceAccount 887 6, // [6:6] is the sub-list for method output_type 888 6, // [6:6] is the sub-list for method input_type 889 6, // [6:6] is the sub-list for extension type_name 890 6, // [6:6] is the sub-list for extension extendee 891 0, // [0:6] is the sub-list for field type_name 892 } 893 894 func init() { edgelq_devices_proto_v1alpha2_provisioning_policy_custom_proto_init() } 895 func edgelq_devices_proto_v1alpha2_provisioning_policy_custom_proto_init() { 896 if edgelq_devices_proto_v1alpha2_provisioning_policy_custom_proto != nil { 897 return 898 } 899 if !protoimpl.UnsafeEnabled { 900 901 edgelq_devices_proto_v1alpha2_provisioning_policy_custom_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 902 switch v := v.(*ProvisionServiceAccountToProvisioningPolicyRequest); i { 903 case 0: 904 return &v.state 905 case 1: 906 return &v.sizeCache 907 case 2: 908 return &v.unknownFields 909 default: 910 return nil 911 } 912 } 913 edgelq_devices_proto_v1alpha2_provisioning_policy_custom_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { 914 switch v := v.(*ProvisionServiceAccountToProvisioningPolicyResponse); i { 915 case 0: 916 return &v.state 917 case 1: 918 return &v.sizeCache 919 case 2: 920 return &v.unknownFields 921 default: 922 return nil 923 } 924 } 925 edgelq_devices_proto_v1alpha2_provisioning_policy_custom_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { 926 switch v := v.(*RemoveServiceAccountFromProvisioningPolicyRequest); i { 927 case 0: 928 return &v.state 929 case 1: 930 return &v.sizeCache 931 case 2: 932 return &v.unknownFields 933 default: 934 return nil 935 } 936 } 937 edgelq_devices_proto_v1alpha2_provisioning_policy_custom_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { 938 switch v := v.(*RemoveServiceAccountFromProvisioningPolicyResponse); i { 939 case 0: 940 return &v.state 941 case 1: 942 return &v.sizeCache 943 case 2: 944 return &v.unknownFields 945 default: 946 return nil 947 } 948 } 949 edgelq_devices_proto_v1alpha2_provisioning_policy_custom_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { 950 switch v := v.(*ProvisionDeviceViaPolicyRequest); i { 951 case 0: 952 return &v.state 953 case 1: 954 return &v.sizeCache 955 case 2: 956 return &v.unknownFields 957 default: 958 return nil 959 } 960 } 961 edgelq_devices_proto_v1alpha2_provisioning_policy_custom_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { 962 switch v := v.(*ProvisionDeviceViaPolicyResponse); i { 963 case 0: 964 return &v.state 965 case 1: 966 return &v.sizeCache 967 case 2: 968 return &v.unknownFields 969 default: 970 return nil 971 } 972 } 973 edgelq_devices_proto_v1alpha2_provisioning_policy_custom_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { 974 switch v := v.(*RequestProvisioningApprovalRequest); i { 975 case 0: 976 return &v.state 977 case 1: 978 return &v.sizeCache 979 case 2: 980 return &v.unknownFields 981 default: 982 return nil 983 } 984 } 985 edgelq_devices_proto_v1alpha2_provisioning_policy_custom_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { 986 switch v := v.(*RequestProvisioningApprovalResponse); i { 987 case 0: 988 return &v.state 989 case 1: 990 return &v.sizeCache 991 case 2: 992 return &v.unknownFields 993 default: 994 return nil 995 } 996 } 997 } 998 999 type x struct{} 1000 out := protoimpl.TypeBuilder{ 1001 File: protoimpl.DescBuilder{ 1002 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 1003 RawDescriptor: edgelq_devices_proto_v1alpha2_provisioning_policy_custom_proto_rawDesc, 1004 NumEnums: 0, 1005 NumMessages: 8, 1006 NumExtensions: 0, 1007 NumServices: 0, 1008 }, 1009 GoTypes: edgelq_devices_proto_v1alpha2_provisioning_policy_custom_proto_goTypes, 1010 DependencyIndexes: edgelq_devices_proto_v1alpha2_provisioning_policy_custom_proto_depIdxs, 1011 MessageInfos: edgelq_devices_proto_v1alpha2_provisioning_policy_custom_proto_msgTypes, 1012 }.Build() 1013 edgelq_devices_proto_v1alpha2_provisioning_policy_custom_proto = out.File 1014 edgelq_devices_proto_v1alpha2_provisioning_policy_custom_proto_rawDesc = nil 1015 edgelq_devices_proto_v1alpha2_provisioning_policy_custom_proto_goTypes = nil 1016 edgelq_devices_proto_v1alpha2_provisioning_policy_custom_proto_depIdxs = nil 1017 }