Class BundleEntryProto.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BundleEntryProto.Builder>
com.google.protobuf.GeneratedMessageV3.Builder<BundleEntryProto.Builder>
org.tensorflow.proto.BundleEntryProto.Builder
- All Implemented Interfaces:
Message.Builder, MessageLite.Builder, MessageLiteOrBuilder, MessageOrBuilder, Cloneable, BundleEntryProtoOrBuilder
- Enclosing class:
BundleEntryProto
public static final class BundleEntryProto.Builder
extends GeneratedMessageV3.Builder<BundleEntryProto.Builder>
implements BundleEntryProtoOrBuilder
Describes the metadata related to a checkpointed tensor.Protobuf type
tensorflow.BundleEntryProto-
Method Summary
Modifier and TypeMethodDescriptionaddAllSlices(Iterable<? extends TensorSliceProto> values) Iff present, this entry represents a partitioned tensor.addRepeatedField(Descriptors.FieldDescriptor field, Object value) addSlices(int index, TensorSliceProto value) Iff present, this entry represents a partitioned tensor.addSlices(int index, TensorSliceProto.Builder builderForValue) Iff present, this entry represents a partitioned tensor.addSlices(TensorSliceProto value) Iff present, this entry represents a partitioned tensor.addSlices(TensorSliceProto.Builder builderForValue) Iff present, this entry represents a partitioned tensor.Iff present, this entry represents a partitioned tensor.addSlicesBuilder(int index) Iff present, this entry represents a partitioned tensor.build()clear()The CRC32C checksum of the tensor bytes.The tensor dtype and shape.int64 offset = 4;.tensorflow.TensorShapeProto shape = 2;The binary content of the tensor lies in: File "shard_id": bytes [offset, offset + size).int64 size = 5;Iff present, this entry represents a partitioned tensor.clone()intThe CRC32C checksum of the tensor bytes.static final Descriptors.DescriptorgetDtype()The tensor dtype and shape.intThe tensor dtype and shape.longint64 offset = 4;getShape().tensorflow.TensorShapeProto shape = 2;.tensorflow.TensorShapeProto shape = 2;.tensorflow.TensorShapeProto shape = 2;intThe binary content of the tensor lies in: File "shard_id": bytes [offset, offset + size).longgetSize()int64 size = 5;getSlices(int index) Iff present, this entry represents a partitioned tensor.getSlicesBuilder(int index) Iff present, this entry represents a partitioned tensor.Iff present, this entry represents a partitioned tensor.intIff present, this entry represents a partitioned tensor.Iff present, this entry represents a partitioned tensor.getSlicesOrBuilder(int index) Iff present, this entry represents a partitioned tensor.List<? extends TensorSliceProtoOrBuilder> Iff present, this entry represents a partitioned tensor.booleanhasShape().tensorflow.TensorShapeProto shape = 2;protected GeneratedMessageV3.FieldAccessorTablefinal booleanmergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) mergeFrom(BundleEntryProto other) mergeShape(TensorShapeProto value) .tensorflow.TensorShapeProto shape = 2;final BundleEntryProto.BuildermergeUnknownFields(UnknownFieldSet unknownFields) removeSlices(int index) Iff present, this entry represents a partitioned tensor.setCrc32C(int value) The CRC32C checksum of the tensor bytes.The tensor dtype and shape.setDtypeValue(int value) The tensor dtype and shape.setField(Descriptors.FieldDescriptor field, Object value) setOffset(long value) int64 offset = 4;setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value) setShape(TensorShapeProto value) .tensorflow.TensorShapeProto shape = 2;setShape(TensorShapeProto.Builder builderForValue) .tensorflow.TensorShapeProto shape = 2;setShardId(int value) The binary content of the tensor lies in: File "shard_id": bytes [offset, offset + size).setSize(long value) int64 size = 5;setSlices(int index, TensorSliceProto value) Iff present, this entry represents a partitioned tensor.setSlices(int index, TensorSliceProto.Builder builderForValue) Iff present, this entry represents a partitioned tensor.final BundleEntryProto.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<BundleEntryProto.Builder>
-
clear
- Specified by:
clearin interfaceMessage.Builder- Specified by:
clearin interfaceMessageLite.Builder- Overrides:
clearin classGeneratedMessageV3.Builder<BundleEntryProto.Builder>
-
getDescriptorForType
- Specified by:
getDescriptorForTypein interfaceMessage.Builder- Specified by:
getDescriptorForTypein interfaceMessageOrBuilder- Overrides:
getDescriptorForTypein classGeneratedMessageV3.Builder<BundleEntryProto.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<BundleEntryProto.Builder>
-
setField
- Specified by:
setFieldin interfaceMessage.Builder- Overrides:
setFieldin classGeneratedMessageV3.Builder<BundleEntryProto.Builder>
-
clearField
- Specified by:
clearFieldin interfaceMessage.Builder- Overrides:
clearFieldin classGeneratedMessageV3.Builder<BundleEntryProto.Builder>
-
clearOneof
- Specified by:
clearOneofin interfaceMessage.Builder- Overrides:
clearOneofin classGeneratedMessageV3.Builder<BundleEntryProto.Builder>
-
setRepeatedField
public BundleEntryProto.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value) - Specified by:
setRepeatedFieldin interfaceMessage.Builder- Overrides:
setRepeatedFieldin classGeneratedMessageV3.Builder<BundleEntryProto.Builder>
-
addRepeatedField
- Specified by:
addRepeatedFieldin interfaceMessage.Builder- Overrides:
addRepeatedFieldin classGeneratedMessageV3.Builder<BundleEntryProto.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfaceMessage.Builder- Overrides:
mergeFromin classAbstractMessage.Builder<BundleEntryProto.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfaceMessageLiteOrBuilder- Overrides:
isInitializedin classGeneratedMessageV3.Builder<BundleEntryProto.Builder>
-
mergeFrom
public BundleEntryProto.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfaceMessage.Builder- Specified by:
mergeFromin interfaceMessageLite.Builder- Overrides:
mergeFromin classAbstractMessage.Builder<BundleEntryProto.Builder>- Throws:
IOException
-
getDtypeValue
public int getDtypeValue()The tensor dtype and shape.
.tensorflow.DataType dtype = 1;- Specified by:
getDtypeValuein interfaceBundleEntryProtoOrBuilder- Returns:
- The enum numeric value on the wire for dtype.
-
setDtypeValue
The tensor dtype and shape.
.tensorflow.DataType dtype = 1;- Parameters:
value- The enum numeric value on the wire for dtype to set.- Returns:
- This builder for chaining.
-
getDtype
The tensor dtype and shape.
.tensorflow.DataType dtype = 1;- Specified by:
getDtypein interfaceBundleEntryProtoOrBuilder- Returns:
- The dtype.
-
setDtype
The tensor dtype and shape.
.tensorflow.DataType dtype = 1;- Parameters:
value- The dtype to set.- Returns:
- This builder for chaining.
-
clearDtype
The tensor dtype and shape.
.tensorflow.DataType dtype = 1;- Returns:
- This builder for chaining.
-
hasShape
public boolean hasShape().tensorflow.TensorShapeProto shape = 2;- Specified by:
hasShapein interfaceBundleEntryProtoOrBuilder- Returns:
- Whether the shape field is set.
-
getShape
.tensorflow.TensorShapeProto shape = 2;- Specified by:
getShapein interfaceBundleEntryProtoOrBuilder- Returns:
- The shape.
-
setShape
.tensorflow.TensorShapeProto shape = 2; -
setShape
.tensorflow.TensorShapeProto shape = 2; -
mergeShape
.tensorflow.TensorShapeProto shape = 2; -
clearShape
.tensorflow.TensorShapeProto shape = 2; -
getShapeBuilder
.tensorflow.TensorShapeProto shape = 2; -
getShapeOrBuilder
.tensorflow.TensorShapeProto shape = 2;- Specified by:
getShapeOrBuilderin interfaceBundleEntryProtoOrBuilder
-
getShardId
public int getShardId()The binary content of the tensor lies in: File "shard_id": bytes [offset, offset + size).
int32 shard_id = 3;- Specified by:
getShardIdin interfaceBundleEntryProtoOrBuilder- Returns:
- The shardId.
-
setShardId
The binary content of the tensor lies in: File "shard_id": bytes [offset, offset + size).
int32 shard_id = 3;- Parameters:
value- The shardId to set.- Returns:
- This builder for chaining.
-
clearShardId
The binary content of the tensor lies in: File "shard_id": bytes [offset, offset + size).
int32 shard_id = 3;- Returns:
- This builder for chaining.
-
getOffset
public long getOffset()int64 offset = 4;- Specified by:
getOffsetin interfaceBundleEntryProtoOrBuilder- Returns:
- The offset.
-
setOffset
int64 offset = 4;- Parameters:
value- The offset to set.- Returns:
- This builder for chaining.
-
clearOffset
-
getSize
public long getSize()int64 size = 5;- Specified by:
getSizein interfaceBundleEntryProtoOrBuilder- Returns:
- The size.
-
setSize
int64 size = 5;- Parameters:
value- The size to set.- Returns:
- This builder for chaining.
-
clearSize
-
getCrc32C
public int getCrc32C()The CRC32C checksum of the tensor bytes.
fixed32 crc32c = 6;- Specified by:
getCrc32Cin interfaceBundleEntryProtoOrBuilder- Returns:
- The crc32c.
-
setCrc32C
The CRC32C checksum of the tensor bytes.
fixed32 crc32c = 6;- Parameters:
value- The crc32c to set.- Returns:
- This builder for chaining.
-
clearCrc32C
The CRC32C checksum of the tensor bytes.
fixed32 crc32c = 6;- Returns:
- This builder for chaining.
-
getSlicesList
Iff present, this entry represents a partitioned tensor. The previous fields are interpreted as follows: "dtype", "shape": describe the full tensor. "shard_id", "offset", "size", "crc32c": all IGNORED. These information for each slice can be looked up in their own BundleEntryProto, keyed by each "slice_name".repeated .tensorflow.TensorSliceProto slices = 7;- Specified by:
getSlicesListin interfaceBundleEntryProtoOrBuilder
-
getSlicesCount
public int getSlicesCount()Iff present, this entry represents a partitioned tensor. The previous fields are interpreted as follows: "dtype", "shape": describe the full tensor. "shard_id", "offset", "size", "crc32c": all IGNORED. These information for each slice can be looked up in their own BundleEntryProto, keyed by each "slice_name".repeated .tensorflow.TensorSliceProto slices = 7;- Specified by:
getSlicesCountin interfaceBundleEntryProtoOrBuilder
-
getSlices
Iff present, this entry represents a partitioned tensor. The previous fields are interpreted as follows: "dtype", "shape": describe the full tensor. "shard_id", "offset", "size", "crc32c": all IGNORED. These information for each slice can be looked up in their own BundleEntryProto, keyed by each "slice_name".repeated .tensorflow.TensorSliceProto slices = 7;- Specified by:
getSlicesin interfaceBundleEntryProtoOrBuilder
-
setSlices
Iff present, this entry represents a partitioned tensor. The previous fields are interpreted as follows: "dtype", "shape": describe the full tensor. "shard_id", "offset", "size", "crc32c": all IGNORED. These information for each slice can be looked up in their own BundleEntryProto, keyed by each "slice_name".repeated .tensorflow.TensorSliceProto slices = 7; -
setSlices
Iff present, this entry represents a partitioned tensor. The previous fields are interpreted as follows: "dtype", "shape": describe the full tensor. "shard_id", "offset", "size", "crc32c": all IGNORED. These information for each slice can be looked up in their own BundleEntryProto, keyed by each "slice_name".repeated .tensorflow.TensorSliceProto slices = 7; -
addSlices
Iff present, this entry represents a partitioned tensor. The previous fields are interpreted as follows: "dtype", "shape": describe the full tensor. "shard_id", "offset", "size", "crc32c": all IGNORED. These information for each slice can be looked up in their own BundleEntryProto, keyed by each "slice_name".repeated .tensorflow.TensorSliceProto slices = 7; -
addSlices
Iff present, this entry represents a partitioned tensor. The previous fields are interpreted as follows: "dtype", "shape": describe the full tensor. "shard_id", "offset", "size", "crc32c": all IGNORED. These information for each slice can be looked up in their own BundleEntryProto, keyed by each "slice_name".repeated .tensorflow.TensorSliceProto slices = 7; -
addSlices
Iff present, this entry represents a partitioned tensor. The previous fields are interpreted as follows: "dtype", "shape": describe the full tensor. "shard_id", "offset", "size", "crc32c": all IGNORED. These information for each slice can be looked up in their own BundleEntryProto, keyed by each "slice_name".repeated .tensorflow.TensorSliceProto slices = 7; -
addSlices
Iff present, this entry represents a partitioned tensor. The previous fields are interpreted as follows: "dtype", "shape": describe the full tensor. "shard_id", "offset", "size", "crc32c": all IGNORED. These information for each slice can be looked up in their own BundleEntryProto, keyed by each "slice_name".repeated .tensorflow.TensorSliceProto slices = 7; -
addAllSlices
Iff present, this entry represents a partitioned tensor. The previous fields are interpreted as follows: "dtype", "shape": describe the full tensor. "shard_id", "offset", "size", "crc32c": all IGNORED. These information for each slice can be looked up in their own BundleEntryProto, keyed by each "slice_name".repeated .tensorflow.TensorSliceProto slices = 7; -
clearSlices
Iff present, this entry represents a partitioned tensor. The previous fields are interpreted as follows: "dtype", "shape": describe the full tensor. "shard_id", "offset", "size", "crc32c": all IGNORED. These information for each slice can be looked up in their own BundleEntryProto, keyed by each "slice_name".repeated .tensorflow.TensorSliceProto slices = 7; -
removeSlices
Iff present, this entry represents a partitioned tensor. The previous fields are interpreted as follows: "dtype", "shape": describe the full tensor. "shard_id", "offset", "size", "crc32c": all IGNORED. These information for each slice can be looked up in their own BundleEntryProto, keyed by each "slice_name".repeated .tensorflow.TensorSliceProto slices = 7; -
getSlicesBuilder
Iff present, this entry represents a partitioned tensor. The previous fields are interpreted as follows: "dtype", "shape": describe the full tensor. "shard_id", "offset", "size", "crc32c": all IGNORED. These information for each slice can be looked up in their own BundleEntryProto, keyed by each "slice_name".repeated .tensorflow.TensorSliceProto slices = 7; -
getSlicesOrBuilder
Iff present, this entry represents a partitioned tensor. The previous fields are interpreted as follows: "dtype", "shape": describe the full tensor. "shard_id", "offset", "size", "crc32c": all IGNORED. These information for each slice can be looked up in their own BundleEntryProto, keyed by each "slice_name".repeated .tensorflow.TensorSliceProto slices = 7;- Specified by:
getSlicesOrBuilderin interfaceBundleEntryProtoOrBuilder
-
getSlicesOrBuilderList
Iff present, this entry represents a partitioned tensor. The previous fields are interpreted as follows: "dtype", "shape": describe the full tensor. "shard_id", "offset", "size", "crc32c": all IGNORED. These information for each slice can be looked up in their own BundleEntryProto, keyed by each "slice_name".repeated .tensorflow.TensorSliceProto slices = 7;- Specified by:
getSlicesOrBuilderListin interfaceBundleEntryProtoOrBuilder
-
addSlicesBuilder
Iff present, this entry represents a partitioned tensor. The previous fields are interpreted as follows: "dtype", "shape": describe the full tensor. "shard_id", "offset", "size", "crc32c": all IGNORED. These information for each slice can be looked up in their own BundleEntryProto, keyed by each "slice_name".repeated .tensorflow.TensorSliceProto slices = 7; -
addSlicesBuilder
Iff present, this entry represents a partitioned tensor. The previous fields are interpreted as follows: "dtype", "shape": describe the full tensor. "shard_id", "offset", "size", "crc32c": all IGNORED. These information for each slice can be looked up in their own BundleEntryProto, keyed by each "slice_name".repeated .tensorflow.TensorSliceProto slices = 7; -
getSlicesBuilderList
Iff present, this entry represents a partitioned tensor. The previous fields are interpreted as follows: "dtype", "shape": describe the full tensor. "shard_id", "offset", "size", "crc32c": all IGNORED. These information for each slice can be looked up in their own BundleEntryProto, keyed by each "slice_name".repeated .tensorflow.TensorSliceProto slices = 7; -
setUnknownFields
- Specified by:
setUnknownFieldsin interfaceMessage.Builder- Overrides:
setUnknownFieldsin classGeneratedMessageV3.Builder<BundleEntryProto.Builder>
-
mergeUnknownFields
- Specified by:
mergeUnknownFieldsin interfaceMessage.Builder- Overrides:
mergeUnknownFieldsin classGeneratedMessageV3.Builder<BundleEntryProto.Builder>
-