public final class V2LogEntry
extends com.google.api.client.json.GenericJson
This is the Java data model class that specifies how to parse/serialize into the JSON that is transmitted over HTTP when working with the Service Control API. For a detailed explanation see: https://developers.google.com/api-client-library/java/google-http-java-client/json
com.google.api.client.util.GenericData.FlagsAbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description |
|---|
V2LogEntry() |
| Modifier and Type | Method and Description |
|---|---|
V2LogEntry |
clone() |
V2HttpRequest |
getHttpRequest()
Optional.
|
String |
getInsertId()
A unique ID for the log entry used for deduplication.
|
Map<String,String> |
getLabels()
A set of user-defined (key, value) data that provides additional information about the log
entry.
|
Map<String,String> |
getMonitoredResourceLabels()
A set of user-defined (key, value) data that provides additional information about the
moniotored resource that the log entry belongs to.
|
String |
getName()
Required.
|
V2LogEntryOperation |
getOperation()
Optional.
|
Map<String,Object> |
getProtoPayload()
The log entry payload, represented as a protocol buffer that is expressed as a JSON object.
|
String |
getSeverity()
The severity of the log entry.
|
V2LogEntrySourceLocation |
getSourceLocation()
Optional.
|
Map<String,Object> |
getStructPayload()
The log entry payload, represented as a structure that is expressed as a JSON object.
|
String |
getTextPayload()
The log entry payload, represented as a Unicode string (UTF-8).
|
String |
getTimestamp()
The time the event described by the log entry occurred.
|
String |
getTrace()
Optional.
|
V2LogEntry |
set(String fieldName,
Object value) |
V2LogEntry |
setHttpRequest(V2HttpRequest httpRequest)
Optional.
|
V2LogEntry |
setInsertId(String insertId)
A unique ID for the log entry used for deduplication.
|
V2LogEntry |
setLabels(Map<String,String> labels)
A set of user-defined (key, value) data that provides additional information about the log
entry.
|
V2LogEntry |
setMonitoredResourceLabels(Map<String,String> monitoredResourceLabels)
A set of user-defined (key, value) data that provides additional information about the
moniotored resource that the log entry belongs to.
|
V2LogEntry |
setName(String name)
Required.
|
V2LogEntry |
setOperation(V2LogEntryOperation operation)
Optional.
|
V2LogEntry |
setProtoPayload(Map<String,Object> protoPayload)
The log entry payload, represented as a protocol buffer that is expressed as a JSON object.
|
V2LogEntry |
setSeverity(String severity)
The severity of the log entry.
|
V2LogEntry |
setSourceLocation(V2LogEntrySourceLocation sourceLocation)
Optional.
|
V2LogEntry |
setStructPayload(Map<String,Object> structPayload)
The log entry payload, represented as a structure that is expressed as a JSON object.
|
V2LogEntry |
setTextPayload(String textPayload)
The log entry payload, represented as a Unicode string (UTF-8).
|
V2LogEntry |
setTimestamp(String timestamp)
The time the event described by the log entry occurred.
|
V2LogEntry |
setTrace(String trace)
Optional.
|
getFactory, setFactory, toPrettyString, toStringentrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeysclear, containsKey, containsValue, isEmpty, keySet, size, valuesfinalize, getClass, notify, notifyAll, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAllpublic V2HttpRequest getHttpRequest()
null for nonepublic V2LogEntry setHttpRequest(V2HttpRequest httpRequest)
httpRequest - httpRequest or null for nonepublic String getInsertId()
null for nonepublic V2LogEntry setInsertId(String insertId)
insertId - insertId or null for nonepublic Map<String,String> getLabels()
null for nonepublic V2LogEntry setLabels(Map<String,String> labels)
labels - labels or null for nonepublic Map<String,String> getMonitoredResourceLabels()
null for nonepublic V2LogEntry setMonitoredResourceLabels(Map<String,String> monitoredResourceLabels)
monitoredResourceLabels - monitoredResourceLabels or null for nonepublic String getName()
null for nonepublic V2LogEntry setName(String name)
name - name or null for nonepublic V2LogEntryOperation getOperation()
null for nonepublic V2LogEntry setOperation(V2LogEntryOperation operation)
operation - operation or null for nonepublic Map<String,Object> getProtoPayload()
null for nonepublic V2LogEntry setProtoPayload(Map<String,Object> protoPayload)
protoPayload - protoPayload or null for nonepublic String getSeverity()
null for nonepublic V2LogEntry setSeverity(String severity)
severity - severity or null for nonepublic V2LogEntrySourceLocation getSourceLocation()
null for nonepublic V2LogEntry setSourceLocation(V2LogEntrySourceLocation sourceLocation)
sourceLocation - sourceLocation or null for nonepublic Map<String,Object> getStructPayload()
null for nonepublic V2LogEntry setStructPayload(Map<String,Object> structPayload)
structPayload - structPayload or null for nonepublic String getTextPayload()
null for nonepublic V2LogEntry setTextPayload(String textPayload)
textPayload - textPayload or null for nonepublic String getTimestamp()
null for nonepublic V2LogEntry setTimestamp(String timestamp)
timestamp - timestamp or null for nonepublic String getTrace()
null for nonepublic V2LogEntry setTrace(String trace)
trace - trace or null for nonepublic V2LogEntry set(String fieldName, Object value)
set in class com.google.api.client.json.GenericJsonpublic V2LogEntry clone()
clone in class com.google.api.client.json.GenericJsonCopyright © 2011–2025 Google. All rights reserved.