Class CloudLoggingEntry (2.47.0)

public final class CloudLoggingEntry extends GeneratedMessageV3 implements CloudLoggingEntryOrBuilder

Metadata taken from a Cloud Logging LogEntry

Protobuf type google.cloud.securitycenter.v1.CloudLoggingEntry

Static Fields

INSERT_ID_FIELD_NUMBER

public static final int INSERT_ID_FIELD_NUMBER
Field Value
TypeDescription
int

LOG_ID_FIELD_NUMBER

public static final int LOG_ID_FIELD_NUMBER
Field Value
TypeDescription
int

RESOURCE_CONTAINER_FIELD_NUMBER

public static final int RESOURCE_CONTAINER_FIELD_NUMBER
Field Value
TypeDescription
int

TIMESTAMP_FIELD_NUMBER

public static final int TIMESTAMP_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static CloudLoggingEntry getDefaultInstance()
Returns
TypeDescription
CloudLoggingEntry

getDescriptor()

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

newBuilder()

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

newBuilder(CloudLoggingEntry prototype)

public static CloudLoggingEntry.Builder newBuilder(CloudLoggingEntry prototype)
Parameter
NameDescription
prototypeCloudLoggingEntry
Returns
TypeDescription
CloudLoggingEntry.Builder

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

public static Parser<CloudLoggingEntry> parser()
Returns
TypeDescription
Parser<CloudLoggingEntry>

Methods

equals(Object obj)

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

getDefaultInstanceForType()

public CloudLoggingEntry getDefaultInstanceForType()
Returns
TypeDescription
CloudLoggingEntry

getInsertId()

public String getInsertId()

A unique identifier for the log entry.

string insert_id = 1;

Returns
TypeDescription
String

The insertId.

getInsertIdBytes()

public ByteString getInsertIdBytes()

A unique identifier for the log entry.

string insert_id = 1;

Returns
TypeDescription
ByteString

The bytes for insertId.

getLogId()

public String getLogId()

The type of the log (part of log_name. log_name is the resource name of the log to which this log entry belongs). For example: cloudresourcemanager.googleapis.com/activity. Note that this field is not URL-encoded, unlike the LOG_ID field in LogEntry.

string log_id = 2;

Returns
TypeDescription
String

The logId.

getLogIdBytes()

public ByteString getLogIdBytes()

The type of the log (part of log_name. log_name is the resource name of the log to which this log entry belongs). For example: cloudresourcemanager.googleapis.com/activity. Note that this field is not URL-encoded, unlike the LOG_ID field in LogEntry.

string log_id = 2;

Returns
TypeDescription
ByteString

The bytes for logId.

getParserForType()

public Parser<CloudLoggingEntry> getParserForType()
Returns
TypeDescription
Parser<CloudLoggingEntry>
Overrides

getResourceContainer()

public String getResourceContainer()

The organization, folder, or project of the monitored resource that produced this log entry.

string resource_container = 3;

Returns
TypeDescription
String

The resourceContainer.

getResourceContainerBytes()

public ByteString getResourceContainerBytes()

The organization, folder, or project of the monitored resource that produced this log entry.

string resource_container = 3;

Returns
TypeDescription
ByteString

The bytes for resourceContainer.

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getTimestamp()

public Timestamp getTimestamp()

The time the event described by the log entry occurred.

.google.protobuf.Timestamp timestamp = 4;

Returns
TypeDescription
Timestamp

The timestamp.

getTimestampOrBuilder()

public TimestampOrBuilder getTimestampOrBuilder()

The time the event described by the log entry occurred.

.google.protobuf.Timestamp timestamp = 4;

Returns
TypeDescription
TimestampOrBuilder

hasTimestamp()

public boolean hasTimestamp()

The time the event described by the log entry occurred.

.google.protobuf.Timestamp timestamp = 4;

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

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

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

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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