XEvent.Builder

public static final class XEvent.Builder

 An XEvent is a trace event, optionally annotated with XStats.
 Next ID: 6
 
Protobuf type tensorflow.profiler.XEvent

Public Methods

XEvent.Builder
addAllStats(Iterable<? extends XStat> values)
 XStats associated with the event.
XEvent.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
XEvent.Builder
addStats(XStat value)
 XStats associated with the event.
XEvent.Builder
addStats(XStat.Builder builderForValue)
 XStats associated with the event.
XEvent.Builder
addStats(int index, XStat value)
 XStats associated with the event.
XEvent.Builder
addStats(int index, XStat.Builder builderForValue)
 XStats associated with the event.
XStat.Builder
addStatsBuilder(int index)
 XStats associated with the event.
XStat.Builder
addStatsBuilder()
 XStats associated with the event.
XEvent
build()
XEvent
XEvent.Builder
clear()
XEvent.Builder
XEvent.Builder
clearDurationPs()
 Duration of the event in picoseconds.
XEvent.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
XEvent.Builder
clearMetadataId()
 XEventMetadata.id of corresponding metadata.
XEvent.Builder
clearNumOccurrences()
 Number of occurrences of the event, if aggregated.
XEvent.Builder
clearOffsetPs()
 Start time of the event in picoseconds, as offset from
 XLine.timestamp_ns().
XEvent.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
XEvent.Builder
clearStats()
 XStats associated with the event.
XEvent.Builder
clone()
XEvent.DataCase
XEvent
final static com.google.protobuf.Descriptors.Descriptor
com.google.protobuf.Descriptors.Descriptor
long
getDurationPs()
 Duration of the event in picoseconds.
long
getMetadataId()
 XEventMetadata.id of corresponding metadata.
long
getNumOccurrences()
 Number of occurrences of the event, if aggregated.
long
getOffsetPs()
 Start time of the event in picoseconds, as offset from
 XLine.timestamp_ns().
XStat
getStats(int index)
 XStats associated with the event.
XStat.Builder
getStatsBuilder(int index)
 XStats associated with the event.
List<XStat.Builder>
getStatsBuilderList()
 XStats associated with the event.
int
getStatsCount()
 XStats associated with the event.
List<XStat>
getStatsList()
 XStats associated with the event.
XStatOrBuilder
getStatsOrBuilder(int index)
 XStats associated with the event.
List<? extends XStatOrBuilder>
getStatsOrBuilderList()
 XStats associated with the event.
final boolean
XEvent.Builder
mergeFrom(com.google.protobuf.Message other)
XEvent.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
final XEvent.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
XEvent.Builder
removeStats(int index)
 XStats associated with the event.
XEvent.Builder
setDurationPs(long value)
 Duration of the event in picoseconds.
XEvent.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
XEvent.Builder
setMetadataId(long value)
 XEventMetadata.id of corresponding metadata.
XEvent.Builder
setNumOccurrences(long value)
 Number of occurrences of the event, if aggregated.
XEvent.Builder
setOffsetPs(long value)
 Start time of the event in picoseconds, as offset from
 XLine.timestamp_ns().
XEvent.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
XEvent.Builder
setStats(int index, XStat.Builder builderForValue)
 XStats associated with the event.
XEvent.Builder
setStats(int index, XStat value)
 XStats associated with the event.
final XEvent.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)

Inherited Methods

Public Methods

public XEvent.Builder addAllStats (Iterable<? extends XStat> values)

 XStats associated with the event.
 Each of these XStats should have a different metadata_id.
 
repeated .tensorflow.profiler.XStat stats = 4;

public XEvent.Builder addRepeatedField (com.google.protobuf.Descriptors.FieldDescriptor field, Object value)

public XEvent.Builder addStats (XStat value)

 XStats associated with the event.
 Each of these XStats should have a different metadata_id.
 
repeated .tensorflow.profiler.XStat stats = 4;

public XEvent.Builder addStats (XStat.Builder builderForValue)

 XStats associated with the event.
 Each of these XStats should have a different metadata_id.
 
repeated .tensorflow.profiler.XStat stats = 4;

public XEvent.Builder addStats (int index, XStat value)

 XStats associated with the event.
 Each of these XStats should have a different metadata_id.
 
repeated .tensorflow.profiler.XStat stats = 4;

public XEvent.Builder addStats (int index, XStat.Builder builderForValue)

 XStats associated with the event.
 Each of these XStats should have a different metadata_id.
 
repeated .tensorflow.profiler.XStat stats = 4;

public XStat.Builder addStatsBuilder (int index)

 XStats associated with the event.
 Each of these XStats should have a different metadata_id.
 
repeated .tensorflow.profiler.XStat stats = 4;

public XStat.Builder addStatsBuilder ()

 XStats associated with the event.
 Each of these XStats should have a different metadata_id.
 
repeated .tensorflow.profiler.XStat stats = 4;

public XEvent build ()

public XEvent buildPartial ()

public XEvent.Builder clear ()

public XEvent.Builder clearData ()

public XEvent.Builder clearDurationPs ()

 Duration of the event in picoseconds. Can be zero for an instant event.
 
int64 duration_ps = 3;

public XEvent.Builder clearField (com.google.protobuf.Descriptors.FieldDescriptor field)

public XEvent.Builder clearMetadataId ()

 XEventMetadata.id of corresponding metadata.
 
int64 metadata_id = 1;

public XEvent.Builder clearNumOccurrences ()

 Number of occurrences of the event, if aggregated.
 
int64 num_occurrences = 5;

public XEvent.Builder clearOffsetPs ()

 Start time of the event in picoseconds, as offset from
 XLine.timestamp_ns().
 
int64 offset_ps = 2;

public XEvent.Builder clearOneof (com.google.protobuf.Descriptors.OneofDescriptor oneof)

public XEvent.Builder clearStats ()

 XStats associated with the event.
 Each of these XStats should have a different metadata_id.
 
repeated .tensorflow.profiler.XStat stats = 4;

public XEvent.Builder clone ()

public XEvent.DataCase getDataCase ()

public XEvent getDefaultInstanceForType ()

public static final com.google.protobuf.Descriptors.Descriptor getDescriptor ()

public com.google.protobuf.Descriptors.Descriptor getDescriptorForType ()

public long getDurationPs ()

 Duration of the event in picoseconds. Can be zero for an instant event.
 
int64 duration_ps = 3;

public long getMetadataId ()

 XEventMetadata.id of corresponding metadata.
 
int64 metadata_id = 1;

public long getNumOccurrences ()

 Number of occurrences of the event, if aggregated.
 
int64 num_occurrences = 5;

public long getOffsetPs ()

 Start time of the event in picoseconds, as offset from
 XLine.timestamp_ns().
 
int64 offset_ps = 2;

public XStat getStats (int index)

 XStats associated with the event.
 Each of these XStats should have a different metadata_id.
 
repeated .tensorflow.profiler.XStat stats = 4;

public XStat.Builder getStatsBuilder (int index)

 XStats associated with the event.
 Each of these XStats should have a different metadata_id.
 
repeated .tensorflow.profiler.XStat stats = 4;

public List<XStat.Builder> getStatsBuilderList ()

 XStats associated with the event.
 Each of these XStats should have a different metadata_id.
 
repeated .tensorflow.profiler.XStat stats = 4;

public int getStatsCount ()

 XStats associated with the event.
 Each of these XStats should have a different metadata_id.
 
repeated .tensorflow.profiler.XStat stats = 4;

public List<XStat> getStatsList ()

 XStats associated with the event.
 Each of these XStats should have a different metadata_id.
 
repeated .tensorflow.profiler.XStat stats = 4;

public XStatOrBuilder getStatsOrBuilder (int index)

 XStats associated with the event.
 Each of these XStats should have a different metadata_id.
 
repeated .tensorflow.profiler.XStat stats = 4;

public List<? extends XStatOrBuilder> getStatsOrBuilderList ()

 XStats associated with the event.
 Each of these XStats should have a different metadata_id.
 
repeated .tensorflow.profiler.XStat stats = 4;

public final boolean isInitialized ()

public XEvent.Builder mergeFrom (com.google.protobuf.Message other)

public XEvent.Builder mergeFrom (com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)

Throws
IOException

public final XEvent.Builder mergeUnknownFields (com.google.protobuf.UnknownFieldSet unknownFields)

public XEvent.Builder removeStats (int index)

 XStats associated with the event.
 Each of these XStats should have a different metadata_id.
 
repeated .tensorflow.profiler.XStat stats = 4;

public XEvent.Builder setDurationPs (long value)

 Duration of the event in picoseconds. Can be zero for an instant event.
 
int64 duration_ps = 3;

public XEvent.Builder setField (com.google.protobuf.Descriptors.FieldDescriptor field, Object value)

public XEvent.Builder setMetadataId (long value)

 XEventMetadata.id of corresponding metadata.
 
int64 metadata_id = 1;

public XEvent.Builder setNumOccurrences (long value)

 Number of occurrences of the event, if aggregated.
 
int64 num_occurrences = 5;

public XEvent.Builder setOffsetPs (long value)

 Start time of the event in picoseconds, as offset from
 XLine.timestamp_ns().
 
int64 offset_ps = 2;

public XEvent.Builder setRepeatedField (com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)

public XEvent.Builder setStats (int index, XStat.Builder builderForValue)

 XStats associated with the event.
 Each of these XStats should have a different metadata_id.
 
repeated .tensorflow.profiler.XStat stats = 4;

public XEvent.Builder setStats (int index, XStat value)

 XStats associated with the event.
 Each of these XStats should have a different metadata_id.
 
repeated .tensorflow.profiler.XStat stats = 4;

public final XEvent.Builder setUnknownFields (com.google.protobuf.UnknownFieldSet unknownFields)