Interface LogEntryOrBuilder (1.4.0)

public interface LogEntryOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

containsLabels(String key)

public abstract boolean containsLabels(String key)

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

map<string, string> labels = 13;

Parameter
NameDescription
keyString
Returns
TypeDescription
boolean

getHttpRequest()

public abstract HttpRequest getHttpRequest()

Optional. Information about the HTTP request associated with this log entry, if applicable.

.google.api.servicecontrol.v1.HttpRequest http_request = 14;

Returns
TypeDescription
HttpRequest

The httpRequest.

getHttpRequestOrBuilder()

public abstract HttpRequestOrBuilder getHttpRequestOrBuilder()

Optional. Information about the HTTP request associated with this log entry, if applicable.

.google.api.servicecontrol.v1.HttpRequest http_request = 14;

Returns
TypeDescription
HttpRequestOrBuilder

getInsertId()

public abstract String getInsertId()

A unique ID for the log entry used for deduplication. If omitted, the implementation will generate one based on operation_id.

string insert_id = 4;

Returns
TypeDescription
String

The insertId.

getInsertIdBytes()

public abstract ByteString getInsertIdBytes()

A unique ID for the log entry used for deduplication. If omitted, the implementation will generate one based on operation_id.

string insert_id = 4;

Returns
TypeDescription
ByteString

The bytes for insertId.

getLabels()

public abstract Map<String,String> getLabels()

Use #getLabelsMap() instead.

Returns
TypeDescription
Map<String,String>

getLabelsCount()

public abstract int getLabelsCount()

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

map<string, string> labels = 13;

Returns
TypeDescription
int

getLabelsMap()

public abstract Map<String,String> getLabelsMap()

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

map<string, string> labels = 13;

Returns
TypeDescription
Map<String,String>

getLabelsOrDefault(String key, String defaultValue)

public abstract 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 = 13;

Parameters
NameDescription
keyString
defaultValueString
Returns
TypeDescription
String

getLabelsOrThrow(String key)

public abstract String getLabelsOrThrow(String key)

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

map<string, string> labels = 13;

Parameter
NameDescription
keyString
Returns
TypeDescription
String

getName()

public abstract String getName()

Required. The log to which this log entry belongs. Examples: "syslog", "book_log".

string name = 10;

Returns
TypeDescription
String

The name.

getNameBytes()

public abstract ByteString getNameBytes()

Required. The log to which this log entry belongs. Examples: "syslog", "book_log".

string name = 10;

Returns
TypeDescription
ByteString

The bytes for name.

getOperation()

public abstract LogEntryOperation getOperation()

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

.google.api.servicecontrol.v1.LogEntryOperation operation = 16;

Returns
TypeDescription
LogEntryOperation

The operation.

getOperationOrBuilder()

public abstract LogEntryOperationOrBuilder getOperationOrBuilder()

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

.google.api.servicecontrol.v1.LogEntryOperation operation = 16;

Returns
TypeDescription
LogEntryOperationOrBuilder

getPayloadCase()

public abstract LogEntry.PayloadCase getPayloadCase()
Returns
TypeDescription
LogEntry.PayloadCase

getProtoPayload()

public abstract Any getProtoPayload()

The log entry payload, represented as a protocol buffer that is expressed as a JSON object. The only accepted type currently is AuditLog.

.google.protobuf.Any proto_payload = 2;

Returns
TypeDescription
Any

The protoPayload.

getProtoPayloadOrBuilder()

public abstract AnyOrBuilder getProtoPayloadOrBuilder()

The log entry payload, represented as a protocol buffer that is expressed as a JSON object. The only accepted type currently is AuditLog.

.google.protobuf.Any proto_payload = 2;

Returns
TypeDescription
AnyOrBuilder

getSeverity()

public abstract LogSeverity getSeverity()

The severity of the log entry. The default value is LogSeverity.DEFAULT.

.google.logging.type.LogSeverity severity = 12;

Returns
TypeDescription
com.google.logging.type.LogSeverity

The severity.

getSeverityValue()

public abstract int getSeverityValue()

The severity of the log entry. The default value is LogSeverity.DEFAULT.

.google.logging.type.LogSeverity severity = 12;

Returns
TypeDescription
int

The enum numeric value on the wire for severity.

getSourceLocation()

public abstract LogEntrySourceLocation getSourceLocation()

Optional. Source code location information associated with the log entry, if any.

.google.api.servicecontrol.v1.LogEntrySourceLocation source_location = 17;

Returns
TypeDescription
LogEntrySourceLocation

The sourceLocation.

getSourceLocationOrBuilder()

public abstract LogEntrySourceLocationOrBuilder getSourceLocationOrBuilder()

Optional. Source code location information associated with the log entry, if any.

.google.api.servicecontrol.v1.LogEntrySourceLocation source_location = 17;

Returns
TypeDescription
LogEntrySourceLocationOrBuilder

getStructPayload()

public abstract Struct getStructPayload()

The log entry payload, represented as a structure that is expressed as a JSON object.

.google.protobuf.Struct struct_payload = 6;

Returns
TypeDescription
Struct

The structPayload.

getStructPayloadOrBuilder()

public abstract StructOrBuilder getStructPayloadOrBuilder()

The log entry payload, represented as a structure that is expressed as a JSON object.

.google.protobuf.Struct struct_payload = 6;

Returns
TypeDescription
StructOrBuilder

getTextPayload()

public abstract String getTextPayload()

The log entry payload, represented as a Unicode string (UTF-8).

string text_payload = 3;

Returns
TypeDescription
String

The textPayload.

getTextPayloadBytes()

public abstract ByteString getTextPayloadBytes()

The log entry payload, represented as a Unicode string (UTF-8).

string text_payload = 3;

Returns
TypeDescription
ByteString

The bytes for textPayload.

getTimestamp()

public abstract Timestamp getTimestamp()

The time the event described by the log entry occurred. If omitted, defaults to operation start time.

.google.protobuf.Timestamp timestamp = 11;

Returns
TypeDescription
Timestamp

The timestamp.

getTimestampOrBuilder()

public abstract TimestampOrBuilder getTimestampOrBuilder()

The time the event described by the log entry occurred. If omitted, defaults to operation start time.

.google.protobuf.Timestamp timestamp = 11;

Returns
TypeDescription
TimestampOrBuilder

getTrace()

public abstract String getTrace()

Optional. Resource name of the trace associated with the log entry, if any. If this field contains a relative resource name, you can assume the name is relative to //tracing.googleapis.com. Example: projects/my-projectid/traces/06796866738c859f2f19b7cfb3214824

string trace = 15;

Returns
TypeDescription
String

The trace.

getTraceBytes()

public abstract ByteString getTraceBytes()

Optional. Resource name of the trace associated with the log entry, if any. If this field contains a relative resource name, you can assume the name is relative to //tracing.googleapis.com. Example: projects/my-projectid/traces/06796866738c859f2f19b7cfb3214824

string trace = 15;

Returns
TypeDescription
ByteString

The bytes for trace.

hasHttpRequest()

public abstract boolean hasHttpRequest()

Optional. Information about the HTTP request associated with this log entry, if applicable.

.google.api.servicecontrol.v1.HttpRequest http_request = 14;

Returns
TypeDescription
boolean

Whether the httpRequest field is set.

hasOperation()

public abstract boolean hasOperation()

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

.google.api.servicecontrol.v1.LogEntryOperation operation = 16;

Returns
TypeDescription
boolean

Whether the operation field is set.

hasProtoPayload()

public abstract boolean hasProtoPayload()

The log entry payload, represented as a protocol buffer that is expressed as a JSON object. The only accepted type currently is AuditLog.

.google.protobuf.Any proto_payload = 2;

Returns
TypeDescription
boolean

Whether the protoPayload field is set.

hasSourceLocation()

public abstract boolean hasSourceLocation()

Optional. Source code location information associated with the log entry, if any.

.google.api.servicecontrol.v1.LogEntrySourceLocation source_location = 17;

Returns
TypeDescription
boolean

Whether the sourceLocation field is set.

hasStructPayload()

public abstract boolean hasStructPayload()

The log entry payload, represented as a structure that is expressed as a JSON object.

.google.protobuf.Struct struct_payload = 6;

Returns
TypeDescription
boolean

Whether the structPayload field is set.

hasTextPayload()

public abstract boolean hasTextPayload()

The log entry payload, represented as a Unicode string (UTF-8).

string text_payload = 3;

Returns
TypeDescription
boolean

Whether the textPayload field is set.

hasTimestamp()

public abstract boolean hasTimestamp()

The time the event described by the log entry occurred. If omitted, defaults to operation start time.

.google.protobuf.Timestamp timestamp = 11;

Returns
TypeDescription
boolean

Whether the timestamp field is set.