类 Event.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderType>
com.google.protobuf.GeneratedMessageV3.Builder<Event.Builder>
org.apache.skywalking.apm.network.event.v3.Event.Builder
- 所有已实现的接口:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable,EventOrBuilder
- 封闭类:
- Event
public static final class Event.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<Event.Builder>
implements EventOrBuilder
Protobuf type
skywalking.v3.Event-
方法概要
修饰符和类型方法说明addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()The end time (in milliseconds) of the event. , measured between the current time and midnight, January 1, 1970 UTC.clearField(com.google.protobuf.Descriptors.FieldDescriptor field) [Required] Since 9.0.0 Name of the layer to which the event belongs.The detail of the event that describes why this event happened.The name of the event.clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) The source object that the event occurs on.The start time (in milliseconds) of the event, measured between the current time and midnight, January 1, 1970 UTC.The type of the event.Unique ID of the event.clone()booleancontainsParameters(String key) The parameters in the `message` field.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorlongThe end time (in milliseconds) of the event. , measured between the current time and midnight, January 1, 1970 UTC.getLayer()[Required] Since 9.0.0 Name of the layer to which the event belongs.com.google.protobuf.ByteString[Required] Since 9.0.0 Name of the layer to which the event belongs.The detail of the event that describes why this event happened.com.google.protobuf.ByteStringThe detail of the event that describes why this event happened.已过时。getName()The name of the event.com.google.protobuf.ByteStringThe name of the event.已过时。intThe parameters in the `message` field.The parameters in the `message` field.getParametersOrDefault(String key, String defaultValue) The parameters in the `message` field.The parameters in the `message` field.The source object that the event occurs on.The source object that the event occurs on.The source object that the event occurs on.longThe start time (in milliseconds) of the event, measured between the current time and midnight, January 1, 1970 UTC.getType()The type of the event.intThe type of the event.getUuid()Unique ID of the event.com.google.protobuf.ByteStringUnique ID of the event.booleanThe source object that the event occurs on.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableprotected com.google.protobuf.MapFieldinternalGetMapField(int number) protected com.google.protobuf.MapFieldinternalGetMutableMapField(int number) final booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeSource(Source value) The source object that the event occurs on.final Event.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) putAllParameters(Map<String, String> values) The parameters in the `message` field.putParameters(String key, String value) The parameters in the `message` field.removeParameters(String key) The parameters in the `message` field.setEndTime(long value) The end time (in milliseconds) of the event. , measured between the current time and midnight, January 1, 1970 UTC.[Required] Since 9.0.0 Name of the layer to which the event belongs.setLayerBytes(com.google.protobuf.ByteString value) [Required] Since 9.0.0 Name of the layer to which the event belongs.setMessage(String value) The detail of the event that describes why this event happened.setMessageBytes(com.google.protobuf.ByteString value) The detail of the event that describes why this event happened.The name of the event.setNameBytes(com.google.protobuf.ByteString value) The name of the event.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) The source object that the event occurs on.setSource(Source.Builder builderForValue) The source object that the event occurs on.setStartTime(long value) The start time (in milliseconds) of the event, measured between the current time and midnight, January 1, 1970 UTC.The type of the event.setTypeValue(int value) The type of the event.final Event.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) Unique ID of the event.setUuidBytes(com.google.protobuf.ByteString value) Unique ID of the event.从类继承的方法 com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, 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() -
internalGetMapField
protected com.google.protobuf.MapField internalGetMapField(int number) - 覆盖:
internalGetMapField在类中com.google.protobuf.GeneratedMessageV3.Builder<Event.Builder>
-
internalGetMutableMapField
protected com.google.protobuf.MapField internalGetMutableMapField(int number) - 覆盖:
internalGetMutableMapField在类中com.google.protobuf.GeneratedMessageV3.Builder<Event.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- 指定者:
internalGetFieldAccessorTable在类中com.google.protobuf.GeneratedMessageV3.Builder<Event.Builder>
-
clear
- 指定者:
clear在接口中com.google.protobuf.Message.Builder- 指定者:
clear在接口中com.google.protobuf.MessageLite.Builder- 覆盖:
clear在类中com.google.protobuf.GeneratedMessageV3.Builder<Event.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<Event.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<Event.Builder>
-
setField
- 指定者:
setField在接口中com.google.protobuf.Message.Builder- 覆盖:
setField在类中com.google.protobuf.GeneratedMessageV3.Builder<Event.Builder>
-
clearField
- 指定者:
clearField在接口中com.google.protobuf.Message.Builder- 覆盖:
clearField在类中com.google.protobuf.GeneratedMessageV3.Builder<Event.Builder>
-
clearOneof
- 指定者:
clearOneof在接口中com.google.protobuf.Message.Builder- 覆盖:
clearOneof在类中com.google.protobuf.GeneratedMessageV3.Builder<Event.Builder>
-
setRepeatedField
public Event.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) - 指定者:
setRepeatedField在接口中com.google.protobuf.Message.Builder- 覆盖:
setRepeatedField在类中com.google.protobuf.GeneratedMessageV3.Builder<Event.Builder>
-
addRepeatedField
public Event.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - 指定者:
addRepeatedField在接口中com.google.protobuf.Message.Builder- 覆盖:
addRepeatedField在类中com.google.protobuf.GeneratedMessageV3.Builder<Event.Builder>
-
mergeFrom
- 指定者:
mergeFrom在接口中com.google.protobuf.Message.Builder- 覆盖:
mergeFrom在类中com.google.protobuf.AbstractMessage.Builder<Event.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- 指定者:
isInitialized在接口中com.google.protobuf.MessageLiteOrBuilder- 覆盖:
isInitialized在类中com.google.protobuf.GeneratedMessageV3.Builder<Event.Builder>
-
mergeFrom
public Event.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<Event.Builder>- 抛出:
IOException
-
getUuid
Unique ID of the event. Because an event may span a long period of time, the UUID is necessary to associate the start time with the end time of the same event.
string uuid = 1;- 指定者:
getUuid在接口中EventOrBuilder- 返回:
- The uuid.
-
getUuidBytes
public com.google.protobuf.ByteString getUuidBytes()Unique ID of the event. Because an event may span a long period of time, the UUID is necessary to associate the start time with the end time of the same event.
string uuid = 1;- 指定者:
getUuidBytes在接口中EventOrBuilder- 返回:
- The bytes for uuid.
-
setUuid
Unique ID of the event. Because an event may span a long period of time, the UUID is necessary to associate the start time with the end time of the same event.
string uuid = 1;- 参数:
value- The uuid to set.- 返回:
- This builder for chaining.
-
clearUuid
Unique ID of the event. Because an event may span a long period of time, the UUID is necessary to associate the start time with the end time of the same event.
string uuid = 1;- 返回:
- This builder for chaining.
-
setUuidBytes
Unique ID of the event. Because an event may span a long period of time, the UUID is necessary to associate the start time with the end time of the same event.
string uuid = 1;- 参数:
value- The bytes for uuid to set.- 返回:
- This builder for chaining.
-
hasSource
public boolean hasSource()The source object that the event occurs on.
.skywalking.v3.Source source = 2;- 指定者:
hasSource在接口中EventOrBuilder- 返回:
- Whether the source field is set.
-
getSource
The source object that the event occurs on.
.skywalking.v3.Source source = 2;- 指定者:
getSource在接口中EventOrBuilder- 返回:
- The source.
-
setSource
The source object that the event occurs on.
.skywalking.v3.Source source = 2; -
setSource
The source object that the event occurs on.
.skywalking.v3.Source source = 2; -
mergeSource
The source object that the event occurs on.
.skywalking.v3.Source source = 2; -
clearSource
The source object that the event occurs on.
.skywalking.v3.Source source = 2; -
getSourceBuilder
The source object that the event occurs on.
.skywalking.v3.Source source = 2; -
getSourceOrBuilder
The source object that the event occurs on.
.skywalking.v3.Source source = 2;- 指定者:
getSourceOrBuilder在接口中EventOrBuilder
-
getName
The name of the event. For example, `Reboot`, `Upgrade` etc.
string name = 3;- 指定者:
getName在接口中EventOrBuilder- 返回:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()The name of the event. For example, `Reboot`, `Upgrade` etc.
string name = 3;- 指定者:
getNameBytes在接口中EventOrBuilder- 返回:
- The bytes for name.
-
setName
The name of the event. For example, `Reboot`, `Upgrade` etc.
string name = 3;- 参数:
value- The name to set.- 返回:
- This builder for chaining.
-
clearName
The name of the event. For example, `Reboot`, `Upgrade` etc.
string name = 3;- 返回:
- This builder for chaining.
-
setNameBytes
The name of the event. For example, `Reboot`, `Upgrade` etc.
string name = 3;- 参数:
value- The bytes for name to set.- 返回:
- This builder for chaining.
-
getTypeValue
public int getTypeValue()The type of the event. This field is friendly for UI visualization, where events of type `Normal` are considered as normal operations, while `Error` is considered as unexpected operations, such as `Crash` events, therefore we can mark them with different colors to be easier identified.
.skywalking.v3.Type type = 4;- 指定者:
getTypeValue在接口中EventOrBuilder- 返回:
- The enum numeric value on the wire for type.
-
setTypeValue
The type of the event. This field is friendly for UI visualization, where events of type `Normal` are considered as normal operations, while `Error` is considered as unexpected operations, such as `Crash` events, therefore we can mark them with different colors to be easier identified.
.skywalking.v3.Type type = 4;- 参数:
value- The enum numeric value on the wire for type to set.- 返回:
- This builder for chaining.
-
getType
The type of the event. This field is friendly for UI visualization, where events of type `Normal` are considered as normal operations, while `Error` is considered as unexpected operations, such as `Crash` events, therefore we can mark them with different colors to be easier identified.
.skywalking.v3.Type type = 4;- 指定者:
getType在接口中EventOrBuilder- 返回:
- The type.
-
setType
The type of the event. This field is friendly for UI visualization, where events of type `Normal` are considered as normal operations, while `Error` is considered as unexpected operations, such as `Crash` events, therefore we can mark them with different colors to be easier identified.
.skywalking.v3.Type type = 4;- 参数:
value- The type to set.- 返回:
- This builder for chaining.
-
clearType
The type of the event. This field is friendly for UI visualization, where events of type `Normal` are considered as normal operations, while `Error` is considered as unexpected operations, such as `Crash` events, therefore we can mark them with different colors to be easier identified.
.skywalking.v3.Type type = 4;- 返回:
- This builder for chaining.
-
getMessage
The detail of the event that describes why this event happened. This should be a one-line message that briefly describes why the event is reported. Examples of an `Upgrade` event may be something like `Upgrade from ${from_version} to ${to_version}`. It's NOT encouraged to include the detailed logs of this event, such as the exception stack trace.string message = 5;- 指定者:
getMessage在接口中EventOrBuilder- 返回:
- The message.
-
getMessageBytes
public com.google.protobuf.ByteString getMessageBytes()The detail of the event that describes why this event happened. This should be a one-line message that briefly describes why the event is reported. Examples of an `Upgrade` event may be something like `Upgrade from ${from_version} to ${to_version}`. It's NOT encouraged to include the detailed logs of this event, such as the exception stack trace.string message = 5;- 指定者:
getMessageBytes在接口中EventOrBuilder- 返回:
- The bytes for message.
-
setMessage
The detail of the event that describes why this event happened. This should be a one-line message that briefly describes why the event is reported. Examples of an `Upgrade` event may be something like `Upgrade from ${from_version} to ${to_version}`. It's NOT encouraged to include the detailed logs of this event, such as the exception stack trace.string message = 5;- 参数:
value- The message to set.- 返回:
- This builder for chaining.
-
clearMessage
The detail of the event that describes why this event happened. This should be a one-line message that briefly describes why the event is reported. Examples of an `Upgrade` event may be something like `Upgrade from ${from_version} to ${to_version}`. It's NOT encouraged to include the detailed logs of this event, such as the exception stack trace.string message = 5;- 返回:
- This builder for chaining.
-
setMessageBytes
The detail of the event that describes why this event happened. This should be a one-line message that briefly describes why the event is reported. Examples of an `Upgrade` event may be something like `Upgrade from ${from_version} to ${to_version}`. It's NOT encouraged to include the detailed logs of this event, such as the exception stack trace.string message = 5;- 参数:
value- The bytes for message to set.- 返回:
- This builder for chaining.
-
getParametersCount
public int getParametersCount()从接口复制的说明:EventOrBuilderThe parameters in the `message` field.
map<string, string> parameters = 6;- 指定者:
getParametersCount在接口中EventOrBuilder
-
containsParameters
The parameters in the `message` field.
map<string, string> parameters = 6;- 指定者:
containsParameters在接口中EventOrBuilder
-
getParameters
已过时。UsegetParametersMap()instead.- 指定者:
getParameters在接口中EventOrBuilder
-
getParametersMap
The parameters in the `message` field.
map<string, string> parameters = 6;- 指定者:
getParametersMap在接口中EventOrBuilder
-
getParametersOrDefault
The parameters in the `message` field.
map<string, string> parameters = 6;- 指定者:
getParametersOrDefault在接口中EventOrBuilder
-
getParametersOrThrow
The parameters in the `message` field.
map<string, string> parameters = 6;- 指定者:
getParametersOrThrow在接口中EventOrBuilder
-
clearParameters
-
removeParameters
The parameters in the `message` field.
map<string, string> parameters = 6; -
getMutableParameters
已过时。Use alternate mutation accessors instead. -
putParameters
The parameters in the `message` field.
map<string, string> parameters = 6; -
putAllParameters
The parameters in the `message` field.
map<string, string> parameters = 6; -
getStartTime
public long getStartTime()The start time (in milliseconds) of the event, measured between the current time and midnight, January 1, 1970 UTC. This field is mandatory when an event occurs.
int64 startTime = 7;- 指定者:
getStartTime在接口中EventOrBuilder- 返回:
- The startTime.
-
setStartTime
The start time (in milliseconds) of the event, measured between the current time and midnight, January 1, 1970 UTC. This field is mandatory when an event occurs.
int64 startTime = 7;- 参数:
value- The startTime to set.- 返回:
- This builder for chaining.
-
clearStartTime
The start time (in milliseconds) of the event, measured between the current time and midnight, January 1, 1970 UTC. This field is mandatory when an event occurs.
int64 startTime = 7;- 返回:
- This builder for chaining.
-
getEndTime
public long getEndTime()The end time (in milliseconds) of the event. , measured between the current time and midnight, January 1, 1970 UTC. This field may be empty if the event has not stopped yet, otherwise it should be a valid timestamp after `startTime`.
int64 endTime = 8;- 指定者:
getEndTime在接口中EventOrBuilder- 返回:
- The endTime.
-
setEndTime
The end time (in milliseconds) of the event. , measured between the current time and midnight, January 1, 1970 UTC. This field may be empty if the event has not stopped yet, otherwise it should be a valid timestamp after `startTime`.
int64 endTime = 8;- 参数:
value- The endTime to set.- 返回:
- This builder for chaining.
-
clearEndTime
The end time (in milliseconds) of the event. , measured between the current time and midnight, January 1, 1970 UTC. This field may be empty if the event has not stopped yet, otherwise it should be a valid timestamp after `startTime`.
int64 endTime = 8;- 返回:
- This builder for chaining.
-
getLayer
[Required] Since 9.0.0 Name of the layer to which the event belongs.
string layer = 9;- 指定者:
getLayer在接口中EventOrBuilder- 返回:
- The layer.
-
getLayerBytes
public com.google.protobuf.ByteString getLayerBytes()[Required] Since 9.0.0 Name of the layer to which the event belongs.
string layer = 9;- 指定者:
getLayerBytes在接口中EventOrBuilder- 返回:
- The bytes for layer.
-
setLayer
[Required] Since 9.0.0 Name of the layer to which the event belongs.
string layer = 9;- 参数:
value- The layer to set.- 返回:
- This builder for chaining.
-
clearLayer
[Required] Since 9.0.0 Name of the layer to which the event belongs.
string layer = 9;- 返回:
- This builder for chaining.
-
setLayerBytes
[Required] Since 9.0.0 Name of the layer to which the event belongs.
string layer = 9;- 参数:
value- The bytes for layer to set.- 返回:
- This builder for chaining.
-
setUnknownFields
- 指定者:
setUnknownFields在接口中com.google.protobuf.Message.Builder- 覆盖:
setUnknownFields在类中com.google.protobuf.GeneratedMessageV3.Builder<Event.Builder>
-
mergeUnknownFields
- 指定者:
mergeUnknownFields在接口中com.google.protobuf.Message.Builder- 覆盖:
mergeUnknownFields在类中com.google.protobuf.GeneratedMessageV3.Builder<Event.Builder>
-