Package io.opentelemetry.proto.logs.v1
Class InstrumentationLibraryLogs.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderType>
-
- com.google.protobuf.GeneratedMessageV3.Builder<InstrumentationLibraryLogs.Builder>
-
- io.opentelemetry.proto.logs.v1.InstrumentationLibraryLogs.Builder
-
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,InstrumentationLibraryLogsOrBuilder,Cloneable
- Enclosing class:
- InstrumentationLibraryLogs
public static final class InstrumentationLibraryLogs.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<InstrumentationLibraryLogs.Builder> implements InstrumentationLibraryLogsOrBuilder
A collection of Logs produced by an InstrumentationLibrary. InstrumentationLibraryLogs is wire-compatible with ScopeLogs for binary Protobuf format. This message is deprecated and will be removed on June 15, 2022.
Protobuf typeopentelemetry.proto.logs.v1.InstrumentationLibraryLogs
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description InstrumentationLibraryLogs.BuilderaddAllLogRecords(Iterable<? extends LogRecord> values)A list of logs that originate from an instrumentation library.InstrumentationLibraryLogs.BuilderaddLogRecords(int index, LogRecord value)A list of logs that originate from an instrumentation library.InstrumentationLibraryLogs.BuilderaddLogRecords(int index, LogRecord.Builder builderForValue)A list of logs that originate from an instrumentation library.InstrumentationLibraryLogs.BuilderaddLogRecords(LogRecord value)A list of logs that originate from an instrumentation library.InstrumentationLibraryLogs.BuilderaddLogRecords(LogRecord.Builder builderForValue)A list of logs that originate from an instrumentation library.LogRecord.BuilderaddLogRecordsBuilder()A list of logs that originate from an instrumentation library.LogRecord.BuilderaddLogRecordsBuilder(int index)A list of logs that originate from an instrumentation library.InstrumentationLibraryLogs.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)InstrumentationLibraryLogsbuild()InstrumentationLibraryLogsbuildPartial()InstrumentationLibraryLogs.Builderclear()InstrumentationLibraryLogs.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)InstrumentationLibraryLogs.BuilderclearInstrumentationLibrary()The instrumentation library information for the logs in this message.InstrumentationLibraryLogs.BuilderclearLogRecords()A list of logs that originate from an instrumentation library.InstrumentationLibraryLogs.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)InstrumentationLibraryLogs.BuilderclearSchemaUrl()This schema_url applies to all logs in the "logs" field.InstrumentationLibraryLogs.Builderclone()InstrumentationLibraryLogsgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()InstrumentationLibrarygetInstrumentationLibrary()The instrumentation library information for the logs in this message.InstrumentationLibrary.BuildergetInstrumentationLibraryBuilder()The instrumentation library information for the logs in this message.InstrumentationLibraryOrBuildergetInstrumentationLibraryOrBuilder()The instrumentation library information for the logs in this message.LogRecordgetLogRecords(int index)A list of logs that originate from an instrumentation library.LogRecord.BuildergetLogRecordsBuilder(int index)A list of logs that originate from an instrumentation library.List<LogRecord.Builder>getLogRecordsBuilderList()A list of logs that originate from an instrumentation library.intgetLogRecordsCount()A list of logs that originate from an instrumentation library.List<LogRecord>getLogRecordsList()A list of logs that originate from an instrumentation library.LogRecordOrBuildergetLogRecordsOrBuilder(int index)A list of logs that originate from an instrumentation library.List<? extends LogRecordOrBuilder>getLogRecordsOrBuilderList()A list of logs that originate from an instrumentation library.StringgetSchemaUrl()This schema_url applies to all logs in the "logs" field.com.google.protobuf.ByteStringgetSchemaUrlBytes()This schema_url applies to all logs in the "logs" field.booleanhasInstrumentationLibrary()The instrumentation library information for the logs in this message.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()InstrumentationLibraryLogs.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)InstrumentationLibraryLogs.BuildermergeFrom(com.google.protobuf.Message other)InstrumentationLibraryLogs.BuildermergeFrom(InstrumentationLibraryLogs other)InstrumentationLibraryLogs.BuildermergeInstrumentationLibrary(InstrumentationLibrary value)The instrumentation library information for the logs in this message.InstrumentationLibraryLogs.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)InstrumentationLibraryLogs.BuilderremoveLogRecords(int index)A list of logs that originate from an instrumentation library.InstrumentationLibraryLogs.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)InstrumentationLibraryLogs.BuildersetInstrumentationLibrary(InstrumentationLibrary value)The instrumentation library information for the logs in this message.InstrumentationLibraryLogs.BuildersetInstrumentationLibrary(InstrumentationLibrary.Builder builderForValue)The instrumentation library information for the logs in this message.InstrumentationLibraryLogs.BuildersetLogRecords(int index, LogRecord value)A list of logs that originate from an instrumentation library.InstrumentationLibraryLogs.BuildersetLogRecords(int index, LogRecord.Builder builderForValue)A list of logs that originate from an instrumentation library.InstrumentationLibraryLogs.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)InstrumentationLibraryLogs.BuildersetSchemaUrl(String value)This schema_url applies to all logs in the "logs" field.InstrumentationLibraryLogs.BuildersetSchemaUrlBytes(com.google.protobuf.ByteString value)This schema_url applies to all logs in the "logs" field.InstrumentationLibraryLogs.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<InstrumentationLibraryLogs.Builder>
-
clear
public InstrumentationLibraryLogs.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<InstrumentationLibraryLogs.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<InstrumentationLibraryLogs.Builder>
-
getDefaultInstanceForType
public InstrumentationLibraryLogs getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public InstrumentationLibraryLogs build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public InstrumentationLibraryLogs buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public InstrumentationLibraryLogs.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<InstrumentationLibraryLogs.Builder>
-
setField
public InstrumentationLibraryLogs.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<InstrumentationLibraryLogs.Builder>
-
clearField
public InstrumentationLibraryLogs.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<InstrumentationLibraryLogs.Builder>
-
clearOneof
public InstrumentationLibraryLogs.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<InstrumentationLibraryLogs.Builder>
-
setRepeatedField
public InstrumentationLibraryLogs.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<InstrumentationLibraryLogs.Builder>
-
addRepeatedField
public InstrumentationLibraryLogs.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<InstrumentationLibraryLogs.Builder>
-
mergeFrom
public InstrumentationLibraryLogs.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<InstrumentationLibraryLogs.Builder>
-
mergeFrom
public InstrumentationLibraryLogs.Builder mergeFrom(InstrumentationLibraryLogs other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<InstrumentationLibraryLogs.Builder>
-
mergeFrom
public InstrumentationLibraryLogs.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<InstrumentationLibraryLogs.Builder>- Throws:
IOException
-
hasInstrumentationLibrary
public boolean hasInstrumentationLibrary()
The instrumentation library information for the logs in this message. Semantically when InstrumentationLibrary isn't set, it is equivalent with an empty instrumentation library name (unknown).
.opentelemetry.proto.common.v1.InstrumentationLibrary instrumentation_library = 1;- Specified by:
hasInstrumentationLibraryin interfaceInstrumentationLibraryLogsOrBuilder- Returns:
- Whether the instrumentationLibrary field is set.
-
getInstrumentationLibrary
public InstrumentationLibrary getInstrumentationLibrary()
The instrumentation library information for the logs in this message. Semantically when InstrumentationLibrary isn't set, it is equivalent with an empty instrumentation library name (unknown).
.opentelemetry.proto.common.v1.InstrumentationLibrary instrumentation_library = 1;- Specified by:
getInstrumentationLibraryin interfaceInstrumentationLibraryLogsOrBuilder- Returns:
- The instrumentationLibrary.
-
setInstrumentationLibrary
public InstrumentationLibraryLogs.Builder setInstrumentationLibrary(InstrumentationLibrary value)
The instrumentation library information for the logs in this message. Semantically when InstrumentationLibrary isn't set, it is equivalent with an empty instrumentation library name (unknown).
.opentelemetry.proto.common.v1.InstrumentationLibrary instrumentation_library = 1;
-
setInstrumentationLibrary
public InstrumentationLibraryLogs.Builder setInstrumentationLibrary(InstrumentationLibrary.Builder builderForValue)
The instrumentation library information for the logs in this message. Semantically when InstrumentationLibrary isn't set, it is equivalent with an empty instrumentation library name (unknown).
.opentelemetry.proto.common.v1.InstrumentationLibrary instrumentation_library = 1;
-
mergeInstrumentationLibrary
public InstrumentationLibraryLogs.Builder mergeInstrumentationLibrary(InstrumentationLibrary value)
The instrumentation library information for the logs in this message. Semantically when InstrumentationLibrary isn't set, it is equivalent with an empty instrumentation library name (unknown).
.opentelemetry.proto.common.v1.InstrumentationLibrary instrumentation_library = 1;
-
clearInstrumentationLibrary
public InstrumentationLibraryLogs.Builder clearInstrumentationLibrary()
The instrumentation library information for the logs in this message. Semantically when InstrumentationLibrary isn't set, it is equivalent with an empty instrumentation library name (unknown).
.opentelemetry.proto.common.v1.InstrumentationLibrary instrumentation_library = 1;
-
getInstrumentationLibraryBuilder
public InstrumentationLibrary.Builder getInstrumentationLibraryBuilder()
The instrumentation library information for the logs in this message. Semantically when InstrumentationLibrary isn't set, it is equivalent with an empty instrumentation library name (unknown).
.opentelemetry.proto.common.v1.InstrumentationLibrary instrumentation_library = 1;
-
getInstrumentationLibraryOrBuilder
public InstrumentationLibraryOrBuilder getInstrumentationLibraryOrBuilder()
The instrumentation library information for the logs in this message. Semantically when InstrumentationLibrary isn't set, it is equivalent with an empty instrumentation library name (unknown).
.opentelemetry.proto.common.v1.InstrumentationLibrary instrumentation_library = 1;- Specified by:
getInstrumentationLibraryOrBuilderin interfaceInstrumentationLibraryLogsOrBuilder
-
getLogRecordsList
public List<LogRecord> getLogRecordsList()
A list of logs that originate from an instrumentation library.
repeated .opentelemetry.proto.logs.v1.LogRecord log_records = 2;- Specified by:
getLogRecordsListin interfaceInstrumentationLibraryLogsOrBuilder
-
getLogRecordsCount
public int getLogRecordsCount()
A list of logs that originate from an instrumentation library.
repeated .opentelemetry.proto.logs.v1.LogRecord log_records = 2;- Specified by:
getLogRecordsCountin interfaceInstrumentationLibraryLogsOrBuilder
-
getLogRecords
public LogRecord getLogRecords(int index)
A list of logs that originate from an instrumentation library.
repeated .opentelemetry.proto.logs.v1.LogRecord log_records = 2;- Specified by:
getLogRecordsin interfaceInstrumentationLibraryLogsOrBuilder
-
setLogRecords
public InstrumentationLibraryLogs.Builder setLogRecords(int index, LogRecord value)
A list of logs that originate from an instrumentation library.
repeated .opentelemetry.proto.logs.v1.LogRecord log_records = 2;
-
setLogRecords
public InstrumentationLibraryLogs.Builder setLogRecords(int index, LogRecord.Builder builderForValue)
A list of logs that originate from an instrumentation library.
repeated .opentelemetry.proto.logs.v1.LogRecord log_records = 2;
-
addLogRecords
public InstrumentationLibraryLogs.Builder addLogRecords(LogRecord value)
A list of logs that originate from an instrumentation library.
repeated .opentelemetry.proto.logs.v1.LogRecord log_records = 2;
-
addLogRecords
public InstrumentationLibraryLogs.Builder addLogRecords(int index, LogRecord value)
A list of logs that originate from an instrumentation library.
repeated .opentelemetry.proto.logs.v1.LogRecord log_records = 2;
-
addLogRecords
public InstrumentationLibraryLogs.Builder addLogRecords(LogRecord.Builder builderForValue)
A list of logs that originate from an instrumentation library.
repeated .opentelemetry.proto.logs.v1.LogRecord log_records = 2;
-
addLogRecords
public InstrumentationLibraryLogs.Builder addLogRecords(int index, LogRecord.Builder builderForValue)
A list of logs that originate from an instrumentation library.
repeated .opentelemetry.proto.logs.v1.LogRecord log_records = 2;
-
addAllLogRecords
public InstrumentationLibraryLogs.Builder addAllLogRecords(Iterable<? extends LogRecord> values)
A list of logs that originate from an instrumentation library.
repeated .opentelemetry.proto.logs.v1.LogRecord log_records = 2;
-
clearLogRecords
public InstrumentationLibraryLogs.Builder clearLogRecords()
A list of logs that originate from an instrumentation library.
repeated .opentelemetry.proto.logs.v1.LogRecord log_records = 2;
-
removeLogRecords
public InstrumentationLibraryLogs.Builder removeLogRecords(int index)
A list of logs that originate from an instrumentation library.
repeated .opentelemetry.proto.logs.v1.LogRecord log_records = 2;
-
getLogRecordsBuilder
public LogRecord.Builder getLogRecordsBuilder(int index)
A list of logs that originate from an instrumentation library.
repeated .opentelemetry.proto.logs.v1.LogRecord log_records = 2;
-
getLogRecordsOrBuilder
public LogRecordOrBuilder getLogRecordsOrBuilder(int index)
A list of logs that originate from an instrumentation library.
repeated .opentelemetry.proto.logs.v1.LogRecord log_records = 2;- Specified by:
getLogRecordsOrBuilderin interfaceInstrumentationLibraryLogsOrBuilder
-
getLogRecordsOrBuilderList
public List<? extends LogRecordOrBuilder> getLogRecordsOrBuilderList()
A list of logs that originate from an instrumentation library.
repeated .opentelemetry.proto.logs.v1.LogRecord log_records = 2;- Specified by:
getLogRecordsOrBuilderListin interfaceInstrumentationLibraryLogsOrBuilder
-
addLogRecordsBuilder
public LogRecord.Builder addLogRecordsBuilder()
A list of logs that originate from an instrumentation library.
repeated .opentelemetry.proto.logs.v1.LogRecord log_records = 2;
-
addLogRecordsBuilder
public LogRecord.Builder addLogRecordsBuilder(int index)
A list of logs that originate from an instrumentation library.
repeated .opentelemetry.proto.logs.v1.LogRecord log_records = 2;
-
getLogRecordsBuilderList
public List<LogRecord.Builder> getLogRecordsBuilderList()
A list of logs that originate from an instrumentation library.
repeated .opentelemetry.proto.logs.v1.LogRecord log_records = 2;
-
getSchemaUrl
public String getSchemaUrl()
This schema_url applies to all logs in the "logs" field.
string schema_url = 3;- Specified by:
getSchemaUrlin interfaceInstrumentationLibraryLogsOrBuilder- Returns:
- The schemaUrl.
-
getSchemaUrlBytes
public com.google.protobuf.ByteString getSchemaUrlBytes()
This schema_url applies to all logs in the "logs" field.
string schema_url = 3;- Specified by:
getSchemaUrlBytesin interfaceInstrumentationLibraryLogsOrBuilder- Returns:
- The bytes for schemaUrl.
-
setSchemaUrl
public InstrumentationLibraryLogs.Builder setSchemaUrl(String value)
This schema_url applies to all logs in the "logs" field.
string schema_url = 3;- Parameters:
value- The schemaUrl to set.- Returns:
- This builder for chaining.
-
clearSchemaUrl
public InstrumentationLibraryLogs.Builder clearSchemaUrl()
This schema_url applies to all logs in the "logs" field.
string schema_url = 3;- Returns:
- This builder for chaining.
-
setSchemaUrlBytes
public InstrumentationLibraryLogs.Builder setSchemaUrlBytes(com.google.protobuf.ByteString value)
This schema_url applies to all logs in the "logs" field.
string schema_url = 3;- Parameters:
value- The bytes for schemaUrl to set.- Returns:
- This builder for chaining.
-
setUnknownFields
public final InstrumentationLibraryLogs.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<InstrumentationLibraryLogs.Builder>
-
mergeUnknownFields
public final InstrumentationLibraryLogs.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<InstrumentationLibraryLogs.Builder>
-
-