KeyValueBuilder

public final classKeyValueBuilder


Helper class to enable convenient syntax insetCustomKeys andrecordException

Summary

Public methods

final void
key(@NonNullString key, boolean value)

Sets a custom key and value that are associated with reports.

final void
key(@NonNullString key, double value)

Sets a custom key and value that are associated with reports.

final void
key(@NonNullString key, float value)

Sets a custom key and value that are associated with reports.

final void
key(@NonNullString key, int value)

Sets a custom key and value that are associated with reports.

final void
key(@NonNullString key, long value)

Sets a custom key and value that are associated with reports.

final void

Sets a custom key and value that are associated with reports.

Public methods

key

public final void key(@NonNullString key, boolean value)

Sets a custom key and value that are associated with reports.

key

public final void key(@NonNullString key, double value)

Sets a custom key and value that are associated with reports.

key

public final void key(@NonNullString key, float value)

Sets a custom key and value that are associated with reports.

key

public final void key(@NonNullString key, int value)

Sets a custom key and value that are associated with reports.

key

public final void key(@NonNullString key, long value)

Sets a custom key and value that are associated with reports.

key

public final void key(@NonNullString key, @NonNullString value)

Sets a custom key and value that are associated with reports.

Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025-07-21 UTC.