github.com/cloudwan/edgelq-sdk@v1.15.4/audit/client/v1/activity_log/activity_log_service.pb.descriptors.go (about) 1 // Code generated by protoc-gen-goten-client 2 // API: ActivityLogService 3 // DO NOT EDIT!!! 4 5 package activity_log_client 6 7 import ( 8 "google.golang.org/protobuf/proto" 9 10 gotenclient "github.com/cloudwan/goten-sdk/runtime/client" 11 gotenresource "github.com/cloudwan/goten-sdk/runtime/resource" 12 ) 13 14 // proto imports 15 import ( 16 activity_log "github.com/cloudwan/edgelq-sdk/audit/resources/v1/activity_log" 17 ) 18 19 // Reference imports to suppress errors if they are not otherwise used. 20 var ( 21 _ = new(proto.Message) 22 _ = new(gotenclient.MethodDescriptor) 23 _ = gotenresource.WildcardId 24 ) 25 26 // make sure we're using proto imports 27 var ( 28 _ = &activity_log.ActivityLog{} 29 ) 30 31 var ( 32 descriptorsInitialized bool 33 activityLogServiceDescriptor *ActivityLogServiceDescriptor 34 listActivityLogsDescriptor *ListActivityLogsDescriptor 35 createActivityLogsDescriptor *CreateActivityLogsDescriptor 36 ) 37 38 type ListActivityLogsDescriptor struct{} 39 40 type ListActivityLogsDescriptorClientMsgHandle struct{} 41 42 type ListActivityLogsDescriptorServerMsgHandle struct{} 43 44 func (d *ListActivityLogsDescriptor) NewEmptyClientMsg() proto.Message { 45 return &ListActivityLogsRequest{} 46 } 47 48 func (d *ListActivityLogsDescriptor) NewEmptyServerMsg() proto.Message { 49 return &ListActivityLogsResponse{} 50 } 51 52 func (d *ListActivityLogsDescriptor) IsUnary() bool { 53 return true 54 } 55 56 func (d *ListActivityLogsDescriptor) IsClientStream() bool { 57 return false 58 } 59 60 func (d *ListActivityLogsDescriptor) IsServerStream() bool { 61 return false 62 } 63 64 func (d *ListActivityLogsDescriptor) IsCollection() bool { 65 return true 66 } 67 68 func (d *ListActivityLogsDescriptor) IsPlural() bool { 69 return true 70 } 71 72 func (d *ListActivityLogsDescriptor) HasResource() bool { 73 return true 74 } 75 76 func (d *ListActivityLogsDescriptor) RequestHasResourceBody() bool { 77 return false 78 } 79 80 func (d *ListActivityLogsDescriptor) GetVerb() string { 81 return "query" 82 } 83 84 func (d *ListActivityLogsDescriptor) GetMethodName() string { 85 return "ListActivityLogs" 86 } 87 88 func (d *ListActivityLogsDescriptor) GetFullMethodName() string { 89 return "/ntt.audit.v1.ActivityLogService/ListActivityLogs" 90 } 91 92 func (d *ListActivityLogsDescriptor) GetProtoPkgName() string { 93 return "ntt.audit.v1" 94 } 95 96 func (d *ListActivityLogsDescriptor) GetApiName() string { 97 return "ActivityLogService" 98 } 99 100 func (d *ListActivityLogsDescriptor) GetServiceDomain() string { 101 return "audit.edgelq.com" 102 } 103 104 func (d *ListActivityLogsDescriptor) GetServiceVersion() string { 105 return "v1" 106 } 107 108 func (d *ListActivityLogsDescriptor) GetApiDescriptor() gotenclient.ApiDescriptor { 109 return activityLogServiceDescriptor 110 } 111 112 func (d *ListActivityLogsDescriptor) GetResourceDescriptor() gotenresource.Descriptor { 113 return activity_log.GetDescriptor() 114 } 115 116 func (d *ListActivityLogsDescriptor) GetClientMsgReflectHandle() gotenclient.MethodMsgHandle { 117 return &ListActivityLogsDescriptorClientMsgHandle{} 118 } 119 120 func (d *ListActivityLogsDescriptor) GetServerMsgReflectHandle() gotenclient.MethodMsgHandle { 121 return &ListActivityLogsDescriptorServerMsgHandle{} 122 } 123 124 func (h *ListActivityLogsDescriptorClientMsgHandle) ExtractResourceName(msg proto.Message) gotenresource.Name { 125 typedMsg := msg.(*ListActivityLogsRequest) 126 var asInterface interface{} = h 127 override, ok := asInterface.(interface { 128 OverrideExtractResourceName(*ListActivityLogsRequest) *activity_log.Name 129 }) 130 if ok { 131 return override.OverrideExtractResourceName(typedMsg) 132 } 133 return nil 134 } 135 136 func (h *ListActivityLogsDescriptorClientMsgHandle) ExtractResourceNames(msg proto.Message) gotenresource.NameList { 137 typedMsg := msg.(*ListActivityLogsRequest) 138 var asInterface interface{} = h 139 override, ok := asInterface.(interface { 140 OverrideExtractResourceNames(*ListActivityLogsRequest) []*activity_log.Name 141 }) 142 if ok { 143 return activity_log.ActivityLogNameList(override.OverrideExtractResourceNames(typedMsg)) 144 } 145 return nil 146 } 147 148 func (h *ListActivityLogsDescriptorClientMsgHandle) ExtractCollectionName(msg proto.Message) gotenresource.Name { 149 typedMsg := msg.(*ListActivityLogsRequest) 150 var asInterface interface{} = h 151 override, ok := asInterface.(interface { 152 OverrideExtractCollectionName(*ListActivityLogsRequest) *activity_log.ParentName 153 }) 154 if ok { 155 return override.OverrideExtractCollectionName(typedMsg) 156 } 157 return nil 158 } 159 160 func (h *ListActivityLogsDescriptorClientMsgHandle) ExtractResourceBody(msg proto.Message) gotenresource.Resource { 161 typedMsg := msg.(*ListActivityLogsRequest) 162 var asInterface interface{} = h 163 override, ok := asInterface.(interface { 164 OverrideExtractResourceBody(*ListActivityLogsRequest) *activity_log.ActivityLog 165 }) 166 if ok { 167 return override.OverrideExtractResourceBody(typedMsg) 168 } 169 return nil 170 } 171 172 func (h *ListActivityLogsDescriptorClientMsgHandle) ExtractResourceBodies(msg proto.Message) gotenresource.ResourceList { 173 typedMsg := msg.(*ListActivityLogsRequest) 174 var asInterface interface{} = h 175 override, ok := asInterface.(interface { 176 OverrideExtractResourceBodies(*ListActivityLogsRequest) []*activity_log.ActivityLog 177 }) 178 if ok { 179 return activity_log.ActivityLogList(override.OverrideExtractResourceBodies(typedMsg)) 180 } 181 return nil 182 } 183 184 func (h *ListActivityLogsDescriptorServerMsgHandle) ExtractResourceName(msg proto.Message) gotenresource.Name { 185 typedMsg := msg.(*ListActivityLogsResponse) 186 var asInterface interface{} = h 187 override, ok := asInterface.(interface { 188 OverrideExtractResourceName(*ListActivityLogsResponse) *activity_log.Name 189 }) 190 if ok { 191 return override.OverrideExtractResourceName(typedMsg) 192 } 193 return nil 194 } 195 196 func (h *ListActivityLogsDescriptorServerMsgHandle) ExtractResourceNames(msg proto.Message) gotenresource.NameList { 197 typedMsg := msg.(*ListActivityLogsResponse) 198 var asInterface interface{} = h 199 override, ok := asInterface.(interface { 200 OverrideExtractResourceNames(*ListActivityLogsResponse) []*activity_log.Name 201 }) 202 if ok { 203 return activity_log.ActivityLogNameList(override.OverrideExtractResourceNames(typedMsg)) 204 } 205 return nil 206 } 207 208 func (h *ListActivityLogsDescriptorServerMsgHandle) ExtractCollectionName(msg proto.Message) gotenresource.Name { 209 typedMsg := msg.(*ListActivityLogsResponse) 210 var asInterface interface{} = h 211 override, ok := asInterface.(interface { 212 OverrideExtractCollectionName(*ListActivityLogsResponse) *activity_log.ParentName 213 }) 214 if ok { 215 return override.OverrideExtractCollectionName(typedMsg) 216 } 217 return nil 218 } 219 220 func (h *ListActivityLogsDescriptorServerMsgHandle) ExtractResourceBody(msg proto.Message) gotenresource.Resource { 221 typedMsg := msg.(*ListActivityLogsResponse) 222 var asInterface interface{} = h 223 override, ok := asInterface.(interface { 224 OverrideExtractResourceBody(*ListActivityLogsResponse) *activity_log.ActivityLog 225 }) 226 if ok { 227 return override.OverrideExtractResourceBody(typedMsg) 228 } 229 return nil 230 } 231 232 func (h *ListActivityLogsDescriptorServerMsgHandle) ExtractResourceBodies(msg proto.Message) gotenresource.ResourceList { 233 typedMsg := msg.(*ListActivityLogsResponse) 234 var asInterface interface{} = h 235 override, ok := asInterface.(interface { 236 OverrideExtractResourceBodies(*ListActivityLogsResponse) []*activity_log.ActivityLog 237 }) 238 if ok { 239 return activity_log.ActivityLogList(override.OverrideExtractResourceBodies(typedMsg)) 240 } 241 return nil 242 } 243 244 func GetListActivityLogsDescriptor() *ListActivityLogsDescriptor { 245 return listActivityLogsDescriptor 246 } 247 248 type CreateActivityLogsDescriptor struct{} 249 250 type CreateActivityLogsDescriptorClientMsgHandle struct{} 251 252 type CreateActivityLogsDescriptorServerMsgHandle struct{} 253 254 func (d *CreateActivityLogsDescriptor) NewEmptyClientMsg() proto.Message { 255 return &CreateActivityLogsRequest{} 256 } 257 258 func (d *CreateActivityLogsDescriptor) NewEmptyServerMsg() proto.Message { 259 return &CreateActivityLogsResponse{} 260 } 261 262 func (d *CreateActivityLogsDescriptor) IsUnary() bool { 263 return true 264 } 265 266 func (d *CreateActivityLogsDescriptor) IsClientStream() bool { 267 return false 268 } 269 270 func (d *CreateActivityLogsDescriptor) IsServerStream() bool { 271 return false 272 } 273 274 func (d *CreateActivityLogsDescriptor) IsCollection() bool { 275 return true 276 } 277 278 func (d *CreateActivityLogsDescriptor) IsPlural() bool { 279 return true 280 } 281 282 func (d *CreateActivityLogsDescriptor) HasResource() bool { 283 return true 284 } 285 286 func (d *CreateActivityLogsDescriptor) RequestHasResourceBody() bool { 287 return false 288 } 289 290 func (d *CreateActivityLogsDescriptor) GetVerb() string { 291 return "batchCreate" 292 } 293 294 func (d *CreateActivityLogsDescriptor) GetMethodName() string { 295 return "CreateActivityLogs" 296 } 297 298 func (d *CreateActivityLogsDescriptor) GetFullMethodName() string { 299 return "/ntt.audit.v1.ActivityLogService/CreateActivityLogs" 300 } 301 302 func (d *CreateActivityLogsDescriptor) GetProtoPkgName() string { 303 return "ntt.audit.v1" 304 } 305 306 func (d *CreateActivityLogsDescriptor) GetApiName() string { 307 return "ActivityLogService" 308 } 309 310 func (d *CreateActivityLogsDescriptor) GetServiceDomain() string { 311 return "audit.edgelq.com" 312 } 313 314 func (d *CreateActivityLogsDescriptor) GetServiceVersion() string { 315 return "v1" 316 } 317 318 func (d *CreateActivityLogsDescriptor) GetApiDescriptor() gotenclient.ApiDescriptor { 319 return activityLogServiceDescriptor 320 } 321 322 func (d *CreateActivityLogsDescriptor) GetResourceDescriptor() gotenresource.Descriptor { 323 return activity_log.GetDescriptor() 324 } 325 326 func (d *CreateActivityLogsDescriptor) GetClientMsgReflectHandle() gotenclient.MethodMsgHandle { 327 return &CreateActivityLogsDescriptorClientMsgHandle{} 328 } 329 330 func (d *CreateActivityLogsDescriptor) GetServerMsgReflectHandle() gotenclient.MethodMsgHandle { 331 return &CreateActivityLogsDescriptorServerMsgHandle{} 332 } 333 334 func (h *CreateActivityLogsDescriptorClientMsgHandle) ExtractResourceName(msg proto.Message) gotenresource.Name { 335 typedMsg := msg.(*CreateActivityLogsRequest) 336 var asInterface interface{} = h 337 override, ok := asInterface.(interface { 338 OverrideExtractResourceName(*CreateActivityLogsRequest) *activity_log.Name 339 }) 340 if ok { 341 return override.OverrideExtractResourceName(typedMsg) 342 } 343 return nil 344 } 345 346 func (h *CreateActivityLogsDescriptorClientMsgHandle) ExtractResourceNames(msg proto.Message) gotenresource.NameList { 347 typedMsg := msg.(*CreateActivityLogsRequest) 348 var asInterface interface{} = h 349 override, ok := asInterface.(interface { 350 OverrideExtractResourceNames(*CreateActivityLogsRequest) []*activity_log.Name 351 }) 352 if ok { 353 return activity_log.ActivityLogNameList(override.OverrideExtractResourceNames(typedMsg)) 354 } 355 return nil 356 } 357 358 func (h *CreateActivityLogsDescriptorClientMsgHandle) ExtractCollectionName(msg proto.Message) gotenresource.Name { 359 typedMsg := msg.(*CreateActivityLogsRequest) 360 var asInterface interface{} = h 361 override, ok := asInterface.(interface { 362 OverrideExtractCollectionName(*CreateActivityLogsRequest) *activity_log.ParentName 363 }) 364 if ok { 365 return override.OverrideExtractCollectionName(typedMsg) 366 } 367 return nil 368 } 369 370 func (h *CreateActivityLogsDescriptorClientMsgHandle) ExtractResourceBody(msg proto.Message) gotenresource.Resource { 371 typedMsg := msg.(*CreateActivityLogsRequest) 372 var asInterface interface{} = h 373 override, ok := asInterface.(interface { 374 OverrideExtractResourceBody(*CreateActivityLogsRequest) *activity_log.ActivityLog 375 }) 376 if ok { 377 return override.OverrideExtractResourceBody(typedMsg) 378 } 379 return nil 380 } 381 382 func (h *CreateActivityLogsDescriptorClientMsgHandle) ExtractResourceBodies(msg proto.Message) gotenresource.ResourceList { 383 typedMsg := msg.(*CreateActivityLogsRequest) 384 var asInterface interface{} = h 385 override, ok := asInterface.(interface { 386 OverrideExtractResourceBodies(*CreateActivityLogsRequest) []*activity_log.ActivityLog 387 }) 388 if ok { 389 return activity_log.ActivityLogList(override.OverrideExtractResourceBodies(typedMsg)) 390 } 391 return nil 392 } 393 394 func (h *CreateActivityLogsDescriptorServerMsgHandle) ExtractResourceName(msg proto.Message) gotenresource.Name { 395 typedMsg := msg.(*CreateActivityLogsResponse) 396 var asInterface interface{} = h 397 override, ok := asInterface.(interface { 398 OverrideExtractResourceName(*CreateActivityLogsResponse) *activity_log.Name 399 }) 400 if ok { 401 return override.OverrideExtractResourceName(typedMsg) 402 } 403 return nil 404 } 405 406 func (h *CreateActivityLogsDescriptorServerMsgHandle) ExtractResourceNames(msg proto.Message) gotenresource.NameList { 407 typedMsg := msg.(*CreateActivityLogsResponse) 408 var asInterface interface{} = h 409 override, ok := asInterface.(interface { 410 OverrideExtractResourceNames(*CreateActivityLogsResponse) []*activity_log.Name 411 }) 412 if ok { 413 return activity_log.ActivityLogNameList(override.OverrideExtractResourceNames(typedMsg)) 414 } 415 return nil 416 } 417 418 func (h *CreateActivityLogsDescriptorServerMsgHandle) ExtractCollectionName(msg proto.Message) gotenresource.Name { 419 typedMsg := msg.(*CreateActivityLogsResponse) 420 var asInterface interface{} = h 421 override, ok := asInterface.(interface { 422 OverrideExtractCollectionName(*CreateActivityLogsResponse) *activity_log.ParentName 423 }) 424 if ok { 425 return override.OverrideExtractCollectionName(typedMsg) 426 } 427 return nil 428 } 429 430 func (h *CreateActivityLogsDescriptorServerMsgHandle) ExtractResourceBody(msg proto.Message) gotenresource.Resource { 431 typedMsg := msg.(*CreateActivityLogsResponse) 432 var asInterface interface{} = h 433 override, ok := asInterface.(interface { 434 OverrideExtractResourceBody(*CreateActivityLogsResponse) *activity_log.ActivityLog 435 }) 436 if ok { 437 return override.OverrideExtractResourceBody(typedMsg) 438 } 439 return nil 440 } 441 442 func (h *CreateActivityLogsDescriptorServerMsgHandle) ExtractResourceBodies(msg proto.Message) gotenresource.ResourceList { 443 typedMsg := msg.(*CreateActivityLogsResponse) 444 var asInterface interface{} = h 445 override, ok := asInterface.(interface { 446 OverrideExtractResourceBodies(*CreateActivityLogsResponse) []*activity_log.ActivityLog 447 }) 448 if ok { 449 return activity_log.ActivityLogList(override.OverrideExtractResourceBodies(typedMsg)) 450 } 451 return nil 452 } 453 454 func GetCreateActivityLogsDescriptor() *CreateActivityLogsDescriptor { 455 return createActivityLogsDescriptor 456 } 457 458 type ActivityLogServiceDescriptor struct{} 459 460 func (d *ActivityLogServiceDescriptor) AllMethodDescriptors() []gotenclient.MethodDescriptor { 461 return []gotenclient.MethodDescriptor{ 462 listActivityLogsDescriptor, 463 createActivityLogsDescriptor, 464 } 465 } 466 467 func (d *ActivityLogServiceDescriptor) GetFullAPIName() string { 468 return "/ntt.audit.v1.ActivityLogService" 469 } 470 471 func (d *ActivityLogServiceDescriptor) GetProtoPkgName() string { 472 return "ntt.audit.v1" 473 } 474 475 func (d *ActivityLogServiceDescriptor) GetApiName() string { 476 return "ActivityLogService" 477 } 478 479 func (d *ActivityLogServiceDescriptor) GetServiceDomain() string { 480 return "audit.edgelq.com" 481 } 482 483 func (d *ActivityLogServiceDescriptor) GetServiceVersion() string { 484 return "v1" 485 } 486 487 func GetActivityLogServiceDescriptor() *ActivityLogServiceDescriptor { 488 return activityLogServiceDescriptor 489 } 490 491 func initDescriptors() { 492 activityLogServiceDescriptor = &ActivityLogServiceDescriptor{} 493 listActivityLogsDescriptor = &ListActivityLogsDescriptor{} 494 createActivityLogsDescriptor = &CreateActivityLogsDescriptor{} 495 gotenclient.GetRegistry().RegisterApiDescriptor(activityLogServiceDescriptor) 496 gotenclient.GetRegistry().RegisterMethodDescriptor(listActivityLogsDescriptor) 497 gotenclient.GetRegistry().RegisterMethodDescriptor(createActivityLogsDescriptor) 498 } 499 500 func init() { 501 if !descriptorsInitialized { 502 initDescriptors() 503 descriptorsInitialized = true 504 } 505 }