Class TensorInfo.CooSparse.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, TensorInfo.CooSparseOrBuilder
    Enclosing class:
    TensorInfo.CooSparse

    public static final class TensorInfo.CooSparse.Builder
    extends org.nd4j.shade.protobuf.GeneratedMessageV3.Builder<TensorInfo.CooSparse.Builder>
    implements TensorInfo.CooSparseOrBuilder
     For sparse tensors, The COO encoding stores a triple of values, indices,
     and shape.
     
    Protobuf type tensorflow.TensorInfo.CooSparse
    • 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<TensorInfo.CooSparse.Builder>
      • clear

        public TensorInfo.CooSparse.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<TensorInfo.CooSparse.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<TensorInfo.CooSparse.Builder>
      • getDefaultInstanceForType

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

        public TensorInfo.CooSparse 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 TensorInfo.CooSparse 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 TensorInfo.CooSparse.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<TensorInfo.CooSparse.Builder>
      • setField

        public TensorInfo.CooSparse.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<TensorInfo.CooSparse.Builder>
      • clearField

        public TensorInfo.CooSparse.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<TensorInfo.CooSparse.Builder>
      • clearOneof

        public TensorInfo.CooSparse.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<TensorInfo.CooSparse.Builder>
      • setRepeatedField

        public TensorInfo.CooSparse.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<TensorInfo.CooSparse.Builder>
      • addRepeatedField

        public TensorInfo.CooSparse.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<TensorInfo.CooSparse.Builder>
      • mergeFrom

        public TensorInfo.CooSparse.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<TensorInfo.CooSparse.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<TensorInfo.CooSparse.Builder>
      • mergeFrom

        public TensorInfo.CooSparse.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<TensorInfo.CooSparse.Builder>
        Throws:
        IOException
      • getValuesTensorName

        public String getValuesTensorName()
         The shape of the values Tensor is [?].  Its dtype must be the dtype of
         the SparseTensor as a whole, given in the enclosing TensorInfo.
         
        string values_tensor_name = 1;
        Specified by:
        getValuesTensorName in interface TensorInfo.CooSparseOrBuilder
        Returns:
        The valuesTensorName.
      • getValuesTensorNameBytes

        public org.nd4j.shade.protobuf.ByteString getValuesTensorNameBytes()
         The shape of the values Tensor is [?].  Its dtype must be the dtype of
         the SparseTensor as a whole, given in the enclosing TensorInfo.
         
        string values_tensor_name = 1;
        Specified by:
        getValuesTensorNameBytes in interface TensorInfo.CooSparseOrBuilder
        Returns:
        The bytes for valuesTensorName.
      • setValuesTensorName

        public TensorInfo.CooSparse.Builder setValuesTensorName​(String value)
         The shape of the values Tensor is [?].  Its dtype must be the dtype of
         the SparseTensor as a whole, given in the enclosing TensorInfo.
         
        string values_tensor_name = 1;
        Parameters:
        value - The valuesTensorName to set.
        Returns:
        This builder for chaining.
      • clearValuesTensorName

        public TensorInfo.CooSparse.Builder clearValuesTensorName()
         The shape of the values Tensor is [?].  Its dtype must be the dtype of
         the SparseTensor as a whole, given in the enclosing TensorInfo.
         
        string values_tensor_name = 1;
        Returns:
        This builder for chaining.
      • setValuesTensorNameBytes

        public TensorInfo.CooSparse.Builder setValuesTensorNameBytes​(org.nd4j.shade.protobuf.ByteString value)
         The shape of the values Tensor is [?].  Its dtype must be the dtype of
         the SparseTensor as a whole, given in the enclosing TensorInfo.
         
        string values_tensor_name = 1;
        Parameters:
        value - The bytes for valuesTensorName to set.
        Returns:
        This builder for chaining.
      • getIndicesTensorNameBytes

        public org.nd4j.shade.protobuf.ByteString getIndicesTensorNameBytes()
         The indices Tensor must have dtype int64 and shape [?, ?].
         
        string indices_tensor_name = 2;
        Specified by:
        getIndicesTensorNameBytes in interface TensorInfo.CooSparseOrBuilder
        Returns:
        The bytes for indicesTensorName.
      • setIndicesTensorName

        public TensorInfo.CooSparse.Builder setIndicesTensorName​(String value)
         The indices Tensor must have dtype int64 and shape [?, ?].
         
        string indices_tensor_name = 2;
        Parameters:
        value - The indicesTensorName to set.
        Returns:
        This builder for chaining.
      • clearIndicesTensorName

        public TensorInfo.CooSparse.Builder clearIndicesTensorName()
         The indices Tensor must have dtype int64 and shape [?, ?].
         
        string indices_tensor_name = 2;
        Returns:
        This builder for chaining.
      • setIndicesTensorNameBytes

        public TensorInfo.CooSparse.Builder setIndicesTensorNameBytes​(org.nd4j.shade.protobuf.ByteString value)
         The indices Tensor must have dtype int64 and shape [?, ?].
         
        string indices_tensor_name = 2;
        Parameters:
        value - The bytes for indicesTensorName to set.
        Returns:
        This builder for chaining.
      • getDenseShapeTensorName

        public String getDenseShapeTensorName()
         The dynamic logical shape represented by the SparseTensor is recorded in
         the Tensor referenced here.  It must have dtype int64 and shape [?].
         
        string dense_shape_tensor_name = 3;
        Specified by:
        getDenseShapeTensorName in interface TensorInfo.CooSparseOrBuilder
        Returns:
        The denseShapeTensorName.
      • getDenseShapeTensorNameBytes

        public org.nd4j.shade.protobuf.ByteString getDenseShapeTensorNameBytes()
         The dynamic logical shape represented by the SparseTensor is recorded in
         the Tensor referenced here.  It must have dtype int64 and shape [?].
         
        string dense_shape_tensor_name = 3;
        Specified by:
        getDenseShapeTensorNameBytes in interface TensorInfo.CooSparseOrBuilder
        Returns:
        The bytes for denseShapeTensorName.
      • setDenseShapeTensorName

        public TensorInfo.CooSparse.Builder setDenseShapeTensorName​(String value)
         The dynamic logical shape represented by the SparseTensor is recorded in
         the Tensor referenced here.  It must have dtype int64 and shape [?].
         
        string dense_shape_tensor_name = 3;
        Parameters:
        value - The denseShapeTensorName to set.
        Returns:
        This builder for chaining.
      • clearDenseShapeTensorName

        public TensorInfo.CooSparse.Builder clearDenseShapeTensorName()
         The dynamic logical shape represented by the SparseTensor is recorded in
         the Tensor referenced here.  It must have dtype int64 and shape [?].
         
        string dense_shape_tensor_name = 3;
        Returns:
        This builder for chaining.
      • setDenseShapeTensorNameBytes

        public TensorInfo.CooSparse.Builder setDenseShapeTensorNameBytes​(org.nd4j.shade.protobuf.ByteString value)
         The dynamic logical shape represented by the SparseTensor is recorded in
         the Tensor referenced here.  It must have dtype int64 and shape [?].
         
        string dense_shape_tensor_name = 3;
        Parameters:
        value - The bytes for denseShapeTensorName to set.
        Returns:
        This builder for chaining.
      • setUnknownFields

        public final TensorInfo.CooSparse.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<TensorInfo.CooSparse.Builder>
      • mergeUnknownFields

        public final TensorInfo.CooSparse.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<TensorInfo.CooSparse.Builder>