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.GeneratedMessageV3.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,java.lang.Cloneable
- Enclosing class:
- LogsData
public static final class LogsData.Builder extends com.google.protobuf.GeneratedMessageV3.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 typeopentelemetry.proto.logs.v1.LogsData
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description LogsData.BuilderaddAllResourceLogs(java.lang.Iterable<? extends ResourceLogs> values)An array of ResourceLogs.LogsData.BuilderaddResourceLogs(int index, ResourceLogs value)An array of ResourceLogs.LogsData.BuilderaddResourceLogs(int index, ResourceLogs.Builder builderForValue)An array of ResourceLogs.LogsData.BuilderaddResourceLogs(ResourceLogs value)An array of ResourceLogs.LogsData.BuilderaddResourceLogs(ResourceLogs.Builder builderForValue)An array of ResourceLogs.ResourceLogs.BuilderaddResourceLogsBuilder()An array of ResourceLogs.ResourceLogs.BuilderaddResourceLogsBuilder(int index)An array of ResourceLogs.LogsDatabuild()LogsDatabuildPartial()LogsData.Builderclear()LogsData.BuilderclearResourceLogs()An array of ResourceLogs.LogsDatagetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()ResourceLogsgetResourceLogs(int index)An array of ResourceLogs.ResourceLogs.BuildergetResourceLogsBuilder(int index)An array of ResourceLogs.java.util.List<ResourceLogs.Builder>getResourceLogsBuilderList()An array of ResourceLogs.intgetResourceLogsCount()An array of ResourceLogs.java.util.List<ResourceLogs>getResourceLogsList()An array of ResourceLogs.ResourceLogsOrBuildergetResourceLogsOrBuilder(int index)An array of ResourceLogs.java.util.List<? extends ResourceLogsOrBuilder>getResourceLogsOrBuilderList()An array of ResourceLogs.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()LogsData.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)LogsData.BuildermergeFrom(com.google.protobuf.Message other)LogsData.BuildermergeFrom(LogsData other)LogsData.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)LogsData.BuilderremoveResourceLogs(int index)An array of ResourceLogs.LogsData.BuildersetResourceLogs(int index, ResourceLogs value)An array of ResourceLogs.LogsData.BuildersetResourceLogs(int index, ResourceLogs.Builder builderForValue)An array of ResourceLogs.LogsData.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFieldSetBuilder, 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<LogsData.Builder>
-
clear
public LogsData.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<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.GeneratedMessageV3.Builder<LogsData.Builder>
-
getDefaultInstanceForType
public LogsData getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public LogsData build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public LogsData buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
public LogsData.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<LogsData.Builder>
-
mergeFrom
public LogsData.Builder mergeFrom(LogsData other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<LogsData.Builder>
-
mergeFrom
public LogsData.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.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:
java.io.IOException
-
getResourceLogsList
public java.util.List<ResourceLogs> 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
public ResourceLogs getResourceLogs(int index)
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
public LogsData.Builder setResourceLogs(int index, ResourceLogs value)
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
public LogsData.Builder setResourceLogs(int index, ResourceLogs.Builder builderForValue)
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
public LogsData.Builder addResourceLogs(ResourceLogs value)
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
public LogsData.Builder addResourceLogs(int index, ResourceLogs value)
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
public LogsData.Builder addResourceLogs(ResourceLogs.Builder builderForValue)
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
public LogsData.Builder addResourceLogs(int index, ResourceLogs.Builder builderForValue)
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
public LogsData.Builder addAllResourceLogs(java.lang.Iterable<? extends ResourceLogs> values)
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
public LogsData.Builder 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
public LogsData.Builder removeResourceLogs(int index)
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
public ResourceLogs.Builder getResourceLogsBuilder(int index)
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
public ResourceLogsOrBuilder getResourceLogsOrBuilder(int index)
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
public java.util.List<? extends ResourceLogsOrBuilder> 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
public ResourceLogs.Builder 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
public ResourceLogs.Builder addResourceLogsBuilder(int index)
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
public java.util.List<ResourceLogs.Builder> 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;
-
setUnknownFields
public final LogsData.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<LogsData.Builder>
-
mergeUnknownFields
public final LogsData.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<LogsData.Builder>
-
-