Package io.opentelemetry.sdk.logs.data
Class AutoValue_StringBody
java.lang.Object
io.opentelemetry.sdk.logs.data.StringBody
io.opentelemetry.sdk.logs.data.AutoValue_StringBody
- All Implemented Interfaces:
Body
-
Nested Class Summary
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class io.opentelemetry.sdk.logs.data.StringBody
create, getType
-
Field Details
-
asString
-
-
Constructor Details
-
AutoValue_StringBody
AutoValue_StringBody(String asString)
-
-
Method Details
-
asString
Description copied from interface:Body
Returns the String value of thisBody
.If the log record body is some
ValueType
other thanValueType.STRING
, this returnsValue.asString()
. Consumers should useLogRecordData.getBodyValue()
instead.- Specified by:
asString
in interfaceBody
- Specified by:
asString
in classStringBody
-
toString
-
equals
-
hashCode
public int hashCode()
-