Class SavedSliceMeta.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<SavedSliceMeta.Builder>
com.google.protobuf.GeneratedMessage.Builder<SavedSliceMeta.Builder>
org.tensorflow.proto.SavedSliceMeta.Builder
- All Implemented Interfaces:
Message.Builder, MessageLite.Builder, MessageLiteOrBuilder, MessageOrBuilder, Cloneable, SavedSliceMetaOrBuilder
- Enclosing class:
SavedSliceMeta
public static final class SavedSliceMeta.Builder
extends GeneratedMessage.Builder<SavedSliceMeta.Builder>
implements SavedSliceMetaOrBuilder
Metadata describing the set of slices of the same tensor saved in a checkpoint file.Protobuf type
tensorflow.SavedSliceMeta-
Method Summary
Modifier and TypeMethodDescriptionaddAllSlice(Iterable<? extends TensorSliceProto> values) Explicit list of slices saved in the checkpoint file.addSlice(int index, TensorSliceProto value) Explicit list of slices saved in the checkpoint file.addSlice(int index, TensorSliceProto.Builder builderForValue) Explicit list of slices saved in the checkpoint file.addSlice(TensorSliceProto value) Explicit list of slices saved in the checkpoint file.addSlice(TensorSliceProto.Builder builderForValue) Explicit list of slices saved in the checkpoint file.Explicit list of slices saved in the checkpoint file.addSliceBuilder(int index) Explicit list of slices saved in the checkpoint file.build()clear()Name of the tensor.Shape of the tensorExplicit list of slices saved in the checkpoint file.Type of the tensorstatic final Descriptors.DescriptorgetName()Name of the tensor.Name of the tensor.getShape()Shape of the tensorShape of the tensorShape of the tensorgetSlice(int index) Explicit list of slices saved in the checkpoint file.getSliceBuilder(int index) Explicit list of slices saved in the checkpoint file.Explicit list of slices saved in the checkpoint file.intExplicit list of slices saved in the checkpoint file.Explicit list of slices saved in the checkpoint file.getSliceOrBuilder(int index) Explicit list of slices saved in the checkpoint file.List<? extends TensorSliceProtoOrBuilder> Explicit list of slices saved in the checkpoint file.getType()Type of the tensorintType of the tensorbooleanhasShape()Shape of the tensorprotected GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) mergeFrom(SavedSliceMeta other) mergeShape(TensorShapeProto value) Shape of the tensorremoveSlice(int index) Explicit list of slices saved in the checkpoint file.Name of the tensor.setNameBytes(ByteString value) Name of the tensor.setShape(TensorShapeProto value) Shape of the tensorsetShape(TensorShapeProto.Builder builderForValue) Shape of the tensorsetSlice(int index, TensorSliceProto value) Explicit list of slices saved in the checkpoint file.setSlice(int index, TensorSliceProto.Builder builderForValue) Explicit list of slices saved in the checkpoint file.Type of the tensorsetTypeValue(int value) Type of the tensorMethods 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<SavedSliceMeta.Builder>
-
clear
- Specified by:
clearin interfaceMessage.Builder- Specified by:
clearin interfaceMessageLite.Builder- Overrides:
clearin classGeneratedMessage.Builder<SavedSliceMeta.Builder>
-
getDescriptorForType
- Specified by:
getDescriptorForTypein interfaceMessage.Builder- Specified by:
getDescriptorForTypein interfaceMessageOrBuilder- Overrides:
getDescriptorForTypein classGeneratedMessage.Builder<SavedSliceMeta.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<SavedSliceMeta.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfaceMessageLiteOrBuilder- Overrides:
isInitializedin classGeneratedMessage.Builder<SavedSliceMeta.Builder>
-
mergeFrom
public SavedSliceMeta.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfaceMessage.Builder- Specified by:
mergeFromin interfaceMessageLite.Builder- Overrides:
mergeFromin classAbstractMessage.Builder<SavedSliceMeta.Builder>- Throws:
IOException
-
getName
Name of the tensor.
string name = 1;- Specified by:
getNamein interfaceSavedSliceMetaOrBuilder- Returns:
- The name.
-
getNameBytes
Name of the tensor.
string name = 1;- Specified by:
getNameBytesin interfaceSavedSliceMetaOrBuilder- Returns:
- The bytes for name.
-
setName
Name of the tensor.
string name = 1;- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
Name of the tensor.
string name = 1;- Returns:
- This builder for chaining.
-
setNameBytes
Name of the tensor.
string name = 1;- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
hasShape
public boolean hasShape()Shape of the tensor
.tensorflow.TensorShapeProto shape = 2;- Specified by:
hasShapein interfaceSavedSliceMetaOrBuilder- Returns:
- Whether the shape field is set.
-
getShape
Shape of the tensor
.tensorflow.TensorShapeProto shape = 2;- Specified by:
getShapein interfaceSavedSliceMetaOrBuilder- Returns:
- The shape.
-
setShape
Shape of the tensor
.tensorflow.TensorShapeProto shape = 2; -
setShape
Shape of the tensor
.tensorflow.TensorShapeProto shape = 2; -
mergeShape
Shape of the tensor
.tensorflow.TensorShapeProto shape = 2; -
clearShape
Shape of the tensor
.tensorflow.TensorShapeProto shape = 2; -
getShapeBuilder
Shape of the tensor
.tensorflow.TensorShapeProto shape = 2; -
getShapeOrBuilder
Shape of the tensor
.tensorflow.TensorShapeProto shape = 2;- Specified by:
getShapeOrBuilderin interfaceSavedSliceMetaOrBuilder
-
getTypeValue
public int getTypeValue()Type of the tensor
.tensorflow.DataType type = 3;- Specified by:
getTypeValuein interfaceSavedSliceMetaOrBuilder- Returns:
- The enum numeric value on the wire for type.
-
setTypeValue
Type of the tensor
.tensorflow.DataType type = 3;- Parameters:
value- The enum numeric value on the wire for type to set.- Returns:
- This builder for chaining.
-
getType
Type of the tensor
.tensorflow.DataType type = 3;- Specified by:
getTypein interfaceSavedSliceMetaOrBuilder- Returns:
- The type.
-
setType
Type of the tensor
.tensorflow.DataType type = 3;- Parameters:
value- The type to set.- Returns:
- This builder for chaining.
-
clearType
Type of the tensor
.tensorflow.DataType type = 3;- Returns:
- This builder for chaining.
-
getSliceList
Explicit list of slices saved in the checkpoint file.
repeated .tensorflow.TensorSliceProto slice = 4;- Specified by:
getSliceListin interfaceSavedSliceMetaOrBuilder
-
getSliceCount
public int getSliceCount()Explicit list of slices saved in the checkpoint file.
repeated .tensorflow.TensorSliceProto slice = 4;- Specified by:
getSliceCountin interfaceSavedSliceMetaOrBuilder
-
getSlice
Explicit list of slices saved in the checkpoint file.
repeated .tensorflow.TensorSliceProto slice = 4;- Specified by:
getSlicein interfaceSavedSliceMetaOrBuilder
-
setSlice
Explicit list of slices saved in the checkpoint file.
repeated .tensorflow.TensorSliceProto slice = 4; -
setSlice
Explicit list of slices saved in the checkpoint file.
repeated .tensorflow.TensorSliceProto slice = 4; -
addSlice
Explicit list of slices saved in the checkpoint file.
repeated .tensorflow.TensorSliceProto slice = 4; -
addSlice
Explicit list of slices saved in the checkpoint file.
repeated .tensorflow.TensorSliceProto slice = 4; -
addSlice
Explicit list of slices saved in the checkpoint file.
repeated .tensorflow.TensorSliceProto slice = 4; -
addSlice
Explicit list of slices saved in the checkpoint file.
repeated .tensorflow.TensorSliceProto slice = 4; -
addAllSlice
Explicit list of slices saved in the checkpoint file.
repeated .tensorflow.TensorSliceProto slice = 4; -
clearSlice
Explicit list of slices saved in the checkpoint file.
repeated .tensorflow.TensorSliceProto slice = 4; -
removeSlice
Explicit list of slices saved in the checkpoint file.
repeated .tensorflow.TensorSliceProto slice = 4; -
getSliceBuilder
Explicit list of slices saved in the checkpoint file.
repeated .tensorflow.TensorSliceProto slice = 4; -
getSliceOrBuilder
Explicit list of slices saved in the checkpoint file.
repeated .tensorflow.TensorSliceProto slice = 4;- Specified by:
getSliceOrBuilderin interfaceSavedSliceMetaOrBuilder
-
getSliceOrBuilderList
Explicit list of slices saved in the checkpoint file.
repeated .tensorflow.TensorSliceProto slice = 4;- Specified by:
getSliceOrBuilderListin interfaceSavedSliceMetaOrBuilder
-
addSliceBuilder
Explicit list of slices saved in the checkpoint file.
repeated .tensorflow.TensorSliceProto slice = 4; -
addSliceBuilder
Explicit list of slices saved in the checkpoint file.
repeated .tensorflow.TensorSliceProto slice = 4; -
getSliceBuilderList
Explicit list of slices saved in the checkpoint file.
repeated .tensorflow.TensorSliceProto slice = 4;
-