public interface LogEntryOrBuilder
extends com.google.protobuf.MessageOrBuilder
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsLabels(java.lang.String key)
A set of user-defined (key, value) data that provides additional
information about the log entry.
|
java.lang.String |
getInsertId()
A unique ID for the log entry used for deduplication.
|
com.google.protobuf.ByteString |
getInsertIdBytes()
A unique ID for the log entry used for deduplication.
|
java.util.Map<java.lang.String,java.lang.String> |
getLabels()
Deprecated.
|
int |
getLabelsCount()
A set of user-defined (key, value) data that provides additional
information about the log entry.
|
java.util.Map<java.lang.String,java.lang.String> |
getLabelsMap()
A set of user-defined (key, value) data that provides additional
information about the log entry.
|
java.lang.String |
getLabelsOrDefault(java.lang.String key,
java.lang.String defaultValue)
A set of user-defined (key, value) data that provides additional
information about the log entry.
|
java.lang.String |
getLabelsOrThrow(java.lang.String key)
A set of user-defined (key, value) data that provides additional
information about the log entry.
|
java.lang.String |
getName()
Required.
|
com.google.protobuf.ByteString |
getNameBytes()
Required.
|
LogEntry.PayloadCase |
getPayloadCase() |
com.google.protobuf.Any |
getProtoPayload()
The log entry payload, represented as a protocol buffer that is
expressed as a JSON object.
|
com.google.protobuf.AnyOrBuilder |
getProtoPayloadOrBuilder()
The log entry payload, represented as a protocol buffer that is
expressed as a JSON object.
|
com.google.logging.type.LogSeverity |
getSeverity()
The severity of the log entry.
|
int |
getSeverityValue()
The severity of the log entry.
|
com.google.protobuf.Struct |
getStructPayload()
The log entry payload, represented as a structure that
is expressed as a JSON object.
|
com.google.protobuf.StructOrBuilder |
getStructPayloadOrBuilder()
The log entry payload, represented as a structure that
is expressed as a JSON object.
|
java.lang.String |
getTextPayload()
The log entry payload, represented as a Unicode string (UTF-8).
|
com.google.protobuf.ByteString |
getTextPayloadBytes()
The log entry payload, represented as a Unicode string (UTF-8).
|
com.google.protobuf.Timestamp |
getTimestamp()
The time the event described by the log entry occurred.
|
com.google.protobuf.TimestampOrBuilder |
getTimestampOrBuilder()
The time the event described by the log entry occurred.
|
boolean |
hasTimestamp()
The time the event described by the log entry occurred.
|
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofjava.lang.String getName()
Required. The log to which this log entry belongs. Examples: `"syslog"`, `"book_log"`.
optional string name = 10;com.google.protobuf.ByteString getNameBytes()
Required. The log to which this log entry belongs. Examples: `"syslog"`, `"book_log"`.
optional string name = 10;boolean hasTimestamp()
The time the event described by the log entry occurred. If omitted, defaults to operation start time.
optional .google.protobuf.Timestamp timestamp = 11;com.google.protobuf.Timestamp getTimestamp()
The time the event described by the log entry occurred. If omitted, defaults to operation start time.
optional .google.protobuf.Timestamp timestamp = 11;com.google.protobuf.TimestampOrBuilder getTimestampOrBuilder()
The time the event described by the log entry occurred. If omitted, defaults to operation start time.
optional .google.protobuf.Timestamp timestamp = 11;int getSeverityValue()
The severity of the log entry. The default value is `LogSeverity.DEFAULT`.
optional .google.logging.type.LogSeverity severity = 12;com.google.logging.type.LogSeverity getSeverity()
The severity of the log entry. The default value is `LogSeverity.DEFAULT`.
optional .google.logging.type.LogSeverity severity = 12;java.lang.String getInsertId()
A unique ID for the log entry used for deduplication. If omitted, the implementation will generate one based on operation_id.
optional string insert_id = 4;com.google.protobuf.ByteString getInsertIdBytes()
A unique ID for the log entry used for deduplication. If omitted, the implementation will generate one based on operation_id.
optional string insert_id = 4;int getLabelsCount()
A set of user-defined (key, value) data that provides additional information about the log entry.
map<string, string> labels = 13;boolean containsLabels(java.lang.String key)
A set of user-defined (key, value) data that provides additional information about the log entry.
map<string, string> labels = 13;@Deprecated java.util.Map<java.lang.String,java.lang.String> getLabels()
getLabelsMap() instead.java.util.Map<java.lang.String,java.lang.String> getLabelsMap()
A set of user-defined (key, value) data that provides additional information about the log entry.
map<string, string> labels = 13;java.lang.String getLabelsOrDefault(java.lang.String key,
java.lang.String defaultValue)
A set of user-defined (key, value) data that provides additional information about the log entry.
map<string, string> labels = 13;java.lang.String getLabelsOrThrow(java.lang.String key)
A set of user-defined (key, value) data that provides additional information about the log entry.
map<string, string> labels = 13;com.google.protobuf.Any getProtoPayload()
The log entry payload, represented as a protocol buffer that is expressed as a JSON object. You can only pass `protoPayload` values that belong to a set of approved types.
optional .google.protobuf.Any proto_payload = 2;com.google.protobuf.AnyOrBuilder getProtoPayloadOrBuilder()
The log entry payload, represented as a protocol buffer that is expressed as a JSON object. You can only pass `protoPayload` values that belong to a set of approved types.
optional .google.protobuf.Any proto_payload = 2;java.lang.String getTextPayload()
The log entry payload, represented as a Unicode string (UTF-8).
optional string text_payload = 3;com.google.protobuf.ByteString getTextPayloadBytes()
The log entry payload, represented as a Unicode string (UTF-8).
optional string text_payload = 3;com.google.protobuf.Struct getStructPayload()
The log entry payload, represented as a structure that is expressed as a JSON object.
optional .google.protobuf.Struct struct_payload = 6;com.google.protobuf.StructOrBuilder getStructPayloadOrBuilder()
The log entry payload, represented as a structure that is expressed as a JSON object.
optional .google.protobuf.Struct struct_payload = 6;LogEntry.PayloadCase getPayloadCase()