1 // Copyright 2020 Google LLC. 2 // Use of this source code is governed by a BSD-style 3 // license that can be found in the LICENSE file. 4 5 // Code generated file. DO NOT EDIT. 6 7 // Package toolresults provides access to the Cloud Tool Results API. 8 // 9 // For product documentation, see: https://firebase.google.com/docs/test-lab/ 10 // 11 // # Creating a client 12 // 13 // Usage example: 14 // 15 // import "google.golang.org/api/toolresults/v1" 16 // ... 17 // ctx := context.Background() 18 // toolresultsService, err := toolresults.NewService(ctx) 19 // 20 // In this example, Google Application Default Credentials are used for authentication. 21 // 22 // For information on how to create and obtain Application Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials. 23 // 24 // # Other authentication options 25 // 26 // To use an API key for authentication (note: some APIs do not support API keys), use option.WithAPIKey: 27 // 28 // toolresultsService, err := toolresults.NewService(ctx, option.WithAPIKey("AIza...")) 29 // 30 // To use an OAuth token (e.g., a user token obtained via a three-legged OAuth flow), use option.WithTokenSource: 31 // 32 // config := &oauth2.Config{...} 33 // // ... 34 // token, err := config.Exchange(ctx, ...) 35 // toolresultsService, err := toolresults.NewService(ctx, option.WithTokenSource(config.TokenSource(ctx, token))) 36 // 37 // See https://godoc.org/google.golang.org/api/option/ for details on options. 38 package toolresults // import "google.golang.org/api/toolresults/v1" 39 40 import ( 41 "bytes" 42 "context" 43 "encoding/json" 44 "errors" 45 "fmt" 46 "io" 47 "net/http" 48 "net/url" 49 "strconv" 50 "strings" 51 52 googleapi "google.golang.org/api/googleapi" 53 gensupport "google.golang.org/api/internal/gensupport" 54 option "google.golang.org/api/option" 55 internaloption "google.golang.org/api/option/internaloption" 56 htransport "google.golang.org/api/transport/http" 57 ) 58 59 // Always reference these packages, just in case the auto-generated code 60 // below doesn't. 61 var _ = bytes.NewBuffer 62 var _ = strconv.Itoa 63 var _ = fmt.Sprintf 64 var _ = json.NewDecoder 65 var _ = io.Copy 66 var _ = url.Parse 67 var _ = gensupport.MarshalJSON 68 var _ = googleapi.Version 69 var _ = errors.New 70 var _ = strings.Replace 71 var _ = context.Canceled 72 var _ = internaloption.WithDefaultEndpoint 73 74 const apiId = "toolresults:v1" 75 const apiName = "toolresults" 76 const apiVersion = "v1" 77 const basePath = "https://www.googleapis.com/" 78 79 // NewService creates a new Service. 80 func NewService(ctx context.Context, opts ...option.ClientOption) (*Service, error) { 81 opts = append(opts, internaloption.WithDefaultEndpoint(basePath)) 82 client, endpoint, err := htransport.NewClient(ctx, opts...) 83 if err != nil { 84 return nil, err 85 } 86 s, err := New(client) 87 if err != nil { 88 return nil, err 89 } 90 if endpoint != "" { 91 s.BasePath = endpoint 92 } 93 return s, nil 94 } 95 96 // New creates a new Service. It uses the provided http.Client for requests. 97 // 98 // Deprecated: please use NewService instead. 99 // To provide a custom HTTP client, use option.WithHTTPClient. 100 // If you are using google.golang.org/api/googleapis/transport.APIKey, use option.WithAPIKey with NewService instead. 101 func New(client *http.Client) (*Service, error) { 102 if client == nil { 103 return nil, errors.New("client is nil") 104 } 105 s := &Service{client: client, BasePath: basePath} 106 return s, nil 107 } 108 109 type Service struct { 110 client *http.Client 111 BasePath string // API endpoint base URL 112 UserAgent string // optional additional User-Agent fragment 113 } 114 115 func (s *Service) userAgent() string { 116 if s.UserAgent == "" { 117 return googleapi.UserAgent 118 } 119 return googleapi.UserAgent + " " + s.UserAgent 120 } 121 122 // ANR: Additional details for an ANR crash. 123 type ANR struct { 124 // StackTrace: The stack trace of the ANR crash. 125 // Optional. 126 StackTrace *StackTrace `json:"stackTrace,omitempty"` 127 128 // ForceSendFields is a list of field names (e.g. "StackTrace") to 129 // unconditionally include in API requests. By default, fields with 130 // empty values are omitted from API requests. However, any non-pointer, 131 // non-interface field appearing in ForceSendFields will be sent to the 132 // server regardless of whether the field is empty or not. This may be 133 // used to include empty fields in Patch requests. 134 ForceSendFields []string `json:"-"` 135 136 // NullFields is a list of field names (e.g. "StackTrace") to include in 137 // API requests with the JSON null value. By default, fields with empty 138 // values are omitted from API requests. However, any field with an 139 // empty value appearing in NullFields will be sent to the server as 140 // null. It is an error if a field in this list has a non-empty value. 141 // This may be used to include null fields in Patch requests. 142 NullFields []string `json:"-"` 143 } 144 145 func (s *ANR) MarshalJSON() ([]byte, error) { 146 type NoMethod ANR 147 raw := NoMethod(*s) 148 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) 149 } 150 151 // AvailableDeepLinks: A suggestion to use deep links for a Robo run. 152 type AvailableDeepLinks struct { 153 } 154 155 // BlankScreen: A warning that Robo encountered a screen that was mostly 156 // blank; this may 157 // indicate a problem with the app. 158 type BlankScreen struct { 159 // ScreenId: The screen id of the element 160 ScreenId string `json:"screenId,omitempty"` 161 162 // ForceSendFields is a list of field names (e.g. "ScreenId") to 163 // unconditionally include in API requests. By default, fields with 164 // empty values are omitted from API requests. However, any non-pointer, 165 // non-interface field appearing in ForceSendFields will be sent to the 166 // server regardless of whether the field is empty or not. This may be 167 // used to include empty fields in Patch requests. 168 ForceSendFields []string `json:"-"` 169 170 // NullFields is a list of field names (e.g. "ScreenId") to include in 171 // API requests with the JSON null value. By default, fields with empty 172 // values are omitted from API requests. However, any field with an 173 // empty value appearing in NullFields will be sent to the server as 174 // null. It is an error if a field in this list has a non-empty value. 175 // This may be used to include null fields in Patch requests. 176 NullFields []string `json:"-"` 177 } 178 179 func (s *BlankScreen) MarshalJSON() ([]byte, error) { 180 type NoMethod BlankScreen 181 raw := NoMethod(*s) 182 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) 183 } 184 185 // CrashDialogError: Crash dialog was detected during the test execution 186 type CrashDialogError struct { 187 // CrashPackage: The name of the package that caused the dialog. 188 CrashPackage string `json:"crashPackage,omitempty"` 189 190 // ForceSendFields is a list of field names (e.g. "CrashPackage") to 191 // unconditionally include in API requests. By default, fields with 192 // empty values are omitted from API requests. However, any non-pointer, 193 // non-interface field appearing in ForceSendFields will be sent to the 194 // server regardless of whether the field is empty or not. This may be 195 // used to include empty fields in Patch requests. 196 ForceSendFields []string `json:"-"` 197 198 // NullFields is a list of field names (e.g. "CrashPackage") to include 199 // in API requests with the JSON null value. By default, fields with 200 // empty values are omitted from API requests. However, any field with 201 // an empty value appearing in NullFields will be sent to the server as 202 // null. It is an error if a field in this list has a non-empty value. 203 // This may be used to include null fields in Patch requests. 204 NullFields []string `json:"-"` 205 } 206 207 func (s *CrashDialogError) MarshalJSON() ([]byte, error) { 208 type NoMethod CrashDialogError 209 raw := NoMethod(*s) 210 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) 211 } 212 213 // EncounteredLoginScreen: Additional details about encountered login 214 // screens. 215 type EncounteredLoginScreen struct { 216 // DistinctScreens: Number of encountered distinct login screens. 217 DistinctScreens int64 `json:"distinctScreens,omitempty"` 218 219 // ScreenIds: Subset of login screens. 220 ScreenIds []string `json:"screenIds,omitempty"` 221 222 // ForceSendFields is a list of field names (e.g. "DistinctScreens") to 223 // unconditionally include in API requests. By default, fields with 224 // empty values are omitted from API requests. However, any non-pointer, 225 // non-interface field appearing in ForceSendFields will be sent to the 226 // server regardless of whether the field is empty or not. This may be 227 // used to include empty fields in Patch requests. 228 ForceSendFields []string `json:"-"` 229 230 // NullFields is a list of field names (e.g. "DistinctScreens") to 231 // include in API requests with the JSON null value. By default, fields 232 // with empty values are omitted from API requests. However, any field 233 // with an empty value appearing in NullFields will be sent to the 234 // server as null. It is an error if a field in this list has a 235 // non-empty value. This may be used to include null fields in Patch 236 // requests. 237 NullFields []string `json:"-"` 238 } 239 240 func (s *EncounteredLoginScreen) MarshalJSON() ([]byte, error) { 241 type NoMethod EncounteredLoginScreen 242 raw := NoMethod(*s) 243 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) 244 } 245 246 // EncounteredNonAndroidUiWidgetScreen: Additional details about 247 // encountered screens with elements that are not 248 // Android UI widgets. 249 type EncounteredNonAndroidUiWidgetScreen struct { 250 // DistinctScreens: Number of encountered distinct screens with non 251 // Android UI widgets. 252 DistinctScreens int64 `json:"distinctScreens,omitempty"` 253 254 // ScreenIds: Subset of screens which contain non Android UI widgets. 255 ScreenIds []string `json:"screenIds,omitempty"` 256 257 // ForceSendFields is a list of field names (e.g. "DistinctScreens") to 258 // unconditionally include in API requests. By default, fields with 259 // empty values are omitted from API requests. However, any non-pointer, 260 // non-interface field appearing in ForceSendFields will be sent to the 261 // server regardless of whether the field is empty or not. This may be 262 // used to include empty fields in Patch requests. 263 ForceSendFields []string `json:"-"` 264 265 // NullFields is a list of field names (e.g. "DistinctScreens") to 266 // include in API requests with the JSON null value. By default, fields 267 // with empty values are omitted from API requests. However, any field 268 // with an empty value appearing in NullFields will be sent to the 269 // server as null. It is an error if a field in this list has a 270 // non-empty value. This may be used to include null fields in Patch 271 // requests. 272 NullFields []string `json:"-"` 273 } 274 275 func (s *EncounteredNonAndroidUiWidgetScreen) MarshalJSON() ([]byte, error) { 276 type NoMethod EncounteredNonAndroidUiWidgetScreen 277 raw := NoMethod(*s) 278 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) 279 } 280 281 // FailedToInstall: Failed to install the APK. 282 type FailedToInstall struct { 283 } 284 285 // FatalException: Additional details for a fatal exception. 286 type FatalException struct { 287 // StackTrace: The stack trace of the fatal exception. 288 // Optional. 289 StackTrace *StackTrace `json:"stackTrace,omitempty"` 290 291 // ForceSendFields is a list of field names (e.g. "StackTrace") to 292 // unconditionally include in API requests. By default, fields with 293 // empty values are omitted from API requests. However, any non-pointer, 294 // non-interface field appearing in ForceSendFields will be sent to the 295 // server regardless of whether the field is empty or not. This may be 296 // used to include empty fields in Patch requests. 297 ForceSendFields []string `json:"-"` 298 299 // NullFields is a list of field names (e.g. "StackTrace") to include in 300 // API requests with the JSON null value. By default, fields with empty 301 // values are omitted from API requests. However, any field with an 302 // empty value appearing in NullFields will be sent to the server as 303 // null. It is an error if a field in this list has a non-empty value. 304 // This may be used to include null fields in Patch requests. 305 NullFields []string `json:"-"` 306 } 307 308 func (s *FatalException) MarshalJSON() ([]byte, error) { 309 type NoMethod FatalException 310 raw := NoMethod(*s) 311 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) 312 } 313 314 // InAppPurchasesFound: Additional details of in-app purchases 315 // encountered during the crawl. 316 type InAppPurchasesFound struct { 317 // InAppPurchasesFlowsExplored: The total number of in-app purchases 318 // flows explored: how many times the 319 // robo tries to buy a SKU. 320 InAppPurchasesFlowsExplored int64 `json:"inAppPurchasesFlowsExplored,omitempty"` 321 322 // InAppPurchasesFlowsStarted: The total number of in-app purchases 323 // flows started. 324 InAppPurchasesFlowsStarted int64 `json:"inAppPurchasesFlowsStarted,omitempty"` 325 326 // ForceSendFields is a list of field names (e.g. 327 // "InAppPurchasesFlowsExplored") to unconditionally include in API 328 // requests. By default, fields with empty values are omitted from API 329 // requests. However, any non-pointer, non-interface field appearing in 330 // ForceSendFields will be sent to the server regardless of whether the 331 // field is empty or not. This may be used to include empty fields in 332 // Patch requests. 333 ForceSendFields []string `json:"-"` 334 335 // NullFields is a list of field names (e.g. 336 // "InAppPurchasesFlowsExplored") to include in API requests with the 337 // JSON null value. By default, fields with empty values are omitted 338 // from API requests. However, any field with an empty value appearing 339 // in NullFields will be sent to the server as null. It is an error if a 340 // field in this list has a non-empty value. This may be used to include 341 // null fields in Patch requests. 342 NullFields []string `json:"-"` 343 } 344 345 func (s *InAppPurchasesFound) MarshalJSON() ([]byte, error) { 346 type NoMethod InAppPurchasesFound 347 raw := NoMethod(*s) 348 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) 349 } 350 351 // InsufficientCoverage: A warning that Robo did not crawl potentially 352 // important parts of the app. 353 type InsufficientCoverage struct { 354 } 355 356 // IosAppCrashed: Additional details for an iOS app crash. 357 type IosAppCrashed struct { 358 // StackTrace: The stack trace, if one is available. 359 // Optional. 360 StackTrace *StackTrace `json:"stackTrace,omitempty"` 361 362 // ForceSendFields is a list of field names (e.g. "StackTrace") to 363 // unconditionally include in API requests. By default, fields with 364 // empty values are omitted from API requests. However, any non-pointer, 365 // non-interface field appearing in ForceSendFields will be sent to the 366 // server regardless of whether the field is empty or not. This may be 367 // used to include empty fields in Patch requests. 368 ForceSendFields []string `json:"-"` 369 370 // NullFields is a list of field names (e.g. "StackTrace") to include in 371 // API requests with the JSON null value. By default, fields with empty 372 // values are omitted from API requests. However, any field with an 373 // empty value appearing in NullFields will be sent to the server as 374 // null. It is an error if a field in this list has a non-empty value. 375 // This may be used to include null fields in Patch requests. 376 NullFields []string `json:"-"` 377 } 378 379 func (s *IosAppCrashed) MarshalJSON() ([]byte, error) { 380 type NoMethod IosAppCrashed 381 raw := NoMethod(*s) 382 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) 383 } 384 385 // LauncherActivityNotFound: Failed to find the launcher activity of an 386 // app. 387 type LauncherActivityNotFound struct { 388 } 389 390 // NativeCrash: Additional details for a native crash. 391 type NativeCrash struct { 392 // StackTrace: The stack trace of the native crash. 393 // Optional. 394 StackTrace *StackTrace `json:"stackTrace,omitempty"` 395 396 // ForceSendFields is a list of field names (e.g. "StackTrace") to 397 // unconditionally include in API requests. By default, fields with 398 // empty values are omitted from API requests. However, any non-pointer, 399 // non-interface field appearing in ForceSendFields will be sent to the 400 // server regardless of whether the field is empty or not. This may be 401 // used to include empty fields in Patch requests. 402 ForceSendFields []string `json:"-"` 403 404 // NullFields is a list of field names (e.g. "StackTrace") to include in 405 // API requests with the JSON null value. By default, fields with empty 406 // values are omitted from API requests. However, any field with an 407 // empty value appearing in NullFields will be sent to the server as 408 // null. It is an error if a field in this list has a non-empty value. 409 // This may be used to include null fields in Patch requests. 410 NullFields []string `json:"-"` 411 } 412 413 func (s *NativeCrash) MarshalJSON() ([]byte, error) { 414 type NoMethod NativeCrash 415 raw := NoMethod(*s) 416 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) 417 } 418 419 // NonSdkApi: A non-sdk API and examples of it being called along with 420 // other 421 // metadata 422 // See 423 // https://developer.android.com/distribute/best-practices/d 424 // evelop/restrictions-non-sdk-interfaces 425 type NonSdkApi struct { 426 // ApiSignature: The signature of the Non-SDK API 427 ApiSignature string `json:"apiSignature,omitempty"` 428 429 // ExampleStackTraces: Example stack traces of this API being called. 430 ExampleStackTraces []string `json:"exampleStackTraces,omitempty"` 431 432 // Insights: Optional debugging insights for non-SDK API violations. 433 Insights []*NonSdkApiInsight `json:"insights,omitempty"` 434 435 // InvocationCount: The total number of times this API was observed to 436 // have been called. 437 InvocationCount int64 `json:"invocationCount,omitempty"` 438 439 // List: Which list this API appears on 440 // 441 // Possible values: 442 // "NONE" 443 // "WHITE" 444 // "BLACK" 445 // "GREY" 446 // "GREY_MAX_O" 447 // "GREY_MAX_P" 448 // "GREY_MAX_Q" 449 List string `json:"list,omitempty"` 450 451 // ForceSendFields is a list of field names (e.g. "ApiSignature") to 452 // unconditionally include in API requests. By default, fields with 453 // empty values are omitted from API requests. However, any non-pointer, 454 // non-interface field appearing in ForceSendFields will be sent to the 455 // server regardless of whether the field is empty or not. This may be 456 // used to include empty fields in Patch requests. 457 ForceSendFields []string `json:"-"` 458 459 // NullFields is a list of field names (e.g. "ApiSignature") to include 460 // in API requests with the JSON null value. By default, fields with 461 // empty values are omitted from API requests. However, any field with 462 // an empty value appearing in NullFields will be sent to the server as 463 // null. It is an error if a field in this list has a non-empty value. 464 // This may be used to include null fields in Patch requests. 465 NullFields []string `json:"-"` 466 } 467 468 func (s *NonSdkApi) MarshalJSON() ([]byte, error) { 469 type NoMethod NonSdkApi 470 raw := NoMethod(*s) 471 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) 472 } 473 474 // NonSdkApiInsight: Non-SDK API insights (to address debugging 475 // solutions). 476 type NonSdkApiInsight struct { 477 // ExampleTraceMessages: Optional sample stack traces, for which this 478 // insight applies (there 479 // should be at least one). 480 ExampleTraceMessages []string `json:"exampleTraceMessages,omitempty"` 481 482 // MatcherId: A unique ID, to be used for determining the effectiveness 483 // of this 484 // particular insight in the context of a matcher. (required) 485 MatcherId string `json:"matcherId,omitempty"` 486 487 // PendingGoogleUpdateInsight: An insight indicating that the hidden API 488 // usage originates from a 489 // Google-provided library. 490 PendingGoogleUpdateInsight *PendingGoogleUpdateInsight `json:"pendingGoogleUpdateInsight,omitempty"` 491 492 // UpgradeInsight: An insight indicating that the hidden API usage 493 // originates from the 494 // use of a library that needs to be upgraded. 495 UpgradeInsight *UpgradeInsight `json:"upgradeInsight,omitempty"` 496 497 // ForceSendFields is a list of field names (e.g. 498 // "ExampleTraceMessages") to unconditionally include in API requests. 499 // By default, fields with empty values are omitted from API requests. 500 // However, any non-pointer, non-interface field appearing in 501 // ForceSendFields will be sent to the server regardless of whether the 502 // field is empty or not. This may be used to include empty fields in 503 // Patch requests. 504 ForceSendFields []string `json:"-"` 505 506 // NullFields is a list of field names (e.g. "ExampleTraceMessages") to 507 // include in API requests with the JSON null value. By default, fields 508 // with empty values are omitted from API requests. However, any field 509 // with an empty value appearing in NullFields will be sent to the 510 // server as null. It is an error if a field in this list has a 511 // non-empty value. This may be used to include null fields in Patch 512 // requests. 513 NullFields []string `json:"-"` 514 } 515 516 func (s *NonSdkApiInsight) MarshalJSON() ([]byte, error) { 517 type NoMethod NonSdkApiInsight 518 raw := NoMethod(*s) 519 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) 520 } 521 522 // NonSdkApiUsageViolation: Additional details for a non-sdk API usage 523 // violation. 524 type NonSdkApiUsageViolation struct { 525 // ApiSignatures: Signatures of a subset of those hidden API's. 526 ApiSignatures []string `json:"apiSignatures,omitempty"` 527 528 // UniqueApis: Total number of unique hidden API's accessed. 529 UniqueApis int64 `json:"uniqueApis,omitempty"` 530 531 // ForceSendFields is a list of field names (e.g. "ApiSignatures") to 532 // unconditionally include in API requests. By default, fields with 533 // empty values are omitted from API requests. However, any non-pointer, 534 // non-interface field appearing in ForceSendFields will be sent to the 535 // server regardless of whether the field is empty or not. This may be 536 // used to include empty fields in Patch requests. 537 ForceSendFields []string `json:"-"` 538 539 // NullFields is a list of field names (e.g. "ApiSignatures") to include 540 // in API requests with the JSON null value. By default, fields with 541 // empty values are omitted from API requests. However, any field with 542 // an empty value appearing in NullFields will be sent to the server as 543 // null. It is an error if a field in this list has a non-empty value. 544 // This may be used to include null fields in Patch requests. 545 NullFields []string `json:"-"` 546 } 547 548 func (s *NonSdkApiUsageViolation) MarshalJSON() ([]byte, error) { 549 type NoMethod NonSdkApiUsageViolation 550 raw := NoMethod(*s) 551 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) 552 } 553 554 // NonSdkApiUsageViolationReport: Contains a summary and examples of 555 // non-sdk API usage violations. 556 type NonSdkApiUsageViolationReport struct { 557 // ExampleApis: Examples of the detected API usages. 558 ExampleApis []*NonSdkApi `json:"exampleApis,omitempty"` 559 560 // MinSdkVersion: Minimum API level required for the application to run. 561 MinSdkVersion int64 `json:"minSdkVersion,omitempty"` 562 563 // TargetSdkVersion: Specifies the API Level on which the application is 564 // designed to run. 565 TargetSdkVersion int64 `json:"targetSdkVersion,omitempty"` 566 567 // UniqueApis: Total number of unique Non-SDK API's accessed. 568 UniqueApis int64 `json:"uniqueApis,omitempty"` 569 570 // ForceSendFields is a list of field names (e.g. "ExampleApis") to 571 // unconditionally include in API requests. By default, fields with 572 // empty values are omitted from API requests. However, any non-pointer, 573 // non-interface field appearing in ForceSendFields will be sent to the 574 // server regardless of whether the field is empty or not. This may be 575 // used to include empty fields in Patch requests. 576 ForceSendFields []string `json:"-"` 577 578 // NullFields is a list of field names (e.g. "ExampleApis") to include 579 // in API requests with the JSON null value. By default, fields with 580 // empty values are omitted from API requests. However, any field with 581 // an empty value appearing in NullFields will be sent to the server as 582 // null. It is an error if a field in this list has a non-empty value. 583 // This may be used to include null fields in Patch requests. 584 NullFields []string `json:"-"` 585 } 586 587 func (s *NonSdkApiUsageViolationReport) MarshalJSON() ([]byte, error) { 588 type NoMethod NonSdkApiUsageViolationReport 589 raw := NoMethod(*s) 590 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) 591 } 592 593 // OverlappingUIElements: A warning that Robo encountered a screen that 594 // has overlapping clickable 595 // elements; this may indicate a potential UI issue. 596 type OverlappingUIElements struct { 597 // ResourceName: Resource names of the overlapping screen elements 598 ResourceName []string `json:"resourceName,omitempty"` 599 600 // ScreenId: The screen id of the elements 601 ScreenId string `json:"screenId,omitempty"` 602 603 // ForceSendFields is a list of field names (e.g. "ResourceName") to 604 // unconditionally include in API requests. By default, fields with 605 // empty values are omitted from API requests. However, any non-pointer, 606 // non-interface field appearing in ForceSendFields will be sent to the 607 // server regardless of whether the field is empty or not. This may be 608 // used to include empty fields in Patch requests. 609 ForceSendFields []string `json:"-"` 610 611 // NullFields is a list of field names (e.g. "ResourceName") to include 612 // in API requests with the JSON null value. By default, fields with 613 // empty values are omitted from API requests. However, any field with 614 // an empty value appearing in NullFields will be sent to the server as 615 // null. It is an error if a field in this list has a non-empty value. 616 // This may be used to include null fields in Patch requests. 617 NullFields []string `json:"-"` 618 } 619 620 func (s *OverlappingUIElements) MarshalJSON() ([]byte, error) { 621 type NoMethod OverlappingUIElements 622 raw := NoMethod(*s) 623 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) 624 } 625 626 // PendingGoogleUpdateInsight: This insight indicates that the hidden 627 // API usage originates from a 628 // Google-provided library. Users need not take any action. 629 type PendingGoogleUpdateInsight struct { 630 // NameOfGoogleLibrary: The name of the Google-provided library with the 631 // non-SDK API dependency. 632 NameOfGoogleLibrary string `json:"nameOfGoogleLibrary,omitempty"` 633 634 // ForceSendFields is a list of field names (e.g. "NameOfGoogleLibrary") 635 // to unconditionally include in API requests. By default, fields with 636 // empty values are omitted from API requests. However, any non-pointer, 637 // non-interface field appearing in ForceSendFields will be sent to the 638 // server regardless of whether the field is empty or not. This may be 639 // used to include empty fields in Patch requests. 640 ForceSendFields []string `json:"-"` 641 642 // NullFields is a list of field names (e.g. "NameOfGoogleLibrary") to 643 // include in API requests with the JSON null value. By default, fields 644 // with empty values are omitted from API requests. However, any field 645 // with an empty value appearing in NullFields will be sent to the 646 // server as null. It is an error if a field in this list has a 647 // non-empty value. This may be used to include null fields in Patch 648 // requests. 649 NullFields []string `json:"-"` 650 } 651 652 func (s *PendingGoogleUpdateInsight) MarshalJSON() ([]byte, error) { 653 type NoMethod PendingGoogleUpdateInsight 654 raw := NoMethod(*s) 655 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) 656 } 657 658 // PerformedGoogleLogin: A notification that Robo signed in with Google. 659 type PerformedGoogleLogin struct { 660 } 661 662 // PerformedMonkeyActions: A notification that Robo performed some 663 // monkey actions. 664 type PerformedMonkeyActions struct { 665 // TotalActions: The total number of monkey actions performed during the 666 // crawl. 667 TotalActions int64 `json:"totalActions,omitempty"` 668 669 // ForceSendFields is a list of field names (e.g. "TotalActions") to 670 // unconditionally include in API requests. By default, fields with 671 // empty values are omitted from API requests. However, any non-pointer, 672 // non-interface field appearing in ForceSendFields will be sent to the 673 // server regardless of whether the field is empty or not. This may be 674 // used to include empty fields in Patch requests. 675 ForceSendFields []string `json:"-"` 676 677 // NullFields is a list of field names (e.g. "TotalActions") to include 678 // in API requests with the JSON null value. By default, fields with 679 // empty values are omitted from API requests. However, any field with 680 // an empty value appearing in NullFields will be sent to the server as 681 // null. It is an error if a field in this list has a non-empty value. 682 // This may be used to include null fields in Patch requests. 683 NullFields []string `json:"-"` 684 } 685 686 func (s *PerformedMonkeyActions) MarshalJSON() ([]byte, error) { 687 type NoMethod PerformedMonkeyActions 688 raw := NoMethod(*s) 689 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) 690 } 691 692 // RoboScriptExecution: Execution stats for a user-provided Robo script. 693 type RoboScriptExecution struct { 694 // SuccessfulActions: The number of Robo script actions executed 695 // successfully. 696 SuccessfulActions int64 `json:"successfulActions,omitempty"` 697 698 // TotalActions: The total number of actions in the Robo script. 699 TotalActions int64 `json:"totalActions,omitempty"` 700 701 // ForceSendFields is a list of field names (e.g. "SuccessfulActions") 702 // to unconditionally include in API requests. By default, fields with 703 // empty values are omitted from API requests. However, any non-pointer, 704 // non-interface field appearing in ForceSendFields will be sent to the 705 // server regardless of whether the field is empty or not. This may be 706 // used to include empty fields in Patch requests. 707 ForceSendFields []string `json:"-"` 708 709 // NullFields is a list of field names (e.g. "SuccessfulActions") to 710 // include in API requests with the JSON null value. By default, fields 711 // with empty values are omitted from API requests. However, any field 712 // with an empty value appearing in NullFields will be sent to the 713 // server as null. It is an error if a field in this list has a 714 // non-empty value. This may be used to include null fields in Patch 715 // requests. 716 NullFields []string `json:"-"` 717 } 718 719 func (s *RoboScriptExecution) MarshalJSON() ([]byte, error) { 720 type NoMethod RoboScriptExecution 721 raw := NoMethod(*s) 722 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) 723 } 724 725 // StackTrace: A stacktrace. 726 type StackTrace struct { 727 // Exception: The stack trace message. 728 // 729 // Required 730 Exception string `json:"exception,omitempty"` 731 732 // ForceSendFields is a list of field names (e.g. "Exception") to 733 // unconditionally include in API requests. By default, fields with 734 // empty values are omitted from API requests. However, any non-pointer, 735 // non-interface field appearing in ForceSendFields will be sent to the 736 // server regardless of whether the field is empty or not. This may be 737 // used to include empty fields in Patch requests. 738 ForceSendFields []string `json:"-"` 739 740 // NullFields is a list of field names (e.g. "Exception") to include in 741 // API requests with the JSON null value. By default, fields with empty 742 // values are omitted from API requests. However, any field with an 743 // empty value appearing in NullFields will be sent to the server as 744 // null. It is an error if a field in this list has a non-empty value. 745 // This may be used to include null fields in Patch requests. 746 NullFields []string `json:"-"` 747 } 748 749 func (s *StackTrace) MarshalJSON() ([]byte, error) { 750 type NoMethod StackTrace 751 raw := NoMethod(*s) 752 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) 753 } 754 755 // StartActivityNotFound: User provided intent failed to resolve to an 756 // activity. 757 type StartActivityNotFound struct { 758 Action string `json:"action,omitempty"` 759 760 Uri string `json:"uri,omitempty"` 761 762 // ForceSendFields is a list of field names (e.g. "Action") to 763 // unconditionally include in API requests. By default, fields with 764 // empty values are omitted from API requests. However, any non-pointer, 765 // non-interface field appearing in ForceSendFields will be sent to the 766 // server regardless of whether the field is empty or not. This may be 767 // used to include empty fields in Patch requests. 768 ForceSendFields []string `json:"-"` 769 770 // NullFields is a list of field names (e.g. "Action") to include in API 771 // requests with the JSON null value. By default, fields with empty 772 // values are omitted from API requests. However, any field with an 773 // empty value appearing in NullFields will be sent to the server as 774 // null. It is an error if a field in this list has a non-empty value. 775 // This may be used to include null fields in Patch requests. 776 NullFields []string `json:"-"` 777 } 778 779 func (s *StartActivityNotFound) MarshalJSON() ([]byte, error) { 780 type NoMethod StartActivityNotFound 781 raw := NoMethod(*s) 782 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) 783 } 784 785 // UIElementTooDeep: A warning that the screen hierarchy is deeper than 786 // the recommended threshold. 787 type UIElementTooDeep struct { 788 // Depth: The depth of the screen element 789 Depth int64 `json:"depth,omitempty"` 790 791 // ScreenId: The screen id of the element 792 ScreenId string `json:"screenId,omitempty"` 793 794 // ScreenStateId: The screen state id of the element 795 ScreenStateId string `json:"screenStateId,omitempty"` 796 797 // ForceSendFields is a list of field names (e.g. "Depth") to 798 // unconditionally include in API requests. By default, fields with 799 // empty values are omitted from API requests. However, any non-pointer, 800 // non-interface field appearing in ForceSendFields will be sent to the 801 // server regardless of whether the field is empty or not. This may be 802 // used to include empty fields in Patch requests. 803 ForceSendFields []string `json:"-"` 804 805 // NullFields is a list of field names (e.g. "Depth") to include in API 806 // requests with the JSON null value. By default, fields with empty 807 // values are omitted from API requests. However, any field with an 808 // empty value appearing in NullFields will be sent to the server as 809 // null. It is an error if a field in this list has a non-empty value. 810 // This may be used to include null fields in Patch requests. 811 NullFields []string `json:"-"` 812 } 813 814 func (s *UIElementTooDeep) MarshalJSON() ([]byte, error) { 815 type NoMethod UIElementTooDeep 816 raw := NoMethod(*s) 817 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) 818 } 819 820 // UnspecifiedWarning: Default unspecified warning. 821 type UnspecifiedWarning struct { 822 } 823 824 // UnusedRoboDirective: Additional details of an unused robodirective. 825 type UnusedRoboDirective struct { 826 // ResourceName: The name of the resource that was unused. 827 ResourceName string `json:"resourceName,omitempty"` 828 829 // ForceSendFields is a list of field names (e.g. "ResourceName") to 830 // unconditionally include in API requests. By default, fields with 831 // empty values are omitted from API requests. However, any non-pointer, 832 // non-interface field appearing in ForceSendFields will be sent to the 833 // server regardless of whether the field is empty or not. This may be 834 // used to include empty fields in Patch requests. 835 ForceSendFields []string `json:"-"` 836 837 // NullFields is a list of field names (e.g. "ResourceName") to include 838 // in API requests with the JSON null value. By default, fields with 839 // empty values are omitted from API requests. However, any field with 840 // an empty value appearing in NullFields will be sent to the server as 841 // null. It is an error if a field in this list has a non-empty value. 842 // This may be used to include null fields in Patch requests. 843 NullFields []string `json:"-"` 844 } 845 846 func (s *UnusedRoboDirective) MarshalJSON() ([]byte, error) { 847 type NoMethod UnusedRoboDirective 848 raw := NoMethod(*s) 849 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) 850 } 851 852 // UpgradeInsight: This insight is a recommendation to upgrade a given 853 // library to the specified 854 // version, in order to avoid dependencies on non-SDK APIs. 855 type UpgradeInsight struct { 856 // PackageName: The name of the package to be upgraded. 857 PackageName string `json:"packageName,omitempty"` 858 859 // UpgradeToVersion: The suggested version to upgrade to. 860 // Optional: In case we are not sure which version solves this problem 861 UpgradeToVersion string `json:"upgradeToVersion,omitempty"` 862 863 // ForceSendFields is a list of field names (e.g. "PackageName") to 864 // unconditionally include in API requests. By default, fields with 865 // empty values are omitted from API requests. However, any non-pointer, 866 // non-interface field appearing in ForceSendFields will be sent to the 867 // server regardless of whether the field is empty or not. This may be 868 // used to include empty fields in Patch requests. 869 ForceSendFields []string `json:"-"` 870 871 // NullFields is a list of field names (e.g. "PackageName") to include 872 // in API requests with the JSON null value. By default, fields with 873 // empty values are omitted from API requests. However, any field with 874 // an empty value appearing in NullFields will be sent to the server as 875 // null. It is an error if a field in this list has a non-empty value. 876 // This may be used to include null fields in Patch requests. 877 NullFields []string `json:"-"` 878 } 879 880 func (s *UpgradeInsight) MarshalJSON() ([]byte, error) { 881 type NoMethod UpgradeInsight 882 raw := NoMethod(*s) 883 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) 884 } 885 886 // UsedRoboDirective: Additional details of a used Robo directive. 887 type UsedRoboDirective struct { 888 // ResourceName: The name of the resource that was used. 889 ResourceName string `json:"resourceName,omitempty"` 890 891 // ForceSendFields is a list of field names (e.g. "ResourceName") to 892 // unconditionally include in API requests. By default, fields with 893 // empty values are omitted from API requests. However, any non-pointer, 894 // non-interface field appearing in ForceSendFields will be sent to the 895 // server regardless of whether the field is empty or not. This may be 896 // used to include empty fields in Patch requests. 897 ForceSendFields []string `json:"-"` 898 899 // NullFields is a list of field names (e.g. "ResourceName") to include 900 // in API requests with the JSON null value. By default, fields with 901 // empty values are omitted from API requests. However, any field with 902 // an empty value appearing in NullFields will be sent to the server as 903 // null. It is an error if a field in this list has a non-empty value. 904 // This may be used to include null fields in Patch requests. 905 NullFields []string `json:"-"` 906 } 907 908 func (s *UsedRoboDirective) MarshalJSON() ([]byte, error) { 909 type NoMethod UsedRoboDirective 910 raw := NoMethod(*s) 911 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) 912 } 913 914 // UsedRoboIgnoreDirective: Additional details of a used Robo directive 915 // with an ignore action. 916 // Note: This is a different scenario than unused directive. 917 type UsedRoboIgnoreDirective struct { 918 // ResourceName: The name of the resource that was ignored. 919 ResourceName string `json:"resourceName,omitempty"` 920 921 // ForceSendFields is a list of field names (e.g. "ResourceName") to 922 // unconditionally include in API requests. By default, fields with 923 // empty values are omitted from API requests. However, any non-pointer, 924 // non-interface field appearing in ForceSendFields will be sent to the 925 // server regardless of whether the field is empty or not. This may be 926 // used to include empty fields in Patch requests. 927 ForceSendFields []string `json:"-"` 928 929 // NullFields is a list of field names (e.g. "ResourceName") to include 930 // in API requests with the JSON null value. By default, fields with 931 // empty values are omitted from API requests. However, any field with 932 // an empty value appearing in NullFields will be sent to the server as 933 // null. It is an error if a field in this list has a non-empty value. 934 // This may be used to include null fields in Patch requests. 935 NullFields []string `json:"-"` 936 } 937 938 func (s *UsedRoboIgnoreDirective) MarshalJSON() ([]byte, error) { 939 type NoMethod UsedRoboIgnoreDirective 940 raw := NoMethod(*s) 941 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) 942 } 943