Class LogEntryData.Builder (0.14.1)

public static final class LogEntryData.Builder extends GeneratedMessageV3.Builder<LogEntryData.Builder> implements LogEntryDataOrBuilder

The data within all Cloud Audit Logs log entry events.

Protobuf type google.events.cloud.audit.v1.LogEntryData

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public LogEntryData build()
Returns
TypeDescription
LogEntryData

buildPartial()

public LogEntryData buildPartial()
Returns
TypeDescription
LogEntryData

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearInsertId()

public LogEntryData.Builder clearInsertId()

A unique identifier for the log entry.

string insert_id = 4;

Returns
TypeDescription
LogEntryData.Builder

This builder for chaining.

clearLabels()

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

clearLogName()

public LogEntryData.Builder clearLogName()

The resource name of the log to which this log entry belongs.

string log_name = 12;

Returns
TypeDescription
LogEntryData.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearOperation()

public LogEntryData.Builder clearOperation()

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

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

Returns
TypeDescription
LogEntryData.Builder

clearProtoPayload()

public LogEntryData.Builder clearProtoPayload()

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
LogEntryData.Builder

clearReceiveTimestamp()

public LogEntryData.Builder clearReceiveTimestamp()

The time the log entry was received by Logging.

.google.protobuf.Timestamp receive_timestamp = 24;

Returns
TypeDescription
LogEntryData.Builder

clearResource()

public LogEntryData.Builder clearResource()

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
LogEntryData.Builder

clearSeverity()

public LogEntryData.Builder clearSeverity()

The severity of the log entry.

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

Returns
TypeDescription
LogEntryData.Builder

This builder for chaining.

clearSpanId()

public LogEntryData.Builder clearSpanId()

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
LogEntryData.Builder

This builder for chaining.

clearSplit()

public LogEntryData.Builder clearSplit()

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
LogEntryData.Builder

clearTimestamp()

public LogEntryData.Builder clearTimestamp()

The time the event described by the log entry occurred.

.google.protobuf.Timestamp timestamp = 9;

Returns
TypeDescription
LogEntryData.Builder

clearTrace()

public LogEntryData.Builder clearTrace()

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
LogEntryData.Builder

This builder for chaining.

clone()

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

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

getDefaultInstanceForType()

public LogEntryData getDefaultInstanceForType()
Returns
TypeDescription
LogEntryData

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

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.

getMutableLabels()

public Map<String,String> getMutableLabels()

Use alternate mutation accessors instead.

Returns
TypeDescription
Map<String,String>

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.

getOperationBuilder()

public LogEntryOperation.Builder getOperationBuilder()

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

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

Returns
TypeDescription
LogEntryOperation.Builder

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

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.

getProtoPayloadBuilder()

public AuditLog.Builder getProtoPayloadBuilder()

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.Builder

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.

getReceiveTimestampBuilder()

public Timestamp.Builder getReceiveTimestampBuilder()

The time the log entry was received by Logging.

.google.protobuf.Timestamp receive_timestamp = 24;

Returns
TypeDescription
Builder

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.

getResourceBuilder()

public MonitoredResource.Builder getResourceBuilder()

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.Builder

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

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.

getSplitBuilder()

public LogSplit.Builder getSplitBuilder()

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.Builder

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.

getTimestampBuilder()

public Timestamp.Builder getTimestampBuilder()

The time the event described by the log entry occurred.

.google.protobuf.Timestamp timestamp = 9;

Returns
TypeDescription
Builder

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.

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.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

internalGetMapField(int number)

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

internalGetMutableMapField(int number)

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

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(LogEntryData other)

public LogEntryData.Builder mergeFrom(LogEntryData other)
Parameter
NameDescription
otherLogEntryData
Returns
TypeDescription
LogEntryData.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeOperation(LogEntryOperation value)

public LogEntryData.Builder mergeOperation(LogEntryOperation value)

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

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

Parameter
NameDescription
valueLogEntryOperation
Returns
TypeDescription
LogEntryData.Builder

mergeProtoPayload(AuditLog value)

public LogEntryData.Builder mergeProtoPayload(AuditLog value)

The log entry payload, which is always an AuditLog for Cloud Audit Log events.

.google.events.cloud.audit.v1.AuditLog proto_payload = 2;

Parameter
NameDescription
valueAuditLog
Returns
TypeDescription
LogEntryData.Builder

mergeReceiveTimestamp(Timestamp value)

public LogEntryData.Builder mergeReceiveTimestamp(Timestamp value)

The time the log entry was received by Logging.

.google.protobuf.Timestamp receive_timestamp = 24;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
LogEntryData.Builder

mergeResource(MonitoredResource value)

public LogEntryData.Builder mergeResource(MonitoredResource value)

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;

Parameter
NameDescription
valuecom.google.api.MonitoredResource
Returns
TypeDescription
LogEntryData.Builder

mergeSplit(LogSplit value)

public LogEntryData.Builder mergeSplit(LogSplit value)

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;

Parameter
NameDescription
valueLogSplit
Returns
TypeDescription
LogEntryData.Builder

mergeTimestamp(Timestamp value)

public LogEntryData.Builder mergeTimestamp(Timestamp value)

The time the event described by the log entry occurred.

.google.protobuf.Timestamp timestamp = 9;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
LogEntryData.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

putAllLabels(Map<String,String> values)

public LogEntryData.Builder putAllLabels(Map<String,String> values)

A set of user-defined (key, value) data that provides additional information about the log entry.

map<string, string> labels = 11;

Parameter
NameDescription
valuesMap<String,String>
Returns
TypeDescription
LogEntryData.Builder

putLabels(String key, String value)

public LogEntryData.Builder putLabels(String key, String value)

A set of user-defined (key, value) data that provides additional information about the log entry.

map<string, string> labels = 11;

Parameters
NameDescription
keyString
valueString
Returns
TypeDescription
LogEntryData.Builder

removeLabels(String key)

public LogEntryData.Builder removeLabels(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
LogEntryData.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setInsertId(String value)

public LogEntryData.Builder setInsertId(String value)

A unique identifier for the log entry.

string insert_id = 4;

Parameter
NameDescription
valueString

The insertId to set.

Returns
TypeDescription
LogEntryData.Builder

This builder for chaining.

setInsertIdBytes(ByteString value)

public LogEntryData.Builder setInsertIdBytes(ByteString value)

A unique identifier for the log entry.

string insert_id = 4;

Parameter
NameDescription
valueByteString

The bytes for insertId to set.

Returns
TypeDescription
LogEntryData.Builder

This builder for chaining.

setLogName(String value)

public LogEntryData.Builder setLogName(String value)

The resource name of the log to which this log entry belongs.

string log_name = 12;

Parameter
NameDescription
valueString

The logName to set.

Returns
TypeDescription
LogEntryData.Builder

This builder for chaining.

setLogNameBytes(ByteString value)

public LogEntryData.Builder setLogNameBytes(ByteString value)

The resource name of the log to which this log entry belongs.

string log_name = 12;

Parameter
NameDescription
valueByteString

The bytes for logName to set.

Returns
TypeDescription
LogEntryData.Builder

This builder for chaining.

setOperation(LogEntryOperation value)

public LogEntryData.Builder setOperation(LogEntryOperation value)

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

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

Parameter
NameDescription
valueLogEntryOperation
Returns
TypeDescription
LogEntryData.Builder

setOperation(LogEntryOperation.Builder builderForValue)

public LogEntryData.Builder setOperation(LogEntryOperation.Builder builderForValue)

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

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

Parameter
NameDescription
builderForValueLogEntryOperation.Builder
Returns
TypeDescription
LogEntryData.Builder

setProtoPayload(AuditLog value)

public LogEntryData.Builder setProtoPayload(AuditLog value)

The log entry payload, which is always an AuditLog for Cloud Audit Log events.

.google.events.cloud.audit.v1.AuditLog proto_payload = 2;

Parameter
NameDescription
valueAuditLog
Returns
TypeDescription
LogEntryData.Builder

setProtoPayload(AuditLog.Builder builderForValue)

public LogEntryData.Builder setProtoPayload(AuditLog.Builder builderForValue)

The log entry payload, which is always an AuditLog for Cloud Audit Log events.

.google.events.cloud.audit.v1.AuditLog proto_payload = 2;

Parameter
NameDescription
builderForValueAuditLog.Builder
Returns
TypeDescription
LogEntryData.Builder

setReceiveTimestamp(Timestamp value)

public LogEntryData.Builder setReceiveTimestamp(Timestamp value)

The time the log entry was received by Logging.

.google.protobuf.Timestamp receive_timestamp = 24;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
LogEntryData.Builder

setReceiveTimestamp(Timestamp.Builder builderForValue)

public LogEntryData.Builder setReceiveTimestamp(Timestamp.Builder builderForValue)

The time the log entry was received by Logging.

.google.protobuf.Timestamp receive_timestamp = 24;

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
LogEntryData.Builder

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

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

setResource(MonitoredResource value)

public LogEntryData.Builder setResource(MonitoredResource value)

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;

Parameter
NameDescription
valuecom.google.api.MonitoredResource
Returns
TypeDescription
LogEntryData.Builder

setResource(MonitoredResource.Builder builderForValue)

public LogEntryData.Builder setResource(MonitoredResource.Builder builderForValue)

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;

Parameter
NameDescription
builderForValuecom.google.api.MonitoredResource.Builder
Returns
TypeDescription
LogEntryData.Builder

setSeverity(LogSeverity value)

public LogEntryData.Builder setSeverity(LogSeverity value)

The severity of the log entry.

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

Parameter
NameDescription
valueLogSeverity

The severity to set.

Returns
TypeDescription
LogEntryData.Builder

This builder for chaining.

setSeverityValue(int value)

public LogEntryData.Builder setSeverityValue(int value)

The severity of the log entry.

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

Parameter
NameDescription
valueint

The enum numeric value on the wire for severity to set.

Returns
TypeDescription
LogEntryData.Builder

This builder for chaining.

setSpanId(String value)

public LogEntryData.Builder setSpanId(String value)

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;

Parameter
NameDescription
valueString

The spanId to set.

Returns
TypeDescription
LogEntryData.Builder

This builder for chaining.

setSpanIdBytes(ByteString value)

public LogEntryData.Builder setSpanIdBytes(ByteString value)

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;

Parameter
NameDescription
valueByteString

The bytes for spanId to set.

Returns
TypeDescription
LogEntryData.Builder

This builder for chaining.

setSplit(LogSplit value)

public LogEntryData.Builder setSplit(LogSplit value)

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;

Parameter
NameDescription
valueLogSplit
Returns
TypeDescription
LogEntryData.Builder

setSplit(LogSplit.Builder builderForValue)

public LogEntryData.Builder setSplit(LogSplit.Builder builderForValue)

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;

Parameter
NameDescription
builderForValueLogSplit.Builder
Returns
TypeDescription
LogEntryData.Builder

setTimestamp(Timestamp value)

public LogEntryData.Builder setTimestamp(Timestamp value)

The time the event described by the log entry occurred.

.google.protobuf.Timestamp timestamp = 9;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
LogEntryData.Builder

setTimestamp(Timestamp.Builder builderForValue)

public LogEntryData.Builder setTimestamp(Timestamp.Builder builderForValue)

The time the event described by the log entry occurred.

.google.protobuf.Timestamp timestamp = 9;

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
LogEntryData.Builder

setTrace(String value)

public LogEntryData.Builder setTrace(String value)

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;

Parameter
NameDescription
valueString

The trace to set.

Returns
TypeDescription
LogEntryData.Builder

This builder for chaining.

setTraceBytes(ByteString value)

public LogEntryData.Builder setTraceBytes(ByteString value)

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;

Parameter
NameDescription
valueByteString

The bytes for trace to set.

Returns
TypeDescription
LogEntryData.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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