Class SourceFile.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<SourceFile.Builder>
com.google.protobuf.GeneratedMessageV3.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 GeneratedMessageV3.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.addRepeatedField(Descriptors.FieldDescriptor field, Object value) build()clear()Path to the file.Name of the host on which the file is located.Line-by-line content of the file.clone()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 GeneratedMessageV3.FieldAccessorTablefinal booleanmergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) mergeFrom(SourceFile other) final SourceFile.BuildermergeUnknownFields(UnknownFieldSet unknownFields) setField(Descriptors.FieldDescriptor field, Object value) 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.setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value) final SourceFile.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<SourceFile.Builder>
-
clear
- Specified by:
clearin interfaceMessage.Builder- Specified by:
clearin interfaceMessageLite.Builder- Overrides:
clearin classGeneratedMessageV3.Builder<SourceFile.Builder>
-
getDescriptorForType
- Specified by:
getDescriptorForTypein interfaceMessage.Builder- Specified by:
getDescriptorForTypein interfaceMessageOrBuilder- Overrides:
getDescriptorForTypein classGeneratedMessageV3.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
-
clone
- Specified by:
clonein interfaceMessage.Builder- Specified by:
clonein interfaceMessageLite.Builder- Overrides:
clonein classGeneratedMessageV3.Builder<SourceFile.Builder>
-
setField
- Specified by:
setFieldin interfaceMessage.Builder- Overrides:
setFieldin classGeneratedMessageV3.Builder<SourceFile.Builder>
-
clearField
- Specified by:
clearFieldin interfaceMessage.Builder- Overrides:
clearFieldin classGeneratedMessageV3.Builder<SourceFile.Builder>
-
clearOneof
- Specified by:
clearOneofin interfaceMessage.Builder- Overrides:
clearOneofin classGeneratedMessageV3.Builder<SourceFile.Builder>
-
setRepeatedField
public SourceFile.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value) - Specified by:
setRepeatedFieldin interfaceMessage.Builder- Overrides:
setRepeatedFieldin classGeneratedMessageV3.Builder<SourceFile.Builder>
-
addRepeatedField
- Specified by:
addRepeatedFieldin interfaceMessage.Builder- Overrides:
addRepeatedFieldin classGeneratedMessageV3.Builder<SourceFile.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 classGeneratedMessageV3.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.
-
setUnknownFields
- Specified by:
setUnknownFieldsin interfaceMessage.Builder- Overrides:
setUnknownFieldsin classGeneratedMessageV3.Builder<SourceFile.Builder>
-
mergeUnknownFields
- Specified by:
mergeUnknownFieldsin interfaceMessage.Builder- Overrides:
mergeUnknownFieldsin classGeneratedMessageV3.Builder<SourceFile.Builder>
-