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
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > LogEntryData.BuilderImplements
LogEntryDataOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns | |
---|---|
Type | Description |
Descriptor |
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public LogEntryData.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field | FieldDescriptor |
value | Object |
Returns | |
---|---|
Type | Description |
LogEntryData.Builder |
build()
public LogEntryData build()
Returns | |
---|---|
Type | Description |
LogEntryData |
buildPartial()
public LogEntryData buildPartial()
Returns | |
---|---|
Type | Description |
LogEntryData |
clear()
public LogEntryData.Builder clear()
Returns | |
---|---|
Type | Description |
LogEntryData.Builder |
clearField(Descriptors.FieldDescriptor field)
public LogEntryData.Builder clearField(Descriptors.FieldDescriptor field)
Parameter | |
---|---|
Name | Description |
field | FieldDescriptor |
Returns | |
---|---|
Type | Description |
LogEntryData.Builder |
clearInsertId()
public LogEntryData.Builder clearInsertId()
A unique identifier for the log entry.
string insert_id = 4;
Returns | |
---|---|
Type | Description |
LogEntryData.Builder | This builder for chaining. |
clearLabels()
public LogEntryData.Builder clearLabels()
Returns | |
---|---|
Type | Description |
LogEntryData.Builder |
clearLogName()
public LogEntryData.Builder clearLogName()
The resource name of the log to which this log entry belongs.
string log_name = 12;
Returns | |
---|---|
Type | Description |
LogEntryData.Builder | This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public LogEntryData.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter | |
---|---|
Name | Description |
oneof | OneofDescriptor |
Returns | |
---|---|
Type | Description |
LogEntryData.Builder |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
LogEntryData.Builder |
clearReceiveTimestamp()
public LogEntryData.Builder clearReceiveTimestamp()
The time the log entry was received by Logging.
.google.protobuf.Timestamp receive_timestamp = 24;
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
LogEntryData.Builder |
clearSeverity()
public LogEntryData.Builder clearSeverity()
The severity of the log entry.
.google.events.cloud.audit.v1.LogSeverity severity = 10;
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
LogEntryData.Builder |
clearTimestamp()
public LogEntryData.Builder clearTimestamp()
The time the event described by the log entry occurred.
.google.protobuf.Timestamp timestamp = 9;
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
LogEntryData.Builder | This builder for chaining. |
clone()
public LogEntryData.Builder clone()
Returns | |
---|---|
Type | Description |
LogEntryData.Builder |
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 |
Returns | |
---|---|
Type | Description |
boolean |
getDefaultInstanceForType()
public LogEntryData getDefaultInstanceForType()
Returns | |
---|---|
Type | Description |
LogEntryData |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns | |
---|---|
Type | Description |
Descriptor |
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()
Use #getLabelsMap() instead.
Returns | |
---|---|
Type | Description |
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 | |
---|---|
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;
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
key | String |
defaultValue | String |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
key | String |
Returns | |
---|---|
Type | Description |
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. |
getMutableLabels()
public Map<String,String> getMutableLabels()
Use alternate mutation accessors instead.
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
AuditLogOrBuilder |
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. |
getReceiveTimestampBuilder()
public Timestamp.Builder getReceiveTimestampBuilder()
The time the log entry was received by Logging.
.google.protobuf.Timestamp receive_timestamp = 24;
Returns | |
---|---|
Type | Description |
Builder |
getReceiveTimestampOrBuilder()
public TimestampOrBuilder getReceiveTimestampOrBuilder()
The time the log entry was received by Logging.
.google.protobuf.Timestamp receive_timestamp = 24;
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
com.google.api.MonitoredResourceOrBuilder |
getSeverity()
public LogSeverity getSeverity()
The severity of the log entry.
.google.events.cloud.audit.v1.LogSeverity severity = 10;
Returns | |
---|---|
Type | Description |
LogSeverity | The severity. |
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. |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
LogSplitOrBuilder |
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. |
getTimestampBuilder()
public Timestamp.Builder getTimestampBuilder()
The time the event described by the log entry occurred.
.google.protobuf.Timestamp timestamp = 9;
Returns | |
---|---|
Type | Description |
Builder |
getTimestampOrBuilder()
public TimestampOrBuilder getTimestampOrBuilder()
The time the event described by the log entry occurred.
.google.protobuf.Timestamp timestamp = 9;
Returns | |
---|---|
Type | Description |
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 | |
---|---|
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. |
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. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns | |
---|---|
Type | Description |
FieldAccessorTable |
internalGetMapField(int number)
protected MapField internalGetMapField(int number)
Parameter | |
---|---|
Name | Description |
number | int |
Returns | |
---|---|
Type | Description |
MapField |
internalGetMutableMapField(int number)
protected MapField internalGetMutableMapField(int number)
Parameter | |
---|---|
Name | Description |
number | int |
Returns | |
---|---|
Type | Description |
MapField |
isInitialized()
public final boolean isInitialized()
Returns | |
---|---|
Type | Description |
boolean |
mergeFrom(LogEntryData other)
public LogEntryData.Builder mergeFrom(LogEntryData other)
Parameter | |
---|---|
Name | Description |
other | LogEntryData |
Returns | |
---|---|
Type | Description |
LogEntryData.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public LogEntryData.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
LogEntryData.Builder |
Exceptions | |
---|---|
Type | Description |
IOException |
mergeFrom(Message other)
public LogEntryData.Builder mergeFrom(Message other)
Parameter | |
---|---|
Name | Description |
other | Message |
Returns | |
---|---|
Type | Description |
LogEntryData.Builder |
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 | |
---|---|
Name | Description |
value | LogEntryOperation |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
value | AuditLog |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
value | Timestamp |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
value | com.google.api.MonitoredResource |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
value | LogSplit |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
value | Timestamp |
Returns | |
---|---|
Type | Description |
LogEntryData.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final LogEntryData.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields | UnknownFieldSet |
Returns | |
---|---|
Type | Description |
LogEntryData.Builder |
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 | |
---|---|
Name | Description |
values | Map<String,String> |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
key | String |
value | String |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
key | String |
Returns | |
---|---|
Type | Description |
LogEntryData.Builder |
setField(Descriptors.FieldDescriptor field, Object value)
public LogEntryData.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field | FieldDescriptor |
value | Object |
Returns | |
---|---|
Type | Description |
LogEntryData.Builder |
setInsertId(String value)
public LogEntryData.Builder setInsertId(String value)
A unique identifier for the log entry.
string insert_id = 4;
Parameter | |
---|---|
Name | Description |
value | String The insertId to set. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
value | ByteString The bytes for insertId to set. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
value | String The logName to set. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
value | ByteString The bytes for logName to set. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
value | LogEntryOperation |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
builderForValue | LogEntryOperation.Builder |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
value | AuditLog |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
builderForValue | AuditLog.Builder |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
value | Timestamp |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
builderForValue | Builder |
Returns | |
---|---|
Type | Description |
LogEntryData.Builder |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public LogEntryData.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters | |
---|---|
Name | Description |
field | FieldDescriptor |
index | int |
value | Object |
Returns | |
---|---|
Type | Description |
LogEntryData.Builder |
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 | |
---|---|
Name | Description |
value | com.google.api.MonitoredResource |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
builderForValue | com.google.api.MonitoredResource.Builder |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
value | LogSeverity The severity to set. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
value | int The enum numeric value on the wire for severity to set. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
value | String The spanId to set. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
value | ByteString The bytes for spanId to set. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
value | LogSplit |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
builderForValue | LogSplit.Builder |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
value | Timestamp |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
builderForValue | Builder |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
value | String The trace to set. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
value | ByteString The bytes for trace to set. |
Returns | |
---|---|
Type | Description |
LogEntryData.Builder | This builder for chaining. |
setUnknownFields(UnknownFieldSet unknownFields)
public final LogEntryData.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields | UnknownFieldSet |
Returns | |
---|---|
Type | Description |
LogEntryData.Builder |