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
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
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()
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static LogEntryData.Builder newBuilder()
newBuilder(LogEntryData prototype)
public static LogEntryData.Builder newBuilder(LogEntryData prototype)
parseDelimitedFrom(InputStream input)
public static LogEntryData parseDelimitedFrom(InputStream input)
parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static LogEntryData parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(byte[] data)
public static LogEntryData parseFrom(byte[] data)
Parameter |
---|
Name | Description |
data | byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static LogEntryData parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteString data)
public static LogEntryData parseFrom(ByteString data)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static LogEntryData parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
parseFrom(CodedInputStream input)
public static LogEntryData parseFrom(CodedInputStream input)
parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static LogEntryData parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(InputStream input)
public static LogEntryData parseFrom(InputStream input)
parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static LogEntryData parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteBuffer data)
public static LogEntryData parseFrom(ByteBuffer data)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static LogEntryData parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
parser()
public static Parser<LogEntryData> parser()
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
|
equals(Object obj)
public boolean equals(Object obj)
Parameter |
---|
Name | Description |
obj | Object
|
Overrides
getDefaultInstanceForType()
public LogEntryData getDefaultInstanceForType()
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()
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;
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;
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
|
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;
getOperationOrBuilder()
public LogEntryOperationOrBuilder getOperationOrBuilder()
Information about an operation associated with the log entry, if
applicable.
.google.events.cloud.audit.v1.LogEntryOperation operation = 15;
getParserForType()
public Parser<LogEntryData> getParserForType()
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;
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;
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;
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;
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;
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()
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()
Returns |
---|
Type | Description |
int | |
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
internalGetMapField(int number)
protected MapField internalGetMapField(int number)
Parameter |
---|
Name | Description |
number | int
|
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public LogEntryData.Builder newBuilderForType()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected LogEntryData.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Overrides
toBuilder()
public LogEntryData.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides