public final class LogEntry extends GeneratedMessageV3 implements LogEntryOrBuilder
An individual log entry.
Protobuf type google.api.servicecontrol.v1.LogEntry
Static Fields
HTTP_REQUEST_FIELD_NUMBER
public static final int HTTP_REQUEST_FIELD_NUMBER
Field Value
INSERT_ID_FIELD_NUMBER
public static final int INSERT_ID_FIELD_NUMBER
Field Value
LABELS_FIELD_NUMBER
public static final int LABELS_FIELD_NUMBER
Field Value
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER
Field Value
OPERATION_FIELD_NUMBER
public static final int OPERATION_FIELD_NUMBER
Field Value
PROTO_PAYLOAD_FIELD_NUMBER
public static final int PROTO_PAYLOAD_FIELD_NUMBER
Field Value
SEVERITY_FIELD_NUMBER
public static final int SEVERITY_FIELD_NUMBER
Field Value
SOURCE_LOCATION_FIELD_NUMBER
public static final int SOURCE_LOCATION_FIELD_NUMBER
Field Value
STRUCT_PAYLOAD_FIELD_NUMBER
public static final int STRUCT_PAYLOAD_FIELD_NUMBER
Field Value
TEXT_PAYLOAD_FIELD_NUMBER
public static final int TEXT_PAYLOAD_FIELD_NUMBER
Field Value
TIMESTAMP_FIELD_NUMBER
public static final int TIMESTAMP_FIELD_NUMBER
Field Value
TRACE_FIELD_NUMBER
public static final int TRACE_FIELD_NUMBER
Field Value
Static Methods
getDefaultInstance()
public static LogEntry getDefaultInstance()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
newBuilder()
public static LogEntry.Builder newBuilder()
Returns
newBuilder(LogEntry prototype)
public static LogEntry.Builder newBuilder(LogEntry prototype)
Parameter
Returns
parseDelimitedFrom(InputStream input)
public static LogEntry parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static LogEntry parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(byte[] data)
public static LogEntry parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static LogEntry parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteString data)
public static LogEntry parseFrom(ByteString data)
Parameter
Returns
Exceptions
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static LogEntry parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(CodedInputStream input)
public static LogEntry parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static LogEntry parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(InputStream input)
public static LogEntry parseFrom(InputStream input)
Parameter
Returns
Exceptions
parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static LogEntry parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteBuffer data)
public static LogEntry parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static LogEntry parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parser()
public static Parser<LogEntry> parser()
Returns
Methods
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 = 13;
Parameter
Returns
equals(Object obj)
public boolean equals(Object obj)
Parameter
Returns
Overrides
getDefaultInstanceForType()
public LogEntry getDefaultInstanceForType()
Returns
getHttpRequest()
public HttpRequest getHttpRequest()
Optional. Information about the HTTP request associated with this
log entry, if applicable.
.google.api.servicecontrol.v1.HttpRequest http_request = 14;
Returns
getHttpRequestOrBuilder()
public HttpRequestOrBuilder getHttpRequestOrBuilder()
Optional. Information about the HTTP request associated with this
log entry, if applicable.
.google.api.servicecontrol.v1.HttpRequest http_request = 14;
Returns
getInsertId()
public 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
Type | Description |
String | The insertId.
|
getInsertIdBytes()
public 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
getLabels()
public Map<String,String> getLabels()
Returns
getLabelsCount()
public int getLabelsCount()
A set of user-defined (key, value) data that provides additional
information about the log entry.
map<string, string> labels = 13;
Returns
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 = 13;
Returns
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 = 13;
Parameters
Returns
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 = 13;
Parameter
Returns
getName()
Required. The log to which this log entry belongs. Examples: "syslog"
,
"book_log"
.
string name = 10;
Returns
Type | Description |
String | The name.
|
getNameBytes()
public ByteString getNameBytes()
Required. The log to which this log entry belongs. Examples: "syslog"
,
"book_log"
.
string name = 10;
Returns
getOperation()
public LogEntryOperation getOperation()
Optional. Information about an operation associated with the log entry, if
applicable.
.google.api.servicecontrol.v1.LogEntryOperation operation = 16;
Returns
getOperationOrBuilder()
public LogEntryOperationOrBuilder getOperationOrBuilder()
Optional. Information about an operation associated with the log entry, if
applicable.
.google.api.servicecontrol.v1.LogEntryOperation operation = 16;
Returns
getParserForType()
public Parser<LogEntry> getParserForType()
Returns
Overrides
getPayloadCase()
public LogEntry.PayloadCase getPayloadCase()
Returns
getProtoPayload()
public 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
Type | Description |
Any | The protoPayload.
|
getProtoPayloadOrBuilder()
public 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
getSerializedSize()
public int getSerializedSize()
Returns
Overrides
getSeverity()
public LogSeverity getSeverity()
The severity of the log entry. The default value is
LogSeverity.DEFAULT
.
.google.logging.type.LogSeverity severity = 12;
Returns
Type | Description |
com.google.logging.type.LogSeverity | The severity.
|
getSeverityValue()
public int getSeverityValue()
The severity of the log entry. The default value is
LogSeverity.DEFAULT
.
.google.logging.type.LogSeverity severity = 12;
Returns
Type | Description |
int | The enum numeric value on the wire for severity.
|
getSourceLocation()
public LogEntrySourceLocation getSourceLocation()
Optional. Source code location information associated with the log entry,
if any.
.google.api.servicecontrol.v1.LogEntrySourceLocation source_location = 17;
Returns
getSourceLocationOrBuilder()
public LogEntrySourceLocationOrBuilder getSourceLocationOrBuilder()
Optional. Source code location information associated with the log entry,
if any.
.google.api.servicecontrol.v1.LogEntrySourceLocation source_location = 17;
Returns
getStructPayload()
public Struct getStructPayload()
The log entry payload, represented as a structure that
is expressed as a JSON object.
.google.protobuf.Struct struct_payload = 6;
Returns
Type | Description |
Struct | The structPayload.
|
getStructPayloadOrBuilder()
public StructOrBuilder getStructPayloadOrBuilder()
The log entry payload, represented as a structure that
is expressed as a JSON object.
.google.protobuf.Struct struct_payload = 6;
Returns
getTextPayload()
public String getTextPayload()
The log entry payload, represented as a Unicode string (UTF-8).
string text_payload = 3;
Returns
Type | Description |
String | The textPayload.
|
getTextPayloadBytes()
public ByteString getTextPayloadBytes()
The log entry payload, represented as a Unicode string (UTF-8).
string text_payload = 3;
Returns
Type | Description |
ByteString | The bytes for textPayload.
|
getTimestamp()
public 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
getTimestampOrBuilder()
public 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
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
Type | Description |
String | The trace.
|
getTraceBytes()
public 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
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
hasHttpRequest()
public boolean hasHttpRequest()
Optional. Information about the HTTP request associated with this
log entry, if applicable.
.google.api.servicecontrol.v1.HttpRequest http_request = 14;
Returns
Type | Description |
boolean | Whether the httpRequest field is set.
|
hasOperation()
public boolean hasOperation()
Optional. Information about an operation associated with the log entry, if
applicable.
.google.api.servicecontrol.v1.LogEntryOperation operation = 16;
Returns
Type | Description |
boolean | Whether the operation field is set.
|
hasProtoPayload()
public 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
Type | Description |
boolean | Whether the protoPayload field is set.
|
hasSourceLocation()
public boolean hasSourceLocation()
Optional. Source code location information associated with the log entry,
if any.
.google.api.servicecontrol.v1.LogEntrySourceLocation source_location = 17;
Returns
Type | Description |
boolean | Whether the sourceLocation field is set.
|
hasStructPayload()
public boolean hasStructPayload()
The log entry payload, represented as a structure that
is expressed as a JSON object.
.google.protobuf.Struct struct_payload = 6;
Returns
Type | Description |
boolean | Whether the structPayload field is set.
|
hasTextPayload()
public boolean hasTextPayload()
The log entry payload, represented as a Unicode string (UTF-8).
string text_payload = 3;
Returns
Type | Description |
boolean | Whether the textPayload field is set.
|
hasTimestamp()
public 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
Type | Description |
boolean | Whether the timestamp field is set.
|
hashCode()
Returns
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
internalGetMapField(int number)
protected MapField internalGetMapField(int number)
Parameter
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
newBuilderForType()
public LogEntry.Builder newBuilderForType()
Returns
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected LogEntry.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
toBuilder()
public LogEntry.Builder toBuilder()
Returns
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions