Class Xplane.XEvent.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<Xplane.XEvent.Builder>
com.google.protobuf.GeneratedMessageV3.Builder<Xplane.XEvent.Builder>
org.tensorflow.proto.profiler.Xplane.XEvent.Builder
- All Implemented Interfaces:
Message.Builder, MessageLite.Builder, MessageLiteOrBuilder, MessageOrBuilder, Cloneable, Xplane.XEventOrBuilder
- Enclosing class:
Xplane.XEvent
public static final class Xplane.XEvent.Builder
extends GeneratedMessageV3.Builder<Xplane.XEvent.Builder>
implements Xplane.XEventOrBuilder
An XEvent is a trace event, optionally annotated with XStats. Next ID: 6Protobuf type
tensorflow.profiler.XEvent-
Method Summary
Modifier and TypeMethodDescriptionaddAllStats(Iterable<? extends Xplane.XStat> values) XStats associated with the event.addRepeatedField(Descriptors.FieldDescriptor field, Object value) addStats(int index, Xplane.XStat value) XStats associated with the event.addStats(int index, Xplane.XStat.Builder builderForValue) XStats associated with the event.addStats(Xplane.XStat value) XStats associated with the event.addStats(Xplane.XStat.Builder builderForValue) XStats associated with the event.XStats associated with the event.addStatsBuilder(int index) XStats associated with the event.build()clear()Duration of the event in picoseconds.XEventMetadata.id of corresponding metadata.Number of occurrences of the event, if aggregated.Start time of the event in picoseconds, as offset from XLine.timestamp_ns().XStats associated with the event.clone()static final Descriptors.DescriptorlongDuration of the event in picoseconds.longXEventMetadata.id of corresponding metadata.longNumber of occurrences of the event, if aggregated.longStart time of the event in picoseconds, as offset from XLine.timestamp_ns().getStats(int index) XStats associated with the event.getStatsBuilder(int index) XStats associated with the event.XStats associated with the event.intXStats associated with the event.XStats associated with the event.getStatsOrBuilder(int index) XStats associated with the event.List<? extends Xplane.XStatOrBuilder> XStats associated with the event.booleanNumber of occurrences of the event, if aggregated.booleanStart time of the event in picoseconds, as offset from XLine.timestamp_ns().protected GeneratedMessageV3.FieldAccessorTablefinal booleanmergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) mergeFrom(Xplane.XEvent other) final Xplane.XEvent.BuildermergeUnknownFields(UnknownFieldSet unknownFields) removeStats(int index) XStats associated with the event.setDurationPs(long value) Duration of the event in picoseconds.setField(Descriptors.FieldDescriptor field, Object value) setMetadataId(long value) XEventMetadata.id of corresponding metadata.setNumOccurrences(long value) Number of occurrences of the event, if aggregated.setOffsetPs(long value) Start time of the event in picoseconds, as offset from XLine.timestamp_ns().setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value) setStats(int index, Xplane.XStat value) XStats associated with the event.setStats(int index, Xplane.XStat.Builder builderForValue) XStats associated with the event.final Xplane.XEvent.BuildersetUnknownFields(UnknownFieldSet unknownFields) Methods inherited from class 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, setUnknownFieldsProto3Methods inherited from class AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface MessageLite.Builder
mergeFromMethods inherited from interface MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
-
internalGetFieldAccessorTable
- Specified by:
internalGetFieldAccessorTablein classGeneratedMessageV3.Builder<Xplane.XEvent.Builder>
-
clear
- Specified by:
clearin interfaceMessage.Builder- Specified by:
clearin interfaceMessageLite.Builder- Overrides:
clearin classGeneratedMessageV3.Builder<Xplane.XEvent.Builder>
-
getDescriptorForType
- Specified by:
getDescriptorForTypein interfaceMessage.Builder- Specified by:
getDescriptorForTypein interfaceMessageOrBuilder- Overrides:
getDescriptorForTypein classGeneratedMessageV3.Builder<Xplane.XEvent.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfaceMessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfaceMessageOrBuilder
-
build
- Specified by:
buildin interfaceMessage.Builder- Specified by:
buildin interfaceMessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfaceMessage.Builder- Specified by:
buildPartialin interfaceMessageLite.Builder
-
clone
- Specified by:
clonein interfaceMessage.Builder- Specified by:
clonein interfaceMessageLite.Builder- Overrides:
clonein classGeneratedMessageV3.Builder<Xplane.XEvent.Builder>
-
setField
- Specified by:
setFieldin interfaceMessage.Builder- Overrides:
setFieldin classGeneratedMessageV3.Builder<Xplane.XEvent.Builder>
-
clearField
- Specified by:
clearFieldin interfaceMessage.Builder- Overrides:
clearFieldin classGeneratedMessageV3.Builder<Xplane.XEvent.Builder>
-
clearOneof
- Specified by:
clearOneofin interfaceMessage.Builder- Overrides:
clearOneofin classGeneratedMessageV3.Builder<Xplane.XEvent.Builder>
-
setRepeatedField
public Xplane.XEvent.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value) - Specified by:
setRepeatedFieldin interfaceMessage.Builder- Overrides:
setRepeatedFieldin classGeneratedMessageV3.Builder<Xplane.XEvent.Builder>
-
addRepeatedField
- Specified by:
addRepeatedFieldin interfaceMessage.Builder- Overrides:
addRepeatedFieldin classGeneratedMessageV3.Builder<Xplane.XEvent.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfaceMessage.Builder- Overrides:
mergeFromin classAbstractMessage.Builder<Xplane.XEvent.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfaceMessageLiteOrBuilder- Overrides:
isInitializedin classGeneratedMessageV3.Builder<Xplane.XEvent.Builder>
-
mergeFrom
public Xplane.XEvent.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfaceMessage.Builder- Specified by:
mergeFromin interfaceMessageLite.Builder- Overrides:
mergeFromin classAbstractMessage.Builder<Xplane.XEvent.Builder>- Throws:
IOException
-
getDataCase
- Specified by:
getDataCasein interfaceXplane.XEventOrBuilder
-
clearData
-
getMetadataId
public long getMetadataId()XEventMetadata.id of corresponding metadata.
int64 metadata_id = 1;- Specified by:
getMetadataIdin interfaceXplane.XEventOrBuilder- Returns:
- The metadataId.
-
setMetadataId
XEventMetadata.id of corresponding metadata.
int64 metadata_id = 1;- Parameters:
value- The metadataId to set.- Returns:
- This builder for chaining.
-
clearMetadataId
XEventMetadata.id of corresponding metadata.
int64 metadata_id = 1;- Returns:
- This builder for chaining.
-
hasOffsetPs
public boolean hasOffsetPs()Start time of the event in picoseconds, as offset from XLine.timestamp_ns().
int64 offset_ps = 2;- Specified by:
hasOffsetPsin interfaceXplane.XEventOrBuilder- Returns:
- Whether the offsetPs field is set.
-
getOffsetPs
public long getOffsetPs()Start time of the event in picoseconds, as offset from XLine.timestamp_ns().
int64 offset_ps = 2;- Specified by:
getOffsetPsin interfaceXplane.XEventOrBuilder- Returns:
- The offsetPs.
-
setOffsetPs
Start time of the event in picoseconds, as offset from XLine.timestamp_ns().
int64 offset_ps = 2;- Parameters:
value- The offsetPs to set.- Returns:
- This builder for chaining.
-
clearOffsetPs
Start time of the event in picoseconds, as offset from XLine.timestamp_ns().
int64 offset_ps = 2;- Returns:
- This builder for chaining.
-
hasNumOccurrences
public boolean hasNumOccurrences()Number of occurrences of the event, if aggregated.
int64 num_occurrences = 5;- Specified by:
hasNumOccurrencesin interfaceXplane.XEventOrBuilder- Returns:
- Whether the numOccurrences field is set.
-
getNumOccurrences
public long getNumOccurrences()Number of occurrences of the event, if aggregated.
int64 num_occurrences = 5;- Specified by:
getNumOccurrencesin interfaceXplane.XEventOrBuilder- Returns:
- The numOccurrences.
-
setNumOccurrences
Number of occurrences of the event, if aggregated.
int64 num_occurrences = 5;- Parameters:
value- The numOccurrences to set.- Returns:
- This builder for chaining.
-
clearNumOccurrences
Number of occurrences of the event, if aggregated.
int64 num_occurrences = 5;- Returns:
- This builder for chaining.
-
getDurationPs
public long getDurationPs()Duration of the event in picoseconds. Can be zero for an instant event.
int64 duration_ps = 3;- Specified by:
getDurationPsin interfaceXplane.XEventOrBuilder- Returns:
- The durationPs.
-
setDurationPs
Duration of the event in picoseconds. Can be zero for an instant event.
int64 duration_ps = 3;- Parameters:
value- The durationPs to set.- Returns:
- This builder for chaining.
-
clearDurationPs
Duration of the event in picoseconds. Can be zero for an instant event.
int64 duration_ps = 3;- Returns:
- This builder for chaining.
-
getStatsList
XStats associated with the event. Each of these XStats should have a different metadata_id.
repeated .tensorflow.profiler.XStat stats = 4;- Specified by:
getStatsListin interfaceXplane.XEventOrBuilder
-
getStatsCount
public int getStatsCount()XStats associated with the event. Each of these XStats should have a different metadata_id.
repeated .tensorflow.profiler.XStat stats = 4;- Specified by:
getStatsCountin interfaceXplane.XEventOrBuilder
-
getStats
XStats associated with the event. Each of these XStats should have a different metadata_id.
repeated .tensorflow.profiler.XStat stats = 4;- Specified by:
getStatsin interfaceXplane.XEventOrBuilder
-
setStats
XStats associated with the event. Each of these XStats should have a different metadata_id.
repeated .tensorflow.profiler.XStat stats = 4; -
setStats
XStats associated with the event. Each of these XStats should have a different metadata_id.
repeated .tensorflow.profiler.XStat stats = 4; -
addStats
XStats associated with the event. Each of these XStats should have a different metadata_id.
repeated .tensorflow.profiler.XStat stats = 4; -
addStats
XStats associated with the event. Each of these XStats should have a different metadata_id.
repeated .tensorflow.profiler.XStat stats = 4; -
addStats
XStats associated with the event. Each of these XStats should have a different metadata_id.
repeated .tensorflow.profiler.XStat stats = 4; -
addStats
XStats associated with the event. Each of these XStats should have a different metadata_id.
repeated .tensorflow.profiler.XStat stats = 4; -
addAllStats
XStats associated with the event. Each of these XStats should have a different metadata_id.
repeated .tensorflow.profiler.XStat stats = 4; -
clearStats
XStats associated with the event. Each of these XStats should have a different metadata_id.
repeated .tensorflow.profiler.XStat stats = 4; -
removeStats
XStats associated with the event. Each of these XStats should have a different metadata_id.
repeated .tensorflow.profiler.XStat stats = 4; -
getStatsBuilder
XStats associated with the event. Each of these XStats should have a different metadata_id.
repeated .tensorflow.profiler.XStat stats = 4; -
getStatsOrBuilder
XStats associated with the event. Each of these XStats should have a different metadata_id.
repeated .tensorflow.profiler.XStat stats = 4;- Specified by:
getStatsOrBuilderin interfaceXplane.XEventOrBuilder
-
getStatsOrBuilderList
XStats associated with the event. Each of these XStats should have a different metadata_id.
repeated .tensorflow.profiler.XStat stats = 4;- Specified by:
getStatsOrBuilderListin interfaceXplane.XEventOrBuilder
-
addStatsBuilder
XStats associated with the event. Each of these XStats should have a different metadata_id.
repeated .tensorflow.profiler.XStat stats = 4; -
addStatsBuilder
XStats associated with the event. Each of these XStats should have a different metadata_id.
repeated .tensorflow.profiler.XStat stats = 4; -
getStatsBuilderList
XStats associated with the event. Each of these XStats should have a different metadata_id.
repeated .tensorflow.profiler.XStat stats = 4; -
setUnknownFields
- Specified by:
setUnknownFieldsin interfaceMessage.Builder- Overrides:
setUnknownFieldsin classGeneratedMessageV3.Builder<Xplane.XEvent.Builder>
-
mergeUnknownFields
- Specified by:
mergeUnknownFieldsin interfaceMessage.Builder- Overrides:
mergeUnknownFieldsin classGeneratedMessageV3.Builder<Xplane.XEvent.Builder>
-