public static final class TraceEvent.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<TraceEvent.Builder> implements TraceEventOrBuilder
tensorflow.profiler.TraceEvent
Modifier and Type | Method and Description |
---|---|
TraceEvent.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
TraceEvent |
build() |
TraceEvent |
buildPartial() |
TraceEvent.Builder |
clear() |
TraceEvent.Builder |
clearArgs() |
TraceEvent.Builder |
clearDeviceId()
The id of the device that this event occurred on.
|
TraceEvent.Builder |
clearDurationPs()
The duration of the event in picoseconds if applicable.
|
TraceEvent.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
TraceEvent.Builder |
clearName()
The name of this trace event.
|
TraceEvent.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
TraceEvent.Builder |
clearResourceId()
The id of the resource that this event occurred on.
|
TraceEvent.Builder |
clearTimestampPs()
The timestamp that this event occurred at (in picos since tracing started).
|
TraceEvent.Builder |
clone() |
boolean |
containsArgs(String key)
Extra arguments that will be displayed in trace view.
|
Map<String,String> |
getArgs()
Deprecated.
|
int |
getArgsCount()
Extra arguments that will be displayed in trace view.
|
Map<String,String> |
getArgsMap()
Extra arguments that will be displayed in trace view.
|
String |
getArgsOrDefault(String key,
String defaultValue)
Extra arguments that will be displayed in trace view.
|
String |
getArgsOrThrow(String key)
Extra arguments that will be displayed in trace view.
|
TraceEvent |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
int |
getDeviceId()
The id of the device that this event occurred on.
|
long |
getDurationPs()
The duration of the event in picoseconds if applicable.
|
Map<String,String> |
getMutableArgs()
Deprecated.
|
String |
getName()
The name of this trace event.
|
com.google.protobuf.ByteString |
getNameBytes()
The name of this trace event.
|
int |
getResourceId()
The id of the resource that this event occurred on.
|
long |
getTimestampPs()
The timestamp that this event occurred at (in picos since tracing started).
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
protected com.google.protobuf.MapField |
internalGetMapField(int number) |
protected com.google.protobuf.MapField |
internalGetMutableMapField(int number) |
boolean |
isInitialized() |
TraceEvent.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
TraceEvent.Builder |
mergeFrom(com.google.protobuf.Message other) |
TraceEvent.Builder |
mergeFrom(TraceEvent other) |
TraceEvent.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
TraceEvent.Builder |
putAllArgs(Map<String,String> values)
Extra arguments that will be displayed in trace view.
|
TraceEvent.Builder |
putArgs(String key,
String value)
Extra arguments that will be displayed in trace view.
|
TraceEvent.Builder |
removeArgs(String key)
Extra arguments that will be displayed in trace view.
|
TraceEvent.Builder |
setDeviceId(int value)
The id of the device that this event occurred on.
|
TraceEvent.Builder |
setDurationPs(long value)
The duration of the event in picoseconds if applicable.
|
TraceEvent.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
TraceEvent.Builder |
setName(String value)
The name of this trace event.
|
TraceEvent.Builder |
setNameBytes(com.google.protobuf.ByteString value)
The name of this trace event.
|
TraceEvent.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
TraceEvent.Builder |
setResourceId(int value)
The id of the resource that this event occurred on.
|
TraceEvent.Builder |
setTimestampPs(long value)
The timestamp that this event occurred at (in picos since tracing started).
|
TraceEvent.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.MapField internalGetMapField(int number)
internalGetMapField
in class com.google.protobuf.GeneratedMessageV3.Builder<TraceEvent.Builder>
protected com.google.protobuf.MapField internalGetMutableMapField(int number)
internalGetMutableMapField
in class com.google.protobuf.GeneratedMessageV3.Builder<TraceEvent.Builder>
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class com.google.protobuf.GeneratedMessageV3.Builder<TraceEvent.Builder>
public TraceEvent.Builder clear()
clear
in interface com.google.protobuf.Message.Builder
clear
in interface com.google.protobuf.MessageLite.Builder
clear
in class com.google.protobuf.GeneratedMessageV3.Builder<TraceEvent.Builder>
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface com.google.protobuf.Message.Builder
getDescriptorForType
in interface com.google.protobuf.MessageOrBuilder
getDescriptorForType
in class com.google.protobuf.GeneratedMessageV3.Builder<TraceEvent.Builder>
public TraceEvent getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
public TraceEvent build()
build
in interface com.google.protobuf.Message.Builder
build
in interface com.google.protobuf.MessageLite.Builder
public TraceEvent buildPartial()
buildPartial
in interface com.google.protobuf.Message.Builder
buildPartial
in interface com.google.protobuf.MessageLite.Builder
public TraceEvent.Builder clone()
clone
in interface com.google.protobuf.Message.Builder
clone
in interface com.google.protobuf.MessageLite.Builder
clone
in class com.google.protobuf.GeneratedMessageV3.Builder<TraceEvent.Builder>
public TraceEvent.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField
in interface com.google.protobuf.Message.Builder
setField
in class com.google.protobuf.GeneratedMessageV3.Builder<TraceEvent.Builder>
public TraceEvent.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField
in interface com.google.protobuf.Message.Builder
clearField
in class com.google.protobuf.GeneratedMessageV3.Builder<TraceEvent.Builder>
public TraceEvent.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof
in interface com.google.protobuf.Message.Builder
clearOneof
in class com.google.protobuf.GeneratedMessageV3.Builder<TraceEvent.Builder>
public TraceEvent.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField
in interface com.google.protobuf.Message.Builder
setRepeatedField
in class com.google.protobuf.GeneratedMessageV3.Builder<TraceEvent.Builder>
public TraceEvent.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField
in interface com.google.protobuf.Message.Builder
addRepeatedField
in class com.google.protobuf.GeneratedMessageV3.Builder<TraceEvent.Builder>
public TraceEvent.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<TraceEvent.Builder>
public TraceEvent.Builder mergeFrom(TraceEvent other)
public final boolean isInitialized()
isInitialized
in interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
in class com.google.protobuf.GeneratedMessageV3.Builder<TraceEvent.Builder>
public TraceEvent.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
in interface com.google.protobuf.MessageLite.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<TraceEvent.Builder>
IOException
public int getDeviceId()
The id of the device that this event occurred on. The full dataset should have this device present in the Trace object.
uint32 device_id = 1;
getDeviceId
in interface TraceEventOrBuilder
public TraceEvent.Builder setDeviceId(int value)
The id of the device that this event occurred on. The full dataset should have this device present in the Trace object.
uint32 device_id = 1;
public TraceEvent.Builder clearDeviceId()
The id of the device that this event occurred on. The full dataset should have this device present in the Trace object.
uint32 device_id = 1;
public int getResourceId()
The id of the resource that this event occurred on. The full dataset should have this resource present in the Device object of the Trace object. A resource_id is unique on a specific device, but not necessarily within the trace.
uint32 resource_id = 2;
getResourceId
in interface TraceEventOrBuilder
public TraceEvent.Builder setResourceId(int value)
The id of the resource that this event occurred on. The full dataset should have this resource present in the Device object of the Trace object. A resource_id is unique on a specific device, but not necessarily within the trace.
uint32 resource_id = 2;
public TraceEvent.Builder clearResourceId()
The id of the resource that this event occurred on. The full dataset should have this resource present in the Device object of the Trace object. A resource_id is unique on a specific device, but not necessarily within the trace.
uint32 resource_id = 2;
public String getName()
The name of this trace event.
string name = 3;
getName
in interface TraceEventOrBuilder
public com.google.protobuf.ByteString getNameBytes()
The name of this trace event.
string name = 3;
getNameBytes
in interface TraceEventOrBuilder
public TraceEvent.Builder setName(String value)
The name of this trace event.
string name = 3;
public TraceEvent.Builder clearName()
The name of this trace event.
string name = 3;
public TraceEvent.Builder setNameBytes(com.google.protobuf.ByteString value)
The name of this trace event.
string name = 3;
public long getTimestampPs()
The timestamp that this event occurred at (in picos since tracing started).
uint64 timestamp_ps = 9;
getTimestampPs
in interface TraceEventOrBuilder
public TraceEvent.Builder setTimestampPs(long value)
The timestamp that this event occurred at (in picos since tracing started).
uint64 timestamp_ps = 9;
public TraceEvent.Builder clearTimestampPs()
The timestamp that this event occurred at (in picos since tracing started).
uint64 timestamp_ps = 9;
public long getDurationPs()
The duration of the event in picoseconds if applicable. Events without duration are called instant events.
uint64 duration_ps = 10;
getDurationPs
in interface TraceEventOrBuilder
public TraceEvent.Builder setDurationPs(long value)
The duration of the event in picoseconds if applicable. Events without duration are called instant events.
uint64 duration_ps = 10;
public TraceEvent.Builder clearDurationPs()
The duration of the event in picoseconds if applicable. Events without duration are called instant events.
uint64 duration_ps = 10;
public int getArgsCount()
TraceEventOrBuilder
Extra arguments that will be displayed in trace view.
map<string, string> args = 11;
getArgsCount
in interface TraceEventOrBuilder
public boolean containsArgs(String key)
Extra arguments that will be displayed in trace view.
map<string, string> args = 11;
containsArgs
in interface TraceEventOrBuilder
@Deprecated public Map<String,String> getArgs()
getArgsMap()
instead.getArgs
in interface TraceEventOrBuilder
public Map<String,String> getArgsMap()
Extra arguments that will be displayed in trace view.
map<string, string> args = 11;
getArgsMap
in interface TraceEventOrBuilder
public String getArgsOrDefault(String key, String defaultValue)
Extra arguments that will be displayed in trace view.
map<string, string> args = 11;
getArgsOrDefault
in interface TraceEventOrBuilder
public String getArgsOrThrow(String key)
Extra arguments that will be displayed in trace view.
map<string, string> args = 11;
getArgsOrThrow
in interface TraceEventOrBuilder
public TraceEvent.Builder clearArgs()
public TraceEvent.Builder removeArgs(String key)
Extra arguments that will be displayed in trace view.
map<string, string> args = 11;
@Deprecated public Map<String,String> getMutableArgs()
public TraceEvent.Builder putArgs(String key, String value)
Extra arguments that will be displayed in trace view.
map<string, string> args = 11;
public TraceEvent.Builder putAllArgs(Map<String,String> values)
Extra arguments that will be displayed in trace view.
map<string, string> args = 11;
public final TraceEvent.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields
in interface com.google.protobuf.Message.Builder
setUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<TraceEvent.Builder>
public final TraceEvent.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields
in interface com.google.protobuf.Message.Builder
mergeUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<TraceEvent.Builder>
Copyright © 2015–2019. All rights reserved.