Class GraphDebugInfo.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<GraphDebugInfo.Builder>
com.google.protobuf.GeneratedMessageV3.Builder<GraphDebugInfo.Builder>
org.tensorflow.proto.GraphDebugInfo.Builder
- All Implemented Interfaces:
Message.Builder, MessageLite.Builder, MessageLiteOrBuilder, MessageOrBuilder, Cloneable, GraphDebugInfoOrBuilder
- Enclosing class:
GraphDebugInfo
public static final class GraphDebugInfo.Builder
extends GeneratedMessageV3.Builder<GraphDebugInfo.Builder>
implements GraphDebugInfoOrBuilder
Protobuf type
tensorflow.GraphDebugInfo-
Method Summary
Modifier and TypeMethodDescriptionaddAllFiles(Iterable<String> values) This stores all the source code file names and can be indexed by the `file_index`.This stores all the source code file names and can be indexed by the `file_index`.addFilesBytes(ByteString value) This stores all the source code file names and can be indexed by the `file_index`.addRepeatedField(Descriptors.FieldDescriptor field, Object value) build()clear()This stores all the source code file names and can be indexed by the `file_index`.clone()booleancontainsFramesById(long key) Stack traces and frames are uniqueified during construction.booleanThis maps a node name to a trace id contained in `traces_by_id`.booleancontainsTraces(String key) Deprecated.booleancontainsTracesById(long key) map<fixed64, .tensorflow.GraphDebugInfo.StackTrace> traces_by_id = 6;static final Descriptors.DescriptorgetFiles(int index) This stores all the source code file names and can be indexed by the `file_index`.getFilesBytes(int index) This stores all the source code file names and can be indexed by the `file_index`.intThis stores all the source code file names and can be indexed by the `file_index`.This stores all the source code file names and can be indexed by the `file_index`.Deprecated.intStack traces and frames are uniqueified during construction.Stack traces and frames are uniqueified during construction.getFramesByIdOrDefault(long key, GraphDebugInfo.FileLineCol defaultValue) Stack traces and frames are uniqueified during construction.getFramesByIdOrThrow(long key) Stack traces and frames are uniqueified during construction.Deprecated.Deprecated.Deprecated.Deprecated.Deprecated.intThis maps a node name to a trace id contained in `traces_by_id`.This maps a node name to a trace id contained in `traces_by_id`.longgetNameToTraceIdOrDefault(String key, long defaultValue) This maps a node name to a trace id contained in `traces_by_id`.longThis maps a node name to a trace id contained in `traces_by_id`.Deprecated.Deprecated.intmap<fixed64, .tensorflow.GraphDebugInfo.StackTrace> traces_by_id = 6;map<fixed64, .tensorflow.GraphDebugInfo.StackTrace> traces_by_id = 6;getTracesByIdOrDefault(long key, GraphDebugInfo.StackTrace defaultValue) map<fixed64, .tensorflow.GraphDebugInfo.StackTrace> traces_by_id = 6;getTracesByIdOrThrow(long key) map<fixed64, .tensorflow.GraphDebugInfo.StackTrace> traces_by_id = 6;intDeprecated.Deprecated.getTracesOrDefault(String key, GraphDebugInfo.StackTrace defaultValue) Deprecated.getTracesOrThrow(String key) Deprecated.protected GeneratedMessageV3.FieldAccessorTableprotected MapFieldinternalGetMapField(int number) protected MapFieldinternalGetMutableMapField(int number) final booleanmergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) mergeFrom(GraphDebugInfo other) final GraphDebugInfo.BuildermergeUnknownFields(UnknownFieldSet unknownFields) putAllFramesById(Map<Long, GraphDebugInfo.FileLineCol> values) Stack traces and frames are uniqueified during construction.putAllNameToTraceId(Map<String, Long> values) This maps a node name to a trace id contained in `traces_by_id`.putAllTraces(Map<String, GraphDebugInfo.StackTrace> values) Deprecated.putAllTracesById(Map<Long, GraphDebugInfo.StackTrace> values) map<fixed64, .tensorflow.GraphDebugInfo.StackTrace> traces_by_id = 6;putFramesById(long key, GraphDebugInfo.FileLineCol value) Stack traces and frames are uniqueified during construction.putNameToTraceId(String key, long value) This maps a node name to a trace id contained in `traces_by_id`.putTraces(String key, GraphDebugInfo.StackTrace value) Deprecated.putTracesById(long key, GraphDebugInfo.StackTrace value) map<fixed64, .tensorflow.GraphDebugInfo.StackTrace> traces_by_id = 6;removeFramesById(long key) Stack traces and frames are uniqueified during construction.This maps a node name to a trace id contained in `traces_by_id`.removeTraces(String key) Deprecated.removeTracesById(long key) map<fixed64, .tensorflow.GraphDebugInfo.StackTrace> traces_by_id = 6;setField(Descriptors.FieldDescriptor field, Object value) This stores all the source code file names and can be indexed by the `file_index`.setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value) final GraphDebugInfo.BuildersetUnknownFields(UnknownFieldSet unknownFields) Methods inherited from class GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, 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
-
internalGetMapField
- Overrides:
internalGetMapFieldin classGeneratedMessageV3.Builder<GraphDebugInfo.Builder>
-
internalGetMutableMapField
- Overrides:
internalGetMutableMapFieldin classGeneratedMessageV3.Builder<GraphDebugInfo.Builder>
-
internalGetFieldAccessorTable
- Specified by:
internalGetFieldAccessorTablein classGeneratedMessageV3.Builder<GraphDebugInfo.Builder>
-
clear
- Specified by:
clearin interfaceMessage.Builder- Specified by:
clearin interfaceMessageLite.Builder- Overrides:
clearin classGeneratedMessageV3.Builder<GraphDebugInfo.Builder>
-
getDescriptorForType
- Specified by:
getDescriptorForTypein interfaceMessage.Builder- Specified by:
getDescriptorForTypein interfaceMessageOrBuilder- Overrides:
getDescriptorForTypein classGeneratedMessageV3.Builder<GraphDebugInfo.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<GraphDebugInfo.Builder>
-
setField
- Specified by:
setFieldin interfaceMessage.Builder- Overrides:
setFieldin classGeneratedMessageV3.Builder<GraphDebugInfo.Builder>
-
clearField
- Specified by:
clearFieldin interfaceMessage.Builder- Overrides:
clearFieldin classGeneratedMessageV3.Builder<GraphDebugInfo.Builder>
-
clearOneof
- Specified by:
clearOneofin interfaceMessage.Builder- Overrides:
clearOneofin classGeneratedMessageV3.Builder<GraphDebugInfo.Builder>
-
setRepeatedField
public GraphDebugInfo.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value) - Specified by:
setRepeatedFieldin interfaceMessage.Builder- Overrides:
setRepeatedFieldin classGeneratedMessageV3.Builder<GraphDebugInfo.Builder>
-
addRepeatedField
- Specified by:
addRepeatedFieldin interfaceMessage.Builder- Overrides:
addRepeatedFieldin classGeneratedMessageV3.Builder<GraphDebugInfo.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfaceMessage.Builder- Overrides:
mergeFromin classAbstractMessage.Builder<GraphDebugInfo.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfaceMessageLiteOrBuilder- Overrides:
isInitializedin classGeneratedMessageV3.Builder<GraphDebugInfo.Builder>
-
mergeFrom
public GraphDebugInfo.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfaceMessage.Builder- Specified by:
mergeFromin interfaceMessageLite.Builder- Overrides:
mergeFromin classAbstractMessage.Builder<GraphDebugInfo.Builder>- Throws:
IOException
-
getFilesList
This stores all the source code file names and can be indexed by the `file_index`.
repeated string files = 1;- Specified by:
getFilesListin interfaceGraphDebugInfoOrBuilder- Returns:
- A list containing the files.
-
getFilesCount
public int getFilesCount()This stores all the source code file names and can be indexed by the `file_index`.
repeated string files = 1;- Specified by:
getFilesCountin interfaceGraphDebugInfoOrBuilder- Returns:
- The count of files.
-
getFiles
This stores all the source code file names and can be indexed by the `file_index`.
repeated string files = 1;- Specified by:
getFilesin interfaceGraphDebugInfoOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The files at the given index.
-
getFilesBytes
This stores all the source code file names and can be indexed by the `file_index`.
repeated string files = 1;- Specified by:
getFilesBytesin interfaceGraphDebugInfoOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the files at the given index.
-
setFiles
This stores all the source code file names and can be indexed by the `file_index`.
repeated string files = 1;- Parameters:
index- The index to set the value at.value- The files to set.- Returns:
- This builder for chaining.
-
addFiles
This stores all the source code file names and can be indexed by the `file_index`.
repeated string files = 1;- Parameters:
value- The files to add.- Returns:
- This builder for chaining.
-
addAllFiles
This stores all the source code file names and can be indexed by the `file_index`.
repeated string files = 1;- Parameters:
values- The files to add.- Returns:
- This builder for chaining.
-
clearFiles
This stores all the source code file names and can be indexed by the `file_index`.
repeated string files = 1;- Returns:
- This builder for chaining.
-
addFilesBytes
This stores all the source code file names and can be indexed by the `file_index`.
repeated string files = 1;- Parameters:
value- The bytes of the files to add.- Returns:
- This builder for chaining.
-
getFramesByIdCount
public int getFramesByIdCount()Description copied from interface:GraphDebugInfoOrBuilderStack traces and frames are uniqueified during construction. These maps index from the unique id for a frame/trace to the value.
map<fixed64, .tensorflow.GraphDebugInfo.FileLineCol> frames_by_id = 4;- Specified by:
getFramesByIdCountin interfaceGraphDebugInfoOrBuilder
-
containsFramesById
public boolean containsFramesById(long key) Stack traces and frames are uniqueified during construction. These maps index from the unique id for a frame/trace to the value.
map<fixed64, .tensorflow.GraphDebugInfo.FileLineCol> frames_by_id = 4;- Specified by:
containsFramesByIdin interfaceGraphDebugInfoOrBuilder
-
getFramesById
Deprecated.UsegetFramesByIdMap()instead.- Specified by:
getFramesByIdin interfaceGraphDebugInfoOrBuilder
-
getFramesByIdMap
Stack traces and frames are uniqueified during construction. These maps index from the unique id for a frame/trace to the value.
map<fixed64, .tensorflow.GraphDebugInfo.FileLineCol> frames_by_id = 4;- Specified by:
getFramesByIdMapin interfaceGraphDebugInfoOrBuilder
-
getFramesByIdOrDefault
public GraphDebugInfo.FileLineCol getFramesByIdOrDefault(long key, GraphDebugInfo.FileLineCol defaultValue) Stack traces and frames are uniqueified during construction. These maps index from the unique id for a frame/trace to the value.
map<fixed64, .tensorflow.GraphDebugInfo.FileLineCol> frames_by_id = 4;- Specified by:
getFramesByIdOrDefaultin interfaceGraphDebugInfoOrBuilder
-
getFramesByIdOrThrow
Stack traces and frames are uniqueified during construction. These maps index from the unique id for a frame/trace to the value.
map<fixed64, .tensorflow.GraphDebugInfo.FileLineCol> frames_by_id = 4;- Specified by:
getFramesByIdOrThrowin interfaceGraphDebugInfoOrBuilder
-
clearFramesById
-
removeFramesById
Stack traces and frames are uniqueified during construction. These maps index from the unique id for a frame/trace to the value.
map<fixed64, .tensorflow.GraphDebugInfo.FileLineCol> frames_by_id = 4; -
getMutableFramesById
Deprecated.Use alternate mutation accessors instead. -
putFramesById
Stack traces and frames are uniqueified during construction. These maps index from the unique id for a frame/trace to the value.
map<fixed64, .tensorflow.GraphDebugInfo.FileLineCol> frames_by_id = 4; -
putAllFramesById
Stack traces and frames are uniqueified during construction. These maps index from the unique id for a frame/trace to the value.
map<fixed64, .tensorflow.GraphDebugInfo.FileLineCol> frames_by_id = 4; -
getTracesByIdCount
public int getTracesByIdCount()Description copied from interface:GraphDebugInfoOrBuildermap<fixed64, .tensorflow.GraphDebugInfo.StackTrace> traces_by_id = 6;- Specified by:
getTracesByIdCountin interfaceGraphDebugInfoOrBuilder
-
containsTracesById
public boolean containsTracesById(long key) map<fixed64, .tensorflow.GraphDebugInfo.StackTrace> traces_by_id = 6;- Specified by:
containsTracesByIdin interfaceGraphDebugInfoOrBuilder
-
getTracesById
Deprecated.UsegetTracesByIdMap()instead.- Specified by:
getTracesByIdin interfaceGraphDebugInfoOrBuilder
-
getTracesByIdMap
map<fixed64, .tensorflow.GraphDebugInfo.StackTrace> traces_by_id = 6;- Specified by:
getTracesByIdMapin interfaceGraphDebugInfoOrBuilder
-
getTracesByIdOrDefault
public GraphDebugInfo.StackTrace getTracesByIdOrDefault(long key, GraphDebugInfo.StackTrace defaultValue) map<fixed64, .tensorflow.GraphDebugInfo.StackTrace> traces_by_id = 6;- Specified by:
getTracesByIdOrDefaultin interfaceGraphDebugInfoOrBuilder
-
getTracesByIdOrThrow
map<fixed64, .tensorflow.GraphDebugInfo.StackTrace> traces_by_id = 6;- Specified by:
getTracesByIdOrThrowin interfaceGraphDebugInfoOrBuilder
-
clearTracesById
-
removeTracesById
map<fixed64, .tensorflow.GraphDebugInfo.StackTrace> traces_by_id = 6; -
getMutableTracesById
Deprecated.Use alternate mutation accessors instead. -
putTracesById
map<fixed64, .tensorflow.GraphDebugInfo.StackTrace> traces_by_id = 6; -
putAllTracesById
map<fixed64, .tensorflow.GraphDebugInfo.StackTrace> traces_by_id = 6; -
getTracesCount
public int getTracesCount()Description copied from interface:GraphDebugInfoOrBuilderDeprecated.
map<string, .tensorflow.GraphDebugInfo.StackTrace> traces = 2;- Specified by:
getTracesCountin interfaceGraphDebugInfoOrBuilder
-
containsTraces
Deprecated.
map<string, .tensorflow.GraphDebugInfo.StackTrace> traces = 2;- Specified by:
containsTracesin interfaceGraphDebugInfoOrBuilder
-
getTraces
Deprecated.UsegetTracesMap()instead.- Specified by:
getTracesin interfaceGraphDebugInfoOrBuilder
-
getTracesMap
Deprecated.
map<string, .tensorflow.GraphDebugInfo.StackTrace> traces = 2;- Specified by:
getTracesMapin interfaceGraphDebugInfoOrBuilder
-
getTracesOrDefault
public GraphDebugInfo.StackTrace getTracesOrDefault(String key, GraphDebugInfo.StackTrace defaultValue) Deprecated.
map<string, .tensorflow.GraphDebugInfo.StackTrace> traces = 2;- Specified by:
getTracesOrDefaultin interfaceGraphDebugInfoOrBuilder
-
getTracesOrThrow
Deprecated.
map<string, .tensorflow.GraphDebugInfo.StackTrace> traces = 2;- Specified by:
getTracesOrThrowin interfaceGraphDebugInfoOrBuilder
-
clearTraces
-
removeTraces
Deprecated.
map<string, .tensorflow.GraphDebugInfo.StackTrace> traces = 2; -
getMutableTraces
Deprecated.Use alternate mutation accessors instead. -
putTraces
Deprecated.
map<string, .tensorflow.GraphDebugInfo.StackTrace> traces = 2; -
putAllTraces
Deprecated.
map<string, .tensorflow.GraphDebugInfo.StackTrace> traces = 2; -
getNameToTraceIdCount
public int getNameToTraceIdCount()Description copied from interface:GraphDebugInfoOrBuilderThis maps a node name to a trace id contained in `traces_by_id`. The map key is a mangling of the containing function and op name with syntax: op.name '@' func_name For ops in the top-level graph, the func_name is the empty string and hence the `@` may be ommitted. Note that op names are restricted to a small number of characters which exclude '@', making it impossible to collide keys of this form. Function names accept a much wider set of characters. It would be preferable to avoid mangling and use a tuple key of (op.name, func_name), but this is not supported with protocol buffers.
map<string, fixed64> name_to_trace_id = 5;- Specified by:
getNameToTraceIdCountin interfaceGraphDebugInfoOrBuilder
-
containsNameToTraceId
This maps a node name to a trace id contained in `traces_by_id`. The map key is a mangling of the containing function and op name with syntax: op.name '@' func_name For ops in the top-level graph, the func_name is the empty string and hence the `@` may be ommitted. Note that op names are restricted to a small number of characters which exclude '@', making it impossible to collide keys of this form. Function names accept a much wider set of characters. It would be preferable to avoid mangling and use a tuple key of (op.name, func_name), but this is not supported with protocol buffers.
map<string, fixed64> name_to_trace_id = 5;- Specified by:
containsNameToTraceIdin interfaceGraphDebugInfoOrBuilder
-
getNameToTraceId
Deprecated.UsegetNameToTraceIdMap()instead.- Specified by:
getNameToTraceIdin interfaceGraphDebugInfoOrBuilder
-
getNameToTraceIdMap
This maps a node name to a trace id contained in `traces_by_id`. The map key is a mangling of the containing function and op name with syntax: op.name '@' func_name For ops in the top-level graph, the func_name is the empty string and hence the `@` may be ommitted. Note that op names are restricted to a small number of characters which exclude '@', making it impossible to collide keys of this form. Function names accept a much wider set of characters. It would be preferable to avoid mangling and use a tuple key of (op.name, func_name), but this is not supported with protocol buffers.
map<string, fixed64> name_to_trace_id = 5;- Specified by:
getNameToTraceIdMapin interfaceGraphDebugInfoOrBuilder
-
getNameToTraceIdOrDefault
This maps a node name to a trace id contained in `traces_by_id`. The map key is a mangling of the containing function and op name with syntax: op.name '@' func_name For ops in the top-level graph, the func_name is the empty string and hence the `@` may be ommitted. Note that op names are restricted to a small number of characters which exclude '@', making it impossible to collide keys of this form. Function names accept a much wider set of characters. It would be preferable to avoid mangling and use a tuple key of (op.name, func_name), but this is not supported with protocol buffers.
map<string, fixed64> name_to_trace_id = 5;- Specified by:
getNameToTraceIdOrDefaultin interfaceGraphDebugInfoOrBuilder
-
getNameToTraceIdOrThrow
This maps a node name to a trace id contained in `traces_by_id`. The map key is a mangling of the containing function and op name with syntax: op.name '@' func_name For ops in the top-level graph, the func_name is the empty string and hence the `@` may be ommitted. Note that op names are restricted to a small number of characters which exclude '@', making it impossible to collide keys of this form. Function names accept a much wider set of characters. It would be preferable to avoid mangling and use a tuple key of (op.name, func_name), but this is not supported with protocol buffers.
map<string, fixed64> name_to_trace_id = 5;- Specified by:
getNameToTraceIdOrThrowin interfaceGraphDebugInfoOrBuilder
-
clearNameToTraceId
-
removeNameToTraceId
This maps a node name to a trace id contained in `traces_by_id`. The map key is a mangling of the containing function and op name with syntax: op.name '@' func_name For ops in the top-level graph, the func_name is the empty string and hence the `@` may be ommitted. Note that op names are restricted to a small number of characters which exclude '@', making it impossible to collide keys of this form. Function names accept a much wider set of characters. It would be preferable to avoid mangling and use a tuple key of (op.name, func_name), but this is not supported with protocol buffers.
map<string, fixed64> name_to_trace_id = 5; -
getMutableNameToTraceId
Deprecated.Use alternate mutation accessors instead. -
putNameToTraceId
This maps a node name to a trace id contained in `traces_by_id`. The map key is a mangling of the containing function and op name with syntax: op.name '@' func_name For ops in the top-level graph, the func_name is the empty string and hence the `@` may be ommitted. Note that op names are restricted to a small number of characters which exclude '@', making it impossible to collide keys of this form. Function names accept a much wider set of characters. It would be preferable to avoid mangling and use a tuple key of (op.name, func_name), but this is not supported with protocol buffers.
map<string, fixed64> name_to_trace_id = 5; -
putAllNameToTraceId
This maps a node name to a trace id contained in `traces_by_id`. The map key is a mangling of the containing function and op name with syntax: op.name '@' func_name For ops in the top-level graph, the func_name is the empty string and hence the `@` may be ommitted. Note that op names are restricted to a small number of characters which exclude '@', making it impossible to collide keys of this form. Function names accept a much wider set of characters. It would be preferable to avoid mangling and use a tuple key of (op.name, func_name), but this is not supported with protocol buffers.
map<string, fixed64> name_to_trace_id = 5; -
setUnknownFields
- Specified by:
setUnknownFieldsin interfaceMessage.Builder- Overrides:
setUnknownFieldsin classGeneratedMessageV3.Builder<GraphDebugInfo.Builder>
-
mergeUnknownFields
- Specified by:
mergeUnknownFieldsin interfaceMessage.Builder- Overrides:
mergeUnknownFieldsin classGeneratedMessageV3.Builder<GraphDebugInfo.Builder>
-