Class BundleEntryProto.Builder

  • All Implemented Interfaces:
    Cloneable, org.nd4j.shade.protobuf.Message.Builder, org.nd4j.shade.protobuf.MessageLite.Builder, org.nd4j.shade.protobuf.MessageLiteOrBuilder, org.nd4j.shade.protobuf.MessageOrBuilder, BundleEntryProtoOrBuilder
    Enclosing class:
    BundleEntryProto

    public static final class BundleEntryProto.Builder
    extends org.nd4j.shade.protobuf.GeneratedMessageV3.Builder<BundleEntryProto.Builder>
    implements BundleEntryProtoOrBuilder
     Describes the metadata related to a checkpointed tensor.
     
    Protobuf type tensorflow.BundleEntryProto
    • Method Detail

      • getDescriptor

        public static final org.nd4j.shade.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected org.nd4j.shade.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class org.nd4j.shade.protobuf.GeneratedMessageV3.Builder<BundleEntryProto.Builder>
      • clear

        public BundleEntryProto.Builder clear()
        Specified by:
        clear in interface org.nd4j.shade.protobuf.Message.Builder
        Specified by:
        clear in interface org.nd4j.shade.protobuf.MessageLite.Builder
        Overrides:
        clear in class org.nd4j.shade.protobuf.GeneratedMessageV3.Builder<BundleEntryProto.Builder>
      • getDescriptorForType

        public org.nd4j.shade.protobuf.Descriptors.Descriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface org.nd4j.shade.protobuf.Message.Builder
        Specified by:
        getDescriptorForType in interface org.nd4j.shade.protobuf.MessageOrBuilder
        Overrides:
        getDescriptorForType in class org.nd4j.shade.protobuf.GeneratedMessageV3.Builder<BundleEntryProto.Builder>
      • getDefaultInstanceForType

        public BundleEntryProto getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface org.nd4j.shade.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface org.nd4j.shade.protobuf.MessageOrBuilder
      • build

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

        public BundleEntryProto buildPartial()
        Specified by:
        buildPartial in interface org.nd4j.shade.protobuf.Message.Builder
        Specified by:
        buildPartial in interface org.nd4j.shade.protobuf.MessageLite.Builder
      • clone

        public BundleEntryProto.Builder clone()
        Specified by:
        clone in interface org.nd4j.shade.protobuf.Message.Builder
        Specified by:
        clone in interface org.nd4j.shade.protobuf.MessageLite.Builder
        Overrides:
        clone in class org.nd4j.shade.protobuf.GeneratedMessageV3.Builder<BundleEntryProto.Builder>
      • setField

        public BundleEntryProto.Builder setField​(org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field,
                                                 Object value)
        Specified by:
        setField in interface org.nd4j.shade.protobuf.Message.Builder
        Overrides:
        setField in class org.nd4j.shade.protobuf.GeneratedMessageV3.Builder<BundleEntryProto.Builder>
      • clearField

        public BundleEntryProto.Builder clearField​(org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface org.nd4j.shade.protobuf.Message.Builder
        Overrides:
        clearField in class org.nd4j.shade.protobuf.GeneratedMessageV3.Builder<BundleEntryProto.Builder>
      • clearOneof

        public BundleEntryProto.Builder clearOneof​(org.nd4j.shade.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface org.nd4j.shade.protobuf.Message.Builder
        Overrides:
        clearOneof in class org.nd4j.shade.protobuf.GeneratedMessageV3.Builder<BundleEntryProto.Builder>
      • setRepeatedField

        public BundleEntryProto.Builder setRepeatedField​(org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field,
                                                         int index,
                                                         Object value)
        Specified by:
        setRepeatedField in interface org.nd4j.shade.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class org.nd4j.shade.protobuf.GeneratedMessageV3.Builder<BundleEntryProto.Builder>
      • addRepeatedField

        public BundleEntryProto.Builder addRepeatedField​(org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field,
                                                         Object value)
        Specified by:
        addRepeatedField in interface org.nd4j.shade.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class org.nd4j.shade.protobuf.GeneratedMessageV3.Builder<BundleEntryProto.Builder>
      • mergeFrom

        public BundleEntryProto.Builder mergeFrom​(org.nd4j.shade.protobuf.Message other)
        Specified by:
        mergeFrom in interface org.nd4j.shade.protobuf.Message.Builder
        Overrides:
        mergeFrom in class org.nd4j.shade.protobuf.AbstractMessage.Builder<BundleEntryProto.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface org.nd4j.shade.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class org.nd4j.shade.protobuf.GeneratedMessageV3.Builder<BundleEntryProto.Builder>
      • mergeFrom

        public BundleEntryProto.Builder mergeFrom​(org.nd4j.shade.protobuf.CodedInputStream input,
                                                  org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry)
                                           throws IOException
        Specified by:
        mergeFrom in interface org.nd4j.shade.protobuf.Message.Builder
        Specified by:
        mergeFrom in interface org.nd4j.shade.protobuf.MessageLite.Builder
        Overrides:
        mergeFrom in class org.nd4j.shade.protobuf.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.
      • 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.
      • 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.
      • setOffset

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

        public BundleEntryProto.Builder setSize​(long value)
        int64 size = 5;
        Parameters:
        value - The size to set.
        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;
      • setUnknownFields

        public final BundleEntryProto.Builder setUnknownFields​(org.nd4j.shade.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface org.nd4j.shade.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class org.nd4j.shade.protobuf.GeneratedMessageV3.Builder<BundleEntryProto.Builder>
      • mergeUnknownFields

        public final BundleEntryProto.Builder mergeUnknownFields​(org.nd4j.shade.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface org.nd4j.shade.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class org.nd4j.shade.protobuf.GeneratedMessageV3.Builder<BundleEntryProto.Builder>