Class BundleEntryProto.Builder

  • All Implemented Interfaces:
    com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, java.lang.Cloneable, BundleEntryProtoOrBuilder
    Enclosing class:
    BundleEntryProto

    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 org.platanios.tensorflow.proto.BundleEntryProto
    • Method Detail

      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<BundleEntryProto.Builder>
      • clear

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

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

        public BundleEntryProto getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
      • build

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

        public BundleEntryProto buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • clone

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

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

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

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

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

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

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

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

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

        public int getDtypeValue()
         The tensor dtype and shape.
         
        .org.platanios.tensorflow.proto.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.
         
        .org.platanios.tensorflow.proto.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.
         
        .org.platanios.tensorflow.proto.DataType dtype = 1;
        Parameters:
        value - The dtype to set.
        Returns:
        This builder for chaining.
      • clearDtype

        public BundleEntryProto.Builder clearDtype()
         The tensor dtype and shape.
         
        .org.platanios.tensorflow.proto.DataType dtype = 1;
        Returns:
        This builder for chaining.
      • hasShape

        public boolean hasShape()
        .org.platanios.tensorflow.proto.TensorShapeProto shape = 2;
        Specified by:
        hasShape in interface BundleEntryProtoOrBuilder
        Returns:
        Whether the shape field is set.
      • getShapeBuilder

        public TensorShapeProto.Builder getShapeBuilder()
        .org.platanios.tensorflow.proto.TensorShapeProto shape = 2;
      • 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 java.util.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 .org.platanios.tensorflow.proto.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 .org.platanios.tensorflow.proto.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 .org.platanios.tensorflow.proto.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 .org.platanios.tensorflow.proto.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 .org.platanios.tensorflow.proto.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 .org.platanios.tensorflow.proto.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 .org.platanios.tensorflow.proto.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 .org.platanios.tensorflow.proto.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 .org.platanios.tensorflow.proto.TensorSliceProto slices = 7;
      • addAllSlices

        public BundleEntryProto.Builder addAllSlices​(java.lang.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 .org.platanios.tensorflow.proto.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 .org.platanios.tensorflow.proto.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 .org.platanios.tensorflow.proto.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 .org.platanios.tensorflow.proto.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 .org.platanios.tensorflow.proto.TensorSliceProto slices = 7;
        Specified by:
        getSlicesOrBuilder in interface BundleEntryProtoOrBuilder
      • getSlicesOrBuilderList

        public java.util.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 .org.platanios.tensorflow.proto.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 .org.platanios.tensorflow.proto.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 .org.platanios.tensorflow.proto.TensorSliceProto slices = 7;
      • getSlicesBuilderList

        public java.util.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 .org.platanios.tensorflow.proto.TensorSliceProto slices = 7;
      • setUnknownFields

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

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