Package io.opentelemetry.proto.logs.v1
Class LogRecord.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderType>
-
- com.google.protobuf.GeneratedMessageV3.Builder<LogRecord.Builder>
-
- io.opentelemetry.proto.logs.v1.LogRecord.Builder
-
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,LogRecordOrBuilder,Cloneable
- Enclosing class:
- LogRecord
public static final class LogRecord.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<LogRecord.Builder> implements LogRecordOrBuilder
A log record according to OpenTelemetry Log Data Model: https://github.com/open-telemetry/oteps/blob/main/text/logs/0097-log-data-model.md
Protobuf typeopentelemetry.proto.logs.v1.LogRecord
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description LogRecord.BuilderaddAllAttributes(Iterable<? extends KeyValue> values)Additional attributes that describe the specific event occurrence.LogRecord.BuilderaddAttributes(int index, KeyValue value)Additional attributes that describe the specific event occurrence.LogRecord.BuilderaddAttributes(int index, KeyValue.Builder builderForValue)Additional attributes that describe the specific event occurrence.LogRecord.BuilderaddAttributes(KeyValue value)Additional attributes that describe the specific event occurrence.LogRecord.BuilderaddAttributes(KeyValue.Builder builderForValue)Additional attributes that describe the specific event occurrence.KeyValue.BuilderaddAttributesBuilder()Additional attributes that describe the specific event occurrence.KeyValue.BuilderaddAttributesBuilder(int index)Additional attributes that describe the specific event occurrence.LogRecord.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)LogRecordbuild()LogRecordbuildPartial()LogRecord.Builderclear()LogRecord.BuilderclearAttributes()Additional attributes that describe the specific event occurrence.LogRecord.BuilderclearBody()A value containing the body of the log record.LogRecord.BuilderclearDroppedAttributesCount()uint32 dropped_attributes_count = 7;LogRecord.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)LogRecord.BuilderclearFlags()Flags, a bit field. 8 least significant bits are the trace flags as defined in W3C Trace Context specification. 24 most significant bits are reserved and must be set to 0.LogRecord.BuilderclearObservedTimeUnixNano()Time when the event was observed by the collection system.LogRecord.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)LogRecord.BuilderclearSeverityNumber()Numerical value of the severity, normalized to values described in Log Data Model.LogRecord.BuilderclearSeverityText()The severity text (also known as log level).LogRecord.BuilderclearSpanId()A unique identifier for a span within a trace, assigned when the span is created.LogRecord.BuilderclearTimeUnixNano()time_unix_nano is the time when the event occurred.LogRecord.BuilderclearTraceId()A unique identifier for a trace.LogRecord.Builderclone()KeyValuegetAttributes(int index)Additional attributes that describe the specific event occurrence.KeyValue.BuildergetAttributesBuilder(int index)Additional attributes that describe the specific event occurrence.List<KeyValue.Builder>getAttributesBuilderList()Additional attributes that describe the specific event occurrence.intgetAttributesCount()Additional attributes that describe the specific event occurrence.List<KeyValue>getAttributesList()Additional attributes that describe the specific event occurrence.KeyValueOrBuildergetAttributesOrBuilder(int index)Additional attributes that describe the specific event occurrence.List<? extends KeyValueOrBuilder>getAttributesOrBuilderList()Additional attributes that describe the specific event occurrence.AnyValuegetBody()A value containing the body of the log record.AnyValue.BuildergetBodyBuilder()A value containing the body of the log record.AnyValueOrBuildergetBodyOrBuilder()A value containing the body of the log record.LogRecordgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()intgetDroppedAttributesCount()uint32 dropped_attributes_count = 7;intgetFlags()Flags, a bit field. 8 least significant bits are the trace flags as defined in W3C Trace Context specification. 24 most significant bits are reserved and must be set to 0.longgetObservedTimeUnixNano()Time when the event was observed by the collection system.SeverityNumbergetSeverityNumber()Numerical value of the severity, normalized to values described in Log Data Model.intgetSeverityNumberValue()Numerical value of the severity, normalized to values described in Log Data Model.StringgetSeverityText()The severity text (also known as log level).com.google.protobuf.ByteStringgetSeverityTextBytes()The severity text (also known as log level).com.google.protobuf.ByteStringgetSpanId()A unique identifier for a span within a trace, assigned when the span is created.longgetTimeUnixNano()time_unix_nano is the time when the event occurred.com.google.protobuf.ByteStringgetTraceId()A unique identifier for a trace.booleanhasBody()A value containing the body of the log record.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()LogRecord.BuildermergeBody(AnyValue value)A value containing the body of the log record.LogRecord.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)LogRecord.BuildermergeFrom(com.google.protobuf.Message other)LogRecord.BuildermergeFrom(LogRecord other)LogRecord.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)LogRecord.BuilderremoveAttributes(int index)Additional attributes that describe the specific event occurrence.LogRecord.BuildersetAttributes(int index, KeyValue value)Additional attributes that describe the specific event occurrence.LogRecord.BuildersetAttributes(int index, KeyValue.Builder builderForValue)Additional attributes that describe the specific event occurrence.LogRecord.BuildersetBody(AnyValue value)A value containing the body of the log record.LogRecord.BuildersetBody(AnyValue.Builder builderForValue)A value containing the body of the log record.LogRecord.BuildersetDroppedAttributesCount(int value)uint32 dropped_attributes_count = 7;LogRecord.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)LogRecord.BuildersetFlags(int value)Flags, a bit field. 8 least significant bits are the trace flags as defined in W3C Trace Context specification. 24 most significant bits are reserved and must be set to 0.LogRecord.BuildersetObservedTimeUnixNano(long value)Time when the event was observed by the collection system.LogRecord.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)LogRecord.BuildersetSeverityNumber(SeverityNumber value)Numerical value of the severity, normalized to values described in Log Data Model.LogRecord.BuildersetSeverityNumberValue(int value)Numerical value of the severity, normalized to values described in Log Data Model.LogRecord.BuildersetSeverityText(String value)The severity text (also known as log level).LogRecord.BuildersetSeverityTextBytes(com.google.protobuf.ByteString value)The severity text (also known as log level).LogRecord.BuildersetSpanId(com.google.protobuf.ByteString value)A unique identifier for a span within a trace, assigned when the span is created.LogRecord.BuildersetTimeUnixNano(long value)time_unix_nano is the time when the event occurred.LogRecord.BuildersetTraceId(com.google.protobuf.ByteString value)A unique identifier for a trace.LogRecord.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<LogRecord.Builder>
-
clear
public LogRecord.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<LogRecord.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<LogRecord.Builder>
-
getDefaultInstanceForType
public LogRecord getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public LogRecord build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public LogRecord buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public LogRecord.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<LogRecord.Builder>
-
setField
public LogRecord.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<LogRecord.Builder>
-
clearField
public LogRecord.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<LogRecord.Builder>
-
clearOneof
public LogRecord.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<LogRecord.Builder>
-
setRepeatedField
public LogRecord.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<LogRecord.Builder>
-
addRepeatedField
public LogRecord.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<LogRecord.Builder>
-
mergeFrom
public LogRecord.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<LogRecord.Builder>
-
mergeFrom
public LogRecord.Builder mergeFrom(LogRecord other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<LogRecord.Builder>
-
mergeFrom
public LogRecord.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<LogRecord.Builder>- Throws:
IOException
-
getTimeUnixNano
public long getTimeUnixNano()
time_unix_nano is the time when the event occurred. Value is UNIX Epoch time in nanoseconds since 00:00:00 UTC on 1 January 1970. Value of 0 indicates unknown or missing timestamp.
fixed64 time_unix_nano = 1;- Specified by:
getTimeUnixNanoin interfaceLogRecordOrBuilder- Returns:
- The timeUnixNano.
-
setTimeUnixNano
public LogRecord.Builder setTimeUnixNano(long value)
time_unix_nano is the time when the event occurred. Value is UNIX Epoch time in nanoseconds since 00:00:00 UTC on 1 January 1970. Value of 0 indicates unknown or missing timestamp.
fixed64 time_unix_nano = 1;- Parameters:
value- The timeUnixNano to set.- Returns:
- This builder for chaining.
-
clearTimeUnixNano
public LogRecord.Builder clearTimeUnixNano()
time_unix_nano is the time when the event occurred. Value is UNIX Epoch time in nanoseconds since 00:00:00 UTC on 1 January 1970. Value of 0 indicates unknown or missing timestamp.
fixed64 time_unix_nano = 1;- Returns:
- This builder for chaining.
-
getObservedTimeUnixNano
public long getObservedTimeUnixNano()
Time when the event was observed by the collection system. For events that originate in OpenTelemetry (e.g. using OpenTelemetry Logging SDK) this timestamp is typically set at the generation time and is equal to Timestamp. For events originating externally and collected by OpenTelemetry (e.g. using Collector) this is the time when OpenTelemetry's code observed the event measured by the clock of the OpenTelemetry code. This field MUST be set once the event is observed by OpenTelemetry. For converting OpenTelemetry log data to formats that support only one timestamp or when receiving OpenTelemetry log data by recipients that support only one timestamp internally the following logic is recommended: - Use time_unix_nano if it is present, otherwise use observed_time_unix_nano. Value is UNIX Epoch time in nanoseconds since 00:00:00 UTC on 1 January 1970. Value of 0 indicates unknown or missing timestamp.
fixed64 observed_time_unix_nano = 11;- Specified by:
getObservedTimeUnixNanoin interfaceLogRecordOrBuilder- Returns:
- The observedTimeUnixNano.
-
setObservedTimeUnixNano
public LogRecord.Builder setObservedTimeUnixNano(long value)
Time when the event was observed by the collection system. For events that originate in OpenTelemetry (e.g. using OpenTelemetry Logging SDK) this timestamp is typically set at the generation time and is equal to Timestamp. For events originating externally and collected by OpenTelemetry (e.g. using Collector) this is the time when OpenTelemetry's code observed the event measured by the clock of the OpenTelemetry code. This field MUST be set once the event is observed by OpenTelemetry. For converting OpenTelemetry log data to formats that support only one timestamp or when receiving OpenTelemetry log data by recipients that support only one timestamp internally the following logic is recommended: - Use time_unix_nano if it is present, otherwise use observed_time_unix_nano. Value is UNIX Epoch time in nanoseconds since 00:00:00 UTC on 1 January 1970. Value of 0 indicates unknown or missing timestamp.
fixed64 observed_time_unix_nano = 11;- Parameters:
value- The observedTimeUnixNano to set.- Returns:
- This builder for chaining.
-
clearObservedTimeUnixNano
public LogRecord.Builder clearObservedTimeUnixNano()
Time when the event was observed by the collection system. For events that originate in OpenTelemetry (e.g. using OpenTelemetry Logging SDK) this timestamp is typically set at the generation time and is equal to Timestamp. For events originating externally and collected by OpenTelemetry (e.g. using Collector) this is the time when OpenTelemetry's code observed the event measured by the clock of the OpenTelemetry code. This field MUST be set once the event is observed by OpenTelemetry. For converting OpenTelemetry log data to formats that support only one timestamp or when receiving OpenTelemetry log data by recipients that support only one timestamp internally the following logic is recommended: - Use time_unix_nano if it is present, otherwise use observed_time_unix_nano. Value is UNIX Epoch time in nanoseconds since 00:00:00 UTC on 1 January 1970. Value of 0 indicates unknown or missing timestamp.
fixed64 observed_time_unix_nano = 11;- Returns:
- This builder for chaining.
-
getSeverityNumberValue
public int getSeverityNumberValue()
Numerical value of the severity, normalized to values described in Log Data Model. [Optional].
.opentelemetry.proto.logs.v1.SeverityNumber severity_number = 2;- Specified by:
getSeverityNumberValuein interfaceLogRecordOrBuilder- Returns:
- The enum numeric value on the wire for severityNumber.
-
setSeverityNumberValue
public LogRecord.Builder setSeverityNumberValue(int value)
Numerical value of the severity, normalized to values described in Log Data Model. [Optional].
.opentelemetry.proto.logs.v1.SeverityNumber severity_number = 2;- Parameters:
value- The enum numeric value on the wire for severityNumber to set.- Returns:
- This builder for chaining.
-
getSeverityNumber
public SeverityNumber getSeverityNumber()
Numerical value of the severity, normalized to values described in Log Data Model. [Optional].
.opentelemetry.proto.logs.v1.SeverityNumber severity_number = 2;- Specified by:
getSeverityNumberin interfaceLogRecordOrBuilder- Returns:
- The severityNumber.
-
setSeverityNumber
public LogRecord.Builder setSeverityNumber(SeverityNumber value)
Numerical value of the severity, normalized to values described in Log Data Model. [Optional].
.opentelemetry.proto.logs.v1.SeverityNumber severity_number = 2;- Parameters:
value- The severityNumber to set.- Returns:
- This builder for chaining.
-
clearSeverityNumber
public LogRecord.Builder clearSeverityNumber()
Numerical value of the severity, normalized to values described in Log Data Model. [Optional].
.opentelemetry.proto.logs.v1.SeverityNumber severity_number = 2;- Returns:
- This builder for chaining.
-
getSeverityText
public String getSeverityText()
The severity text (also known as log level). The original string representation as it is known at the source. [Optional].
string severity_text = 3;- Specified by:
getSeverityTextin interfaceLogRecordOrBuilder- Returns:
- The severityText.
-
getSeverityTextBytes
public com.google.protobuf.ByteString getSeverityTextBytes()
The severity text (also known as log level). The original string representation as it is known at the source. [Optional].
string severity_text = 3;- Specified by:
getSeverityTextBytesin interfaceLogRecordOrBuilder- Returns:
- The bytes for severityText.
-
setSeverityText
public LogRecord.Builder setSeverityText(String value)
The severity text (also known as log level). The original string representation as it is known at the source. [Optional].
string severity_text = 3;- Parameters:
value- The severityText to set.- Returns:
- This builder for chaining.
-
clearSeverityText
public LogRecord.Builder clearSeverityText()
The severity text (also known as log level). The original string representation as it is known at the source. [Optional].
string severity_text = 3;- Returns:
- This builder for chaining.
-
setSeverityTextBytes
public LogRecord.Builder setSeverityTextBytes(com.google.protobuf.ByteString value)
The severity text (also known as log level). The original string representation as it is known at the source. [Optional].
string severity_text = 3;- Parameters:
value- The bytes for severityText to set.- Returns:
- This builder for chaining.
-
hasBody
public boolean hasBody()
A value containing the body of the log record. Can be for example a human-readable string message (including multi-line) describing the event in a free form or it can be a structured data composed of arrays and maps of other values. [Optional].
.opentelemetry.proto.common.v1.AnyValue body = 5;- Specified by:
hasBodyin interfaceLogRecordOrBuilder- Returns:
- Whether the body field is set.
-
getBody
public AnyValue getBody()
A value containing the body of the log record. Can be for example a human-readable string message (including multi-line) describing the event in a free form or it can be a structured data composed of arrays and maps of other values. [Optional].
.opentelemetry.proto.common.v1.AnyValue body = 5;- Specified by:
getBodyin interfaceLogRecordOrBuilder- Returns:
- The body.
-
setBody
public LogRecord.Builder setBody(AnyValue value)
A value containing the body of the log record. Can be for example a human-readable string message (including multi-line) describing the event in a free form or it can be a structured data composed of arrays and maps of other values. [Optional].
.opentelemetry.proto.common.v1.AnyValue body = 5;
-
setBody
public LogRecord.Builder setBody(AnyValue.Builder builderForValue)
A value containing the body of the log record. Can be for example a human-readable string message (including multi-line) describing the event in a free form or it can be a structured data composed of arrays and maps of other values. [Optional].
.opentelemetry.proto.common.v1.AnyValue body = 5;
-
mergeBody
public LogRecord.Builder mergeBody(AnyValue value)
A value containing the body of the log record. Can be for example a human-readable string message (including multi-line) describing the event in a free form or it can be a structured data composed of arrays and maps of other values. [Optional].
.opentelemetry.proto.common.v1.AnyValue body = 5;
-
clearBody
public LogRecord.Builder clearBody()
A value containing the body of the log record. Can be for example a human-readable string message (including multi-line) describing the event in a free form or it can be a structured data composed of arrays and maps of other values. [Optional].
.opentelemetry.proto.common.v1.AnyValue body = 5;
-
getBodyBuilder
public AnyValue.Builder getBodyBuilder()
A value containing the body of the log record. Can be for example a human-readable string message (including multi-line) describing the event in a free form or it can be a structured data composed of arrays and maps of other values. [Optional].
.opentelemetry.proto.common.v1.AnyValue body = 5;
-
getBodyOrBuilder
public AnyValueOrBuilder getBodyOrBuilder()
A value containing the body of the log record. Can be for example a human-readable string message (including multi-line) describing the event in a free form or it can be a structured data composed of arrays and maps of other values. [Optional].
.opentelemetry.proto.common.v1.AnyValue body = 5;- Specified by:
getBodyOrBuilderin interfaceLogRecordOrBuilder
-
getAttributesList
public List<KeyValue> getAttributesList()
Additional attributes that describe the specific event occurrence. [Optional]. Attribute keys MUST be unique (it is not allowed to have more than one attribute with the same key).
repeated .opentelemetry.proto.common.v1.KeyValue attributes = 6;- Specified by:
getAttributesListin interfaceLogRecordOrBuilder
-
getAttributesCount
public int getAttributesCount()
Additional attributes that describe the specific event occurrence. [Optional]. Attribute keys MUST be unique (it is not allowed to have more than one attribute with the same key).
repeated .opentelemetry.proto.common.v1.KeyValue attributes = 6;- Specified by:
getAttributesCountin interfaceLogRecordOrBuilder
-
getAttributes
public KeyValue getAttributes(int index)
Additional attributes that describe the specific event occurrence. [Optional]. Attribute keys MUST be unique (it is not allowed to have more than one attribute with the same key).
repeated .opentelemetry.proto.common.v1.KeyValue attributes = 6;- Specified by:
getAttributesin interfaceLogRecordOrBuilder
-
setAttributes
public LogRecord.Builder setAttributes(int index, KeyValue value)
Additional attributes that describe the specific event occurrence. [Optional]. Attribute keys MUST be unique (it is not allowed to have more than one attribute with the same key).
repeated .opentelemetry.proto.common.v1.KeyValue attributes = 6;
-
setAttributes
public LogRecord.Builder setAttributes(int index, KeyValue.Builder builderForValue)
Additional attributes that describe the specific event occurrence. [Optional]. Attribute keys MUST be unique (it is not allowed to have more than one attribute with the same key).
repeated .opentelemetry.proto.common.v1.KeyValue attributes = 6;
-
addAttributes
public LogRecord.Builder addAttributes(KeyValue value)
Additional attributes that describe the specific event occurrence. [Optional]. Attribute keys MUST be unique (it is not allowed to have more than one attribute with the same key).
repeated .opentelemetry.proto.common.v1.KeyValue attributes = 6;
-
addAttributes
public LogRecord.Builder addAttributes(int index, KeyValue value)
Additional attributes that describe the specific event occurrence. [Optional]. Attribute keys MUST be unique (it is not allowed to have more than one attribute with the same key).
repeated .opentelemetry.proto.common.v1.KeyValue attributes = 6;
-
addAttributes
public LogRecord.Builder addAttributes(KeyValue.Builder builderForValue)
Additional attributes that describe the specific event occurrence. [Optional]. Attribute keys MUST be unique (it is not allowed to have more than one attribute with the same key).
repeated .opentelemetry.proto.common.v1.KeyValue attributes = 6;
-
addAttributes
public LogRecord.Builder addAttributes(int index, KeyValue.Builder builderForValue)
Additional attributes that describe the specific event occurrence. [Optional]. Attribute keys MUST be unique (it is not allowed to have more than one attribute with the same key).
repeated .opentelemetry.proto.common.v1.KeyValue attributes = 6;
-
addAllAttributes
public LogRecord.Builder addAllAttributes(Iterable<? extends KeyValue> values)
Additional attributes that describe the specific event occurrence. [Optional]. Attribute keys MUST be unique (it is not allowed to have more than one attribute with the same key).
repeated .opentelemetry.proto.common.v1.KeyValue attributes = 6;
-
clearAttributes
public LogRecord.Builder clearAttributes()
Additional attributes that describe the specific event occurrence. [Optional]. Attribute keys MUST be unique (it is not allowed to have more than one attribute with the same key).
repeated .opentelemetry.proto.common.v1.KeyValue attributes = 6;
-
removeAttributes
public LogRecord.Builder removeAttributes(int index)
Additional attributes that describe the specific event occurrence. [Optional]. Attribute keys MUST be unique (it is not allowed to have more than one attribute with the same key).
repeated .opentelemetry.proto.common.v1.KeyValue attributes = 6;
-
getAttributesBuilder
public KeyValue.Builder getAttributesBuilder(int index)
Additional attributes that describe the specific event occurrence. [Optional]. Attribute keys MUST be unique (it is not allowed to have more than one attribute with the same key).
repeated .opentelemetry.proto.common.v1.KeyValue attributes = 6;
-
getAttributesOrBuilder
public KeyValueOrBuilder getAttributesOrBuilder(int index)
Additional attributes that describe the specific event occurrence. [Optional]. Attribute keys MUST be unique (it is not allowed to have more than one attribute with the same key).
repeated .opentelemetry.proto.common.v1.KeyValue attributes = 6;- Specified by:
getAttributesOrBuilderin interfaceLogRecordOrBuilder
-
getAttributesOrBuilderList
public List<? extends KeyValueOrBuilder> getAttributesOrBuilderList()
Additional attributes that describe the specific event occurrence. [Optional]. Attribute keys MUST be unique (it is not allowed to have more than one attribute with the same key).
repeated .opentelemetry.proto.common.v1.KeyValue attributes = 6;- Specified by:
getAttributesOrBuilderListin interfaceLogRecordOrBuilder
-
addAttributesBuilder
public KeyValue.Builder addAttributesBuilder()
Additional attributes that describe the specific event occurrence. [Optional]. Attribute keys MUST be unique (it is not allowed to have more than one attribute with the same key).
repeated .opentelemetry.proto.common.v1.KeyValue attributes = 6;
-
addAttributesBuilder
public KeyValue.Builder addAttributesBuilder(int index)
Additional attributes that describe the specific event occurrence. [Optional]. Attribute keys MUST be unique (it is not allowed to have more than one attribute with the same key).
repeated .opentelemetry.proto.common.v1.KeyValue attributes = 6;
-
getAttributesBuilderList
public List<KeyValue.Builder> getAttributesBuilderList()
Additional attributes that describe the specific event occurrence. [Optional]. Attribute keys MUST be unique (it is not allowed to have more than one attribute with the same key).
repeated .opentelemetry.proto.common.v1.KeyValue attributes = 6;
-
getDroppedAttributesCount
public int getDroppedAttributesCount()
uint32 dropped_attributes_count = 7;- Specified by:
getDroppedAttributesCountin interfaceLogRecordOrBuilder- Returns:
- The droppedAttributesCount.
-
setDroppedAttributesCount
public LogRecord.Builder setDroppedAttributesCount(int value)
uint32 dropped_attributes_count = 7;- Parameters:
value- The droppedAttributesCount to set.- Returns:
- This builder for chaining.
-
clearDroppedAttributesCount
public LogRecord.Builder clearDroppedAttributesCount()
uint32 dropped_attributes_count = 7;- Returns:
- This builder for chaining.
-
getFlags
public int getFlags()
Flags, a bit field. 8 least significant bits are the trace flags as defined in W3C Trace Context specification. 24 most significant bits are reserved and must be set to 0. Readers must not assume that 24 most significant bits will be zero and must correctly mask the bits when reading 8-bit trace flag (use flags & TRACE_FLAGS_MASK). [Optional].
fixed32 flags = 8;- Specified by:
getFlagsin interfaceLogRecordOrBuilder- Returns:
- The flags.
-
setFlags
public LogRecord.Builder setFlags(int value)
Flags, a bit field. 8 least significant bits are the trace flags as defined in W3C Trace Context specification. 24 most significant bits are reserved and must be set to 0. Readers must not assume that 24 most significant bits will be zero and must correctly mask the bits when reading 8-bit trace flag (use flags & TRACE_FLAGS_MASK). [Optional].
fixed32 flags = 8;- Parameters:
value- The flags to set.- Returns:
- This builder for chaining.
-
clearFlags
public LogRecord.Builder clearFlags()
Flags, a bit field. 8 least significant bits are the trace flags as defined in W3C Trace Context specification. 24 most significant bits are reserved and must be set to 0. Readers must not assume that 24 most significant bits will be zero and must correctly mask the bits when reading 8-bit trace flag (use flags & TRACE_FLAGS_MASK). [Optional].
fixed32 flags = 8;- Returns:
- This builder for chaining.
-
getTraceId
public com.google.protobuf.ByteString getTraceId()
A unique identifier for a trace. All logs from the same trace share the same `trace_id`. The ID is a 16-byte array. An ID with all zeroes is considered invalid. Can be set for logs that are part of request processing and have an assigned trace id. [Optional].
bytes trace_id = 9;- Specified by:
getTraceIdin interfaceLogRecordOrBuilder- Returns:
- The traceId.
-
setTraceId
public LogRecord.Builder setTraceId(com.google.protobuf.ByteString value)
A unique identifier for a trace. All logs from the same trace share the same `trace_id`. The ID is a 16-byte array. An ID with all zeroes is considered invalid. Can be set for logs that are part of request processing and have an assigned trace id. [Optional].
bytes trace_id = 9;- Parameters:
value- The traceId to set.- Returns:
- This builder for chaining.
-
clearTraceId
public LogRecord.Builder clearTraceId()
A unique identifier for a trace. All logs from the same trace share the same `trace_id`. The ID is a 16-byte array. An ID with all zeroes is considered invalid. Can be set for logs that are part of request processing and have an assigned trace id. [Optional].
bytes trace_id = 9;- Returns:
- This builder for chaining.
-
getSpanId
public com.google.protobuf.ByteString getSpanId()
A unique identifier for a span within a trace, assigned when the span is created. The ID is an 8-byte array. An ID with all zeroes is considered invalid. Can be set for logs that are part of a particular processing span. If span_id is present trace_id SHOULD be also present. [Optional].
bytes span_id = 10;- Specified by:
getSpanIdin interfaceLogRecordOrBuilder- Returns:
- The spanId.
-
setSpanId
public LogRecord.Builder setSpanId(com.google.protobuf.ByteString value)
A unique identifier for a span within a trace, assigned when the span is created. The ID is an 8-byte array. An ID with all zeroes is considered invalid. Can be set for logs that are part of a particular processing span. If span_id is present trace_id SHOULD be also present. [Optional].
bytes span_id = 10;- Parameters:
value- The spanId to set.- Returns:
- This builder for chaining.
-
clearSpanId
public LogRecord.Builder clearSpanId()
A unique identifier for a span within a trace, assigned when the span is created. The ID is an 8-byte array. An ID with all zeroes is considered invalid. Can be set for logs that are part of a particular processing span. If span_id is present trace_id SHOULD be also present. [Optional].
bytes span_id = 10;- Returns:
- This builder for chaining.
-
setUnknownFields
public final LogRecord.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<LogRecord.Builder>
-
mergeUnknownFields
public final LogRecord.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<LogRecord.Builder>
-
-