Class LogEntryData (0.14.1)

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
TypeDescription
int

LABELS_FIELD_NUMBER

public static final int LABELS_FIELD_NUMBER
Field Value
TypeDescription
int

LOG_NAME_FIELD_NUMBER

public static final int LOG_NAME_FIELD_NUMBER
Field Value
TypeDescription
int

OPERATION_FIELD_NUMBER

public static final int OPERATION_FIELD_NUMBER
Field Value
TypeDescription
int

PROTO_PAYLOAD_FIELD_NUMBER

public static final int PROTO_PAYLOAD_FIELD_NUMBER
Field Value
TypeDescription
int

RECEIVE_TIMESTAMP_FIELD_NUMBER

public static final int RECEIVE_TIMESTAMP_FIELD_NUMBER
Field Value
TypeDescription
int

RESOURCE_FIELD_NUMBER

public static final int RESOURCE_FIELD_NUMBER
Field Value
TypeDescription
int

SEVERITY_FIELD_NUMBER

public static final int SEVERITY_FIELD_NUMBER
Field Value
TypeDescription
int

SPAN_ID_FIELD_NUMBER

public static final int SPAN_ID_FIELD_NUMBER
Field Value
TypeDescription
int

SPLIT_FIELD_NUMBER

public static final int SPLIT_FIELD_NUMBER
Field Value
TypeDescription
int

TIMESTAMP_FIELD_NUMBER

public static final int TIMESTAMP_FIELD_NUMBER
Field Value
TypeDescription
int

TRACE_FIELD_NUMBER

public static final int TRACE_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static LogEntryData getDefaultInstance()
Returns
TypeDescription
LogEntryData

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static LogEntryData.Builder newBuilder()
Returns
TypeDescription
LogEntryData.Builder

newBuilder(LogEntryData prototype)

public static LogEntryData.Builder newBuilder(LogEntryData prototype)
Parameter
NameDescription
prototypeLogEntryData
Returns
TypeDescription
LogEntryData.Builder

parseDelimitedFrom(InputStream input)

public static LogEntryData parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
LogEntryData
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static LogEntryData parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
LogEntryData
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static LogEntryData parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
LogEntryData
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static LogEntryData parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
LogEntryData
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static LogEntryData parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
LogEntryData
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static LogEntryData parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
LogEntryData
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static LogEntryData parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
LogEntryData
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static LogEntryData parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
LogEntryData
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static LogEntryData parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
LogEntryData
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static LogEntryData parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
LogEntryData
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static LogEntryData parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
LogEntryData
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static LogEntryData parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
LogEntryData
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<LogEntryData> parser()
Returns
TypeDescription
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
NameDescription
keyString
Returns
TypeDescription
boolean

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public LogEntryData getDefaultInstanceForType()
Returns
TypeDescription
LogEntryData

getInsertId()

public String getInsertId()

A unique identifier for the log entry.

string insert_id = 4;

Returns
TypeDescription
String

The insertId.

getInsertIdBytes()

public ByteString getInsertIdBytes()

A unique identifier for the log entry.

string insert_id = 4;

Returns
TypeDescription
ByteString

The bytes for insertId.

getLabels()

public Map<String,String> getLabels()

Use #getLabelsMap() instead.

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
keyString
defaultValueString
Returns
TypeDescription
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
NameDescription
keyString
Returns
TypeDescription
String

getLogName()

public 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 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 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 LogEntryOperationOrBuilder getOperationOrBuilder()

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

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

Returns
TypeDescription
LogEntryOperationOrBuilder

getParserForType()

public Parser<LogEntryData> getParserForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
AuditLogOrBuilder

getReceiveTimestamp()

public Timestamp getReceiveTimestamp()

The time the log entry was received by Logging.

.google.protobuf.Timestamp receive_timestamp = 24;

Returns
TypeDescription
Timestamp

The receiveTimestamp.

getReceiveTimestampOrBuilder()

public TimestampOrBuilder getReceiveTimestampOrBuilder()

The time the log entry was received by Logging.

.google.protobuf.Timestamp receive_timestamp = 24;

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
com.google.api.MonitoredResourceOrBuilder

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getSeverity()

public LogSeverity getSeverity()

The severity of the log entry.

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

Returns
TypeDescription
LogSeverity

The severity.

getSeverityValue()

public 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 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 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 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 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 Timestamp getTimestamp()

The time the event described by the log entry occurred.

.google.protobuf.Timestamp timestamp = 9;

Returns
TypeDescription
Timestamp

The timestamp.

getTimestampOrBuilder()

public TimestampOrBuilder getTimestampOrBuilder()

The time the event described by the log entry occurred.

.google.protobuf.Timestamp timestamp = 9;

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for trace.

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the timestamp field is set.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

internalGetMapField(int number)

protected MapField internalGetMapField(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
MapField
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public LogEntryData.Builder newBuilderForType()
Returns
TypeDescription
LogEntryData.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected LogEntryData.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
LogEntryData.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public LogEntryData.Builder toBuilder()
Returns
TypeDescription
LogEntryData.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException