public abstract class Payload<T> extends Object implements Serializable
Modifier and Type | Class and Description |
---|---|
static class |
Payload.JsonPayload
A log entry's JSON payload.
|
static class |
Payload.ProtoPayload
A log entry payload as a protobuf object.
|
static class |
Payload.StringPayload
A log entry payload as an UTF-8 string.
|
static class |
Payload.Type
Type for a log entry payload.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
T |
getData()
Returns the log entry payload's data.
|
Payload.Type |
getType()
Returns the payload type.
|
int |
hashCode() |
String |
toString() |
public Payload.Type getType()
Payload.Type.STRING
), a JSON object
(Payload.Type.JSON
) or a protobuf object (Payload.Type.PROTO
).public T getData()
Copyright © 2023 Google LLC. All rights reserved.