Package io.opentelemetry.proto.logs.v1
Class ResourceLogs.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderType>
-
- com.google.protobuf.GeneratedMessageV3.Builder<ResourceLogs.Builder>
-
- io.opentelemetry.proto.logs.v1.ResourceLogs.Builder
-
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,ResourceLogsOrBuilder,Cloneable
- Enclosing class:
- ResourceLogs
public static final class ResourceLogs.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<ResourceLogs.Builder> implements ResourceLogsOrBuilder
A collection of InstrumentationLibraryLogs from a Resource.
Protobuf typeopentelemetry.proto.logs.v1.ResourceLogs
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ResourceLogs.BuilderaddAllInstrumentationLibraryLogs(Iterable<? extends InstrumentationLibraryLogs> values)A list of InstrumentationLibraryLogs that originate from a resource.ResourceLogs.BuilderaddInstrumentationLibraryLogs(int index, InstrumentationLibraryLogs value)A list of InstrumentationLibraryLogs that originate from a resource.ResourceLogs.BuilderaddInstrumentationLibraryLogs(int index, InstrumentationLibraryLogs.Builder builderForValue)A list of InstrumentationLibraryLogs that originate from a resource.ResourceLogs.BuilderaddInstrumentationLibraryLogs(InstrumentationLibraryLogs value)A list of InstrumentationLibraryLogs that originate from a resource.ResourceLogs.BuilderaddInstrumentationLibraryLogs(InstrumentationLibraryLogs.Builder builderForValue)A list of InstrumentationLibraryLogs that originate from a resource.InstrumentationLibraryLogs.BuilderaddInstrumentationLibraryLogsBuilder()A list of InstrumentationLibraryLogs that originate from a resource.InstrumentationLibraryLogs.BuilderaddInstrumentationLibraryLogsBuilder(int index)A list of InstrumentationLibraryLogs that originate from a resource.ResourceLogs.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)ResourceLogsbuild()ResourceLogsbuildPartial()ResourceLogs.Builderclear()ResourceLogs.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)ResourceLogs.BuilderclearInstrumentationLibraryLogs()A list of InstrumentationLibraryLogs that originate from a resource.ResourceLogs.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)ResourceLogs.BuilderclearResource()The resource for the logs in this message.ResourceLogs.BuilderclearSchemaUrl()This schema_url applies to the data in the "resource" field.ResourceLogs.Builderclone()ResourceLogsgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()InstrumentationLibraryLogsgetInstrumentationLibraryLogs(int index)A list of InstrumentationLibraryLogs that originate from a resource.InstrumentationLibraryLogs.BuildergetInstrumentationLibraryLogsBuilder(int index)A list of InstrumentationLibraryLogs that originate from a resource.List<InstrumentationLibraryLogs.Builder>getInstrumentationLibraryLogsBuilderList()A list of InstrumentationLibraryLogs that originate from a resource.intgetInstrumentationLibraryLogsCount()A list of InstrumentationLibraryLogs that originate from a resource.List<InstrumentationLibraryLogs>getInstrumentationLibraryLogsList()A list of InstrumentationLibraryLogs that originate from a resource.InstrumentationLibraryLogsOrBuildergetInstrumentationLibraryLogsOrBuilder(int index)A list of InstrumentationLibraryLogs that originate from a resource.List<? extends InstrumentationLibraryLogsOrBuilder>getInstrumentationLibraryLogsOrBuilderList()A list of InstrumentationLibraryLogs that originate from a resource.ResourcegetResource()The resource for the logs in this message.Resource.BuildergetResourceBuilder()The resource for the logs in this message.ResourceOrBuildergetResourceOrBuilder()The resource for the logs in this message.StringgetSchemaUrl()This schema_url applies to the data in the "resource" field.com.google.protobuf.ByteStringgetSchemaUrlBytes()This schema_url applies to the data in the "resource" field.booleanhasResource()The resource for the logs in this message.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()ResourceLogs.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)ResourceLogs.BuildermergeFrom(com.google.protobuf.Message other)ResourceLogs.BuildermergeFrom(ResourceLogs other)ResourceLogs.BuildermergeResource(Resource value)The resource for the logs in this message.ResourceLogs.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)ResourceLogs.BuilderremoveInstrumentationLibraryLogs(int index)A list of InstrumentationLibraryLogs that originate from a resource.ResourceLogs.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)ResourceLogs.BuildersetInstrumentationLibraryLogs(int index, InstrumentationLibraryLogs value)A list of InstrumentationLibraryLogs that originate from a resource.ResourceLogs.BuildersetInstrumentationLibraryLogs(int index, InstrumentationLibraryLogs.Builder builderForValue)A list of InstrumentationLibraryLogs that originate from a resource.ResourceLogs.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)ResourceLogs.BuildersetResource(Resource value)The resource for the logs in this message.ResourceLogs.BuildersetResource(Resource.Builder builderForValue)The resource for the logs in this message.ResourceLogs.BuildersetSchemaUrl(String value)This schema_url applies to the data in the "resource" field.ResourceLogs.BuildersetSchemaUrlBytes(com.google.protobuf.ByteString value)This schema_url applies to the data in the "resource" field.ResourceLogs.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, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeFrom, newUninitializedMessageException
-
-
-
-
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<ResourceLogs.Builder>
-
clear
public ResourceLogs.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<ResourceLogs.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<ResourceLogs.Builder>
-
getDefaultInstanceForType
public ResourceLogs getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public ResourceLogs build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public ResourceLogs buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public ResourceLogs.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<ResourceLogs.Builder>
-
setField
public ResourceLogs.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<ResourceLogs.Builder>
-
clearField
public ResourceLogs.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ResourceLogs.Builder>
-
clearOneof
public ResourceLogs.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<ResourceLogs.Builder>
-
setRepeatedField
public ResourceLogs.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<ResourceLogs.Builder>
-
addRepeatedField
public ResourceLogs.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<ResourceLogs.Builder>
-
mergeFrom
public ResourceLogs.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ResourceLogs.Builder>
-
mergeFrom
public ResourceLogs.Builder mergeFrom(ResourceLogs other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<ResourceLogs.Builder>
-
mergeFrom
public ResourceLogs.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<ResourceLogs.Builder>- Throws:
IOException
-
hasResource
public boolean hasResource()
The resource for the logs in this message. If this field is not set then resource info is unknown.
.opentelemetry.proto.resource.v1.Resource resource = 1;- Specified by:
hasResourcein interfaceResourceLogsOrBuilder
-
getResource
public Resource getResource()
The resource for the logs in this message. If this field is not set then resource info is unknown.
.opentelemetry.proto.resource.v1.Resource resource = 1;- Specified by:
getResourcein interfaceResourceLogsOrBuilder
-
setResource
public ResourceLogs.Builder setResource(Resource value)
The resource for the logs in this message. If this field is not set then resource info is unknown.
.opentelemetry.proto.resource.v1.Resource resource = 1;
-
setResource
public ResourceLogs.Builder setResource(Resource.Builder builderForValue)
The resource for the logs in this message. If this field is not set then resource info is unknown.
.opentelemetry.proto.resource.v1.Resource resource = 1;
-
mergeResource
public ResourceLogs.Builder mergeResource(Resource value)
The resource for the logs in this message. If this field is not set then resource info is unknown.
.opentelemetry.proto.resource.v1.Resource resource = 1;
-
clearResource
public ResourceLogs.Builder clearResource()
The resource for the logs in this message. If this field is not set then resource info is unknown.
.opentelemetry.proto.resource.v1.Resource resource = 1;
-
getResourceBuilder
public Resource.Builder getResourceBuilder()
The resource for the logs in this message. If this field is not set then resource info is unknown.
.opentelemetry.proto.resource.v1.Resource resource = 1;
-
getResourceOrBuilder
public ResourceOrBuilder getResourceOrBuilder()
The resource for the logs in this message. If this field is not set then resource info is unknown.
.opentelemetry.proto.resource.v1.Resource resource = 1;- Specified by:
getResourceOrBuilderin interfaceResourceLogsOrBuilder
-
getInstrumentationLibraryLogsList
public List<InstrumentationLibraryLogs> getInstrumentationLibraryLogsList()
A list of InstrumentationLibraryLogs that originate from a resource.
repeated .opentelemetry.proto.logs.v1.InstrumentationLibraryLogs instrumentation_library_logs = 2;- Specified by:
getInstrumentationLibraryLogsListin interfaceResourceLogsOrBuilder
-
getInstrumentationLibraryLogsCount
public int getInstrumentationLibraryLogsCount()
A list of InstrumentationLibraryLogs that originate from a resource.
repeated .opentelemetry.proto.logs.v1.InstrumentationLibraryLogs instrumentation_library_logs = 2;- Specified by:
getInstrumentationLibraryLogsCountin interfaceResourceLogsOrBuilder
-
getInstrumentationLibraryLogs
public InstrumentationLibraryLogs getInstrumentationLibraryLogs(int index)
A list of InstrumentationLibraryLogs that originate from a resource.
repeated .opentelemetry.proto.logs.v1.InstrumentationLibraryLogs instrumentation_library_logs = 2;- Specified by:
getInstrumentationLibraryLogsin interfaceResourceLogsOrBuilder
-
setInstrumentationLibraryLogs
public ResourceLogs.Builder setInstrumentationLibraryLogs(int index, InstrumentationLibraryLogs value)
A list of InstrumentationLibraryLogs that originate from a resource.
repeated .opentelemetry.proto.logs.v1.InstrumentationLibraryLogs instrumentation_library_logs = 2;
-
setInstrumentationLibraryLogs
public ResourceLogs.Builder setInstrumentationLibraryLogs(int index, InstrumentationLibraryLogs.Builder builderForValue)
A list of InstrumentationLibraryLogs that originate from a resource.
repeated .opentelemetry.proto.logs.v1.InstrumentationLibraryLogs instrumentation_library_logs = 2;
-
addInstrumentationLibraryLogs
public ResourceLogs.Builder addInstrumentationLibraryLogs(InstrumentationLibraryLogs value)
A list of InstrumentationLibraryLogs that originate from a resource.
repeated .opentelemetry.proto.logs.v1.InstrumentationLibraryLogs instrumentation_library_logs = 2;
-
addInstrumentationLibraryLogs
public ResourceLogs.Builder addInstrumentationLibraryLogs(int index, InstrumentationLibraryLogs value)
A list of InstrumentationLibraryLogs that originate from a resource.
repeated .opentelemetry.proto.logs.v1.InstrumentationLibraryLogs instrumentation_library_logs = 2;
-
addInstrumentationLibraryLogs
public ResourceLogs.Builder addInstrumentationLibraryLogs(InstrumentationLibraryLogs.Builder builderForValue)
A list of InstrumentationLibraryLogs that originate from a resource.
repeated .opentelemetry.proto.logs.v1.InstrumentationLibraryLogs instrumentation_library_logs = 2;
-
addInstrumentationLibraryLogs
public ResourceLogs.Builder addInstrumentationLibraryLogs(int index, InstrumentationLibraryLogs.Builder builderForValue)
A list of InstrumentationLibraryLogs that originate from a resource.
repeated .opentelemetry.proto.logs.v1.InstrumentationLibraryLogs instrumentation_library_logs = 2;
-
addAllInstrumentationLibraryLogs
public ResourceLogs.Builder addAllInstrumentationLibraryLogs(Iterable<? extends InstrumentationLibraryLogs> values)
A list of InstrumentationLibraryLogs that originate from a resource.
repeated .opentelemetry.proto.logs.v1.InstrumentationLibraryLogs instrumentation_library_logs = 2;
-
clearInstrumentationLibraryLogs
public ResourceLogs.Builder clearInstrumentationLibraryLogs()
A list of InstrumentationLibraryLogs that originate from a resource.
repeated .opentelemetry.proto.logs.v1.InstrumentationLibraryLogs instrumentation_library_logs = 2;
-
removeInstrumentationLibraryLogs
public ResourceLogs.Builder removeInstrumentationLibraryLogs(int index)
A list of InstrumentationLibraryLogs that originate from a resource.
repeated .opentelemetry.proto.logs.v1.InstrumentationLibraryLogs instrumentation_library_logs = 2;
-
getInstrumentationLibraryLogsBuilder
public InstrumentationLibraryLogs.Builder getInstrumentationLibraryLogsBuilder(int index)
A list of InstrumentationLibraryLogs that originate from a resource.
repeated .opentelemetry.proto.logs.v1.InstrumentationLibraryLogs instrumentation_library_logs = 2;
-
getInstrumentationLibraryLogsOrBuilder
public InstrumentationLibraryLogsOrBuilder getInstrumentationLibraryLogsOrBuilder(int index)
A list of InstrumentationLibraryLogs that originate from a resource.
repeated .opentelemetry.proto.logs.v1.InstrumentationLibraryLogs instrumentation_library_logs = 2;- Specified by:
getInstrumentationLibraryLogsOrBuilderin interfaceResourceLogsOrBuilder
-
getInstrumentationLibraryLogsOrBuilderList
public List<? extends InstrumentationLibraryLogsOrBuilder> getInstrumentationLibraryLogsOrBuilderList()
A list of InstrumentationLibraryLogs that originate from a resource.
repeated .opentelemetry.proto.logs.v1.InstrumentationLibraryLogs instrumentation_library_logs = 2;- Specified by:
getInstrumentationLibraryLogsOrBuilderListin interfaceResourceLogsOrBuilder
-
addInstrumentationLibraryLogsBuilder
public InstrumentationLibraryLogs.Builder addInstrumentationLibraryLogsBuilder()
A list of InstrumentationLibraryLogs that originate from a resource.
repeated .opentelemetry.proto.logs.v1.InstrumentationLibraryLogs instrumentation_library_logs = 2;
-
addInstrumentationLibraryLogsBuilder
public InstrumentationLibraryLogs.Builder addInstrumentationLibraryLogsBuilder(int index)
A list of InstrumentationLibraryLogs that originate from a resource.
repeated .opentelemetry.proto.logs.v1.InstrumentationLibraryLogs instrumentation_library_logs = 2;
-
getInstrumentationLibraryLogsBuilderList
public List<InstrumentationLibraryLogs.Builder> getInstrumentationLibraryLogsBuilderList()
A list of InstrumentationLibraryLogs that originate from a resource.
repeated .opentelemetry.proto.logs.v1.InstrumentationLibraryLogs instrumentation_library_logs = 2;
-
getSchemaUrl
public String getSchemaUrl()
This schema_url applies to the data in the "resource" field. It does not apply to the data in the "instrumentation_library_logs" field which have their own schema_url field.
string schema_url = 3;- Specified by:
getSchemaUrlin interfaceResourceLogsOrBuilder
-
getSchemaUrlBytes
public com.google.protobuf.ByteString getSchemaUrlBytes()
This schema_url applies to the data in the "resource" field. It does not apply to the data in the "instrumentation_library_logs" field which have their own schema_url field.
string schema_url = 3;- Specified by:
getSchemaUrlBytesin interfaceResourceLogsOrBuilder
-
setSchemaUrl
public ResourceLogs.Builder setSchemaUrl(String value)
This schema_url applies to the data in the "resource" field. It does not apply to the data in the "instrumentation_library_logs" field which have their own schema_url field.
string schema_url = 3;
-
clearSchemaUrl
public ResourceLogs.Builder clearSchemaUrl()
This schema_url applies to the data in the "resource" field. It does not apply to the data in the "instrumentation_library_logs" field which have their own schema_url field.
string schema_url = 3;
-
setSchemaUrlBytes
public ResourceLogs.Builder setSchemaUrlBytes(com.google.protobuf.ByteString value)
This schema_url applies to the data in the "resource" field. It does not apply to the data in the "instrumentation_library_logs" field which have their own schema_url field.
string schema_url = 3;
-
setUnknownFields
public final ResourceLogs.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<ResourceLogs.Builder>
-
mergeUnknownFields
public final ResourceLogs.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<ResourceLogs.Builder>
-
-