Class LogEntryData (0.16.0)

public final class LogEntryData extends GeneratedMessageV3 implements LogEntryDataOrBuilder

The data within all Cloud Audit Logs log entry events.

Protobuf type google.events.cloud.audit.v1.LogEntryData

Static Fields

INSERT_ID_FIELD_NUMBER

public static final int INSERT_ID_FIELD_NUMBER
Field Value
Type Description
int

LABELS_FIELD_NUMBER

public static final int LABELS_FIELD_NUMBER
Field Value
Type Description
int

LOG_NAME_FIELD_NUMBER

public static final int LOG_NAME_FIELD_NUMBER
Field Value
Type Description
int

OPERATION_FIELD_NUMBER

public static final int OPERATION_FIELD_NUMBER
Field Value
Type Description
int

PROTO_PAYLOAD_FIELD_NUMBER

public static final int PROTO_PAYLOAD_FIELD_NUMBER
Field Value
Type Description
int

RECEIVE_TIMESTAMP_FIELD_NUMBER

public static final int RECEIVE_TIMESTAMP_FIELD_NUMBER
Field Value
Type Description
int

RESOURCE_FIELD_NUMBER

public static final int RESOURCE_FIELD_NUMBER
Field Value
Type Description
int

SEVERITY_FIELD_NUMBER

public static final int SEVERITY_FIELD_NUMBER
Field Value
Type Description
int

SPAN_ID_FIELD_NUMBER

public static final int SPAN_ID_FIELD_NUMBER
Field Value
Type Description
int

SPLIT_FIELD_NUMBER

public static final int SPLIT_FIELD_NUMBER
Field Value
Type Description
int

TIMESTAMP_FIELD_NUMBER

public static final int TIMESTAMP_FIELD_NUMBER
Field Value
Type Description
int

TRACE_FIELD_NUMBER

public static final int TRACE_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static LogEntryData getDefaultInstance()
Returns
Type Description
LogEntryData

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static LogEntryData.Builder newBuilder()
Returns
Type Description
LogEntryData.Builder

newBuilder(LogEntryData prototype)

public static LogEntryData.Builder newBuilder(LogEntryData prototype)
Parameter
Name Description
prototype LogEntryData
Returns
Type Description
LogEntryData.Builder

parseDelimitedFrom(InputStream input)

public static LogEntryData parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
LogEntryData
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static LogEntryData parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
LogEntryData
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static LogEntryData parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
LogEntryData
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static LogEntryData parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
LogEntryData
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static LogEntryData parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
LogEntryData
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static LogEntryData parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
LogEntryData
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static LogEntryData parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
LogEntryData
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static LogEntryData parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
LogEntryData
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static LogEntryData parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
LogEntryData
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static LogEntryData parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
LogEntryData
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static LogEntryData parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
LogEntryData
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static LogEntryData parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
LogEntryData
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<LogEntryData> parser()
Returns
Type Description
Parser<LogEntryData>

Methods

containsLabels(String key)

public 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
Name Description
key String
Returns
Type Description
boolean

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

public LogEntryData getDefaultInstanceForType()
Returns
Type Description
LogEntryData

getInsertId()

public String getInsertId()

A unique identifier for the log entry.

string insert_id = 4;

Returns
Type Description
String

The insertId.

getInsertIdBytes()

public ByteString getInsertIdBytes()

A unique identifier for the log entry.

string insert_id = 4;

Returns
Type Description
ByteString

The bytes for insertId.

getLabels()

public Map<String,String> getLabels()

Use #getLabelsMap() instead.

Returns
Type Description
Map<String,String>

getLabelsCount()

public int getLabelsCount()

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

map<string, string> labels = 11;

Returns
Type Description
int

getLabelsMap()

public 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
Type Description
Map<String,String>

getLabelsOrDefault(String key, String defaultValue)

public 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
Name Description
key String
defaultValue String
Returns
Type Description
String

getLabelsOrThrow(String key)

public 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
Name Description
key String
Returns
Type Description
String

getLogName()

public String getLogName()

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

string log_name = 12;

Returns
Type Description
String

The logName.

getLogNameBytes()

public ByteString getLogNameBytes()

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

string log_name = 12;

Returns
Type Description
ByteString

The bytes for logName.

getOperation()

public LogEntryOperation getOperation()

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

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

Returns
Type Description
LogEntryOperation

The operation.

getOperationOrBuilder()

public LogEntryOperationOrBuilder getOperationOrBuilder()

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

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

Returns
Type Description
LogEntryOperationOrBuilder

getParserForType()

public Parser<LogEntryData> getParserForType()
Returns
Type Description
Parser<LogEntryData>
Overrides

getProtoPayload()

public 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
Type Description
AuditLog

The protoPayload.

getProtoPayloadOrBuilder()

public 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
Type Description
AuditLogOrBuilder

getReceiveTimestamp()

public Timestamp getReceiveTimestamp()

The time the log entry was received by Logging.

.google.protobuf.Timestamp receive_timestamp = 24;

Returns
Type Description
Timestamp

The receiveTimestamp.

getReceiveTimestampOrBuilder()

public TimestampOrBuilder getReceiveTimestampOrBuilder()

The time the log entry was received by Logging.

.google.protobuf.Timestamp receive_timestamp = 24;

Returns
Type Description
TimestampOrBuilder

getResource()

public 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
Type Description
com.google.api.MonitoredResource

The resource.

getResourceOrBuilder()

public 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
Type Description
com.google.api.MonitoredResourceOrBuilder

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getSeverity()

public LogSeverity getSeverity()

The severity of the log entry.

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

Returns
Type Description
LogSeverity

The severity.

getSeverityValue()

public int getSeverityValue()

The severity of the log entry.

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

Returns
Type Description
int

The enum numeric value on the wire for severity.

getSpanId()

public 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
Type Description
String

The spanId.

getSpanIdBytes()

public 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
Type Description
ByteString

The bytes for spanId.

getSplit()

public 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
Type Description
LogSplit

The split.

getSplitOrBuilder()

public 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
Type Description
LogSplitOrBuilder

getTimestamp()

public Timestamp getTimestamp()

The time the event described by the log entry occurred.

.google.protobuf.Timestamp timestamp = 9;

Returns
Type Description
Timestamp

The timestamp.

getTimestampOrBuilder()

public TimestampOrBuilder getTimestampOrBuilder()

The time the event described by the log entry occurred.

.google.protobuf.Timestamp timestamp = 9;

Returns
Type Description
TimestampOrBuilder

getTrace()

public 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
Type Description
String

The trace.

getTraceBytes()

public 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
Type Description
ByteString

The bytes for trace.

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
Type Description
UnknownFieldSet
Overrides

hasOperation()

public boolean hasOperation()

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

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

Returns
Type Description
boolean

Whether the operation field is set.

hasProtoPayload()

public 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
Type Description
boolean

Whether the protoPayload field is set.

hasReceiveTimestamp()

public boolean hasReceiveTimestamp()

The time the log entry was received by Logging.

.google.protobuf.Timestamp receive_timestamp = 24;

Returns
Type Description
boolean

Whether the receiveTimestamp field is set.

hasResource()

public 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
Type Description
boolean

Whether the resource field is set.

hasSplit()

public 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
Type Description
boolean

Whether the split field is set.

hasTimestamp()

public boolean hasTimestamp()

The time the event described by the log entry occurred.

.google.protobuf.Timestamp timestamp = 9;

Returns
Type Description
boolean

Whether the timestamp field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

internalGetMapField(int number)

protected MapField internalGetMapField(int number)
Parameter
Name Description
number int
Returns
Type Description
MapField
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public LogEntryData.Builder newBuilderForType()
Returns
Type Description
LogEntryData.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected LogEntryData.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
LogEntryData.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public LogEntryData.Builder toBuilder()
Returns
Type Description
LogEntryData.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException