Package io.opentelemetry.proto.logs.v1
Interface ResourceLogsOrBuilder
-
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
ResourceLogs,ResourceLogs.Builder
public interface ResourceLogsOrBuilder extends com.google.protobuf.MessageOrBuilder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description InstrumentationLibraryLogsgetInstrumentationLibraryLogs(int index)Deprecated.intgetInstrumentationLibraryLogsCount()Deprecated.List<InstrumentationLibraryLogs>getInstrumentationLibraryLogsList()Deprecated.InstrumentationLibraryLogsOrBuildergetInstrumentationLibraryLogsOrBuilder(int index)Deprecated.List<? extends InstrumentationLibraryLogsOrBuilder>getInstrumentationLibraryLogsOrBuilderList()Deprecated.ResourcegetResource()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.ScopeLogsgetScopeLogs(int index)A list of ScopeLogs that originate from a resource.intgetScopeLogsCount()A list of ScopeLogs that originate from a resource.List<ScopeLogs>getScopeLogsList()A list of ScopeLogs that originate from a resource.ScopeLogsOrBuildergetScopeLogsOrBuilder(int index)A list of ScopeLogs that originate from a resource.List<? extends ScopeLogsOrBuilder>getScopeLogsOrBuilderList()A list of ScopeLogs that originate from a resource.booleanhasResource()The resource for the logs in this message.-
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
-
-
-
Method Detail
-
hasResource
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;- Returns:
- Whether the resource field is set.
-
getResource
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;- Returns:
- The resource.
-
getResourceOrBuilder
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;
-
getScopeLogsList
List<ScopeLogs> getScopeLogsList()
A list of ScopeLogs that originate from a resource.
repeated .opentelemetry.proto.logs.v1.ScopeLogs scope_logs = 2;
-
getScopeLogs
ScopeLogs getScopeLogs(int index)
A list of ScopeLogs that originate from a resource.
repeated .opentelemetry.proto.logs.v1.ScopeLogs scope_logs = 2;
-
getScopeLogsCount
int getScopeLogsCount()
A list of ScopeLogs that originate from a resource.
repeated .opentelemetry.proto.logs.v1.ScopeLogs scope_logs = 2;
-
getScopeLogsOrBuilderList
List<? extends ScopeLogsOrBuilder> getScopeLogsOrBuilderList()
A list of ScopeLogs that originate from a resource.
repeated .opentelemetry.proto.logs.v1.ScopeLogs scope_logs = 2;
-
getScopeLogsOrBuilder
ScopeLogsOrBuilder getScopeLogsOrBuilder(int index)
A list of ScopeLogs that originate from a resource.
repeated .opentelemetry.proto.logs.v1.ScopeLogs scope_logs = 2;
-
getInstrumentationLibraryLogsList
@Deprecated List<InstrumentationLibraryLogs> getInstrumentationLibraryLogsList()
Deprecated.A list of InstrumentationLibraryLogs that originate from a resource. This field is deprecated and will be removed after grace period expires on June 15, 2022. During the grace period the following rules SHOULD be followed: For Binary Protobufs ==================== Binary Protobuf senders SHOULD NOT set instrumentation_library_logs. Instead scope_logs SHOULD be set. Binary Protobuf receivers SHOULD check if instrumentation_library_logs is set and scope_logs is not set then the value in instrumentation_library_logs SHOULD be used instead by converting InstrumentationLibraryLogs into ScopeLogs. If scope_logs is set then instrumentation_library_logs SHOULD be ignored. For JSON ======== JSON senders that set instrumentation_library_logs field MAY also set scope_logs to carry the same logs, essentially double-publishing the same data. Such double-publishing MAY be controlled by a user-settable option. If double-publishing is not used then the senders SHOULD set scope_logs and SHOULD NOT set instrumentation_library_logs. JSON receivers SHOULD check if instrumentation_library_logs is set and scope_logs is not set then the value in instrumentation_library_logs SHOULD be used instead by converting InstrumentationLibraryLogs into ScopeLogs. If scope_logs is set then instrumentation_library_logs field SHOULD be ignored.
repeated .opentelemetry.proto.logs.v1.InstrumentationLibraryLogs instrumentation_library_logs = 1000 [deprecated = true];
-
getInstrumentationLibraryLogs
@Deprecated InstrumentationLibraryLogs getInstrumentationLibraryLogs(int index)
Deprecated.A list of InstrumentationLibraryLogs that originate from a resource. This field is deprecated and will be removed after grace period expires on June 15, 2022. During the grace period the following rules SHOULD be followed: For Binary Protobufs ==================== Binary Protobuf senders SHOULD NOT set instrumentation_library_logs. Instead scope_logs SHOULD be set. Binary Protobuf receivers SHOULD check if instrumentation_library_logs is set and scope_logs is not set then the value in instrumentation_library_logs SHOULD be used instead by converting InstrumentationLibraryLogs into ScopeLogs. If scope_logs is set then instrumentation_library_logs SHOULD be ignored. For JSON ======== JSON senders that set instrumentation_library_logs field MAY also set scope_logs to carry the same logs, essentially double-publishing the same data. Such double-publishing MAY be controlled by a user-settable option. If double-publishing is not used then the senders SHOULD set scope_logs and SHOULD NOT set instrumentation_library_logs. JSON receivers SHOULD check if instrumentation_library_logs is set and scope_logs is not set then the value in instrumentation_library_logs SHOULD be used instead by converting InstrumentationLibraryLogs into ScopeLogs. If scope_logs is set then instrumentation_library_logs field SHOULD be ignored.
repeated .opentelemetry.proto.logs.v1.InstrumentationLibraryLogs instrumentation_library_logs = 1000 [deprecated = true];
-
getInstrumentationLibraryLogsCount
@Deprecated int getInstrumentationLibraryLogsCount()
Deprecated.A list of InstrumentationLibraryLogs that originate from a resource. This field is deprecated and will be removed after grace period expires on June 15, 2022. During the grace period the following rules SHOULD be followed: For Binary Protobufs ==================== Binary Protobuf senders SHOULD NOT set instrumentation_library_logs. Instead scope_logs SHOULD be set. Binary Protobuf receivers SHOULD check if instrumentation_library_logs is set and scope_logs is not set then the value in instrumentation_library_logs SHOULD be used instead by converting InstrumentationLibraryLogs into ScopeLogs. If scope_logs is set then instrumentation_library_logs SHOULD be ignored. For JSON ======== JSON senders that set instrumentation_library_logs field MAY also set scope_logs to carry the same logs, essentially double-publishing the same data. Such double-publishing MAY be controlled by a user-settable option. If double-publishing is not used then the senders SHOULD set scope_logs and SHOULD NOT set instrumentation_library_logs. JSON receivers SHOULD check if instrumentation_library_logs is set and scope_logs is not set then the value in instrumentation_library_logs SHOULD be used instead by converting InstrumentationLibraryLogs into ScopeLogs. If scope_logs is set then instrumentation_library_logs field SHOULD be ignored.
repeated .opentelemetry.proto.logs.v1.InstrumentationLibraryLogs instrumentation_library_logs = 1000 [deprecated = true];
-
getInstrumentationLibraryLogsOrBuilderList
@Deprecated List<? extends InstrumentationLibraryLogsOrBuilder> getInstrumentationLibraryLogsOrBuilderList()
Deprecated.A list of InstrumentationLibraryLogs that originate from a resource. This field is deprecated and will be removed after grace period expires on June 15, 2022. During the grace period the following rules SHOULD be followed: For Binary Protobufs ==================== Binary Protobuf senders SHOULD NOT set instrumentation_library_logs. Instead scope_logs SHOULD be set. Binary Protobuf receivers SHOULD check if instrumentation_library_logs is set and scope_logs is not set then the value in instrumentation_library_logs SHOULD be used instead by converting InstrumentationLibraryLogs into ScopeLogs. If scope_logs is set then instrumentation_library_logs SHOULD be ignored. For JSON ======== JSON senders that set instrumentation_library_logs field MAY also set scope_logs to carry the same logs, essentially double-publishing the same data. Such double-publishing MAY be controlled by a user-settable option. If double-publishing is not used then the senders SHOULD set scope_logs and SHOULD NOT set instrumentation_library_logs. JSON receivers SHOULD check if instrumentation_library_logs is set and scope_logs is not set then the value in instrumentation_library_logs SHOULD be used instead by converting InstrumentationLibraryLogs into ScopeLogs. If scope_logs is set then instrumentation_library_logs field SHOULD be ignored.
repeated .opentelemetry.proto.logs.v1.InstrumentationLibraryLogs instrumentation_library_logs = 1000 [deprecated = true];
-
getInstrumentationLibraryLogsOrBuilder
@Deprecated InstrumentationLibraryLogsOrBuilder getInstrumentationLibraryLogsOrBuilder(int index)
Deprecated.A list of InstrumentationLibraryLogs that originate from a resource. This field is deprecated and will be removed after grace period expires on June 15, 2022. During the grace period the following rules SHOULD be followed: For Binary Protobufs ==================== Binary Protobuf senders SHOULD NOT set instrumentation_library_logs. Instead scope_logs SHOULD be set. Binary Protobuf receivers SHOULD check if instrumentation_library_logs is set and scope_logs is not set then the value in instrumentation_library_logs SHOULD be used instead by converting InstrumentationLibraryLogs into ScopeLogs. If scope_logs is set then instrumentation_library_logs SHOULD be ignored. For JSON ======== JSON senders that set instrumentation_library_logs field MAY also set scope_logs to carry the same logs, essentially double-publishing the same data. Such double-publishing MAY be controlled by a user-settable option. If double-publishing is not used then the senders SHOULD set scope_logs and SHOULD NOT set instrumentation_library_logs. JSON receivers SHOULD check if instrumentation_library_logs is set and scope_logs is not set then the value in instrumentation_library_logs SHOULD be used instead by converting InstrumentationLibraryLogs into ScopeLogs. If scope_logs is set then instrumentation_library_logs field SHOULD be ignored.
repeated .opentelemetry.proto.logs.v1.InstrumentationLibraryLogs instrumentation_library_logs = 1000 [deprecated = true];
-
getSchemaUrl
String getSchemaUrl()
This schema_url applies to the data in the "resource" field. It does not apply to the data in the "scope_logs" field which have their own schema_url field.
string schema_url = 3;- Returns:
- The schemaUrl.
-
getSchemaUrlBytes
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 "scope_logs" field which have their own schema_url field.
string schema_url = 3;- Returns:
- The bytes for schemaUrl.
-
-