Class SourceFile.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<SourceFile.Builder>
com.google.protobuf.GeneratedMessage.Builder<SourceFile.Builder>
org.tensorflow.proto.SourceFile.Builder
- All Implemented Interfaces:
Message.Builder, MessageLite.Builder, MessageLiteOrBuilder, MessageOrBuilder, Cloneable, SourceFileOrBuilder
- Enclosing class:
SourceFile
public static final class SourceFile.Builder
extends GeneratedMessage.Builder<SourceFile.Builder>
implements SourceFileOrBuilder
Content of a source file involved in the execution of the debugged TensorFlow program.Protobuf type
tensorflow.SourceFile-
Method Summary
Modifier and TypeMethodDescriptionaddAllLines(Iterable<String> values) Line-by-line content of the file.Line-by-line content of the file.addLinesBytes(ByteString value) Line-by-line content of the file.build()clear()Path to the file.Name of the host on which the file is located.Line-by-line content of the file.static final Descriptors.DescriptorPath to the file.Path to the file.Name of the host on which the file is located.Name of the host on which the file is located.getLines(int index) Line-by-line content of the file.getLinesBytes(int index) Line-by-line content of the file.intLine-by-line content of the file.Line-by-line content of the file.protected GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) mergeFrom(SourceFile other) setFilePath(String value) Path to the file.setFilePathBytes(ByteString value) Path to the file.setHostName(String value) Name of the host on which the file is located.setHostNameBytes(ByteString value) Name of the host on which the file is located.Line-by-line content of the file.Methods inherited from class GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, 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, mergeDelimitedFrom
-
Method Details
-
getDescriptor
-
internalGetFieldAccessorTable
- Specified by:
internalGetFieldAccessorTablein classGeneratedMessage.Builder<SourceFile.Builder>
-
clear
- Specified by:
clearin interfaceMessage.Builder- Specified by:
clearin interfaceMessageLite.Builder- Overrides:
clearin classGeneratedMessage.Builder<SourceFile.Builder>
-
getDescriptorForType
- Specified by:
getDescriptorForTypein interfaceMessage.Builder- Specified by:
getDescriptorForTypein interfaceMessageOrBuilder- Overrides:
getDescriptorForTypein classGeneratedMessage.Builder<SourceFile.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
-
mergeFrom
- Specified by:
mergeFromin interfaceMessage.Builder- Overrides:
mergeFromin classAbstractMessage.Builder<SourceFile.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfaceMessageLiteOrBuilder- Overrides:
isInitializedin classGeneratedMessage.Builder<SourceFile.Builder>
-
mergeFrom
public SourceFile.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfaceMessage.Builder- Specified by:
mergeFromin interfaceMessageLite.Builder- Overrides:
mergeFromin classAbstractMessage.Builder<SourceFile.Builder>- Throws:
IOException
-
getFilePath
Path to the file.
string file_path = 1;- Specified by:
getFilePathin interfaceSourceFileOrBuilder- Returns:
- The filePath.
-
getFilePathBytes
Path to the file.
string file_path = 1;- Specified by:
getFilePathBytesin interfaceSourceFileOrBuilder- Returns:
- The bytes for filePath.
-
setFilePath
Path to the file.
string file_path = 1;- Parameters:
value- The filePath to set.- Returns:
- This builder for chaining.
-
clearFilePath
Path to the file.
string file_path = 1;- Returns:
- This builder for chaining.
-
setFilePathBytes
Path to the file.
string file_path = 1;- Parameters:
value- The bytes for filePath to set.- Returns:
- This builder for chaining.
-
getHostName
Name of the host on which the file is located.
string host_name = 2;- Specified by:
getHostNamein interfaceSourceFileOrBuilder- Returns:
- The hostName.
-
getHostNameBytes
Name of the host on which the file is located.
string host_name = 2;- Specified by:
getHostNameBytesin interfaceSourceFileOrBuilder- Returns:
- The bytes for hostName.
-
setHostName
Name of the host on which the file is located.
string host_name = 2;- Parameters:
value- The hostName to set.- Returns:
- This builder for chaining.
-
clearHostName
Name of the host on which the file is located.
string host_name = 2;- Returns:
- This builder for chaining.
-
setHostNameBytes
Name of the host on which the file is located.
string host_name = 2;- Parameters:
value- The bytes for hostName to set.- Returns:
- This builder for chaining.
-
getLinesList
Line-by-line content of the file.
repeated string lines = 3;- Specified by:
getLinesListin interfaceSourceFileOrBuilder- Returns:
- A list containing the lines.
-
getLinesCount
public int getLinesCount()Line-by-line content of the file.
repeated string lines = 3;- Specified by:
getLinesCountin interfaceSourceFileOrBuilder- Returns:
- The count of lines.
-
getLines
Line-by-line content of the file.
repeated string lines = 3;- Specified by:
getLinesin interfaceSourceFileOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The lines at the given index.
-
getLinesBytes
Line-by-line content of the file.
repeated string lines = 3;- Specified by:
getLinesBytesin interfaceSourceFileOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the lines at the given index.
-
setLines
Line-by-line content of the file.
repeated string lines = 3;- Parameters:
index- The index to set the value at.value- The lines to set.- Returns:
- This builder for chaining.
-
addLines
Line-by-line content of the file.
repeated string lines = 3;- Parameters:
value- The lines to add.- Returns:
- This builder for chaining.
-
addAllLines
Line-by-line content of the file.
repeated string lines = 3;- Parameters:
values- The lines to add.- Returns:
- This builder for chaining.
-
clearLines
Line-by-line content of the file.
repeated string lines = 3;- Returns:
- This builder for chaining.
-
addLinesBytes
Line-by-line content of the file.
repeated string lines = 3;- Parameters:
value- The bytes of the lines to add.- Returns:
- This builder for chaining.
-