Class BundleEntryProto.Builder

All Implemented Interfaces:
Message.Builder, MessageLite.Builder, MessageLiteOrBuilder, MessageOrBuilder, Cloneable, BundleEntryProtoOrBuilder
Enclosing class:
BundleEntryProto

public static final class BundleEntryProto.Builder extends GeneratedMessage.Builder<BundleEntryProto.Builder> implements BundleEntryProtoOrBuilder
Describes the metadata related to a checkpointed tensor.
Protobuf type tensorflow.BundleEntryProto
  • Method Details

    • getDescriptor

      public static final Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class GeneratedMessage.Builder<BundleEntryProto.Builder>
    • clear

      public BundleEntryProto.Builder clear()
      Specified by:
      clear in interface Message.Builder
      Specified by:
      clear in interface MessageLite.Builder
      Overrides:
      clear in class GeneratedMessage.Builder<BundleEntryProto.Builder>
    • getDescriptorForType

      public Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface Message.Builder
      Specified by:
      getDescriptorForType in interface MessageOrBuilder
      Overrides:
      getDescriptorForType in class GeneratedMessage.Builder<BundleEntryProto.Builder>
    • getDefaultInstanceForType

      public BundleEntryProto getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface MessageOrBuilder
    • build

      public BundleEntryProto build()
      Specified by:
      build in interface Message.Builder
      Specified by:
      build in interface MessageLite.Builder
    • buildPartial

      public BundleEntryProto buildPartial()
      Specified by:
      buildPartial in interface Message.Builder
      Specified by:
      buildPartial in interface MessageLite.Builder
    • mergeFrom

      public BundleEntryProto.Builder mergeFrom(Message other)
      Specified by:
      mergeFrom in interface Message.Builder
      Overrides:
      mergeFrom in class AbstractMessage.Builder<BundleEntryProto.Builder>
    • mergeFrom

      public BundleEntryProto.Builder mergeFrom(BundleEntryProto other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface MessageLiteOrBuilder
      Overrides:
      isInitialized in class GeneratedMessage.Builder<BundleEntryProto.Builder>
    • mergeFrom

      public BundleEntryProto.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface Message.Builder
      Specified by:
      mergeFrom in interface MessageLite.Builder
      Overrides:
      mergeFrom in class AbstractMessage.Builder<BundleEntryProto.Builder>
      Throws:
      IOException
    • getDtypeValue

      public int getDtypeValue()
      The tensor dtype and shape.
      
      .tensorflow.DataType dtype = 1;
      Specified by:
      getDtypeValue in interface BundleEntryProtoOrBuilder
      Returns:
      The enum numeric value on the wire for dtype.
    • setDtypeValue

      public BundleEntryProto.Builder setDtypeValue(int value)
      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

      public DataType getDtype()
      The tensor dtype and shape.
      
      .tensorflow.DataType dtype = 1;
      Specified by:
      getDtype in interface BundleEntryProtoOrBuilder
      Returns:
      The dtype.
    • setDtype

      public BundleEntryProto.Builder setDtype(DataType value)
      The tensor dtype and shape.
      
      .tensorflow.DataType dtype = 1;
      Parameters:
      value - The dtype to set.
      Returns:
      This builder for chaining.
    • clearDtype

      public BundleEntryProto.Builder 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:
      hasShape in interface BundleEntryProtoOrBuilder
      Returns:
      Whether the shape field is set.
    • getShape

      public TensorShapeProto getShape()
      .tensorflow.TensorShapeProto shape = 2;
      Specified by:
      getShape in interface BundleEntryProtoOrBuilder
      Returns:
      The shape.
    • setShape

      public BundleEntryProto.Builder setShape(TensorShapeProto value)
      .tensorflow.TensorShapeProto shape = 2;
    • setShape

      public BundleEntryProto.Builder setShape(TensorShapeProto.Builder builderForValue)
      .tensorflow.TensorShapeProto shape = 2;
    • mergeShape

      public BundleEntryProto.Builder mergeShape(TensorShapeProto value)
      .tensorflow.TensorShapeProto shape = 2;
    • clearShape

      public BundleEntryProto.Builder clearShape()
      .tensorflow.TensorShapeProto shape = 2;
    • getShapeBuilder

      public TensorShapeProto.Builder getShapeBuilder()
      .tensorflow.TensorShapeProto shape = 2;
    • getShapeOrBuilder

      public TensorShapeProtoOrBuilder getShapeOrBuilder()
      .tensorflow.TensorShapeProto shape = 2;
      Specified by:
      getShapeOrBuilder in interface BundleEntryProtoOrBuilder
    • 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:
      getShardId in interface BundleEntryProtoOrBuilder
      Returns:
      The shardId.
    • setShardId

      public BundleEntryProto.Builder setShardId(int value)
      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

      public BundleEntryProto.Builder 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:
      getOffset in interface BundleEntryProtoOrBuilder
      Returns:
      The offset.
    • setOffset

      public BundleEntryProto.Builder setOffset(long value)
      int64 offset = 4;
      Parameters:
      value - The offset to set.
      Returns:
      This builder for chaining.
    • clearOffset

      public BundleEntryProto.Builder clearOffset()
      int64 offset = 4;
      Returns:
      This builder for chaining.
    • getSize

      public long getSize()
      int64 size = 5;
      Specified by:
      getSize in interface BundleEntryProtoOrBuilder
      Returns:
      The size.
    • setSize

      public BundleEntryProto.Builder setSize(long value)
      int64 size = 5;
      Parameters:
      value - The size to set.
      Returns:
      This builder for chaining.
    • clearSize

      public BundleEntryProto.Builder clearSize()
      int64 size = 5;
      Returns:
      This builder for chaining.
    • getCrc32C

      public int getCrc32C()
      The CRC32C checksum of the tensor bytes.
      
      fixed32 crc32c = 6;
      Specified by:
      getCrc32C in interface BundleEntryProtoOrBuilder
      Returns:
      The crc32c.
    • setCrc32C

      public BundleEntryProto.Builder setCrc32C(int value)
      The CRC32C checksum of the tensor bytes.
      
      fixed32 crc32c = 6;
      Parameters:
      value - The crc32c to set.
      Returns:
      This builder for chaining.
    • clearCrc32C

      public BundleEntryProto.Builder clearCrc32C()
      The CRC32C checksum of the tensor bytes.
      
      fixed32 crc32c = 6;
      Returns:
      This builder for chaining.
    • getSlicesList

      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;
      Specified by:
      getSlicesList in interface BundleEntryProtoOrBuilder
    • 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:
      getSlicesCount in interface BundleEntryProtoOrBuilder
    • getSlices

      public 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;
      Specified by:
      getSlices in interface BundleEntryProtoOrBuilder
    • setSlices

      public 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;
    • setSlices

      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;
    • addSlices

      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;
    • addSlices

      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;
    • addSlices

      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;
    • addSlices

      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;
    • addAllSlices

      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;
    • clearSlices

      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;
    • removeSlices

      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;
    • getSlicesBuilder

      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;
    • getSlicesOrBuilder

      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;
      Specified by:
      getSlicesOrBuilder in interface BundleEntryProtoOrBuilder
    • getSlicesOrBuilderList

      public 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;
      Specified by:
      getSlicesOrBuilderList in interface BundleEntryProtoOrBuilder
    • addSlicesBuilder

      public 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;
    • addSlicesBuilder

      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;
    • getSlicesBuilderList

      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;