Class CloudLoggingEntry.Builder (2.45.0)

public static final class CloudLoggingEntry.Builder extends GeneratedMessageV3.Builder<CloudLoggingEntry.Builder> implements CloudLoggingEntryOrBuilder

Metadata taken from a Cloud Logging LogEntry

Protobuf type google.cloud.securitycenter.v2.CloudLoggingEntry

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public CloudLoggingEntry.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
CloudLoggingEntry.Builder
Overrides

build()

public CloudLoggingEntry build()
Returns
TypeDescription
CloudLoggingEntry

buildPartial()

public CloudLoggingEntry buildPartial()
Returns
TypeDescription
CloudLoggingEntry

clear()

public CloudLoggingEntry.Builder clear()
Returns
TypeDescription
CloudLoggingEntry.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public CloudLoggingEntry.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
CloudLoggingEntry.Builder
Overrides

clearInsertId()

public CloudLoggingEntry.Builder clearInsertId()

A unique identifier for the log entry.

string insert_id = 1;

Returns
TypeDescription
CloudLoggingEntry.Builder

This builder for chaining.

clearLogId()

public CloudLoggingEntry.Builder clearLogId()

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 in LogEntry.

string log_id = 2;

Returns
TypeDescription
CloudLoggingEntry.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public CloudLoggingEntry.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
CloudLoggingEntry.Builder
Overrides

clearResourceContainer()

public CloudLoggingEntry.Builder clearResourceContainer()

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

string resource_container = 3;

Returns
TypeDescription
CloudLoggingEntry.Builder

This builder for chaining.

clearTimestamp()

public CloudLoggingEntry.Builder clearTimestamp()

The time the event described by the log entry occurred.

.google.protobuf.Timestamp timestamp = 4;

Returns
TypeDescription
CloudLoggingEntry.Builder

clone()

public CloudLoggingEntry.Builder clone()
Returns
TypeDescription
CloudLoggingEntry.Builder
Overrides

getDefaultInstanceForType()

public CloudLoggingEntry getDefaultInstanceForType()
Returns
TypeDescription
CloudLoggingEntry

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

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 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 in LogEntry.

string log_id = 2;

Returns
TypeDescription
ByteString

The bytes for logId.

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.

getTimestamp()

public Timestamp getTimestamp()

The time the event described by the log entry occurred.

.google.protobuf.Timestamp timestamp = 4;

Returns
TypeDescription
Timestamp

The timestamp.

getTimestampBuilder()

public Timestamp.Builder getTimestampBuilder()

The time the event described by the log entry occurred.

.google.protobuf.Timestamp timestamp = 4;

Returns
TypeDescription
Builder

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.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(CloudLoggingEntry other)

public CloudLoggingEntry.Builder mergeFrom(CloudLoggingEntry other)
Parameter
NameDescription
otherCloudLoggingEntry
Returns
TypeDescription
CloudLoggingEntry.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public CloudLoggingEntry.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CloudLoggingEntry.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public CloudLoggingEntry.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
CloudLoggingEntry.Builder
Overrides

mergeTimestamp(Timestamp value)

public CloudLoggingEntry.Builder mergeTimestamp(Timestamp value)

The time the event described by the log entry occurred.

.google.protobuf.Timestamp timestamp = 4;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
CloudLoggingEntry.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final CloudLoggingEntry.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
CloudLoggingEntry.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public CloudLoggingEntry.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
CloudLoggingEntry.Builder
Overrides

setInsertId(String value)

public CloudLoggingEntry.Builder setInsertId(String value)

A unique identifier for the log entry.

string insert_id = 1;

Parameter
NameDescription
valueString

The insertId to set.

Returns
TypeDescription
CloudLoggingEntry.Builder

This builder for chaining.

setInsertIdBytes(ByteString value)

public CloudLoggingEntry.Builder setInsertIdBytes(ByteString value)

A unique identifier for the log entry.

string insert_id = 1;

Parameter
NameDescription
valueByteString

The bytes for insertId to set.

Returns
TypeDescription
CloudLoggingEntry.Builder

This builder for chaining.

setLogId(String value)

public CloudLoggingEntry.Builder setLogId(String value)

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 in LogEntry.

string log_id = 2;

Parameter
NameDescription
valueString

The logId to set.

Returns
TypeDescription
CloudLoggingEntry.Builder

This builder for chaining.

setLogIdBytes(ByteString value)

public CloudLoggingEntry.Builder setLogIdBytes(ByteString value)

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 in LogEntry.

string log_id = 2;

Parameter
NameDescription
valueByteString

The bytes for logId to set.

Returns
TypeDescription
CloudLoggingEntry.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public CloudLoggingEntry.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
CloudLoggingEntry.Builder
Overrides

setResourceContainer(String value)

public CloudLoggingEntry.Builder setResourceContainer(String value)

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

string resource_container = 3;

Parameter
NameDescription
valueString

The resourceContainer to set.

Returns
TypeDescription
CloudLoggingEntry.Builder

This builder for chaining.

setResourceContainerBytes(ByteString value)

public CloudLoggingEntry.Builder setResourceContainerBytes(ByteString value)

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

string resource_container = 3;

Parameter
NameDescription
valueByteString

The bytes for resourceContainer to set.

Returns
TypeDescription
CloudLoggingEntry.Builder

This builder for chaining.

setTimestamp(Timestamp value)

public CloudLoggingEntry.Builder setTimestamp(Timestamp value)

The time the event described by the log entry occurred.

.google.protobuf.Timestamp timestamp = 4;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
CloudLoggingEntry.Builder

setTimestamp(Timestamp.Builder builderForValue)

public CloudLoggingEntry.Builder setTimestamp(Timestamp.Builder builderForValue)

The time the event described by the log entry occurred.

.google.protobuf.Timestamp timestamp = 4;

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
CloudLoggingEntry.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final CloudLoggingEntry.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
CloudLoggingEntry.Builder
Overrides