public static final class BundleEntryProto.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<BundleEntryProto.Builder> implements BundleEntryProtoOrBuilder
Describes the metadata related to a checkpointed tensor.Protobuf type
tensorflow.BundleEntryProto| Modifier and Type | Method and Description |
|---|---|
BundleEntryProto.Builder |
addAllSlices(Iterable<? extends TensorSliceProto> values)
Iff present, this entry represents a partitioned tensor.
|
BundleEntryProto.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
BundleEntryProto.Builder |
addSlices(int index,
TensorSliceProto.Builder builderForValue)
Iff present, this entry represents a partitioned tensor.
|
BundleEntryProto.Builder |
addSlices(int index,
TensorSliceProto value)
Iff present, this entry represents a partitioned tensor.
|
BundleEntryProto.Builder |
addSlices(TensorSliceProto.Builder builderForValue)
Iff present, this entry represents a partitioned tensor.
|
BundleEntryProto.Builder |
addSlices(TensorSliceProto value)
Iff present, this entry represents a partitioned tensor.
|
TensorSliceProto.Builder |
addSlicesBuilder()
Iff present, this entry represents a partitioned tensor.
|
TensorSliceProto.Builder |
addSlicesBuilder(int index)
Iff present, this entry represents a partitioned tensor.
|
BundleEntryProto |
build() |
BundleEntryProto |
buildPartial() |
BundleEntryProto.Builder |
clear() |
BundleEntryProto.Builder |
clearCrc32C()
The CRC32C checksum of the tensor bytes.
|
BundleEntryProto.Builder |
clearDtype()
The tensor dtype and shape.
|
BundleEntryProto.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
BundleEntryProto.Builder |
clearOffset()
int64 offset = 4; |
BundleEntryProto.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
BundleEntryProto.Builder |
clearShape()
.tensorflow.TensorShapeProto shape = 2; |
BundleEntryProto.Builder |
clearShardId()
The binary content of the tensor lies in:
File "shard_id": bytes [offset, offset + size).
|
BundleEntryProto.Builder |
clearSize()
int64 size = 5; |
BundleEntryProto.Builder |
clearSlices()
Iff present, this entry represents a partitioned tensor.
|
BundleEntryProto.Builder |
clone() |
int |
getCrc32C()
The CRC32C checksum of the tensor bytes.
|
BundleEntryProto |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
DataType |
getDtype()
The tensor dtype and shape.
|
int |
getDtypeValue()
The tensor dtype and shape.
|
long |
getOffset()
int64 offset = 4; |
TensorShapeProto |
getShape()
.tensorflow.TensorShapeProto shape = 2; |
TensorShapeProto.Builder |
getShapeBuilder()
.tensorflow.TensorShapeProto shape = 2; |
TensorShapeProtoOrBuilder |
getShapeOrBuilder()
.tensorflow.TensorShapeProto shape = 2; |
int |
getShardId()
The binary content of the tensor lies in:
File "shard_id": bytes [offset, offset + size).
|
long |
getSize()
int64 size = 5; |
TensorSliceProto |
getSlices(int index)
Iff present, this entry represents a partitioned tensor.
|
TensorSliceProto.Builder |
getSlicesBuilder(int index)
Iff present, this entry represents a partitioned tensor.
|
List<TensorSliceProto.Builder> |
getSlicesBuilderList()
Iff present, this entry represents a partitioned tensor.
|
int |
getSlicesCount()
Iff present, this entry represents a partitioned tensor.
|
List<TensorSliceProto> |
getSlicesList()
Iff present, this entry represents a partitioned tensor.
|
TensorSliceProtoOrBuilder |
getSlicesOrBuilder(int index)
Iff present, this entry represents a partitioned tensor.
|
List<? extends TensorSliceProtoOrBuilder> |
getSlicesOrBuilderList()
Iff present, this entry represents a partitioned tensor.
|
boolean |
hasShape()
.tensorflow.TensorShapeProto shape = 2; |
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
BundleEntryProto.Builder |
mergeFrom(BundleEntryProto other) |
BundleEntryProto.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
BundleEntryProto.Builder |
mergeFrom(com.google.protobuf.Message other) |
BundleEntryProto.Builder |
mergeShape(TensorShapeProto value)
.tensorflow.TensorShapeProto shape = 2; |
BundleEntryProto.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
BundleEntryProto.Builder |
removeSlices(int index)
Iff present, this entry represents a partitioned tensor.
|
BundleEntryProto.Builder |
setCrc32C(int value)
The CRC32C checksum of the tensor bytes.
|
BundleEntryProto.Builder |
setDtype(DataType value)
The tensor dtype and shape.
|
BundleEntryProto.Builder |
setDtypeValue(int value)
The tensor dtype and shape.
|
BundleEntryProto.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
BundleEntryProto.Builder |
setOffset(long value)
int64 offset = 4; |
BundleEntryProto.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
BundleEntryProto.Builder |
setShape(TensorShapeProto.Builder builderForValue)
.tensorflow.TensorShapeProto shape = 2; |
BundleEntryProto.Builder |
setShape(TensorShapeProto value)
.tensorflow.TensorShapeProto shape = 2; |
BundleEntryProto.Builder |
setShardId(int value)
The binary content of the tensor lies in:
File "shard_id": bytes [offset, offset + size).
|
BundleEntryProto.Builder |
setSize(long value)
int64 size = 5; |
BundleEntryProto.Builder |
setSlices(int index,
TensorSliceProto.Builder builderForValue)
Iff present, this entry represents a partitioned tensor.
|
BundleEntryProto.Builder |
setSlices(int index,
TensorSliceProto value)
Iff present, this entry represents a partitioned tensor.
|
BundleEntryProto.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<BundleEntryProto.Builder>public BundleEntryProto.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<BundleEntryProto.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<BundleEntryProto.Builder>public BundleEntryProto getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic BundleEntryProto build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic BundleEntryProto buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic BundleEntryProto.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<BundleEntryProto.Builder>public BundleEntryProto.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<BundleEntryProto.Builder>public BundleEntryProto.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<BundleEntryProto.Builder>public BundleEntryProto.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<BundleEntryProto.Builder>public BundleEntryProto.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<BundleEntryProto.Builder>public BundleEntryProto.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<BundleEntryProto.Builder>public BundleEntryProto.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<BundleEntryProto.Builder>public BundleEntryProto.Builder mergeFrom(BundleEntryProto other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<BundleEntryProto.Builder>public BundleEntryProto.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<BundleEntryProto.Builder>IOExceptionpublic int getDtypeValue()
The tensor dtype and shape.
.tensorflow.DataType dtype = 1;getDtypeValue in interface BundleEntryProtoOrBuilderpublic BundleEntryProto.Builder setDtypeValue(int value)
The tensor dtype and shape.
.tensorflow.DataType dtype = 1;public DataType getDtype()
The tensor dtype and shape.
.tensorflow.DataType dtype = 1;getDtype in interface BundleEntryProtoOrBuilderpublic BundleEntryProto.Builder setDtype(DataType value)
The tensor dtype and shape.
.tensorflow.DataType dtype = 1;public BundleEntryProto.Builder clearDtype()
The tensor dtype and shape.
.tensorflow.DataType dtype = 1;public boolean hasShape()
.tensorflow.TensorShapeProto shape = 2;hasShape in interface BundleEntryProtoOrBuilderpublic TensorShapeProto getShape()
.tensorflow.TensorShapeProto shape = 2;getShape in interface BundleEntryProtoOrBuilderpublic BundleEntryProto.Builder setShape(TensorShapeProto value)
.tensorflow.TensorShapeProto shape = 2;public BundleEntryProto.Builder setShape(TensorShapeProto.Builder builderForValue)
.tensorflow.TensorShapeProto shape = 2;public BundleEntryProto.Builder mergeShape(TensorShapeProto value)
.tensorflow.TensorShapeProto shape = 2;public BundleEntryProto.Builder clearShape()
.tensorflow.TensorShapeProto shape = 2;public TensorShapeProto.Builder getShapeBuilder()
.tensorflow.TensorShapeProto shape = 2;public TensorShapeProtoOrBuilder getShapeOrBuilder()
.tensorflow.TensorShapeProto shape = 2;getShapeOrBuilder in interface BundleEntryProtoOrBuilderpublic int getShardId()
The binary content of the tensor lies in: File "shard_id": bytes [offset, offset + size).
int32 shard_id = 3;getShardId in interface BundleEntryProtoOrBuilderpublic BundleEntryProto.Builder setShardId(int value)
The binary content of the tensor lies in: File "shard_id": bytes [offset, offset + size).
int32 shard_id = 3;public BundleEntryProto.Builder clearShardId()
The binary content of the tensor lies in: File "shard_id": bytes [offset, offset + size).
int32 shard_id = 3;public long getOffset()
int64 offset = 4;getOffset in interface BundleEntryProtoOrBuilderpublic BundleEntryProto.Builder setOffset(long value)
int64 offset = 4;public BundleEntryProto.Builder clearOffset()
int64 offset = 4;public long getSize()
int64 size = 5;getSize in interface BundleEntryProtoOrBuilderpublic BundleEntryProto.Builder setSize(long value)
int64 size = 5;public BundleEntryProto.Builder clearSize()
int64 size = 5;public int getCrc32C()
The CRC32C checksum of the tensor bytes.
fixed32 crc32c = 6;getCrc32C in interface BundleEntryProtoOrBuilderpublic BundleEntryProto.Builder setCrc32C(int value)
The CRC32C checksum of the tensor bytes.
fixed32 crc32c = 6;public BundleEntryProto.Builder clearCrc32C()
The CRC32C checksum of the tensor bytes.
fixed32 crc32c = 6;public List<TensorSliceProto> 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;getSlicesList in interface BundleEntryProtoOrBuilderpublic 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;getSlicesCount in interface BundleEntryProtoOrBuilderpublic TensorSliceProto getSlices(int index)
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;getSlices in interface BundleEntryProtoOrBuilderpublic BundleEntryProto.Builder setSlices(int index, TensorSliceProto value)
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;public BundleEntryProto.Builder setSlices(int index, TensorSliceProto.Builder builderForValue)
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;public BundleEntryProto.Builder addSlices(TensorSliceProto value)
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;public BundleEntryProto.Builder addSlices(int index, TensorSliceProto value)
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;public BundleEntryProto.Builder addSlices(TensorSliceProto.Builder builderForValue)
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;public BundleEntryProto.Builder addSlices(int index, TensorSliceProto.Builder builderForValue)
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;public BundleEntryProto.Builder addAllSlices(Iterable<? extends TensorSliceProto> values)
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;public BundleEntryProto.Builder 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;public BundleEntryProto.Builder removeSlices(int index)
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;public TensorSliceProto.Builder getSlicesBuilder(int index)
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;public TensorSliceProtoOrBuilder getSlicesOrBuilder(int index)
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 in interface BundleEntryProtoOrBuilderpublic List<? extends TensorSliceProtoOrBuilder> 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;getSlicesOrBuilderList in interface BundleEntryProtoOrBuilderpublic TensorSliceProto.Builder 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;public TensorSliceProto.Builder addSlicesBuilder(int index)
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;public List<TensorSliceProto.Builder> 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;public final BundleEntryProto.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<BundleEntryProto.Builder>public final BundleEntryProto.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<BundleEntryProto.Builder>Copyright © 2015–2019. All rights reserved.