Class 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
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable,EventOrBuilder
- Enclosing class:
- Event
public static final class Event.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<Event.Builder>
implements EventOrBuilder
Protobuf type
skywalking.v3.Event-
Method Summary
Modifier and TypeMethodDescriptionaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()The end time (in milliseconds) of the event.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.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.Deprecated.getName()The name of the event.com.google.protobuf.ByteStringThe name of the event.Deprecated.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.[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.Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, 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() -
internalGetMapField
protected com.google.protobuf.MapField internalGetMapField(int number) - Overrides:
internalGetMapFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Event.Builder>
-
internalGetMutableMapField
protected com.google.protobuf.MapField internalGetMutableMapField(int number) - Overrides:
internalGetMutableMapFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Event.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<Event.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<Event.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<Event.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<Event.Builder>
-
setField
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Event.Builder>
-
clearField
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Event.Builder>
-
clearOneof
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<Event.Builder>
-
setRepeatedField
public Event.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<Event.Builder>
-
addRepeatedField
public Event.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<Event.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Event.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<Event.Builder>
-
mergeFrom
public Event.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<Event.Builder>- Throws:
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;- Specified by:
getUuidin interfaceEventOrBuilder- Returns:
- 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;- Specified by:
getUuidBytesin interfaceEventOrBuilder- Returns:
- 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;- Parameters:
value- The uuid to set.- Returns:
- 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;- Returns:
- 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;- Parameters:
value- The bytes for uuid to set.- Returns:
- This builder for chaining.
-
hasSource
public boolean hasSource()The source object that the event occurs on.
.skywalking.v3.Source source = 2;- Specified by:
hasSourcein interfaceEventOrBuilder- Returns:
- Whether the source field is set.
-
getSource
The source object that the event occurs on.
.skywalking.v3.Source source = 2;- Specified by:
getSourcein interfaceEventOrBuilder- Returns:
- 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;- Specified by:
getSourceOrBuilderin interfaceEventOrBuilder
-
getName
The name of the event. For example, `Reboot`, `Upgrade` etc.
string name = 3;- Specified by:
getNamein interfaceEventOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()The name of the event. For example, `Reboot`, `Upgrade` etc.
string name = 3;- Specified by:
getNameBytesin interfaceEventOrBuilder- Returns:
- The bytes for name.
-
setName
The name of the event. For example, `Reboot`, `Upgrade` etc.
string name = 3;- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
The name of the event. For example, `Reboot`, `Upgrade` etc.
string name = 3;- Returns:
- This builder for chaining.
-
setNameBytes
The name of the event. For example, `Reboot`, `Upgrade` etc.
string name = 3;- Parameters:
value- The bytes for name to set.- Returns:
- 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;- Specified by:
getTypeValuein interfaceEventOrBuilder- Returns:
- 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;- Parameters:
value- The enum numeric value on the wire for type to set.- Returns:
- 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;- Specified by:
getTypein interfaceEventOrBuilder- Returns:
- 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;- Parameters:
value- The type to set.- Returns:
- 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;- Returns:
- 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;- Specified by:
getMessagein interfaceEventOrBuilder- Returns:
- 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;- Specified by:
getMessageBytesin interfaceEventOrBuilder- Returns:
- 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;- Parameters:
value- The message to set.- Returns:
- 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;- Returns:
- 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;- Parameters:
value- The bytes for message to set.- Returns:
- This builder for chaining.
-
getParametersCount
public int getParametersCount()Description copied from interface:EventOrBuilderThe parameters in the `message` field.
map<string, string> parameters = 6;- Specified by:
getParametersCountin interfaceEventOrBuilder
-
containsParameters
The parameters in the `message` field.
map<string, string> parameters = 6;- Specified by:
containsParametersin interfaceEventOrBuilder
-
getParameters
Deprecated.UsegetParametersMap()instead.- Specified by:
getParametersin interfaceEventOrBuilder
-
getParametersMap
The parameters in the `message` field.
map<string, string> parameters = 6;- Specified by:
getParametersMapin interfaceEventOrBuilder
-
getParametersOrDefault
The parameters in the `message` field.
map<string, string> parameters = 6;- Specified by:
getParametersOrDefaultin interfaceEventOrBuilder
-
getParametersOrThrow
The parameters in the `message` field.
map<string, string> parameters = 6;- Specified by:
getParametersOrThrowin interfaceEventOrBuilder
-
clearParameters
-
removeParameters
The parameters in the `message` field.
map<string, string> parameters = 6; -
getMutableParameters
Deprecated.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;- Specified by:
getStartTimein interfaceEventOrBuilder- Returns:
- 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;- Parameters:
value- The startTime to set.- Returns:
- 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;- Returns:
- 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;- Specified by:
getEndTimein interfaceEventOrBuilder- Returns:
- 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;- Parameters:
value- The endTime to set.- Returns:
- 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;- Returns:
- This builder for chaining.
-
getLayer
[Required] Since 9.0.0 Name of the layer to which the event belongs.
string layer = 9;- Specified by:
getLayerin interfaceEventOrBuilder- Returns:
- 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;- Specified by:
getLayerBytesin interfaceEventOrBuilder- Returns:
- The bytes for layer.
-
setLayer
[Required] Since 9.0.0 Name of the layer to which the event belongs.
string layer = 9;- Parameters:
value- The layer to set.- Returns:
- This builder for chaining.
-
clearLayer
[Required] Since 9.0.0 Name of the layer to which the event belongs.
string layer = 9;- Returns:
- This builder for chaining.
-
setLayerBytes
[Required] Since 9.0.0 Name of the layer to which the event belongs.
string layer = 9;- 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<Event.Builder>
-
mergeUnknownFields
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Event.Builder>
-