Class: Google::Apis::PagespeedonlineV5::LighthouseResultV5::I18n::RendererFormattedStrings

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/pagespeedonline_v5/classes.rb,
generated/google/apis/pagespeedonline_v5/representations.rb,
generated/google/apis/pagespeedonline_v5/representations.rb

Overview

Internationalized strings that are formatted to the locale in configSettings.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ RendererFormattedStrings

Returns a new instance of RendererFormattedStrings



465
466
467
# File 'generated/google/apis/pagespeedonline_v5/classes.rb', line 465

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#audit_group_expand_tooltipString

The tooltip text on an expandable chevron icon. Corresponds to the JSON property auditGroupExpandTooltip

Returns:

  • (String)


387
388
389
# File 'generated/google/apis/pagespeedonline_v5/classes.rb', line 387

def audit_group_expand_tooltip
  @audit_group_expand_tooltip
end

#crc_initial_navigationString

The label for the initial request in a critical request chain. Corresponds to the JSON property crcInitialNavigation

Returns:

  • (String)


392
393
394
# File 'generated/google/apis/pagespeedonline_v5/classes.rb', line 392

def crc_initial_navigation
  @crc_initial_navigation
end

#crc_longest_duration_labelString

The label for values shown in the summary of critical request chains. Corresponds to the JSON property crcLongestDurationLabel

Returns:

  • (String)


397
398
399
# File 'generated/google/apis/pagespeedonline_v5/classes.rb', line 397

def crc_longest_duration_label
  @crc_longest_duration_label
end

#error_labelString

The label shown next to an audit or metric that has had an error. Corresponds to the JSON property errorLabel

Returns:

  • (String)


402
403
404
# File 'generated/google/apis/pagespeedonline_v5/classes.rb', line 402

def error_label
  @error_label
end

#error_missing_audit_infoString

The error string shown next to an erroring audit. Corresponds to the JSON property errorMissingAuditInfo

Returns:

  • (String)


407
408
409
# File 'generated/google/apis/pagespeedonline_v5/classes.rb', line 407

def error_missing_audit_info
  @error_missing_audit_info
end

#lab_data_titleString

The title of the lab data performance category. Corresponds to the JSON property labDataTitle

Returns:

  • (String)


412
413
414
# File 'generated/google/apis/pagespeedonline_v5/classes.rb', line 412

def lab_data_title
  @lab_data_title
end

#ls_performance_category_descriptionString

The disclaimer shown under performance explaning that the network can vary. Corresponds to the JSON property lsPerformanceCategoryDescription

Returns:

  • (String)


417
418
419
# File 'generated/google/apis/pagespeedonline_v5/classes.rb', line 417

def ls_performance_category_description
  @ls_performance_category_description
end

#manual_audits_group_titleString

The heading shown above a list of audits that were not computerd in the run. Corresponds to the JSON property manualAuditsGroupTitle

Returns:

  • (String)


422
423
424
# File 'generated/google/apis/pagespeedonline_v5/classes.rb', line 422

def manual_audits_group_title
  @manual_audits_group_title
end

#not_applicable_audits_group_titleString

The heading shown above a list of audits that do not apply to a page. Corresponds to the JSON property notApplicableAuditsGroupTitle

Returns:

  • (String)


427
428
429
# File 'generated/google/apis/pagespeedonline_v5/classes.rb', line 427

def not_applicable_audits_group_title
  @not_applicable_audits_group_title
end

#opportunity_resource_column_labelString

The heading for the estimated page load savings opportunity of an audit. Corresponds to the JSON property opportunityResourceColumnLabel

Returns:

  • (String)


432
433
434
# File 'generated/google/apis/pagespeedonline_v5/classes.rb', line 432

def opportunity_resource_column_label
  @opportunity_resource_column_label
end

#opportunity_savings_column_labelString

The heading for the estimated page load savings of opportunity audits. Corresponds to the JSON property opportunitySavingsColumnLabel

Returns:

  • (String)


437
438
439
# File 'generated/google/apis/pagespeedonline_v5/classes.rb', line 437

def opportunity_savings_column_label
  @opportunity_savings_column_label
end

#passed_audits_group_titleString

The heading that is shown above a list of audits that are passing. Corresponds to the JSON property passedAuditsGroupTitle

Returns:

  • (String)


442
443
444
# File 'generated/google/apis/pagespeedonline_v5/classes.rb', line 442

def passed_audits_group_title
  @passed_audits_group_title
end

#scorescale_labelString

The label that explains the score gauges scale (0-49, 50-89, 90-100). Corresponds to the JSON property scorescaleLabel

Returns:

  • (String)


447
448
449
# File 'generated/google/apis/pagespeedonline_v5/classes.rb', line 447

def scorescale_label
  @scorescale_label
end

#toplevel_warnings_messageString

The label shown preceding important warnings that may have invalidated an entire report. Corresponds to the JSON property toplevelWarningsMessage

Returns:

  • (String)


453
454
455
# File 'generated/google/apis/pagespeedonline_v5/classes.rb', line 453

def toplevel_warnings_message
  @toplevel_warnings_message
end

#variance_disclaimerString

The disclaimer shown below a performance metric value. Corresponds to the JSON property varianceDisclaimer

Returns:

  • (String)


458
459
460
# File 'generated/google/apis/pagespeedonline_v5/classes.rb', line 458

def variance_disclaimer
  @variance_disclaimer
end

#warning_headerString

The label shown above a bulleted list of warnings. Corresponds to the JSON property warningHeader

Returns:

  • (String)


463
464
465
# File 'generated/google/apis/pagespeedonline_v5/classes.rb', line 463

def warning_header
  @warning_header
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
# File 'generated/google/apis/pagespeedonline_v5/classes.rb', line 470

def update!(**args)
  @audit_group_expand_tooltip = args[:audit_group_expand_tooltip] if args.key?(:audit_group_expand_tooltip)
  @crc_initial_navigation = args[:crc_initial_navigation] if args.key?(:crc_initial_navigation)
  @crc_longest_duration_label = args[:crc_longest_duration_label] if args.key?(:crc_longest_duration_label)
  @error_label = args[:error_label] if args.key?(:error_label)
  @error_missing_audit_info = args[:error_missing_audit_info] if args.key?(:error_missing_audit_info)
  @lab_data_title = args[:lab_data_title] if args.key?(:lab_data_title)
  @ls_performance_category_description = args[:ls_performance_category_description] if args.key?(:ls_performance_category_description)
  @manual_audits_group_title = args[:manual_audits_group_title] if args.key?(:manual_audits_group_title)
  @not_applicable_audits_group_title = args[:not_applicable_audits_group_title] if args.key?(:not_applicable_audits_group_title)
  @opportunity_resource_column_label = args[:opportunity_resource_column_label] if args.key?(:opportunity_resource_column_label)
  @opportunity_savings_column_label = args[:opportunity_savings_column_label] if args.key?(:opportunity_savings_column_label)
  @passed_audits_group_title = args[:passed_audits_group_title] if args.key?(:passed_audits_group_title)
  @scorescale_label = args[:scorescale_label] if args.key?(:scorescale_label)
  @toplevel_warnings_message = args[:toplevel_warnings_message] if args.key?(:toplevel_warnings_message)
  @variance_disclaimer = args[:variance_disclaimer] if args.key?(:variance_disclaimer)
  @warning_header = args[:warning_header] if args.key?(:warning_header)
end