Class SavedSliceMeta.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<SavedSliceMeta.Builder>
com.google.protobuf.GeneratedMessageV3.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 GeneratedMessageV3.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.addRepeatedField(Descriptors.FieldDescriptor field, Object value) 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 tensorclone()static 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 GeneratedMessageV3.FieldAccessorTablefinal booleanmergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) mergeFrom(SavedSliceMeta other) mergeShape(TensorShapeProto value) Shape of the tensorfinal SavedSliceMeta.BuildermergeUnknownFields(UnknownFieldSet unknownFields) removeSlice(int index) Explicit list of slices saved in the checkpoint file.setField(Descriptors.FieldDescriptor field, Object value) Name of the tensor.setNameBytes(ByteString value) Name of the tensor.setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value) 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 tensorfinal SavedSliceMeta.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<SavedSliceMeta.Builder>
-
clear
- Specified by:
clearin interfaceMessage.Builder- Specified by:
clearin interfaceMessageLite.Builder- Overrides:
clearin classGeneratedMessageV3.Builder<SavedSliceMeta.Builder>
-
getDescriptorForType
- Specified by:
getDescriptorForTypein interfaceMessage.Builder- Specified by:
getDescriptorForTypein interfaceMessageOrBuilder- Overrides:
getDescriptorForTypein classGeneratedMessageV3.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
-
clone
- Specified by:
clonein interfaceMessage.Builder- Specified by:
clonein interfaceMessageLite.Builder- Overrides:
clonein classGeneratedMessageV3.Builder<SavedSliceMeta.Builder>
-
setField
- Specified by:
setFieldin interfaceMessage.Builder- Overrides:
setFieldin classGeneratedMessageV3.Builder<SavedSliceMeta.Builder>
-
clearField
- Specified by:
clearFieldin interfaceMessage.Builder- Overrides:
clearFieldin classGeneratedMessageV3.Builder<SavedSliceMeta.Builder>
-
clearOneof
- Specified by:
clearOneofin interfaceMessage.Builder- Overrides:
clearOneofin classGeneratedMessageV3.Builder<SavedSliceMeta.Builder>
-
setRepeatedField
public SavedSliceMeta.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value) - Specified by:
setRepeatedFieldin interfaceMessage.Builder- Overrides:
setRepeatedFieldin classGeneratedMessageV3.Builder<SavedSliceMeta.Builder>
-
addRepeatedField
- Specified by:
addRepeatedFieldin interfaceMessage.Builder- Overrides:
addRepeatedFieldin classGeneratedMessageV3.Builder<SavedSliceMeta.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 classGeneratedMessageV3.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; -
setUnknownFields
- Specified by:
setUnknownFieldsin interfaceMessage.Builder- Overrides:
setUnknownFieldsin classGeneratedMessageV3.Builder<SavedSliceMeta.Builder>
-
mergeUnknownFields
- Specified by:
mergeUnknownFieldsin interfaceMessage.Builder- Overrides:
mergeUnknownFieldsin classGeneratedMessageV3.Builder<SavedSliceMeta.Builder>
-