Interface LogEntryDataOrBuilder (0.14.1)

public interface LogEntryDataOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

containsLabels(String key)

public abstract boolean containsLabels(String key)

A set of user-defined (key, value) data that provides additional information about the log entry.

map<string, string> labels = 11;

Parameter
NameDescription
keyString
Returns
TypeDescription
boolean

getInsertId()

public abstract String getInsertId()

A unique identifier for the log entry.

string insert_id = 4;

Returns
TypeDescription
String

The insertId.

getInsertIdBytes()

public abstract ByteString getInsertIdBytes()

A unique identifier for the log entry.

string insert_id = 4;

Returns
TypeDescription
ByteString

The bytes for insertId.

getLabels()

public abstract Map<String,String> getLabels()

Use #getLabelsMap() instead.

Returns
TypeDescription
Map<String,String>

getLabelsCount()

public abstract int getLabelsCount()

A set of user-defined (key, value) data that provides additional information about the log entry.

map<string, string> labels = 11;

Returns
TypeDescription
int

getLabelsMap()

public abstract Map<String,String> getLabelsMap()

A set of user-defined (key, value) data that provides additional information about the log entry.

map<string, string> labels = 11;

Returns
TypeDescription
Map<String,String>

getLabelsOrDefault(String key, String defaultValue)

public abstract String getLabelsOrDefault(String key, String defaultValue)

A set of user-defined (key, value) data that provides additional information about the log entry.

map<string, string> labels = 11;

Parameters
NameDescription
keyString
defaultValueString
Returns
TypeDescription
String

getLabelsOrThrow(String key)

public abstract String getLabelsOrThrow(String key)

A set of user-defined (key, value) data that provides additional information about the log entry.

map<string, string> labels = 11;

Parameter
NameDescription
keyString
Returns
TypeDescription
String

getLogName()

public abstract String getLogName()

The resource name of the log to which this log entry belongs.

string log_name = 12;

Returns
TypeDescription
String

The logName.

getLogNameBytes()

public abstract ByteString getLogNameBytes()

The resource name of the log to which this log entry belongs.

string log_name = 12;

Returns
TypeDescription
ByteString

The bytes for logName.

getOperation()

public abstract LogEntryOperation getOperation()

Information about an operation associated with the log entry, if applicable.

.google.events.cloud.audit.v1.LogEntryOperation operation = 15;

Returns
TypeDescription
LogEntryOperation

The operation.

getOperationOrBuilder()

public abstract LogEntryOperationOrBuilder getOperationOrBuilder()

Information about an operation associated with the log entry, if applicable.

.google.events.cloud.audit.v1.LogEntryOperation operation = 15;

Returns
TypeDescription
LogEntryOperationOrBuilder

getProtoPayload()

public abstract AuditLog getProtoPayload()

The log entry payload, which is always an AuditLog for Cloud Audit Log events.

.google.events.cloud.audit.v1.AuditLog proto_payload = 2;

Returns
TypeDescription
AuditLog

The protoPayload.

getProtoPayloadOrBuilder()

public abstract AuditLogOrBuilder getProtoPayloadOrBuilder()

The log entry payload, which is always an AuditLog for Cloud Audit Log events.

.google.events.cloud.audit.v1.AuditLog proto_payload = 2;

Returns
TypeDescription
AuditLogOrBuilder

getReceiveTimestamp()

public abstract Timestamp getReceiveTimestamp()

The time the log entry was received by Logging.

.google.protobuf.Timestamp receive_timestamp = 24;

Returns
TypeDescription
Timestamp

The receiveTimestamp.

getReceiveTimestampOrBuilder()

public abstract TimestampOrBuilder getReceiveTimestampOrBuilder()

The time the log entry was received by Logging.

.google.protobuf.Timestamp receive_timestamp = 24;

Returns
TypeDescription
TimestampOrBuilder

getResource()

public abstract MonitoredResource getResource()

The monitored resource that produced this log entry. Example: a log entry that reports a database error would be associated with the monitored resource designating the particular database that reported the error.

.google.api.MonitoredResource resource = 8;

Returns
TypeDescription
com.google.api.MonitoredResource

The resource.

getResourceOrBuilder()

public abstract MonitoredResourceOrBuilder getResourceOrBuilder()

The monitored resource that produced this log entry. Example: a log entry that reports a database error would be associated with the monitored resource designating the particular database that reported the error.

.google.api.MonitoredResource resource = 8;

Returns
TypeDescription
com.google.api.MonitoredResourceOrBuilder

getSeverity()

public abstract LogSeverity getSeverity()

The severity of the log entry.

.google.events.cloud.audit.v1.LogSeverity severity = 10;

Returns
TypeDescription
LogSeverity

The severity.

getSeverityValue()

public abstract int getSeverityValue()

The severity of the log entry.

.google.events.cloud.audit.v1.LogSeverity severity = 10;

Returns
TypeDescription
int

The enum numeric value on the wire for severity.

getSpanId()

public abstract String getSpanId()

The span ID within the trace associated with the log entry, if any. For Trace spans, this is the same format that the Trace API v2 uses: a 16-character hexadecimal encoding of an 8-byte array, such as 000000000000004a.

string span_id = 27;

Returns
TypeDescription
String

The spanId.

getSpanIdBytes()

public abstract ByteString getSpanIdBytes()

The span ID within the trace associated with the log entry, if any. For Trace spans, this is the same format that the Trace API v2 uses: a 16-character hexadecimal encoding of an 8-byte array, such as 000000000000004a.

string span_id = 27;

Returns
TypeDescription
ByteString

The bytes for spanId.

getSplit()

public abstract LogSplit getSplit()

Information indicating this LogEntry is part of a sequence of multiple logs split from a single LogEntry.

.google.events.cloud.audit.v1.LogSplit split = 35;

Returns
TypeDescription
LogSplit

The split.

getSplitOrBuilder()

public abstract LogSplitOrBuilder getSplitOrBuilder()

Information indicating this LogEntry is part of a sequence of multiple logs split from a single LogEntry.

.google.events.cloud.audit.v1.LogSplit split = 35;

Returns
TypeDescription
LogSplitOrBuilder

getTimestamp()

public abstract Timestamp getTimestamp()

The time the event described by the log entry occurred.

.google.protobuf.Timestamp timestamp = 9;

Returns
TypeDescription
Timestamp

The timestamp.

getTimestampOrBuilder()

public abstract TimestampOrBuilder getTimestampOrBuilder()

The time the event described by the log entry occurred.

.google.protobuf.Timestamp timestamp = 9;

Returns
TypeDescription
TimestampOrBuilder

getTrace()

public abstract String getTrace()

Resource name of the trace associated with the log entry, if any. If it contains a relative resource name, the name is assumed to be relative to //tracing.googleapis.com. Example: projects/my-projectid/traces/06796866738c859f2f19b7cfb3214824

string trace = 22;

Returns
TypeDescription
String

The trace.

getTraceBytes()

public abstract ByteString getTraceBytes()

Resource name of the trace associated with the log entry, if any. If it contains a relative resource name, the name is assumed to be relative to //tracing.googleapis.com. Example: projects/my-projectid/traces/06796866738c859f2f19b7cfb3214824

string trace = 22;

Returns
TypeDescription
ByteString

The bytes for trace.

hasOperation()

public abstract boolean hasOperation()

Information about an operation associated with the log entry, if applicable.

.google.events.cloud.audit.v1.LogEntryOperation operation = 15;

Returns
TypeDescription
boolean

Whether the operation field is set.

hasProtoPayload()

public abstract boolean hasProtoPayload()

The log entry payload, which is always an AuditLog for Cloud Audit Log events.

.google.events.cloud.audit.v1.AuditLog proto_payload = 2;

Returns
TypeDescription
boolean

Whether the protoPayload field is set.

hasReceiveTimestamp()

public abstract boolean hasReceiveTimestamp()

The time the log entry was received by Logging.

.google.protobuf.Timestamp receive_timestamp = 24;

Returns
TypeDescription
boolean

Whether the receiveTimestamp field is set.

hasResource()

public abstract boolean hasResource()

The monitored resource that produced this log entry. Example: a log entry that reports a database error would be associated with the monitored resource designating the particular database that reported the error.

.google.api.MonitoredResource resource = 8;

Returns
TypeDescription
boolean

Whether the resource field is set.

hasSplit()

public abstract boolean hasSplit()

Information indicating this LogEntry is part of a sequence of multiple logs split from a single LogEntry.

.google.events.cloud.audit.v1.LogSplit split = 35;

Returns
TypeDescription
boolean

Whether the split field is set.

hasTimestamp()

public abstract boolean hasTimestamp()

The time the event described by the log entry occurred.

.google.protobuf.Timestamp timestamp = 9;

Returns
TypeDescription
boolean

Whether the timestamp field is set.