Package io.opentelemetry.proto.logs.v1
Class LogsData.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<LogsData.Builder>
io.opentelemetry.proto.logs.v1.LogsData.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,LogsDataOrBuilder,Cloneable
- Enclosing class:
- LogsData
public static final class LogsData.Builder
extends com.google.protobuf.GeneratedMessage.Builder<LogsData.Builder>
implements LogsDataOrBuilder
LogsData represents the logs data that can be stored in a persistent storage, OR can be embedded by other protocols that transfer OTLP logs data but do not implement the OTLP protocol. The main difference between this message and collector protocol is that in this message there will not be any "control" or "metadata" specific to OTLP protocol. When new fields are added into this message, the OTLP request MUST be updated as well.Protobuf type
opentelemetry.proto.logs.v1.LogsData-
Method Summary
Modifier and TypeMethodDescriptionaddAllResourceLogs(Iterable<? extends ResourceLogs> values) An array of ResourceLogs.addResourceLogs(int index, ResourceLogs value) An array of ResourceLogs.addResourceLogs(int index, ResourceLogs.Builder builderForValue) An array of ResourceLogs.addResourceLogs(ResourceLogs value) An array of ResourceLogs.addResourceLogs(ResourceLogs.Builder builderForValue) An array of ResourceLogs.An array of ResourceLogs.addResourceLogsBuilder(int index) An array of ResourceLogs.build()clear()An array of ResourceLogs.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetResourceLogs(int index) An array of ResourceLogs.getResourceLogsBuilder(int index) An array of ResourceLogs.An array of ResourceLogs.intAn array of ResourceLogs.An array of ResourceLogs.getResourceLogsOrBuilder(int index) An array of ResourceLogs.List<? extends ResourceLogsOrBuilder>An array of ResourceLogs.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) removeResourceLogs(int index) An array of ResourceLogs.setResourceLogs(int index, ResourceLogs value) An array of ResourceLogs.setResourceLogs(int index, ResourceLogs.Builder builderForValue) An array of ResourceLogs.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<LogsData.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<LogsData.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.GeneratedMessage.Builder<LogsData.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<LogsData.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<LogsData.Builder>
-
mergeFrom
public LogsData.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<LogsData.Builder>- Throws:
IOException
-
getResourceLogsList
An array of ResourceLogs. For data coming from a single resource this array will typically contain one element. Intermediary nodes that receive data from multiple origins typically batch the data before forwarding further and in that case this array will contain multiple elements.
repeated .opentelemetry.proto.logs.v1.ResourceLogs resource_logs = 1;- Specified by:
getResourceLogsListin interfaceLogsDataOrBuilder
-
getResourceLogsCount
public int getResourceLogsCount()An array of ResourceLogs. For data coming from a single resource this array will typically contain one element. Intermediary nodes that receive data from multiple origins typically batch the data before forwarding further and in that case this array will contain multiple elements.
repeated .opentelemetry.proto.logs.v1.ResourceLogs resource_logs = 1;- Specified by:
getResourceLogsCountin interfaceLogsDataOrBuilder
-
getResourceLogs
An array of ResourceLogs. For data coming from a single resource this array will typically contain one element. Intermediary nodes that receive data from multiple origins typically batch the data before forwarding further and in that case this array will contain multiple elements.
repeated .opentelemetry.proto.logs.v1.ResourceLogs resource_logs = 1;- Specified by:
getResourceLogsin interfaceLogsDataOrBuilder
-
setResourceLogs
An array of ResourceLogs. For data coming from a single resource this array will typically contain one element. Intermediary nodes that receive data from multiple origins typically batch the data before forwarding further and in that case this array will contain multiple elements.
repeated .opentelemetry.proto.logs.v1.ResourceLogs resource_logs = 1; -
setResourceLogs
An array of ResourceLogs. For data coming from a single resource this array will typically contain one element. Intermediary nodes that receive data from multiple origins typically batch the data before forwarding further and in that case this array will contain multiple elements.
repeated .opentelemetry.proto.logs.v1.ResourceLogs resource_logs = 1; -
addResourceLogs
An array of ResourceLogs. For data coming from a single resource this array will typically contain one element. Intermediary nodes that receive data from multiple origins typically batch the data before forwarding further and in that case this array will contain multiple elements.
repeated .opentelemetry.proto.logs.v1.ResourceLogs resource_logs = 1; -
addResourceLogs
An array of ResourceLogs. For data coming from a single resource this array will typically contain one element. Intermediary nodes that receive data from multiple origins typically batch the data before forwarding further and in that case this array will contain multiple elements.
repeated .opentelemetry.proto.logs.v1.ResourceLogs resource_logs = 1; -
addResourceLogs
An array of ResourceLogs. For data coming from a single resource this array will typically contain one element. Intermediary nodes that receive data from multiple origins typically batch the data before forwarding further and in that case this array will contain multiple elements.
repeated .opentelemetry.proto.logs.v1.ResourceLogs resource_logs = 1; -
addResourceLogs
An array of ResourceLogs. For data coming from a single resource this array will typically contain one element. Intermediary nodes that receive data from multiple origins typically batch the data before forwarding further and in that case this array will contain multiple elements.
repeated .opentelemetry.proto.logs.v1.ResourceLogs resource_logs = 1; -
addAllResourceLogs
An array of ResourceLogs. For data coming from a single resource this array will typically contain one element. Intermediary nodes that receive data from multiple origins typically batch the data before forwarding further and in that case this array will contain multiple elements.
repeated .opentelemetry.proto.logs.v1.ResourceLogs resource_logs = 1; -
clearResourceLogs
An array of ResourceLogs. For data coming from a single resource this array will typically contain one element. Intermediary nodes that receive data from multiple origins typically batch the data before forwarding further and in that case this array will contain multiple elements.
repeated .opentelemetry.proto.logs.v1.ResourceLogs resource_logs = 1; -
removeResourceLogs
An array of ResourceLogs. For data coming from a single resource this array will typically contain one element. Intermediary nodes that receive data from multiple origins typically batch the data before forwarding further and in that case this array will contain multiple elements.
repeated .opentelemetry.proto.logs.v1.ResourceLogs resource_logs = 1; -
getResourceLogsBuilder
An array of ResourceLogs. For data coming from a single resource this array will typically contain one element. Intermediary nodes that receive data from multiple origins typically batch the data before forwarding further and in that case this array will contain multiple elements.
repeated .opentelemetry.proto.logs.v1.ResourceLogs resource_logs = 1; -
getResourceLogsOrBuilder
An array of ResourceLogs. For data coming from a single resource this array will typically contain one element. Intermediary nodes that receive data from multiple origins typically batch the data before forwarding further and in that case this array will contain multiple elements.
repeated .opentelemetry.proto.logs.v1.ResourceLogs resource_logs = 1;- Specified by:
getResourceLogsOrBuilderin interfaceLogsDataOrBuilder
-
getResourceLogsOrBuilderList
An array of ResourceLogs. For data coming from a single resource this array will typically contain one element. Intermediary nodes that receive data from multiple origins typically batch the data before forwarding further and in that case this array will contain multiple elements.
repeated .opentelemetry.proto.logs.v1.ResourceLogs resource_logs = 1;- Specified by:
getResourceLogsOrBuilderListin interfaceLogsDataOrBuilder
-
addResourceLogsBuilder
An array of ResourceLogs. For data coming from a single resource this array will typically contain one element. Intermediary nodes that receive data from multiple origins typically batch the data before forwarding further and in that case this array will contain multiple elements.
repeated .opentelemetry.proto.logs.v1.ResourceLogs resource_logs = 1; -
addResourceLogsBuilder
An array of ResourceLogs. For data coming from a single resource this array will typically contain one element. Intermediary nodes that receive data from multiple origins typically batch the data before forwarding further and in that case this array will contain multiple elements.
repeated .opentelemetry.proto.logs.v1.ResourceLogs resource_logs = 1; -
getResourceLogsBuilderList
An array of ResourceLogs. For data coming from a single resource this array will typically contain one element. Intermediary nodes that receive data from multiple origins typically batch the data before forwarding further and in that case this array will contain multiple elements.
repeated .opentelemetry.proto.logs.v1.ResourceLogs resource_logs = 1;
-