Package com.google.api.servicecontrol.v1
Class LogEntry
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.api.servicecontrol.v1.LogEntry
- All Implemented Interfaces:
LogEntryOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
@Generated
public final class LogEntry
extends com.google.protobuf.GeneratedMessage
implements LogEntryOrBuilder
An individual log entry.Protobuf type
google.api.servicecontrol.v1.LogEntry- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classAn individual log entry.static enumNested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage
com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message, T extends Object>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessage
com.google.protobuf.AbstractMessage.BuilderParentNested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessage
alwaysUseFieldBuilders, loggedPre22TypeNames, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleancontainsLabels(String key) A set of user-defined (key, value) data that provides additional information about the log entry.booleanstatic LogEntrystatic final com.google.protobuf.Descriptors.DescriptorOptional.Optional.A unique ID for the log entry used for deduplication.com.google.protobuf.ByteStringA unique ID for the log entry used for deduplication.Deprecated.intA set of user-defined (key, value) data that provides additional information about the log entry.A set of user-defined (key, value) data that provides additional information about the log entry.getLabelsOrDefault(String key, String defaultValue) A set of user-defined (key, value) data that provides additional information about the log entry.getLabelsOrThrow(String key) A set of user-defined (key, value) data that provides additional information about the log entry.getName()Required.com.google.protobuf.ByteStringRequired.Optional.Optional.com.google.protobuf.Parser<LogEntry>com.google.protobuf.AnyThe log entry payload, represented as a protocol buffer that is expressed as a JSON object.com.google.protobuf.AnyOrBuilderThe log entry payload, represented as a protocol buffer that is expressed as a JSON object.intThe severity of the log entry.intThe severity of the log entry.Optional.Optional.com.google.protobuf.StructThe log entry payload, represented as a structure that is expressed as a JSON object.com.google.protobuf.StructOrBuilderThe log entry payload, represented as a structure that is expressed as a JSON object.The log entry payload, represented as a Unicode string (UTF-8).com.google.protobuf.ByteStringThe log entry payload, represented as a Unicode string (UTF-8).com.google.protobuf.TimestampThe time the event described by the log entry occurred.com.google.protobuf.TimestampOrBuilderThe time the event described by the log entry occurred.getTrace()Optional.com.google.protobuf.ByteStringOptional.inthashCode()booleanOptional.booleanOptional.booleanThe log entry payload, represented as a protocol buffer that is expressed as a JSON object.booleanOptional.booleanThe log entry payload, represented as a structure that is expressed as a JSON object.booleanThe log entry payload, represented as a Unicode string (UTF-8).booleanThe time the event described by the log entry occurred.protected com.google.protobuf.GeneratedMessage.FieldAccessorTableprotected com.google.protobuf.MapFieldReflectionAccessorinternalGetMapFieldReflection(int number) final booleanstatic LogEntry.Builderstatic LogEntry.BuildernewBuilder(LogEntry prototype) protected LogEntry.BuildernewBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) static LogEntryparseDelimitedFrom(InputStream input) static LogEntryparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static LogEntryparseFrom(byte[] data) static LogEntryparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static LogEntryparseFrom(com.google.protobuf.ByteString data) static LogEntryparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static LogEntryparseFrom(com.google.protobuf.CodedInputStream input) static LogEntryparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static LogEntryparseFrom(InputStream input) static LogEntryparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static LogEntryparseFrom(ByteBuffer data) static LogEntryparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<LogEntry>parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessage
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashFields, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER- See Also:
-
TIMESTAMP_FIELD_NUMBER
public static final int TIMESTAMP_FIELD_NUMBER- See Also:
-
SEVERITY_FIELD_NUMBER
public static final int SEVERITY_FIELD_NUMBER- See Also:
-
HTTP_REQUEST_FIELD_NUMBER
public static final int HTTP_REQUEST_FIELD_NUMBER- See Also:
-
TRACE_FIELD_NUMBER
public static final int TRACE_FIELD_NUMBER- See Also:
-
INSERT_ID_FIELD_NUMBER
public static final int INSERT_ID_FIELD_NUMBER- See Also:
-
LABELS_FIELD_NUMBER
public static final int LABELS_FIELD_NUMBER- See Also:
-
PROTO_PAYLOAD_FIELD_NUMBER
public static final int PROTO_PAYLOAD_FIELD_NUMBER- See Also:
-
TEXT_PAYLOAD_FIELD_NUMBER
public static final int TEXT_PAYLOAD_FIELD_NUMBER- See Also:
-
STRUCT_PAYLOAD_FIELD_NUMBER
public static final int STRUCT_PAYLOAD_FIELD_NUMBER- See Also:
-
OPERATION_FIELD_NUMBER
public static final int OPERATION_FIELD_NUMBER- See Also:
-
SOURCE_LOCATION_FIELD_NUMBER
public static final int SOURCE_LOCATION_FIELD_NUMBER- See Also:
-
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number) - Overrides:
internalGetMapFieldReflectionin classcom.google.protobuf.GeneratedMessage
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage
-
getPayloadCase
- Specified by:
getPayloadCasein interfaceLogEntryOrBuilder
-
getName
Required. The log to which this log entry belongs. Examples: `"syslog"`, `"book_log"`.
string name = 10;- Specified by:
getNamein interfaceLogEntryOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()Required. The log to which this log entry belongs. Examples: `"syslog"`, `"book_log"`.
string name = 10;- Specified by:
getNameBytesin interfaceLogEntryOrBuilder- Returns:
- The bytes for name.
-
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;- Specified by:
hasTimestampin interfaceLogEntryOrBuilder- Returns:
- Whether the timestamp field is set.
-
getTimestamp
public com.google.protobuf.Timestamp getTimestamp()The time the event described by the log entry occurred. If omitted, defaults to operation start time.
.google.protobuf.Timestamp timestamp = 11;- Specified by:
getTimestampin interfaceLogEntryOrBuilder- Returns:
- The timestamp.
-
getTimestampOrBuilder
public com.google.protobuf.TimestampOrBuilder getTimestampOrBuilder()The time the event described by the log entry occurred. If omitted, defaults to operation start time.
.google.protobuf.Timestamp timestamp = 11;- Specified by:
getTimestampOrBuilderin interfaceLogEntryOrBuilder
-
getSeverityValue
public int getSeverityValue()The severity of the log entry. The default value is `LogSeverity.DEFAULT`.
.google.logging.type.LogSeverity severity = 12;- Specified by:
getSeverityValuein interfaceLogEntryOrBuilder- Returns:
- The enum numeric value on the wire for severity.
-
getSeverity
The severity of the log entry. The default value is `LogSeverity.DEFAULT`.
.google.logging.type.LogSeverity severity = 12;- Specified by:
getSeverityin interfaceLogEntryOrBuilder- Returns:
- The severity.
-
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;- Specified by:
hasHttpRequestin interfaceLogEntryOrBuilder- Returns:
- Whether the httpRequest field is set.
-
getHttpRequest
Optional. Information about the HTTP request associated with this log entry, if applicable.
.google.api.servicecontrol.v1.HttpRequest http_request = 14;- Specified by:
getHttpRequestin interfaceLogEntryOrBuilder- Returns:
- The httpRequest.
-
getHttpRequestOrBuilder
Optional. Information about the HTTP request associated with this log entry, if applicable.
.google.api.servicecontrol.v1.HttpRequest http_request = 14;- Specified by:
getHttpRequestOrBuilderin interfaceLogEntryOrBuilder
-
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;- Specified by:
getTracein interfaceLogEntryOrBuilder- Returns:
- The trace.
-
getTraceBytes
public com.google.protobuf.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;- Specified by:
getTraceBytesin interfaceLogEntryOrBuilder- Returns:
- The bytes for trace.
-
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;- Specified by:
getInsertIdin interfaceLogEntryOrBuilder- Returns:
- The insertId.
-
getInsertIdBytes
public com.google.protobuf.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;- Specified by:
getInsertIdBytesin interfaceLogEntryOrBuilder- Returns:
- The bytes for insertId.
-
getLabelsCount
public int getLabelsCount()Description copied from interface:LogEntryOrBuilderA set of user-defined (key, value) data that provides additional information about the log entry.
map<string, string> labels = 13;- Specified by:
getLabelsCountin interfaceLogEntryOrBuilder
-
containsLabels
A set of user-defined (key, value) data that provides additional information about the log entry.
map<string, string> labels = 13;- Specified by:
containsLabelsin interfaceLogEntryOrBuilder
-
getLabels
Deprecated.UsegetLabelsMap()instead.- Specified by:
getLabelsin interfaceLogEntryOrBuilder
-
getLabelsMap
A set of user-defined (key, value) data that provides additional information about the log entry.
map<string, string> labels = 13;- Specified by:
getLabelsMapin interfaceLogEntryOrBuilder
-
getLabelsOrDefault
A set of user-defined (key, value) data that provides additional information about the log entry.
map<string, string> labels = 13;- Specified by:
getLabelsOrDefaultin interfaceLogEntryOrBuilder
-
getLabelsOrThrow
A set of user-defined (key, value) data that provides additional information about the log entry.
map<string, string> labels = 13;- Specified by:
getLabelsOrThrowin interfaceLogEntryOrBuilder
-
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.cloud.audit.AuditLog].
.google.protobuf.Any proto_payload = 2;- Specified by:
hasProtoPayloadin interfaceLogEntryOrBuilder- Returns:
- Whether the protoPayload field is set.
-
getProtoPayload
public com.google.protobuf.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.cloud.audit.AuditLog].
.google.protobuf.Any proto_payload = 2;- Specified by:
getProtoPayloadin interfaceLogEntryOrBuilder- Returns:
- The protoPayload.
-
getProtoPayloadOrBuilder
public com.google.protobuf.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.cloud.audit.AuditLog].
.google.protobuf.Any proto_payload = 2;- Specified by:
getProtoPayloadOrBuilderin interfaceLogEntryOrBuilder
-
hasTextPayload
public boolean hasTextPayload()The log entry payload, represented as a Unicode string (UTF-8).
string text_payload = 3;- Specified by:
hasTextPayloadin interfaceLogEntryOrBuilder- Returns:
- Whether the textPayload field is set.
-
getTextPayload
The log entry payload, represented as a Unicode string (UTF-8).
string text_payload = 3;- Specified by:
getTextPayloadin interfaceLogEntryOrBuilder- Returns:
- The textPayload.
-
getTextPayloadBytes
public com.google.protobuf.ByteString getTextPayloadBytes()The log entry payload, represented as a Unicode string (UTF-8).
string text_payload = 3;- Specified by:
getTextPayloadBytesin interfaceLogEntryOrBuilder- Returns:
- The bytes for textPayload.
-
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;- Specified by:
hasStructPayloadin interfaceLogEntryOrBuilder- Returns:
- Whether the structPayload field is set.
-
getStructPayload
public com.google.protobuf.Struct getStructPayload()The log entry payload, represented as a structure that is expressed as a JSON object.
.google.protobuf.Struct struct_payload = 6;- Specified by:
getStructPayloadin interfaceLogEntryOrBuilder- Returns:
- The structPayload.
-
getStructPayloadOrBuilder
public com.google.protobuf.StructOrBuilder getStructPayloadOrBuilder()The log entry payload, represented as a structure that is expressed as a JSON object.
.google.protobuf.Struct struct_payload = 6;- Specified by:
getStructPayloadOrBuilderin interfaceLogEntryOrBuilder
-
hasOperation
public boolean hasOperation()Optional. Information about an operation associated with the log entry, if applicable.
.google.api.servicecontrol.v1.LogEntryOperation operation = 16;- Specified by:
hasOperationin interfaceLogEntryOrBuilder- Returns:
- Whether the operation field is set.
-
getOperation
Optional. Information about an operation associated with the log entry, if applicable.
.google.api.servicecontrol.v1.LogEntryOperation operation = 16;- Specified by:
getOperationin interfaceLogEntryOrBuilder- Returns:
- The operation.
-
getOperationOrBuilder
Optional. Information about an operation associated with the log entry, if applicable.
.google.api.servicecontrol.v1.LogEntryOperation operation = 16;- Specified by:
getOperationOrBuilderin interfaceLogEntryOrBuilder
-
hasSourceLocation
public boolean hasSourceLocation()Optional. Source code location information associated with the log entry, if any.
.google.api.servicecontrol.v1.LogEntrySourceLocation source_location = 17;- Specified by:
hasSourceLocationin interfaceLogEntryOrBuilder- Returns:
- Whether the sourceLocation field is set.
-
getSourceLocation
Optional. Source code location information associated with the log entry, if any.
.google.api.servicecontrol.v1.LogEntrySourceLocation source_location = 17;- Specified by:
getSourceLocationin interfaceLogEntryOrBuilder- Returns:
- The sourceLocation.
-
getSourceLocationOrBuilder
Optional. Source code location information associated with the log entry, if any.
.google.api.servicecontrol.v1.LogEntrySourceLocation source_location = 17;- Specified by:
getSourceLocationOrBuilderin interfaceLogEntryOrBuilder
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessage- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessage
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static LogEntry parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static LogEntry parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static LogEntry parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static LogEntry parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static LogEntry parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static LogEntry parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static LogEntry parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static LogEntry parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static LogEntry parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected LogEntry.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) - Overrides:
newBuilderForTypein classcom.google.protobuf.AbstractMessage
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessage
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-