Class LogEntry.Builder

  • All Implemented Interfaces:
    LogEntryOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
    Enclosing class:
    LogEntry

    public static final class LogEntry.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<LogEntry.Builder>
    implements LogEntryOrBuilder
     An individual log entry.
     
    Protobuf type google.api.servicecontrol.v1.LogEntry
    • Method Detail

      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetMapField

        protected com.google.protobuf.MapField internalGetMapField​(int number)
        Overrides:
        internalGetMapField in class com.google.protobuf.GeneratedMessageV3.Builder<LogEntry.Builder>
      • internalGetMutableMapField

        protected com.google.protobuf.MapField internalGetMutableMapField​(int number)
        Overrides:
        internalGetMutableMapField in class com.google.protobuf.GeneratedMessageV3.Builder<LogEntry.Builder>
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<LogEntry.Builder>
      • clear

        public LogEntry.Builder clear()
        Specified by:
        clear in interface com.google.protobuf.Message.Builder
        Specified by:
        clear in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clear in class com.google.protobuf.GeneratedMessageV3.Builder<LogEntry.Builder>
      • getDescriptorForType

        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.google.protobuf.Message.Builder
        Specified by:
        getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<LogEntry.Builder>
      • getDefaultInstanceForType

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

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

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

        public LogEntry.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<LogEntry.Builder>
      • setField

        public LogEntry.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                         Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<LogEntry.Builder>
      • clearField

        public LogEntry.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<LogEntry.Builder>
      • clearOneof

        public LogEntry.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<LogEntry.Builder>
      • setRepeatedField

        public LogEntry.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                 int index,
                                                 Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<LogEntry.Builder>
      • addRepeatedField

        public LogEntry.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                 Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<LogEntry.Builder>
      • mergeFrom

        public LogEntry.Builder mergeFrom​(com.google.protobuf.Message other)
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<LogEntry.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<LogEntry.Builder>
      • mergeFrom

        public LogEntry.Builder mergeFrom​(com.google.protobuf.CodedInputStream input,
                                          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                   throws IOException
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Specified by:
        mergeFrom in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<LogEntry.Builder>
        Throws:
        IOException
      • 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.
      • setName

        public LogEntry.Builder setName​(String value)
         Required. The log to which this log entry belongs. Examples: `"syslog"`,
         `"book_log"`.
         
        string name = 10;
        Parameters:
        value - The name to set.
        Returns:
        This builder for chaining.
      • clearName

        public LogEntry.Builder clearName()
         Required. The log to which this log entry belongs. Examples: `"syslog"`,
         `"book_log"`.
         
        string name = 10;
        Returns:
        This builder for chaining.
      • setNameBytes

        public LogEntry.Builder setNameBytes​(com.google.protobuf.ByteString value)
         Required. The log to which this log entry belongs. Examples: `"syslog"`,
         `"book_log"`.
         
        string name = 10;
        Parameters:
        value - The bytes for name to set.
        Returns:
        This builder for chaining.
      • 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.
      • setTimestamp

        public LogEntry.Builder setTimestamp​(com.google.protobuf.Timestamp value)
         The time the event described by the log entry occurred. If
         omitted, defaults to operation start time.
         
        .google.protobuf.Timestamp timestamp = 11;
      • setTimestamp

        public LogEntry.Builder setTimestamp​(com.google.protobuf.Timestamp.Builder builderForValue)
         The time the event described by the log entry occurred. If
         omitted, defaults to operation start time.
         
        .google.protobuf.Timestamp timestamp = 11;
      • mergeTimestamp

        public LogEntry.Builder mergeTimestamp​(com.google.protobuf.Timestamp value)
         The time the event described by the log entry occurred. If
         omitted, defaults to operation start time.
         
        .google.protobuf.Timestamp timestamp = 11;
      • clearTimestamp

        public LogEntry.Builder clearTimestamp()
         The time the event described by the log entry occurred. If
         omitted, defaults to operation start time.
         
        .google.protobuf.Timestamp timestamp = 11;
      • getTimestampBuilder

        public com.google.protobuf.Timestamp.Builder getTimestampBuilder()
         The time the event described by the log entry occurred. If
         omitted, defaults to operation start time.
         
        .google.protobuf.Timestamp timestamp = 11;
      • 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.
      • setSeverityValue

        public LogEntry.Builder setSeverityValue​(int value)
         The severity of the log entry. The default value is
         `LogSeverity.DEFAULT`.
         
        .google.logging.type.LogSeverity severity = 12;
        Parameters:
        value - The enum numeric value on the wire for severity to set.
        Returns:
        This builder for chaining.
      • getSeverity

        public com.google.logging.type.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.
      • setSeverity

        public LogEntry.Builder setSeverity​(com.google.logging.type.LogSeverity value)
         The severity of the log entry. The default value is
         `LogSeverity.DEFAULT`.
         
        .google.logging.type.LogSeverity severity = 12;
        Parameters:
        value - The severity to set.
        Returns:
        This builder for chaining.
      • clearSeverity

        public LogEntry.Builder clearSeverity()
         The severity of the log entry. The default value is
         `LogSeverity.DEFAULT`.
         
        .google.logging.type.LogSeverity severity = 12;
        Returns:
        This builder for chaining.
      • 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.
      • setHttpRequest

        public LogEntry.Builder setHttpRequest​(HttpRequest value)
         Optional. Information about the HTTP request associated with this
         log entry, if applicable.
         
        .google.api.servicecontrol.v1.HttpRequest http_request = 14;
      • setHttpRequest

        public LogEntry.Builder setHttpRequest​(HttpRequest.Builder builderForValue)
         Optional. Information about the HTTP request associated with this
         log entry, if applicable.
         
        .google.api.servicecontrol.v1.HttpRequest http_request = 14;
      • mergeHttpRequest

        public LogEntry.Builder mergeHttpRequest​(HttpRequest value)
         Optional. Information about the HTTP request associated with this
         log entry, if applicable.
         
        .google.api.servicecontrol.v1.HttpRequest http_request = 14;
      • clearHttpRequest

        public LogEntry.Builder clearHttpRequest()
         Optional. Information about the HTTP request associated with this
         log entry, if applicable.
         
        .google.api.servicecontrol.v1.HttpRequest http_request = 14;
      • getHttpRequestBuilder

        public HttpRequest.Builder getHttpRequestBuilder()
         Optional. Information about the HTTP request associated with this
         log entry, if applicable.
         
        .google.api.servicecontrol.v1.HttpRequest http_request = 14;
      • 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.
      • setTrace

        public LogEntry.Builder setTrace​(String value)
         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;
        Parameters:
        value - The trace to set.
        Returns:
        This builder for chaining.
      • clearTrace

        public LogEntry.Builder clearTrace()
         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:
        This builder for chaining.
      • setTraceBytes

        public LogEntry.Builder setTraceBytes​(com.google.protobuf.ByteString value)
         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;
        Parameters:
        value - The bytes for trace to set.
        Returns:
        This builder for chaining.
      • 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.
      • setInsertId

        public LogEntry.Builder setInsertId​(String value)
         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;
        Parameters:
        value - The insertId to set.
        Returns:
        This builder for chaining.
      • clearInsertId

        public LogEntry.Builder clearInsertId()
         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:
        This builder for chaining.
      • setInsertIdBytes

        public LogEntry.Builder setInsertIdBytes​(com.google.protobuf.ByteString value)
         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;
        Parameters:
        value - The bytes for insertId to set.
        Returns:
        This builder for chaining.
      • 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
      • 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
      • removeLabels

        public LogEntry.Builder removeLabels​(String key)
         A set of user-defined (key, value) data that provides additional
         information about the log entry.
         
        map<string, string> labels = 13;
      • getMutableLabels

        @Deprecated
        public Map<String,​String> getMutableLabels()
        Deprecated.
        Use alternate mutation accessors instead.
      • putLabels

        public LogEntry.Builder putLabels​(String key,
                                          String value)
         A set of user-defined (key, value) data that provides additional
         information about the log entry.
         
        map<string, string> labels = 13;
      • putAllLabels

        public LogEntry.Builder putAllLabels​(Map<String,​String> values)
         A set of user-defined (key, value) data that provides additional
         information about the log entry.
         
        map<string, string> labels = 13;
      • 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.
      • setProtoPayload

        public LogEntry.Builder setProtoPayload​(com.google.protobuf.Any value)
         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;
      • setProtoPayload

        public LogEntry.Builder setProtoPayload​(com.google.protobuf.Any.Builder builderForValue)
         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;
      • mergeProtoPayload

        public LogEntry.Builder mergeProtoPayload​(com.google.protobuf.Any value)
         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;
      • clearProtoPayload

        public LogEntry.Builder clearProtoPayload()
         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;
      • getProtoPayloadBuilder

        public com.google.protobuf.Any.Builder getProtoPayloadBuilder()
         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;
      • 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.
      • setTextPayload

        public LogEntry.Builder setTextPayload​(String value)
         The log entry payload, represented as a Unicode string (UTF-8).
         
        string text_payload = 3;
        Parameters:
        value - The textPayload to set.
        Returns:
        This builder for chaining.
      • clearTextPayload

        public LogEntry.Builder clearTextPayload()
         The log entry payload, represented as a Unicode string (UTF-8).
         
        string text_payload = 3;
        Returns:
        This builder for chaining.
      • setTextPayloadBytes

        public LogEntry.Builder setTextPayloadBytes​(com.google.protobuf.ByteString value)
         The log entry payload, represented as a Unicode string (UTF-8).
         
        string text_payload = 3;
        Parameters:
        value - The bytes for textPayload to set.
        Returns:
        This builder for chaining.
      • 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.
      • setStructPayload

        public LogEntry.Builder setStructPayload​(com.google.protobuf.Struct value)
         The log entry payload, represented as a structure that
         is expressed as a JSON object.
         
        .google.protobuf.Struct struct_payload = 6;
      • setStructPayload

        public LogEntry.Builder setStructPayload​(com.google.protobuf.Struct.Builder builderForValue)
         The log entry payload, represented as a structure that
         is expressed as a JSON object.
         
        .google.protobuf.Struct struct_payload = 6;
      • mergeStructPayload

        public LogEntry.Builder mergeStructPayload​(com.google.protobuf.Struct value)
         The log entry payload, represented as a structure that
         is expressed as a JSON object.
         
        .google.protobuf.Struct struct_payload = 6;
      • clearStructPayload

        public LogEntry.Builder clearStructPayload()
         The log entry payload, represented as a structure that
         is expressed as a JSON object.
         
        .google.protobuf.Struct struct_payload = 6;
      • getStructPayloadBuilder

        public com.google.protobuf.Struct.Builder getStructPayloadBuilder()
         The log entry payload, represented as a structure that
         is expressed as a JSON object.
         
        .google.protobuf.Struct struct_payload = 6;
      • 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.
      • setOperation

        public LogEntry.Builder setOperation​(LogEntryOperation value)
         Optional. Information about an operation associated with the log entry, if
         applicable.
         
        .google.api.servicecontrol.v1.LogEntryOperation operation = 16;
      • setOperation

        public LogEntry.Builder setOperation​(LogEntryOperation.Builder builderForValue)
         Optional. Information about an operation associated with the log entry, if
         applicable.
         
        .google.api.servicecontrol.v1.LogEntryOperation operation = 16;
      • mergeOperation

        public LogEntry.Builder mergeOperation​(LogEntryOperation value)
         Optional. Information about an operation associated with the log entry, if
         applicable.
         
        .google.api.servicecontrol.v1.LogEntryOperation operation = 16;
      • clearOperation

        public LogEntry.Builder clearOperation()
         Optional. Information about an operation associated with the log entry, if
         applicable.
         
        .google.api.servicecontrol.v1.LogEntryOperation operation = 16;
      • getOperationBuilder

        public LogEntryOperation.Builder getOperationBuilder()
         Optional. Information about an operation associated with the log entry, if
         applicable.
         
        .google.api.servicecontrol.v1.LogEntryOperation operation = 16;
      • 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.
      • setSourceLocation

        public LogEntry.Builder setSourceLocation​(LogEntrySourceLocation value)
         Optional. Source code location information associated with the log entry,
         if any.
         
        .google.api.servicecontrol.v1.LogEntrySourceLocation source_location = 17;
      • setSourceLocation

        public LogEntry.Builder setSourceLocation​(LogEntrySourceLocation.Builder builderForValue)
         Optional. Source code location information associated with the log entry,
         if any.
         
        .google.api.servicecontrol.v1.LogEntrySourceLocation source_location = 17;
      • mergeSourceLocation

        public LogEntry.Builder mergeSourceLocation​(LogEntrySourceLocation value)
         Optional. Source code location information associated with the log entry,
         if any.
         
        .google.api.servicecontrol.v1.LogEntrySourceLocation source_location = 17;
      • clearSourceLocation

        public LogEntry.Builder clearSourceLocation()
         Optional. Source code location information associated with the log entry,
         if any.
         
        .google.api.servicecontrol.v1.LogEntrySourceLocation source_location = 17;
      • getSourceLocationBuilder

        public LogEntrySourceLocation.Builder getSourceLocationBuilder()
         Optional. Source code location information associated with the log entry,
         if any.
         
        .google.api.servicecontrol.v1.LogEntrySourceLocation source_location = 17;
      • setUnknownFields

        public final LogEntry.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<LogEntry.Builder>
      • mergeUnknownFields

        public final LogEntry.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<LogEntry.Builder>