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:
  • 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:
      internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessage
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage
    • getPayloadCase

      public LogEntry.PayloadCase getPayloadCase()
      Specified by:
      getPayloadCase in interface LogEntryOrBuilder
    • getName

      public String getName()
       Required. The log to which this log entry belongs. Examples: `"syslog"`,
       `"book_log"`.
       
      string name = 10;
      Specified by:
      getName in interface LogEntryOrBuilder
      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:
      getNameBytes in interface LogEntryOrBuilder
      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:
      hasTimestamp in interface LogEntryOrBuilder
      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:
      getTimestamp in interface LogEntryOrBuilder
      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:
      getTimestampOrBuilder in interface LogEntryOrBuilder
    • getSeverityValue

      public int getSeverityValue()
       The severity of the log entry. The default value is
       `LogSeverity.DEFAULT`.
       
      .google.logging.type.LogSeverity severity = 12;
      Specified by:
      getSeverityValue in interface LogEntryOrBuilder
      Returns:
      The enum numeric value on the wire for severity.
    • getSeverity

      public LogSeverity getSeverity()
       The severity of the log entry. The default value is
       `LogSeverity.DEFAULT`.
       
      .google.logging.type.LogSeverity severity = 12;
      Specified by:
      getSeverity in interface LogEntryOrBuilder
      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:
      hasHttpRequest in interface LogEntryOrBuilder
      Returns:
      Whether the httpRequest field is set.
    • 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;
      Specified by:
      getHttpRequest in interface LogEntryOrBuilder
      Returns:
      The httpRequest.
    • 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;
      Specified by:
      getHttpRequestOrBuilder in interface LogEntryOrBuilder
    • getTrace

      public 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;
      Specified by:
      getTrace in interface LogEntryOrBuilder
      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:
      getTraceBytes in interface LogEntryOrBuilder
      Returns:
      The bytes for trace.
    • 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;
      Specified by:
      getInsertId in interface LogEntryOrBuilder
      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:
      getInsertIdBytes in interface LogEntryOrBuilder
      Returns:
      The bytes for insertId.
    • getLabelsCount

      public int getLabelsCount()
      Description copied from interface: LogEntryOrBuilder
       A set of user-defined (key, value) data that provides additional
       information about the log entry.
       
      map<string, string> labels = 13;
      Specified by:
      getLabelsCount in interface LogEntryOrBuilder
    • containsLabels

      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;
      Specified by:
      containsLabels in interface LogEntryOrBuilder
    • getLabels

      @Deprecated public Map<String,String> getLabels()
      Deprecated.
      Use getLabelsMap() instead.
      Specified by:
      getLabels in interface LogEntryOrBuilder
    • 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;
      Specified by:
      getLabelsMap in interface LogEntryOrBuilder
    • getLabelsOrDefault

      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;
      Specified by:
      getLabelsOrDefault in interface LogEntryOrBuilder
    • getLabelsOrThrow

      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;
      Specified by:
      getLabelsOrThrow in interface LogEntryOrBuilder
    • 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:
      hasProtoPayload in interface LogEntryOrBuilder
      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:
      getProtoPayload in interface LogEntryOrBuilder
      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:
      getProtoPayloadOrBuilder in interface LogEntryOrBuilder
    • hasTextPayload

      public boolean hasTextPayload()
       The log entry payload, represented as a Unicode string (UTF-8).
       
      string text_payload = 3;
      Specified by:
      hasTextPayload in interface LogEntryOrBuilder
      Returns:
      Whether the textPayload field is set.
    • getTextPayload

      public String getTextPayload()
       The log entry payload, represented as a Unicode string (UTF-8).
       
      string text_payload = 3;
      Specified by:
      getTextPayload in interface LogEntryOrBuilder
      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:
      getTextPayloadBytes in interface LogEntryOrBuilder
      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:
      hasStructPayload in interface LogEntryOrBuilder
      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:
      getStructPayload in interface LogEntryOrBuilder
      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:
      getStructPayloadOrBuilder in interface LogEntryOrBuilder
    • 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:
      hasOperation in interface LogEntryOrBuilder
      Returns:
      Whether the operation field is set.
    • getOperation

      public LogEntryOperation getOperation()
       Optional. Information about an operation associated with the log entry, if
       applicable.
       
      .google.api.servicecontrol.v1.LogEntryOperation operation = 16;
      Specified by:
      getOperation in interface LogEntryOrBuilder
      Returns:
      The operation.
    • getOperationOrBuilder

      public LogEntryOperationOrBuilder getOperationOrBuilder()
       Optional. Information about an operation associated with the log entry, if
       applicable.
       
      .google.api.servicecontrol.v1.LogEntryOperation operation = 16;
      Specified by:
      getOperationOrBuilder in interface LogEntryOrBuilder
    • 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:
      hasSourceLocation in interface LogEntryOrBuilder
      Returns:
      Whether the sourceLocation field is set.
    • getSourceLocation

      public LogEntrySourceLocation getSourceLocation()
       Optional. Source code location information associated with the log entry,
       if any.
       
      .google.api.servicecontrol.v1.LogEntrySourceLocation source_location = 17;
      Specified by:
      getSourceLocation in interface LogEntryOrBuilder
      Returns:
      The sourceLocation.
    • getSourceLocationOrBuilder

      public LogEntrySourceLocationOrBuilder getSourceLocationOrBuilder()
       Optional. Source code location information associated with the log entry,
       if any.
       
      .google.api.servicecontrol.v1.LogEntrySourceLocation source_location = 17;
      Specified by:
      getSourceLocationOrBuilder in interface LogEntryOrBuilder
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.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

      public static LogEntry parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static LogEntry parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static LogEntry parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static LogEntry parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static LogEntry parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static LogEntry parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

      public LogEntry.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static LogEntry.Builder newBuilder()
    • newBuilder

      public static LogEntry.Builder newBuilder(LogEntry prototype)
    • toBuilder

      public LogEntry.Builder toBuilder()
      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected LogEntry.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static LogEntry getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<LogEntry> parser()
    • getParserForType

      public com.google.protobuf.Parser<LogEntry> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessage
    • getDefaultInstanceForType

      public LogEntry getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder