Class AssetFileDef.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<AssetFileDef.Builder>
com.google.protobuf.GeneratedMessage.Builder<AssetFileDef.Builder>
org.tensorflow.proto.AssetFileDef.Builder
- All Implemented Interfaces:
Message.Builder, MessageLite.Builder, MessageLiteOrBuilder, MessageOrBuilder, Cloneable, AssetFileDefOrBuilder
- Enclosing class:
AssetFileDef
public static final class AssetFileDef.Builder
extends GeneratedMessage.Builder<AssetFileDef.Builder>
implements AssetFileDefOrBuilder
An asset file def for a single file or a set of sharded files with the same name.Protobuf type
tensorflow.AssetFileDef-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()The filename within an assets directory.The tensor to bind the asset filename to.static final Descriptors.DescriptorThe filename within an assets directory.The filename within an assets directory.The tensor to bind the asset filename to.The tensor to bind the asset filename to.The tensor to bind the asset filename to.booleanThe tensor to bind the asset filename to.protected GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) mergeFrom(AssetFileDef other) mergeTensorInfo(TensorInfo value) The tensor to bind the asset filename to.setFilename(String value) The filename within an assets directory.setFilenameBytes(ByteString value) The filename within an assets directory.setTensorInfo(TensorInfo value) The tensor to bind the asset filename to.setTensorInfo(TensorInfo.Builder builderForValue) The tensor to bind the asset filename to.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<AssetFileDef.Builder>
-
clear
- Specified by:
clearin interfaceMessage.Builder- Specified by:
clearin interfaceMessageLite.Builder- Overrides:
clearin classGeneratedMessage.Builder<AssetFileDef.Builder>
-
getDescriptorForType
- Specified by:
getDescriptorForTypein interfaceMessage.Builder- Specified by:
getDescriptorForTypein interfaceMessageOrBuilder- Overrides:
getDescriptorForTypein classGeneratedMessage.Builder<AssetFileDef.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<AssetFileDef.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfaceMessageLiteOrBuilder- Overrides:
isInitializedin classGeneratedMessage.Builder<AssetFileDef.Builder>
-
mergeFrom
public AssetFileDef.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfaceMessage.Builder- Specified by:
mergeFromin interfaceMessageLite.Builder- Overrides:
mergeFromin classAbstractMessage.Builder<AssetFileDef.Builder>- Throws:
IOException
-
hasTensorInfo
public boolean hasTensorInfo()The tensor to bind the asset filename to.
.tensorflow.TensorInfo tensor_info = 1;- Specified by:
hasTensorInfoin interfaceAssetFileDefOrBuilder- Returns:
- Whether the tensorInfo field is set.
-
getTensorInfo
The tensor to bind the asset filename to.
.tensorflow.TensorInfo tensor_info = 1;- Specified by:
getTensorInfoin interfaceAssetFileDefOrBuilder- Returns:
- The tensorInfo.
-
setTensorInfo
The tensor to bind the asset filename to.
.tensorflow.TensorInfo tensor_info = 1; -
setTensorInfo
The tensor to bind the asset filename to.
.tensorflow.TensorInfo tensor_info = 1; -
mergeTensorInfo
The tensor to bind the asset filename to.
.tensorflow.TensorInfo tensor_info = 1; -
clearTensorInfo
The tensor to bind the asset filename to.
.tensorflow.TensorInfo tensor_info = 1; -
getTensorInfoBuilder
The tensor to bind the asset filename to.
.tensorflow.TensorInfo tensor_info = 1; -
getTensorInfoOrBuilder
The tensor to bind the asset filename to.
.tensorflow.TensorInfo tensor_info = 1;- Specified by:
getTensorInfoOrBuilderin interfaceAssetFileDefOrBuilder
-
getFilename
The filename within an assets directory. Note: does not include the path prefix, i.e. directories. For an asset at /tmp/path/vocab.txt, the filename would be "vocab.txt".
string filename = 2;- Specified by:
getFilenamein interfaceAssetFileDefOrBuilder- Returns:
- The filename.
-
getFilenameBytes
The filename within an assets directory. Note: does not include the path prefix, i.e. directories. For an asset at /tmp/path/vocab.txt, the filename would be "vocab.txt".
string filename = 2;- Specified by:
getFilenameBytesin interfaceAssetFileDefOrBuilder- Returns:
- The bytes for filename.
-
setFilename
The filename within an assets directory. Note: does not include the path prefix, i.e. directories. For an asset at /tmp/path/vocab.txt, the filename would be "vocab.txt".
string filename = 2;- Parameters:
value- The filename to set.- Returns:
- This builder for chaining.
-
clearFilename
The filename within an assets directory. Note: does not include the path prefix, i.e. directories. For an asset at /tmp/path/vocab.txt, the filename would be "vocab.txt".
string filename = 2;- Returns:
- This builder for chaining.
-
setFilenameBytes
The filename within an assets directory. Note: does not include the path prefix, i.e. directories. For an asset at /tmp/path/vocab.txt, the filename would be "vocab.txt".
string filename = 2;- Parameters:
value- The bytes for filename to set.- Returns:
- This builder for chaining.
-