Class LogData.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderType>
com.google.protobuf.GeneratedMessageV3.Builder<LogData.Builder>
org.apache.skywalking.apm.network.logging.v3.LogData.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable,LogDataOrBuilder
- Enclosing class:
- LogData
public static final class LogData.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<LogData.Builder>
implements LogDataOrBuilder
Log data is collected through file scratcher of agent. Natively, Satellite provides various ways to collect logs.Protobuf type
skywalking.v3.LogData-
Method Summary
Modifier and TypeMethodDescriptionaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()[Required] The content of the log.[Optional] **Endpoint**.clearField(com.google.protobuf.Descriptors.FieldDescriptor field) [Optional] Since 9.0.0 The layer of the service and servce instance.clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) [Required] **Service**.[Optional] **Service Instance**.[Optional] The available tags.[Optional] The timestamp of the log, in millisecond.[Optional] Logs with trace contextclone()getBody()[Required] The content of the log.[Required] The content of the log.[Required] The content of the log.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.Descriptor[Optional] **Endpoint**.com.google.protobuf.ByteString[Optional] **Endpoint**.getLayer()[Optional] Since 9.0.0 The layer of the service and servce instance.com.google.protobuf.ByteString[Optional] Since 9.0.0 The layer of the service and servce instance.[Required] **Service**.com.google.protobuf.ByteString[Required] **Service**.[Optional] **Service Instance**.com.google.protobuf.ByteString[Optional] **Service Instance**.getTags()[Optional] The available tags.[Optional] The available tags.[Optional] The available tags.long[Optional] The timestamp of the log, in millisecond.[Optional] Logs with trace context[Optional] Logs with trace context[Optional] Logs with trace contextbooleanhasBody()[Required] The content of the log.booleanhasTags()[Optional] The available tags.boolean[Optional] Logs with trace contextprotected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanmergeBody(LogDataBody value) [Required] The content of the log.mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) [Optional] The available tags.mergeTraceContext(TraceContext value) [Optional] Logs with trace contextfinal LogData.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) setBody(LogDataBody value) [Required] The content of the log.setBody(LogDataBody.Builder builderForValue) [Required] The content of the log.setEndpoint(String value) [Optional] **Endpoint**.setEndpointBytes(com.google.protobuf.ByteString value) [Optional] **Endpoint**.[Optional] Since 9.0.0 The layer of the service and servce instance.setLayerBytes(com.google.protobuf.ByteString value) [Optional] Since 9.0.0 The layer of the service and servce instance.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setService(String value) [Required] **Service**.setServiceBytes(com.google.protobuf.ByteString value) [Required] **Service**.setServiceInstance(String value) [Optional] **Service Instance**.setServiceInstanceBytes(com.google.protobuf.ByteString value) [Optional] **Service Instance**.[Optional] The available tags.setTags(LogTags.Builder builderForValue) [Optional] The available tags.setTimestamp(long value) [Optional] The timestamp of the log, in millisecond.setTraceContext(TraceContext value) [Optional] Logs with trace contextsetTraceContext(TraceContext.Builder builderForValue) [Optional] Logs with trace contextfinal LogData.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, 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.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<LogData.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<LogData.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<LogData.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
-
clone
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<LogData.Builder>
-
setField
public LogData.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<LogData.Builder>
-
clearField
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<LogData.Builder>
-
clearOneof
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<LogData.Builder>
-
setRepeatedField
public LogData.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<LogData.Builder>
-
addRepeatedField
public LogData.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<LogData.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<LogData.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<LogData.Builder>
-
mergeFrom
public LogData.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<LogData.Builder>- Throws:
IOException
-
getTimestamp
public long getTimestamp()[Optional] The timestamp of the log, in millisecond. If not set, OAP server would use the received timestamp as log's timestamp, or relies on the OAP server analyzer.
int64 timestamp = 1;- Specified by:
getTimestampin interfaceLogDataOrBuilder- Returns:
- The timestamp.
-
setTimestamp
[Optional] The timestamp of the log, in millisecond. If not set, OAP server would use the received timestamp as log's timestamp, or relies on the OAP server analyzer.
int64 timestamp = 1;- Parameters:
value- The timestamp to set.- Returns:
- This builder for chaining.
-
clearTimestamp
[Optional] The timestamp of the log, in millisecond. If not set, OAP server would use the received timestamp as log's timestamp, or relies on the OAP server analyzer.
int64 timestamp = 1;- Returns:
- This builder for chaining.
-
getService
[Required] **Service**. Represents a set/group of workloads which provide the same behaviours for incoming requests. The logic name represents the service. This would show as a separate node in the topology. The metrics analyzed from the spans, would be aggregated for this entity as the service level. If this is not the first element of the streaming, use the previous not-null name as the service name.
string service = 2;- Specified by:
getServicein interfaceLogDataOrBuilder- Returns:
- The service.
-
getServiceBytes
public com.google.protobuf.ByteString getServiceBytes()[Required] **Service**. Represents a set/group of workloads which provide the same behaviours for incoming requests. The logic name represents the service. This would show as a separate node in the topology. The metrics analyzed from the spans, would be aggregated for this entity as the service level. If this is not the first element of the streaming, use the previous not-null name as the service name.
string service = 2;- Specified by:
getServiceBytesin interfaceLogDataOrBuilder- Returns:
- The bytes for service.
-
setService
[Required] **Service**. Represents a set/group of workloads which provide the same behaviours for incoming requests. The logic name represents the service. This would show as a separate node in the topology. The metrics analyzed from the spans, would be aggregated for this entity as the service level. If this is not the first element of the streaming, use the previous not-null name as the service name.
string service = 2;- Parameters:
value- The service to set.- Returns:
- This builder for chaining.
-
clearService
[Required] **Service**. Represents a set/group of workloads which provide the same behaviours for incoming requests. The logic name represents the service. This would show as a separate node in the topology. The metrics analyzed from the spans, would be aggregated for this entity as the service level. If this is not the first element of the streaming, use the previous not-null name as the service name.
string service = 2;- Returns:
- This builder for chaining.
-
setServiceBytes
[Required] **Service**. Represents a set/group of workloads which provide the same behaviours for incoming requests. The logic name represents the service. This would show as a separate node in the topology. The metrics analyzed from the spans, would be aggregated for this entity as the service level. If this is not the first element of the streaming, use the previous not-null name as the service name.
string service = 2;- Parameters:
value- The bytes for service to set.- Returns:
- This builder for chaining.
-
getServiceInstance
[Optional] **Service Instance**. Each individual workload in the Service group is known as an instance. Like `pods` in Kubernetes, it doesn't need to be a single OS process, however, if you are using instrument agents, an instance is actually a real OS process. The logic name represents the service instance. This would show as a separate node in the instance relationship. The metrics analyzed from the spans, would be aggregated for this entity as the service instance level.
string serviceInstance = 3;- Specified by:
getServiceInstancein interfaceLogDataOrBuilder- Returns:
- The serviceInstance.
-
getServiceInstanceBytes
public com.google.protobuf.ByteString getServiceInstanceBytes()[Optional] **Service Instance**. Each individual workload in the Service group is known as an instance. Like `pods` in Kubernetes, it doesn't need to be a single OS process, however, if you are using instrument agents, an instance is actually a real OS process. The logic name represents the service instance. This would show as a separate node in the instance relationship. The metrics analyzed from the spans, would be aggregated for this entity as the service instance level.
string serviceInstance = 3;- Specified by:
getServiceInstanceBytesin interfaceLogDataOrBuilder- Returns:
- The bytes for serviceInstance.
-
setServiceInstance
[Optional] **Service Instance**. Each individual workload in the Service group is known as an instance. Like `pods` in Kubernetes, it doesn't need to be a single OS process, however, if you are using instrument agents, an instance is actually a real OS process. The logic name represents the service instance. This would show as a separate node in the instance relationship. The metrics analyzed from the spans, would be aggregated for this entity as the service instance level.
string serviceInstance = 3;- Parameters:
value- The serviceInstance to set.- Returns:
- This builder for chaining.
-
clearServiceInstance
[Optional] **Service Instance**. Each individual workload in the Service group is known as an instance. Like `pods` in Kubernetes, it doesn't need to be a single OS process, however, if you are using instrument agents, an instance is actually a real OS process. The logic name represents the service instance. This would show as a separate node in the instance relationship. The metrics analyzed from the spans, would be aggregated for this entity as the service instance level.
string serviceInstance = 3;- Returns:
- This builder for chaining.
-
setServiceInstanceBytes
[Optional] **Service Instance**. Each individual workload in the Service group is known as an instance. Like `pods` in Kubernetes, it doesn't need to be a single OS process, however, if you are using instrument agents, an instance is actually a real OS process. The logic name represents the service instance. This would show as a separate node in the instance relationship. The metrics analyzed from the spans, would be aggregated for this entity as the service instance level.
string serviceInstance = 3;- Parameters:
value- The bytes for serviceInstance to set.- Returns:
- This builder for chaining.
-
getEndpoint
[Optional] **Endpoint**. A path in a service for incoming requests, such as an HTTP URI path or a gRPC service class + method signature. The logic name represents the endpoint, which logs belong.
string endpoint = 4;- Specified by:
getEndpointin interfaceLogDataOrBuilder- Returns:
- The endpoint.
-
getEndpointBytes
public com.google.protobuf.ByteString getEndpointBytes()[Optional] **Endpoint**. A path in a service for incoming requests, such as an HTTP URI path or a gRPC service class + method signature. The logic name represents the endpoint, which logs belong.
string endpoint = 4;- Specified by:
getEndpointBytesin interfaceLogDataOrBuilder- Returns:
- The bytes for endpoint.
-
setEndpoint
[Optional] **Endpoint**. A path in a service for incoming requests, such as an HTTP URI path or a gRPC service class + method signature. The logic name represents the endpoint, which logs belong.
string endpoint = 4;- Parameters:
value- The endpoint to set.- Returns:
- This builder for chaining.
-
clearEndpoint
[Optional] **Endpoint**. A path in a service for incoming requests, such as an HTTP URI path or a gRPC service class + method signature. The logic name represents the endpoint, which logs belong.
string endpoint = 4;- Returns:
- This builder for chaining.
-
setEndpointBytes
[Optional] **Endpoint**. A path in a service for incoming requests, such as an HTTP URI path or a gRPC service class + method signature. The logic name represents the endpoint, which logs belong.
string endpoint = 4;- Parameters:
value- The bytes for endpoint to set.- Returns:
- This builder for chaining.
-
hasBody
public boolean hasBody()[Required] The content of the log.
.skywalking.v3.LogDataBody body = 5;- Specified by:
hasBodyin interfaceLogDataOrBuilder- Returns:
- Whether the body field is set.
-
getBody
[Required] The content of the log.
.skywalking.v3.LogDataBody body = 5;- Specified by:
getBodyin interfaceLogDataOrBuilder- Returns:
- The body.
-
setBody
[Required] The content of the log.
.skywalking.v3.LogDataBody body = 5; -
setBody
[Required] The content of the log.
.skywalking.v3.LogDataBody body = 5; -
mergeBody
[Required] The content of the log.
.skywalking.v3.LogDataBody body = 5; -
clearBody
[Required] The content of the log.
.skywalking.v3.LogDataBody body = 5; -
getBodyBuilder
[Required] The content of the log.
.skywalking.v3.LogDataBody body = 5; -
getBodyOrBuilder
[Required] The content of the log.
.skywalking.v3.LogDataBody body = 5;- Specified by:
getBodyOrBuilderin interfaceLogDataOrBuilder
-
hasTraceContext
public boolean hasTraceContext()[Optional] Logs with trace context
.skywalking.v3.TraceContext traceContext = 6;- Specified by:
hasTraceContextin interfaceLogDataOrBuilder- Returns:
- Whether the traceContext field is set.
-
getTraceContext
[Optional] Logs with trace context
.skywalking.v3.TraceContext traceContext = 6;- Specified by:
getTraceContextin interfaceLogDataOrBuilder- Returns:
- The traceContext.
-
setTraceContext
[Optional] Logs with trace context
.skywalking.v3.TraceContext traceContext = 6; -
setTraceContext
[Optional] Logs with trace context
.skywalking.v3.TraceContext traceContext = 6; -
mergeTraceContext
[Optional] Logs with trace context
.skywalking.v3.TraceContext traceContext = 6; -
clearTraceContext
[Optional] Logs with trace context
.skywalking.v3.TraceContext traceContext = 6; -
getTraceContextBuilder
[Optional] Logs with trace context
.skywalking.v3.TraceContext traceContext = 6; -
getTraceContextOrBuilder
[Optional] Logs with trace context
.skywalking.v3.TraceContext traceContext = 6;- Specified by:
getTraceContextOrBuilderin interfaceLogDataOrBuilder
-
hasTags
public boolean hasTags()[Optional] The available tags. OAP server could provide search/analysis capabilities based on these.
.skywalking.v3.LogTags tags = 7;- Specified by:
hasTagsin interfaceLogDataOrBuilder- Returns:
- Whether the tags field is set.
-
getTags
[Optional] The available tags. OAP server could provide search/analysis capabilities based on these.
.skywalking.v3.LogTags tags = 7;- Specified by:
getTagsin interfaceLogDataOrBuilder- Returns:
- The tags.
-
setTags
[Optional] The available tags. OAP server could provide search/analysis capabilities based on these.
.skywalking.v3.LogTags tags = 7; -
setTags
[Optional] The available tags. OAP server could provide search/analysis capabilities based on these.
.skywalking.v3.LogTags tags = 7; -
mergeTags
[Optional] The available tags. OAP server could provide search/analysis capabilities based on these.
.skywalking.v3.LogTags tags = 7; -
clearTags
[Optional] The available tags. OAP server could provide search/analysis capabilities based on these.
.skywalking.v3.LogTags tags = 7; -
getTagsBuilder
[Optional] The available tags. OAP server could provide search/analysis capabilities based on these.
.skywalking.v3.LogTags tags = 7; -
getTagsOrBuilder
[Optional] The available tags. OAP server could provide search/analysis capabilities based on these.
.skywalking.v3.LogTags tags = 7;- Specified by:
getTagsOrBuilderin interfaceLogDataOrBuilder
-
getLayer
[Optional] Since 9.0.0 The layer of the service and servce instance. If absent, the OAP would set `layer`=`ID: 2, NAME: general`
string layer = 8;- Specified by:
getLayerin interfaceLogDataOrBuilder- Returns:
- The layer.
-
getLayerBytes
public com.google.protobuf.ByteString getLayerBytes()[Optional] Since 9.0.0 The layer of the service and servce instance. If absent, the OAP would set `layer`=`ID: 2, NAME: general`
string layer = 8;- Specified by:
getLayerBytesin interfaceLogDataOrBuilder- Returns:
- The bytes for layer.
-
setLayer
[Optional] Since 9.0.0 The layer of the service and servce instance. If absent, the OAP would set `layer`=`ID: 2, NAME: general`
string layer = 8;- Parameters:
value- The layer to set.- Returns:
- This builder for chaining.
-
clearLayer
[Optional] Since 9.0.0 The layer of the service and servce instance. If absent, the OAP would set `layer`=`ID: 2, NAME: general`
string layer = 8;- Returns:
- This builder for chaining.
-
setLayerBytes
[Optional] Since 9.0.0 The layer of the service and servce instance. If absent, the OAP would set `layer`=`ID: 2, NAME: general`
string layer = 8;- Parameters:
value- The bytes for layer to set.- Returns:
- This builder for chaining.
-
setUnknownFields
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<LogData.Builder>
-
mergeUnknownFields
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<LogData.Builder>
-