Class CloudLoggingEntry.Builder (2.60.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
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public CloudLoggingEntry.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
CloudLoggingEntry.Builder
Overrides

build()

public CloudLoggingEntry build()
Returns
Type Description
CloudLoggingEntry

buildPartial()

public CloudLoggingEntry buildPartial()
Returns
Type Description
CloudLoggingEntry

clear()

public CloudLoggingEntry.Builder clear()
Returns
Type Description
CloudLoggingEntry.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public CloudLoggingEntry.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
CloudLoggingEntry.Builder
Overrides

clearInsertId()

public CloudLoggingEntry.Builder clearInsertId()

A unique identifier for the log entry.

string insert_id = 1;

Returns
Type Description
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
Type Description
CloudLoggingEntry.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public CloudLoggingEntry.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
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
Type Description
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
Type Description
CloudLoggingEntry.Builder

clone()

public CloudLoggingEntry.Builder clone()
Returns
Type Description
CloudLoggingEntry.Builder
Overrides

getDefaultInstanceForType()

public CloudLoggingEntry getDefaultInstanceForType()
Returns
Type Description
CloudLoggingEntry

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getInsertId()

public String getInsertId()

A unique identifier for the log entry.

string insert_id = 1;

Returns
Type Description
String

The insertId.

getInsertIdBytes()

public ByteString getInsertIdBytes()

A unique identifier for the log entry.

string insert_id = 1;

Returns
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
Timestamp

The timestamp.

getTimestampBuilder()

public Timestamp.Builder getTimestampBuilder()

The time the event described by the log entry occurred.

.google.protobuf.Timestamp timestamp = 4;

Returns
Type Description
Builder

getTimestampOrBuilder()

public TimestampOrBuilder getTimestampOrBuilder()

The time the event described by the log entry occurred.

.google.protobuf.Timestamp timestamp = 4;

Returns
Type Description
TimestampOrBuilder

hasTimestamp()

public boolean hasTimestamp()

The time the event described by the log entry occurred.

.google.protobuf.Timestamp timestamp = 4;

Returns
Type Description
boolean

Whether the timestamp field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CloudLoggingEntry other)

public CloudLoggingEntry.Builder mergeFrom(CloudLoggingEntry other)
Parameter
Name Description
other CloudLoggingEntry
Returns
Type Description
CloudLoggingEntry.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public CloudLoggingEntry.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CloudLoggingEntry.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public CloudLoggingEntry.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
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
Name Description
value Timestamp
Returns
Type Description
CloudLoggingEntry.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final CloudLoggingEntry.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
CloudLoggingEntry.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public CloudLoggingEntry.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
CloudLoggingEntry.Builder
Overrides

setInsertId(String value)

public CloudLoggingEntry.Builder setInsertId(String value)

A unique identifier for the log entry.

string insert_id = 1;

Parameter
Name Description
value String

The insertId to set.

Returns
Type Description
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
Name Description
value ByteString

The bytes for insertId to set.

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

The logId to set.

Returns
Type Description
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
Name Description
value ByteString

The bytes for logId to set.

Returns
Type Description
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
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
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
Name Description
value String

The resourceContainer to set.

Returns
Type Description
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
Name Description
value ByteString

The bytes for resourceContainer to set.

Returns
Type Description
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
Name Description
value Timestamp
Returns
Type Description
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
Name Description
builderForValue Builder
Returns
Type Description
CloudLoggingEntry.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final CloudLoggingEntry.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
CloudLoggingEntry.Builder
Overrides