github.com/cloudwan/edgelq-sdk@v1.15.4/devices/client/v1/ztp_provision_hardware/ztp_provision_hardware_custom.pb.go (about) 1 // Code generated by protoc-gen-goten-go 2 // File: edgelq/devices/proto/v1/ztp_provision_hardware_custom.proto 3 // DO NOT EDIT!!! 4 5 package ztp_provision_hardware_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/v1/device" 22 project "github.com/cloudwan/edgelq-sdk/devices/resources/v1/project" 23 provisioning_policy "github.com/cloudwan/edgelq-sdk/devices/resources/v1/provisioning_policy" 24 ) 25 26 // Reference imports to suppress errors if they are not otherwise used. 27 var ( 28 _ = fmt.Errorf 29 _ = reflect.Method{} 30 _ = sync.Once{} 31 32 _ = protojson.MarshalOptions{} 33 _ = proto.MarshalOptions{} 34 _ = preflect.Value{} 35 _ = protoimpl.DescBuilder{} 36 ) 37 38 // make sure we're using proto imports 39 var ( 40 _ = &api.DeviceIdentity{} 41 _ = &device.Device{} 42 _ = &project.Project{} 43 _ = &provisioning_policy.ProvisioningPolicy{} 44 ) 45 46 const ( 47 // Verify that this generated code is sufficiently up-to-date. 48 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) 49 // Verify that runtime/protoimpl is sufficiently up-to-date. 50 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) 51 ) 52 53 // Request message for method 54 // [ProvisionHardware][ntt.devices.v1.ProvisionHardware] 55 type ProvisionHardwareRequest struct { 56 state protoimpl.MessageState 57 sizeCache protoimpl.SizeCache 58 unknownFields protoimpl.UnknownFields 59 // Types that are valid to be assigned to Msg: 60 // *ProvisionHardwareRequest_ProvisioningTarget_ 61 // *ProvisionHardwareRequest_Identify 62 // *ProvisionHardwareRequest_ChallengeResponse 63 Msg isProvisionHardwareRequest_Msg `protobuf_oneof:"msg"` 64 } 65 66 func (m *ProvisionHardwareRequest) Reset() { 67 *m = ProvisionHardwareRequest{} 68 if protoimpl.UnsafeEnabled { 69 mi := &edgelq_devices_proto_v1_ztp_provision_hardware_custom_proto_msgTypes[0] 70 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(m)) 71 ms.StoreMessageInfo(mi) 72 } 73 } 74 75 func (m *ProvisionHardwareRequest) String() string { 76 return protoimpl.X.MessageStringOf(m) 77 } 78 79 func (*ProvisionHardwareRequest) ProtoMessage() {} 80 81 func (m *ProvisionHardwareRequest) ProtoReflect() preflect.Message { 82 mi := &edgelq_devices_proto_v1_ztp_provision_hardware_custom_proto_msgTypes[0] 83 if protoimpl.UnsafeEnabled && m != nil { 84 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(m)) 85 if ms.LoadMessageInfo() == nil { 86 ms.StoreMessageInfo(mi) 87 } 88 return ms 89 } 90 return mi.MessageOf(m) 91 } 92 93 func (*ProvisionHardwareRequest) GotenMessage() {} 94 95 // Deprecated, Use ProvisionHardwareRequest.ProtoReflect.Descriptor instead. 96 func (*ProvisionHardwareRequest) Descriptor() ([]byte, []int) { 97 return edgelq_devices_proto_v1_ztp_provision_hardware_custom_proto_rawDescGZIP(), []int{0} 98 } 99 100 func (m *ProvisionHardwareRequest) Unmarshal(b []byte) error { 101 return proto.Unmarshal(b, m) 102 } 103 104 func (m *ProvisionHardwareRequest) Marshal() ([]byte, error) { 105 return proto.Marshal(m) 106 } 107 108 func (m *ProvisionHardwareRequest) MarshalJSON() ([]byte, error) { 109 return protojson.MarshalOptions{}.Marshal(m) 110 } 111 112 func (m *ProvisionHardwareRequest) UnmarshalJSON(data []byte) error { 113 return protojson.Unmarshal(data, m) 114 } 115 116 type isProvisionHardwareRequest_Msg interface { 117 isProvisionHardwareRequest_Msg() 118 } 119 120 type ProvisionHardwareRequest_ProvisioningTarget_ struct { 121 ProvisioningTarget *ProvisionHardwareRequest_ProvisioningTarget `protobuf:"bytes,1,opt,name=provisioning_target,json=provisioningTarget,proto3,oneof"` 122 } 123 type ProvisionHardwareRequest_Identify struct { 124 Identify *api.DeviceIdentity `protobuf:"bytes,2,opt,name=identify,proto3,oneof"` 125 } 126 type ProvisionHardwareRequest_ChallengeResponse struct { 127 ChallengeResponse *api.IdentityChallengeResponse `protobuf:"bytes,3,opt,name=challenge_response,json=challengeResponse,proto3,oneof"` 128 } 129 130 func (*ProvisionHardwareRequest_ProvisioningTarget_) isProvisionHardwareRequest_Msg() {} 131 func (*ProvisionHardwareRequest_Identify) isProvisionHardwareRequest_Msg() {} 132 func (*ProvisionHardwareRequest_ChallengeResponse) isProvisionHardwareRequest_Msg() {} 133 func (m *ProvisionHardwareRequest) GetMsg() isProvisionHardwareRequest_Msg { 134 if m != nil { 135 return m.Msg 136 } 137 return nil 138 } 139 func (m *ProvisionHardwareRequest) GetProvisioningTarget() *ProvisionHardwareRequest_ProvisioningTarget { 140 if x, ok := m.GetMsg().(*ProvisionHardwareRequest_ProvisioningTarget_); ok { 141 return x.ProvisioningTarget 142 } 143 return nil 144 } 145 func (m *ProvisionHardwareRequest) GetIdentify() *api.DeviceIdentity { 146 if x, ok := m.GetMsg().(*ProvisionHardwareRequest_Identify); ok { 147 return x.Identify 148 } 149 return nil 150 } 151 func (m *ProvisionHardwareRequest) GetChallengeResponse() *api.IdentityChallengeResponse { 152 if x, ok := m.GetMsg().(*ProvisionHardwareRequest_ChallengeResponse); ok { 153 return x.ChallengeResponse 154 } 155 return nil 156 } 157 func (m *ProvisionHardwareRequest) SetMsg(ofv isProvisionHardwareRequest_Msg) { 158 if m == nil { 159 panic(fmt.Errorf("can't set %s on nil %s", "isProvisionHardwareRequest_Msg", "ProvisionHardwareRequest")) 160 } 161 m.Msg = ofv 162 } 163 func (m *ProvisionHardwareRequest) SetProvisioningTarget(fv *ProvisionHardwareRequest_ProvisioningTarget) { 164 m.SetMsg(&ProvisionHardwareRequest_ProvisioningTarget_{ProvisioningTarget: fv}) 165 } 166 func (m *ProvisionHardwareRequest) SetIdentify(fv *api.DeviceIdentity) { 167 m.SetMsg(&ProvisionHardwareRequest_Identify{Identify: fv}) 168 } 169 func (m *ProvisionHardwareRequest) SetChallengeResponse(fv *api.IdentityChallengeResponse) { 170 m.SetMsg(&ProvisionHardwareRequest_ChallengeResponse{ChallengeResponse: fv}) 171 } 172 173 // Response message for method 174 // [ProvisionHardware][ntt.devices.v1.ProvisionHardware] 175 type ProvisionHardwareResponse struct { 176 state protoimpl.MessageState 177 sizeCache protoimpl.SizeCache 178 unknownFields protoimpl.UnknownFields 179 // Types that are valid to be assigned to Msg: 180 // *ProvisionHardwareResponse_IdentityChallenge 181 // *ProvisionHardwareResponse_ProvisioningResponse_ 182 Msg isProvisionHardwareResponse_Msg `protobuf_oneof:"msg"` 183 } 184 185 func (m *ProvisionHardwareResponse) Reset() { 186 *m = ProvisionHardwareResponse{} 187 if protoimpl.UnsafeEnabled { 188 mi := &edgelq_devices_proto_v1_ztp_provision_hardware_custom_proto_msgTypes[1] 189 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(m)) 190 ms.StoreMessageInfo(mi) 191 } 192 } 193 194 func (m *ProvisionHardwareResponse) String() string { 195 return protoimpl.X.MessageStringOf(m) 196 } 197 198 func (*ProvisionHardwareResponse) ProtoMessage() {} 199 200 func (m *ProvisionHardwareResponse) ProtoReflect() preflect.Message { 201 mi := &edgelq_devices_proto_v1_ztp_provision_hardware_custom_proto_msgTypes[1] 202 if protoimpl.UnsafeEnabled && m != nil { 203 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(m)) 204 if ms.LoadMessageInfo() == nil { 205 ms.StoreMessageInfo(mi) 206 } 207 return ms 208 } 209 return mi.MessageOf(m) 210 } 211 212 func (*ProvisionHardwareResponse) GotenMessage() {} 213 214 // Deprecated, Use ProvisionHardwareResponse.ProtoReflect.Descriptor instead. 215 func (*ProvisionHardwareResponse) Descriptor() ([]byte, []int) { 216 return edgelq_devices_proto_v1_ztp_provision_hardware_custom_proto_rawDescGZIP(), []int{1} 217 } 218 219 func (m *ProvisionHardwareResponse) Unmarshal(b []byte) error { 220 return proto.Unmarshal(b, m) 221 } 222 223 func (m *ProvisionHardwareResponse) Marshal() ([]byte, error) { 224 return proto.Marshal(m) 225 } 226 227 func (m *ProvisionHardwareResponse) MarshalJSON() ([]byte, error) { 228 return protojson.MarshalOptions{}.Marshal(m) 229 } 230 231 func (m *ProvisionHardwareResponse) UnmarshalJSON(data []byte) error { 232 return protojson.Unmarshal(data, m) 233 } 234 235 type isProvisionHardwareResponse_Msg interface { 236 isProvisionHardwareResponse_Msg() 237 } 238 239 type ProvisionHardwareResponse_IdentityChallenge struct { 240 IdentityChallenge *api.IdentityChallenge `protobuf:"bytes,1,opt,name=identity_challenge,json=identityChallenge,proto3,oneof"` 241 } 242 type ProvisionHardwareResponse_ProvisioningResponse_ struct { 243 ProvisioningResponse *ProvisionHardwareResponse_ProvisioningResponse `protobuf:"bytes,2,opt,name=provisioning_response,json=provisioningResponse,proto3,oneof"` 244 } 245 246 func (*ProvisionHardwareResponse_IdentityChallenge) isProvisionHardwareResponse_Msg() {} 247 func (*ProvisionHardwareResponse_ProvisioningResponse_) isProvisionHardwareResponse_Msg() {} 248 func (m *ProvisionHardwareResponse) GetMsg() isProvisionHardwareResponse_Msg { 249 if m != nil { 250 return m.Msg 251 } 252 return nil 253 } 254 func (m *ProvisionHardwareResponse) GetIdentityChallenge() *api.IdentityChallenge { 255 if x, ok := m.GetMsg().(*ProvisionHardwareResponse_IdentityChallenge); ok { 256 return x.IdentityChallenge 257 } 258 return nil 259 } 260 func (m *ProvisionHardwareResponse) GetProvisioningResponse() *ProvisionHardwareResponse_ProvisioningResponse { 261 if x, ok := m.GetMsg().(*ProvisionHardwareResponse_ProvisioningResponse_); ok { 262 return x.ProvisioningResponse 263 } 264 return nil 265 } 266 func (m *ProvisionHardwareResponse) SetMsg(ofv isProvisionHardwareResponse_Msg) { 267 if m == nil { 268 panic(fmt.Errorf("can't set %s on nil %s", "isProvisionHardwareResponse_Msg", "ProvisionHardwareResponse")) 269 } 270 m.Msg = ofv 271 } 272 func (m *ProvisionHardwareResponse) SetIdentityChallenge(fv *api.IdentityChallenge) { 273 m.SetMsg(&ProvisionHardwareResponse_IdentityChallenge{IdentityChallenge: fv}) 274 } 275 func (m *ProvisionHardwareResponse) SetProvisioningResponse(fv *ProvisionHardwareResponse_ProvisioningResponse) { 276 m.SetMsg(&ProvisionHardwareResponse_ProvisioningResponse_{ProvisioningResponse: fv}) 277 } 278 279 // ProvisioningTarget is used to know the correct region to route the request 280 type ProvisionHardwareRequest_ProvisioningTarget struct { 281 state protoimpl.MessageState 282 sizeCache protoimpl.SizeCache 283 unknownFields protoimpl.UnknownFields 284 // one of provisioning_policy_name or device_name is required 285 ProvisioningPolicyName *provisioning_policy.Name `protobuf:"bytes,1,opt,customtype=Name,name=provisioning_policy_name,json=provisioningPolicyName,proto3" json:"provisioning_policy_name,omitempty"` 286 DeviceName *device.Name `protobuf:"bytes,2,opt,customtype=Name,name=device_name,json=deviceName,proto3" json:"device_name,omitempty"` 287 } 288 289 func (m *ProvisionHardwareRequest_ProvisioningTarget) Reset() { 290 *m = ProvisionHardwareRequest_ProvisioningTarget{} 291 if protoimpl.UnsafeEnabled { 292 mi := &edgelq_devices_proto_v1_ztp_provision_hardware_custom_proto_msgTypes[2] 293 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(m)) 294 ms.StoreMessageInfo(mi) 295 } 296 } 297 298 func (m *ProvisionHardwareRequest_ProvisioningTarget) String() string { 299 return protoimpl.X.MessageStringOf(m) 300 } 301 302 func (*ProvisionHardwareRequest_ProvisioningTarget) ProtoMessage() {} 303 304 func (m *ProvisionHardwareRequest_ProvisioningTarget) ProtoReflect() preflect.Message { 305 mi := &edgelq_devices_proto_v1_ztp_provision_hardware_custom_proto_msgTypes[2] 306 if protoimpl.UnsafeEnabled && m != nil { 307 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(m)) 308 if ms.LoadMessageInfo() == nil { 309 ms.StoreMessageInfo(mi) 310 } 311 return ms 312 } 313 return mi.MessageOf(m) 314 } 315 316 func (*ProvisionHardwareRequest_ProvisioningTarget) GotenMessage() {} 317 318 // Deprecated, Use ProvisionHardwareRequest_ProvisioningTarget.ProtoReflect.Descriptor instead. 319 func (*ProvisionHardwareRequest_ProvisioningTarget) Descriptor() ([]byte, []int) { 320 return edgelq_devices_proto_v1_ztp_provision_hardware_custom_proto_rawDescGZIP(), []int{0, 0} 321 } 322 323 func (m *ProvisionHardwareRequest_ProvisioningTarget) Unmarshal(b []byte) error { 324 return proto.Unmarshal(b, m) 325 } 326 327 func (m *ProvisionHardwareRequest_ProvisioningTarget) Marshal() ([]byte, error) { 328 return proto.Marshal(m) 329 } 330 331 func (m *ProvisionHardwareRequest_ProvisioningTarget) MarshalJSON() ([]byte, error) { 332 return protojson.MarshalOptions{}.Marshal(m) 333 } 334 335 func (m *ProvisionHardwareRequest_ProvisioningTarget) UnmarshalJSON(data []byte) error { 336 return protojson.Unmarshal(data, m) 337 } 338 339 func (m *ProvisionHardwareRequest_ProvisioningTarget) GetProvisioningPolicyName() *provisioning_policy.Name { 340 if m != nil { 341 return m.ProvisioningPolicyName 342 } 343 return nil 344 } 345 346 func (m *ProvisionHardwareRequest_ProvisioningTarget) GetDeviceName() *device.Name { 347 if m != nil { 348 return m.DeviceName 349 } 350 return nil 351 } 352 353 func (m *ProvisionHardwareRequest_ProvisioningTarget) SetProvisioningPolicyName(fv *provisioning_policy.Name) { 354 if m == nil { 355 panic(fmt.Errorf("can't set %s on nil %s", "ProvisioningPolicyName", "ProvisionHardwareRequest_ProvisioningTarget")) 356 } 357 m.ProvisioningPolicyName = fv 358 } 359 360 func (m *ProvisionHardwareRequest_ProvisioningTarget) SetDeviceName(fv *device.Name) { 361 if m == nil { 362 panic(fmt.Errorf("can't set %s on nil %s", "DeviceName", "ProvisionHardwareRequest_ProvisioningTarget")) 363 } 364 m.DeviceName = fv 365 } 366 367 // One of provisioning service_account and policy name or 368 // device service_account and device name will be returned. 369 type ProvisionHardwareResponse_ProvisioningResponse struct { 370 state protoimpl.MessageState 371 sizeCache protoimpl.SizeCache 372 unknownFields protoimpl.UnknownFields 373 ServiceAccount *api.ServiceAccount `protobuf:"bytes,1,opt,name=service_account,json=serviceAccount,proto3" json:"service_account,omitempty"` 374 ProvisioningPolicyName *provisioning_policy.Name `protobuf:"bytes,2,opt,customtype=Name,name=provisioning_policy_name,json=provisioningPolicyName,proto3" json:"provisioning_policy_name,omitempty"` 375 DeviceName *device.Name `protobuf:"bytes,3,opt,customtype=Name,name=device_name,json=deviceName,proto3" json:"device_name,omitempty"` 376 } 377 378 func (m *ProvisionHardwareResponse_ProvisioningResponse) Reset() { 379 *m = ProvisionHardwareResponse_ProvisioningResponse{} 380 if protoimpl.UnsafeEnabled { 381 mi := &edgelq_devices_proto_v1_ztp_provision_hardware_custom_proto_msgTypes[3] 382 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(m)) 383 ms.StoreMessageInfo(mi) 384 } 385 } 386 387 func (m *ProvisionHardwareResponse_ProvisioningResponse) String() string { 388 return protoimpl.X.MessageStringOf(m) 389 } 390 391 func (*ProvisionHardwareResponse_ProvisioningResponse) ProtoMessage() {} 392 393 func (m *ProvisionHardwareResponse_ProvisioningResponse) ProtoReflect() preflect.Message { 394 mi := &edgelq_devices_proto_v1_ztp_provision_hardware_custom_proto_msgTypes[3] 395 if protoimpl.UnsafeEnabled && m != nil { 396 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(m)) 397 if ms.LoadMessageInfo() == nil { 398 ms.StoreMessageInfo(mi) 399 } 400 return ms 401 } 402 return mi.MessageOf(m) 403 } 404 405 func (*ProvisionHardwareResponse_ProvisioningResponse) GotenMessage() {} 406 407 // Deprecated, Use ProvisionHardwareResponse_ProvisioningResponse.ProtoReflect.Descriptor instead. 408 func (*ProvisionHardwareResponse_ProvisioningResponse) Descriptor() ([]byte, []int) { 409 return edgelq_devices_proto_v1_ztp_provision_hardware_custom_proto_rawDescGZIP(), []int{1, 0} 410 } 411 412 func (m *ProvisionHardwareResponse_ProvisioningResponse) Unmarshal(b []byte) error { 413 return proto.Unmarshal(b, m) 414 } 415 416 func (m *ProvisionHardwareResponse_ProvisioningResponse) Marshal() ([]byte, error) { 417 return proto.Marshal(m) 418 } 419 420 func (m *ProvisionHardwareResponse_ProvisioningResponse) MarshalJSON() ([]byte, error) { 421 return protojson.MarshalOptions{}.Marshal(m) 422 } 423 424 func (m *ProvisionHardwareResponse_ProvisioningResponse) UnmarshalJSON(data []byte) error { 425 return protojson.Unmarshal(data, m) 426 } 427 428 func (m *ProvisionHardwareResponse_ProvisioningResponse) GetServiceAccount() *api.ServiceAccount { 429 if m != nil { 430 return m.ServiceAccount 431 } 432 return nil 433 } 434 435 func (m *ProvisionHardwareResponse_ProvisioningResponse) GetProvisioningPolicyName() *provisioning_policy.Name { 436 if m != nil { 437 return m.ProvisioningPolicyName 438 } 439 return nil 440 } 441 442 func (m *ProvisionHardwareResponse_ProvisioningResponse) GetDeviceName() *device.Name { 443 if m != nil { 444 return m.DeviceName 445 } 446 return nil 447 } 448 449 func (m *ProvisionHardwareResponse_ProvisioningResponse) SetServiceAccount(fv *api.ServiceAccount) { 450 if m == nil { 451 panic(fmt.Errorf("can't set %s on nil %s", "ServiceAccount", "ProvisionHardwareResponse_ProvisioningResponse")) 452 } 453 m.ServiceAccount = fv 454 } 455 456 func (m *ProvisionHardwareResponse_ProvisioningResponse) SetProvisioningPolicyName(fv *provisioning_policy.Name) { 457 if m == nil { 458 panic(fmt.Errorf("can't set %s on nil %s", "ProvisioningPolicyName", "ProvisionHardwareResponse_ProvisioningResponse")) 459 } 460 m.ProvisioningPolicyName = fv 461 } 462 463 func (m *ProvisionHardwareResponse_ProvisioningResponse) SetDeviceName(fv *device.Name) { 464 if m == nil { 465 panic(fmt.Errorf("can't set %s on nil %s", "DeviceName", "ProvisionHardwareResponse_ProvisioningResponse")) 466 } 467 m.DeviceName = fv 468 } 469 470 var edgelq_devices_proto_v1_ztp_provision_hardware_custom_proto preflect.FileDescriptor 471 472 var edgelq_devices_proto_v1_ztp_provision_hardware_custom_proto_rawDesc = []byte{ 473 0x0a, 0x3b, 0x65, 0x64, 0x67, 0x65, 0x6c, 0x71, 0x2f, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x73, 474 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x76, 0x31, 0x2f, 0x7a, 0x74, 0x70, 0x5f, 0x70, 0x72, 475 0x6f, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x5f, 0x68, 0x61, 0x72, 0x64, 0x77, 0x61, 0x72, 0x65, 476 0x5f, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0e, 0x6e, 477 0x74, 0x74, 0x2e, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x1a, 0x20, 0x67, 478 0x6f, 0x74, 0x65, 0x6e, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 479 0x2f, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 480 0x1d, 0x67, 0x6f, 0x74, 0x65, 0x6e, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 481 0x6e, 0x73, 0x2f, 0x67, 0x6f, 0x74, 0x65, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 482 0x67, 0x6f, 0x74, 0x65, 0x6e, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 483 0x73, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 484 0x24, 0x67, 0x6f, 0x74, 0x65, 0x6e, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 485 0x6e, 0x73, 0x2f, 0x6d, 0x75, 0x6c, 0x74, 0x69, 0x5f, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x2e, 486 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x23, 0x65, 0x64, 0x67, 0x65, 0x6c, 0x71, 0x2f, 0x63, 0x6f, 487 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x74, 0x74, 0x65, 0x73, 0x74, 0x61, 488 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x23, 0x65, 0x64, 0x67, 0x65, 489 0x6c, 0x71, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x63, 0x72, 490 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 491 0xbb, 0x03, 0x0a, 0x18, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x48, 0x61, 0x72, 492 0x64, 0x77, 0x61, 0x72, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x6e, 0x0a, 0x13, 493 0x70, 0x72, 0x6f, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x69, 0x6e, 0x67, 0x5f, 0x74, 0x61, 0x72, 494 0x67, 0x65, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x3b, 0x2e, 0x6e, 0x74, 0x74, 0x2e, 495 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x76, 0x69, 496 0x73, 0x69, 0x6f, 0x6e, 0x48, 0x61, 0x72, 0x64, 0x77, 0x61, 0x72, 0x65, 0x52, 0x65, 0x71, 0x75, 497 0x65, 0x73, 0x74, 0x2e, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x69, 0x6e, 0x67, 498 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 0x48, 0x00, 0x52, 0x12, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x73, 499 0x69, 0x6f, 0x6e, 0x69, 0x6e, 0x67, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 0x12, 0x35, 0x0a, 0x08, 500 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 501 0x2e, 0x6e, 0x74, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x44, 0x65, 0x76, 0x69, 0x63, 0x65, 0x49, 502 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x48, 0x00, 0x52, 0x08, 0x69, 0x64, 0x65, 0x6e, 0x74, 503 0x69, 0x66, 0x79, 0x12, 0x53, 0x0a, 0x12, 0x63, 0x68, 0x61, 0x6c, 0x6c, 0x65, 0x6e, 0x67, 0x65, 504 0x5f, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 505 0x22, 0x2e, 0x6e, 0x74, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 506 0x74, 0x79, 0x43, 0x68, 0x61, 0x6c, 0x6c, 0x65, 0x6e, 0x67, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 507 0x6e, 0x73, 0x65, 0x48, 0x00, 0x52, 0x11, 0x63, 0x68, 0x61, 0x6c, 0x6c, 0x65, 0x6e, 0x67, 0x65, 508 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x1a, 0x9b, 0x01, 0x0a, 0x12, 0x50, 0x72, 0x6f, 509 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x69, 0x6e, 0x67, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 0x12, 510 0x54, 0x0a, 0x18, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x69, 0x6e, 0x67, 0x5f, 511 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 512 0x09, 0x42, 0x1a, 0xb2, 0xda, 0x21, 0x16, 0x0a, 0x14, 0x0a, 0x12, 0x50, 0x72, 0x6f, 0x76, 0x69, 513 0x73, 0x69, 0x6f, 0x6e, 0x69, 0x6e, 0x67, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x16, 0x70, 514 0x72, 0x6f, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x69, 0x6e, 0x67, 0x50, 0x6f, 0x6c, 0x69, 0x63, 515 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x2f, 0x0a, 0x0b, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x5f, 516 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x0e, 0xb2, 0xda, 0x21, 0x0a, 517 0x0a, 0x08, 0x0a, 0x06, 0x44, 0x65, 0x76, 0x69, 0x63, 0x65, 0x52, 0x0a, 0x64, 0x65, 0x76, 0x69, 518 0x63, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x42, 0x05, 0x0a, 0x03, 0x6d, 0x73, 0x67, 0x22, 0xc8, 0x03, 519 0x0a, 0x19, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x48, 0x61, 0x72, 0x64, 0x77, 520 0x61, 0x72, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4b, 0x0a, 0x12, 0x69, 521 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x5f, 0x63, 0x68, 0x61, 0x6c, 0x6c, 0x65, 0x6e, 0x67, 522 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x6e, 0x74, 0x74, 0x2e, 0x61, 0x70, 523 0x69, 0x2e, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x43, 0x68, 0x61, 0x6c, 0x6c, 0x65, 524 0x6e, 0x67, 0x65, 0x48, 0x00, 0x52, 0x11, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x43, 525 0x68, 0x61, 0x6c, 0x6c, 0x65, 0x6e, 0x67, 0x65, 0x12, 0x75, 0x0a, 0x15, 0x70, 0x72, 0x6f, 0x76, 526 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x69, 0x6e, 0x67, 0x5f, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 527 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x3e, 0x2e, 0x6e, 0x74, 0x74, 0x2e, 0x64, 0x65, 528 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x73, 0x69, 529 0x6f, 0x6e, 0x48, 0x61, 0x72, 0x64, 0x77, 0x61, 0x72, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 530 0x73, 0x65, 0x2e, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x69, 0x6e, 0x67, 0x52, 531 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x48, 0x00, 0x52, 0x14, 0x70, 0x72, 0x6f, 0x76, 0x69, 532 0x73, 0x69, 0x6f, 0x6e, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x1a, 533 0xdf, 0x01, 0x0a, 0x14, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x69, 0x6e, 0x67, 534 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x40, 0x0a, 0x0f, 0x73, 0x65, 0x72, 0x76, 535 0x69, 0x63, 0x65, 0x5f, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 536 0x0b, 0x32, 0x17, 0x2e, 0x6e, 0x74, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x53, 0x65, 0x72, 0x76, 537 0x69, 0x63, 0x65, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x0e, 0x73, 0x65, 0x72, 0x76, 538 0x69, 0x63, 0x65, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x54, 0x0a, 0x18, 0x70, 0x72, 539 0x6f, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x69, 0x6e, 0x67, 0x5f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 540 0x79, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x1a, 0xb2, 0xda, 541 0x21, 0x16, 0x0a, 0x14, 0x0a, 0x12, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x69, 542 0x6e, 0x67, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x16, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x73, 543 0x69, 0x6f, 0x6e, 0x69, 0x6e, 0x67, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x4e, 0x61, 0x6d, 0x65, 544 0x12, 0x2f, 0x0a, 0x0b, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 545 0x03, 0x20, 0x01, 0x28, 0x09, 0x42, 0x0e, 0xb2, 0xda, 0x21, 0x0a, 0x0a, 0x08, 0x0a, 0x06, 0x44, 546 0x65, 0x76, 0x69, 0x63, 0x65, 0x52, 0x0a, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x4e, 0x61, 0x6d, 547 0x65, 0x42, 0x05, 0x0a, 0x03, 0x6d, 0x73, 0x67, 0x42, 0xa1, 0x01, 0xe8, 0xde, 0x21, 0x00, 0x0a, 548 0x15, 0x63, 0x6f, 0x6d, 0x2e, 0x6e, 0x74, 0x74, 0x2e, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x73, 549 0x2e, 0x70, 0x62, 0x2e, 0x76, 0x31, 0x42, 0x1f, 0x5a, 0x74, 0x70, 0x50, 0x72, 0x6f, 0x76, 0x69, 550 0x73, 0x69, 0x6f, 0x6e, 0x48, 0x61, 0x72, 0x64, 0x77, 0x61, 0x72, 0x65, 0x43, 0x75, 0x73, 0x74, 551 0x6f, 0x6d, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x00, 0x5a, 0x61, 0x67, 0x69, 0x74, 0x68, 0x75, 552 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x77, 0x61, 0x6e, 0x2f, 0x65, 553 0x64, 0x67, 0x65, 0x6c, 0x71, 0x2f, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2f, 0x63, 0x6c, 554 0x69, 0x65, 0x6e, 0x74, 0x2f, 0x76, 0x31, 0x2f, 0x7a, 0x74, 0x70, 0x5f, 0x70, 0x72, 0x6f, 0x76, 555 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x5f, 0x68, 0x61, 0x72, 0x64, 0x77, 0x61, 0x72, 0x65, 0x3b, 0x7a, 556 0x74, 0x70, 0x5f, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x5f, 0x68, 0x61, 0x72, 557 0x64, 0x77, 0x61, 0x72, 0x65, 0x5f, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x62, 0x06, 0x70, 0x72, 558 0x6f, 0x74, 0x6f, 0x33, 559 } 560 561 var ( 562 edgelq_devices_proto_v1_ztp_provision_hardware_custom_proto_rawDescOnce sync.Once 563 edgelq_devices_proto_v1_ztp_provision_hardware_custom_proto_rawDescData = edgelq_devices_proto_v1_ztp_provision_hardware_custom_proto_rawDesc 564 ) 565 566 func edgelq_devices_proto_v1_ztp_provision_hardware_custom_proto_rawDescGZIP() []byte { 567 edgelq_devices_proto_v1_ztp_provision_hardware_custom_proto_rawDescOnce.Do(func() { 568 edgelq_devices_proto_v1_ztp_provision_hardware_custom_proto_rawDescData = protoimpl.X.CompressGZIP(edgelq_devices_proto_v1_ztp_provision_hardware_custom_proto_rawDescData) 569 }) 570 return edgelq_devices_proto_v1_ztp_provision_hardware_custom_proto_rawDescData 571 } 572 573 var edgelq_devices_proto_v1_ztp_provision_hardware_custom_proto_msgTypes = make([]protoimpl.MessageInfo, 4) 574 var edgelq_devices_proto_v1_ztp_provision_hardware_custom_proto_goTypes = []interface{}{ 575 (*ProvisionHardwareRequest)(nil), // 0: ntt.devices.v1.ProvisionHardwareRequest 576 (*ProvisionHardwareResponse)(nil), // 1: ntt.devices.v1.ProvisionHardwareResponse 577 (*ProvisionHardwareRequest_ProvisioningTarget)(nil), // 2: ntt.devices.v1.ProvisionHardwareRequest.ProvisioningTarget 578 (*ProvisionHardwareResponse_ProvisioningResponse)(nil), // 3: ntt.devices.v1.ProvisionHardwareResponse.ProvisioningResponse 579 (*api.DeviceIdentity)(nil), // 4: ntt.api.DeviceIdentity 580 (*api.IdentityChallengeResponse)(nil), // 5: ntt.api.IdentityChallengeResponse 581 (*api.IdentityChallenge)(nil), // 6: ntt.api.IdentityChallenge 582 (*api.ServiceAccount)(nil), // 7: ntt.api.ServiceAccount 583 } 584 var edgelq_devices_proto_v1_ztp_provision_hardware_custom_proto_depIdxs = []int32{ 585 2, // 0: ntt.devices.v1.ProvisionHardwareRequest.provisioning_target:type_name -> ntt.devices.v1.ProvisionHardwareRequest.ProvisioningTarget 586 4, // 1: ntt.devices.v1.ProvisionHardwareRequest.identify:type_name -> ntt.api.DeviceIdentity 587 5, // 2: ntt.devices.v1.ProvisionHardwareRequest.challenge_response:type_name -> ntt.api.IdentityChallengeResponse 588 6, // 3: ntt.devices.v1.ProvisionHardwareResponse.identity_challenge:type_name -> ntt.api.IdentityChallenge 589 3, // 4: ntt.devices.v1.ProvisionHardwareResponse.provisioning_response:type_name -> ntt.devices.v1.ProvisionHardwareResponse.ProvisioningResponse 590 7, // 5: ntt.devices.v1.ProvisionHardwareResponse.ProvisioningResponse.service_account:type_name -> ntt.api.ServiceAccount 591 6, // [6:6] is the sub-list for method output_type 592 6, // [6:6] is the sub-list for method input_type 593 6, // [6:6] is the sub-list for extension type_name 594 6, // [6:6] is the sub-list for extension extendee 595 0, // [0:6] is the sub-list for field type_name 596 } 597 598 func init() { edgelq_devices_proto_v1_ztp_provision_hardware_custom_proto_init() } 599 func edgelq_devices_proto_v1_ztp_provision_hardware_custom_proto_init() { 600 if edgelq_devices_proto_v1_ztp_provision_hardware_custom_proto != nil { 601 return 602 } 603 if !protoimpl.UnsafeEnabled { 604 605 edgelq_devices_proto_v1_ztp_provision_hardware_custom_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 606 switch v := v.(*ProvisionHardwareRequest); i { 607 case 0: 608 return &v.state 609 case 1: 610 return &v.sizeCache 611 case 2: 612 return &v.unknownFields 613 default: 614 return nil 615 } 616 } 617 edgelq_devices_proto_v1_ztp_provision_hardware_custom_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { 618 switch v := v.(*ProvisionHardwareResponse); i { 619 case 0: 620 return &v.state 621 case 1: 622 return &v.sizeCache 623 case 2: 624 return &v.unknownFields 625 default: 626 return nil 627 } 628 } 629 edgelq_devices_proto_v1_ztp_provision_hardware_custom_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { 630 switch v := v.(*ProvisionHardwareRequest_ProvisioningTarget); i { 631 case 0: 632 return &v.state 633 case 1: 634 return &v.sizeCache 635 case 2: 636 return &v.unknownFields 637 default: 638 return nil 639 } 640 } 641 edgelq_devices_proto_v1_ztp_provision_hardware_custom_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { 642 switch v := v.(*ProvisionHardwareResponse_ProvisioningResponse); i { 643 case 0: 644 return &v.state 645 case 1: 646 return &v.sizeCache 647 case 2: 648 return &v.unknownFields 649 default: 650 return nil 651 } 652 } 653 } 654 655 edgelq_devices_proto_v1_ztp_provision_hardware_custom_proto_msgTypes[0].OneofWrappers = []interface{}{ 656 (*ProvisionHardwareRequest_ProvisioningTarget_)(nil), 657 (*ProvisionHardwareRequest_Identify)(nil), 658 (*ProvisionHardwareRequest_ChallengeResponse)(nil), 659 } 660 edgelq_devices_proto_v1_ztp_provision_hardware_custom_proto_msgTypes[1].OneofWrappers = []interface{}{ 661 (*ProvisionHardwareResponse_IdentityChallenge)(nil), 662 (*ProvisionHardwareResponse_ProvisioningResponse_)(nil), 663 } 664 type x struct{} 665 out := protoimpl.TypeBuilder{ 666 File: protoimpl.DescBuilder{ 667 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 668 RawDescriptor: edgelq_devices_proto_v1_ztp_provision_hardware_custom_proto_rawDesc, 669 NumEnums: 0, 670 NumMessages: 4, 671 NumExtensions: 0, 672 NumServices: 0, 673 }, 674 GoTypes: edgelq_devices_proto_v1_ztp_provision_hardware_custom_proto_goTypes, 675 DependencyIndexes: edgelq_devices_proto_v1_ztp_provision_hardware_custom_proto_depIdxs, 676 MessageInfos: edgelq_devices_proto_v1_ztp_provision_hardware_custom_proto_msgTypes, 677 }.Build() 678 edgelq_devices_proto_v1_ztp_provision_hardware_custom_proto = out.File 679 edgelq_devices_proto_v1_ztp_provision_hardware_custom_proto_rawDesc = nil 680 edgelq_devices_proto_v1_ztp_provision_hardware_custom_proto_goTypes = nil 681 edgelq_devices_proto_v1_ztp_provision_hardware_custom_proto_depIdxs = nil 682 }