Interface LogEntryOrBuilder

All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder
All Known Implementing Classes:
LogEntry, LogEntry.Builder

@Generated public interface LogEntryOrBuilder extends com.google.protobuf.MessageOrBuilder
  • Method Details

    • getName

      String getName()
       Required. The log to which this log entry belongs. Examples: `"syslog"`,
       `"book_log"`.
       
      string name = 10;
      Returns:
      The name.
    • getNameBytes

      com.google.protobuf.ByteString getNameBytes()
       Required. The log to which this log entry belongs. Examples: `"syslog"`,
       `"book_log"`.
       
      string name = 10;
      Returns:
      The bytes for name.
    • hasTimestamp

      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:
      Whether the timestamp field is set.
    • getTimestamp

      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;
      Returns:
      The timestamp.
    • getTimestampOrBuilder

      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;
    • getSeverityValue

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

      LogSeverity getSeverity()
       The severity of the log entry. The default value is
       `LogSeverity.DEFAULT`.
       
      .google.logging.type.LogSeverity severity = 12;
      Returns:
      The severity.
    • hasHttpRequest

      boolean hasHttpRequest()
       Optional. Information about the HTTP request associated with this
       log entry, if applicable.
       
      .google.api.servicecontrol.v1.HttpRequest http_request = 14;
      Returns:
      Whether the httpRequest field is set.
    • getHttpRequest

      HttpRequest getHttpRequest()
       Optional. Information about the HTTP request associated with this
       log entry, if applicable.
       
      .google.api.servicecontrol.v1.HttpRequest http_request = 14;
      Returns:
      The httpRequest.
    • getHttpRequestOrBuilder

      HttpRequestOrBuilder getHttpRequestOrBuilder()
       Optional. Information about the HTTP request associated with this
       log entry, if applicable.
       
      .google.api.servicecontrol.v1.HttpRequest http_request = 14;
    • getTrace

      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:
      The trace.
    • getTraceBytes

      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;
      Returns:
      The bytes for trace.
    • getInsertId

      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:
      The insertId.
    • getInsertIdBytes

      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;
      Returns:
      The bytes for insertId.
    • getLabelsCount

      int getLabelsCount()
       A set of user-defined (key, value) data that provides additional
       information about the log entry.
       
      map<string, string> labels = 13;
    • containsLabels

      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;
    • getLabels

      Deprecated.
      Use getLabelsMap() instead.
    • getLabelsMap

      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;
    • getLabelsOrDefault

      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;
    • getLabelsOrThrow

      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;
    • hasProtoPayload

      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;
      Returns:
      Whether the protoPayload field is set.
    • getProtoPayload

      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;
      Returns:
      The protoPayload.
    • getProtoPayloadOrBuilder

      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;
    • hasTextPayload

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

      String getTextPayload()
       The log entry payload, represented as a Unicode string (UTF-8).
       
      string text_payload = 3;
      Returns:
      The textPayload.
    • getTextPayloadBytes

      com.google.protobuf.ByteString getTextPayloadBytes()
       The log entry payload, represented as a Unicode string (UTF-8).
       
      string text_payload = 3;
      Returns:
      The bytes for textPayload.
    • hasStructPayload

      boolean hasStructPayload()
       The log entry payload, represented as a structure that
       is expressed as a JSON object.
       
      .google.protobuf.Struct struct_payload = 6;
      Returns:
      Whether the structPayload field is set.
    • getStructPayload

      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;
      Returns:
      The structPayload.
    • getStructPayloadOrBuilder

      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;
    • hasOperation

      boolean hasOperation()
       Optional. Information about an operation associated with the log entry, if
       applicable.
       
      .google.api.servicecontrol.v1.LogEntryOperation operation = 16;
      Returns:
      Whether the operation field is set.
    • getOperation

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

      LogEntryOperationOrBuilder getOperationOrBuilder()
       Optional. Information about an operation associated with the log entry, if
       applicable.
       
      .google.api.servicecontrol.v1.LogEntryOperation operation = 16;
    • hasSourceLocation

      boolean hasSourceLocation()
       Optional. Source code location information associated with the log entry,
       if any.
       
      .google.api.servicecontrol.v1.LogEntrySourceLocation source_location = 17;
      Returns:
      Whether the sourceLocation field is set.
    • getSourceLocation

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

      LogEntrySourceLocationOrBuilder getSourceLocationOrBuilder()
       Optional. Source code location information associated with the log entry,
       if any.
       
      .google.api.servicecontrol.v1.LogEntrySourceLocation source_location = 17;
    • getPayloadCase

      LogEntry.PayloadCase getPayloadCase()