类 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
- 所有已实现的接口:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable,LogDataOrBuilder
- 封闭类:
- 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-
方法概要
修饰符和类型方法说明addRepeatedField(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) 从类继承的方法 com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3从类继承的方法 com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString从类继承的方法 com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException从接口继承的方法 com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFrom从接口继承的方法 com.google.protobuf.MessageLite.Builder
mergeFrom从接口继承的方法 com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
方法详细资料
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- 指定者:
internalGetFieldAccessorTable在类中com.google.protobuf.GeneratedMessageV3.Builder<LogData.Builder>
-
clear
- 指定者:
clear在接口中com.google.protobuf.Message.Builder- 指定者:
clear在接口中com.google.protobuf.MessageLite.Builder- 覆盖:
clear在类中com.google.protobuf.GeneratedMessageV3.Builder<LogData.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- 指定者:
getDescriptorForType在接口中com.google.protobuf.Message.Builder- 指定者:
getDescriptorForType在接口中com.google.protobuf.MessageOrBuilder- 覆盖:
getDescriptorForType在类中com.google.protobuf.GeneratedMessageV3.Builder<LogData.Builder>
-
getDefaultInstanceForType
- 指定者:
getDefaultInstanceForType在接口中com.google.protobuf.MessageLiteOrBuilder- 指定者:
getDefaultInstanceForType在接口中com.google.protobuf.MessageOrBuilder
-
build
- 指定者:
build在接口中com.google.protobuf.Message.Builder- 指定者:
build在接口中com.google.protobuf.MessageLite.Builder
-
buildPartial
- 指定者:
buildPartial在接口中com.google.protobuf.Message.Builder- 指定者:
buildPartial在接口中com.google.protobuf.MessageLite.Builder
-
clone
- 指定者:
clone在接口中com.google.protobuf.Message.Builder- 指定者:
clone在接口中com.google.protobuf.MessageLite.Builder- 覆盖:
clone在类中com.google.protobuf.GeneratedMessageV3.Builder<LogData.Builder>
-
setField
public LogData.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - 指定者:
setField在接口中com.google.protobuf.Message.Builder- 覆盖:
setField在类中com.google.protobuf.GeneratedMessageV3.Builder<LogData.Builder>
-
clearField
- 指定者:
clearField在接口中com.google.protobuf.Message.Builder- 覆盖:
clearField在类中com.google.protobuf.GeneratedMessageV3.Builder<LogData.Builder>
-
clearOneof
- 指定者:
clearOneof在接口中com.google.protobuf.Message.Builder- 覆盖:
clearOneof在类中com.google.protobuf.GeneratedMessageV3.Builder<LogData.Builder>
-
setRepeatedField
public LogData.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) - 指定者:
setRepeatedField在接口中com.google.protobuf.Message.Builder- 覆盖:
setRepeatedField在类中com.google.protobuf.GeneratedMessageV3.Builder<LogData.Builder>
-
addRepeatedField
public LogData.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - 指定者:
addRepeatedField在接口中com.google.protobuf.Message.Builder- 覆盖:
addRepeatedField在类中com.google.protobuf.GeneratedMessageV3.Builder<LogData.Builder>
-
mergeFrom
- 指定者:
mergeFrom在接口中com.google.protobuf.Message.Builder- 覆盖:
mergeFrom在类中com.google.protobuf.AbstractMessage.Builder<LogData.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- 指定者:
isInitialized在接口中com.google.protobuf.MessageLiteOrBuilder- 覆盖:
isInitialized在类中com.google.protobuf.GeneratedMessageV3.Builder<LogData.Builder>
-
mergeFrom
public LogData.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - 指定者:
mergeFrom在接口中com.google.protobuf.Message.Builder- 指定者:
mergeFrom在接口中com.google.protobuf.MessageLite.Builder- 覆盖:
mergeFrom在类中com.google.protobuf.AbstractMessage.Builder<LogData.Builder>- 抛出:
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;- 指定者:
getTimestamp在接口中LogDataOrBuilder- 返回:
- 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;- 参数:
value- The timestamp to set.- 返回:
- 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;- 返回:
- 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;- 指定者:
getService在接口中LogDataOrBuilder- 返回:
- 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;- 指定者:
getServiceBytes在接口中LogDataOrBuilder- 返回:
- 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;- 参数:
value- The service to set.- 返回:
- 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;- 返回:
- 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;- 参数:
value- The bytes for service to set.- 返回:
- 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;- 指定者:
getServiceInstance在接口中LogDataOrBuilder- 返回:
- 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;- 指定者:
getServiceInstanceBytes在接口中LogDataOrBuilder- 返回:
- 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;- 参数:
value- The serviceInstance to set.- 返回:
- 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;- 返回:
- 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;- 参数:
value- The bytes for serviceInstance to set.- 返回:
- 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;- 指定者:
getEndpoint在接口中LogDataOrBuilder- 返回:
- 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;- 指定者:
getEndpointBytes在接口中LogDataOrBuilder- 返回:
- 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;- 参数:
value- The endpoint to set.- 返回:
- 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;- 返回:
- 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;- 参数:
value- The bytes for endpoint to set.- 返回:
- This builder for chaining.
-
hasBody
public boolean hasBody()[Required] The content of the log.
.skywalking.v3.LogDataBody body = 5;- 指定者:
hasBody在接口中LogDataOrBuilder- 返回:
- Whether the body field is set.
-
getBody
[Required] The content of the log.
.skywalking.v3.LogDataBody body = 5;- 指定者:
getBody在接口中LogDataOrBuilder- 返回:
- 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;- 指定者:
getBodyOrBuilder在接口中LogDataOrBuilder
-
hasTraceContext
public boolean hasTraceContext()[Optional] Logs with trace context
.skywalking.v3.TraceContext traceContext = 6;- 指定者:
hasTraceContext在接口中LogDataOrBuilder- 返回:
- Whether the traceContext field is set.
-
getTraceContext
[Optional] Logs with trace context
.skywalking.v3.TraceContext traceContext = 6;- 指定者:
getTraceContext在接口中LogDataOrBuilder- 返回:
- 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;- 指定者:
getTraceContextOrBuilder在接口中LogDataOrBuilder
-
hasTags
public boolean hasTags()[Optional] The available tags. OAP server could provide search/analysis capabilities based on these.
.skywalking.v3.LogTags tags = 7;- 指定者:
hasTags在接口中LogDataOrBuilder- 返回:
- 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;- 指定者:
getTags在接口中LogDataOrBuilder- 返回:
- 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;- 指定者:
getTagsOrBuilder在接口中LogDataOrBuilder
-
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;- 指定者:
getLayer在接口中LogDataOrBuilder- 返回:
- 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;- 指定者:
getLayerBytes在接口中LogDataOrBuilder- 返回:
- 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;- 参数:
value- The layer to set.- 返回:
- 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;- 返回:
- 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;- 参数:
value- The bytes for layer to set.- 返回:
- This builder for chaining.
-
setUnknownFields
- 指定者:
setUnknownFields在接口中com.google.protobuf.Message.Builder- 覆盖:
setUnknownFields在类中com.google.protobuf.GeneratedMessageV3.Builder<LogData.Builder>
-
mergeUnknownFields
- 指定者:
mergeUnknownFields在接口中com.google.protobuf.Message.Builder- 覆盖:
mergeUnknownFields在类中com.google.protobuf.GeneratedMessageV3.Builder<LogData.Builder>
-