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
@Generated("com.google.auto.value.processor.AutoValueProcessor") final class AutoValue_StringBody extends StringBody
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.String
asString
-
Constructor Summary
Constructors Constructor Description AutoValue_StringBody(java.lang.String asString)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
asString()
Returns the String value of thisBody
.boolean
equals(java.lang.Object o)
int
hashCode()
java.lang.String
toString()
-
Methods inherited from class io.opentelemetry.sdk.logs.data.StringBody
create, getType
-
-
-
-
Method Detail
-
asString
public java.lang.String 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
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-