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.StringasString
-
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.StringasString()Returns the String value of thisBody.booleanequals(java.lang.Object o)inthashCode()java.lang.StringtoString()-
Methods inherited from class io.opentelemetry.sdk.logs.data.StringBody
create, getType
-
-
-
-
Method Detail
-
asString
public java.lang.String asString()
Description copied from interface:BodyReturns the String value of thisBody.If the log record body is some
ValueTypeother thanValueType.STRING, this returnsValue.asString(). Consumers should useLogRecordData.getBodyValue()instead.- Specified by:
asStringin interfaceBody- Specified by:
asStringin classStringBody
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-