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

    public static final class TensorInfo.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<TensorInfo.Builder>
    implements TensorInfoOrBuilder
     Information about a Tensor necessary for feeding or retrieval.
     
    Protobuf type org.platanios.tensorflow.proto.TensorInfo
    • 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<TensorInfo.Builder>
      • clear

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

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

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

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

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

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

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

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

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

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

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

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

        public TensorInfo.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<TensorInfo.Builder>
        Throws:
        java.io.IOException
      • getName

        public java.lang.String getName()
         For dense `Tensor`s, the name of the tensor in the graph.
         
        string name = 1;
        Specified by:
        getName in interface TensorInfoOrBuilder
        Returns:
        The name.
      • getNameBytes

        public com.google.protobuf.ByteString getNameBytes()
         For dense `Tensor`s, the name of the tensor in the graph.
         
        string name = 1;
        Specified by:
        getNameBytes in interface TensorInfoOrBuilder
        Returns:
        The bytes for name.
      • setName

        public TensorInfo.Builder setName​(java.lang.String value)
         For dense `Tensor`s, the name of the tensor in the graph.
         
        string name = 1;
        Parameters:
        value - The name to set.
        Returns:
        This builder for chaining.
      • clearName

        public TensorInfo.Builder clearName()
         For dense `Tensor`s, the name of the tensor in the graph.
         
        string name = 1;
        Returns:
        This builder for chaining.
      • setNameBytes

        public TensorInfo.Builder setNameBytes​(com.google.protobuf.ByteString value)
         For dense `Tensor`s, the name of the tensor in the graph.
         
        string name = 1;
        Parameters:
        value - The bytes for name to set.
        Returns:
        This builder for chaining.
      • hasCooSparse

        public boolean hasCooSparse()
         There are many possible encodings of sparse matrices
         (https://en.wikipedia.org/wiki/Sparse_matrix).  Currently, TensorFlow
         uses only the COO encoding.  This is supported and documented in the
         SparseTensor Python class.
         
        .org.platanios.tensorflow.proto.TensorInfo.CooSparse coo_sparse = 4;
        Specified by:
        hasCooSparse in interface TensorInfoOrBuilder
        Returns:
        Whether the cooSparse field is set.
      • getCooSparse

        public TensorInfo.CooSparse getCooSparse()
         There are many possible encodings of sparse matrices
         (https://en.wikipedia.org/wiki/Sparse_matrix).  Currently, TensorFlow
         uses only the COO encoding.  This is supported and documented in the
         SparseTensor Python class.
         
        .org.platanios.tensorflow.proto.TensorInfo.CooSparse coo_sparse = 4;
        Specified by:
        getCooSparse in interface TensorInfoOrBuilder
        Returns:
        The cooSparse.
      • setCooSparse

        public TensorInfo.Builder setCooSparse​(TensorInfo.CooSparse value)
         There are many possible encodings of sparse matrices
         (https://en.wikipedia.org/wiki/Sparse_matrix).  Currently, TensorFlow
         uses only the COO encoding.  This is supported and documented in the
         SparseTensor Python class.
         
        .org.platanios.tensorflow.proto.TensorInfo.CooSparse coo_sparse = 4;
      • setCooSparse

        public TensorInfo.Builder setCooSparse​(TensorInfo.CooSparse.Builder builderForValue)
         There are many possible encodings of sparse matrices
         (https://en.wikipedia.org/wiki/Sparse_matrix).  Currently, TensorFlow
         uses only the COO encoding.  This is supported and documented in the
         SparseTensor Python class.
         
        .org.platanios.tensorflow.proto.TensorInfo.CooSparse coo_sparse = 4;
      • mergeCooSparse

        public TensorInfo.Builder mergeCooSparse​(TensorInfo.CooSparse value)
         There are many possible encodings of sparse matrices
         (https://en.wikipedia.org/wiki/Sparse_matrix).  Currently, TensorFlow
         uses only the COO encoding.  This is supported and documented in the
         SparseTensor Python class.
         
        .org.platanios.tensorflow.proto.TensorInfo.CooSparse coo_sparse = 4;
      • clearCooSparse

        public TensorInfo.Builder clearCooSparse()
         There are many possible encodings of sparse matrices
         (https://en.wikipedia.org/wiki/Sparse_matrix).  Currently, TensorFlow
         uses only the COO encoding.  This is supported and documented in the
         SparseTensor Python class.
         
        .org.platanios.tensorflow.proto.TensorInfo.CooSparse coo_sparse = 4;
      • getCooSparseBuilder

        public TensorInfo.CooSparse.Builder getCooSparseBuilder()
         There are many possible encodings of sparse matrices
         (https://en.wikipedia.org/wiki/Sparse_matrix).  Currently, TensorFlow
         uses only the COO encoding.  This is supported and documented in the
         SparseTensor Python class.
         
        .org.platanios.tensorflow.proto.TensorInfo.CooSparse coo_sparse = 4;
      • getCooSparseOrBuilder

        public TensorInfo.CooSparseOrBuilder getCooSparseOrBuilder()
         There are many possible encodings of sparse matrices
         (https://en.wikipedia.org/wiki/Sparse_matrix).  Currently, TensorFlow
         uses only the COO encoding.  This is supported and documented in the
         SparseTensor Python class.
         
        .org.platanios.tensorflow.proto.TensorInfo.CooSparse coo_sparse = 4;
        Specified by:
        getCooSparseOrBuilder in interface TensorInfoOrBuilder
      • hasCompositeTensor

        public boolean hasCompositeTensor()
         Generic encoding for CompositeTensors.
         
        .org.platanios.tensorflow.proto.TensorInfo.CompositeTensor composite_tensor = 5;
        Specified by:
        hasCompositeTensor in interface TensorInfoOrBuilder
        Returns:
        Whether the compositeTensor field is set.
      • setCompositeTensor

        public TensorInfo.Builder setCompositeTensor​(TensorInfo.CompositeTensor value)
         Generic encoding for CompositeTensors.
         
        .org.platanios.tensorflow.proto.TensorInfo.CompositeTensor composite_tensor = 5;
      • mergeCompositeTensor

        public TensorInfo.Builder mergeCompositeTensor​(TensorInfo.CompositeTensor value)
         Generic encoding for CompositeTensors.
         
        .org.platanios.tensorflow.proto.TensorInfo.CompositeTensor composite_tensor = 5;
      • clearCompositeTensor

        public TensorInfo.Builder clearCompositeTensor()
         Generic encoding for CompositeTensors.
         
        .org.platanios.tensorflow.proto.TensorInfo.CompositeTensor composite_tensor = 5;
      • getCompositeTensorBuilder

        public TensorInfo.CompositeTensor.Builder getCompositeTensorBuilder()
         Generic encoding for CompositeTensors.
         
        .org.platanios.tensorflow.proto.TensorInfo.CompositeTensor composite_tensor = 5;
      • getDtypeValue

        public int getDtypeValue()
        .org.platanios.tensorflow.proto.DataType dtype = 2;
        Specified by:
        getDtypeValue in interface TensorInfoOrBuilder
        Returns:
        The enum numeric value on the wire for dtype.
      • setDtypeValue

        public TensorInfo.Builder setDtypeValue​(int value)
        .org.platanios.tensorflow.proto.DataType dtype = 2;
        Parameters:
        value - The enum numeric value on the wire for dtype to set.
        Returns:
        This builder for chaining.
      • setDtype

        public TensorInfo.Builder setDtype​(DataType value)
        .org.platanios.tensorflow.proto.DataType dtype = 2;
        Parameters:
        value - The dtype to set.
        Returns:
        This builder for chaining.
      • clearDtype

        public TensorInfo.Builder clearDtype()
        .org.platanios.tensorflow.proto.DataType dtype = 2;
        Returns:
        This builder for chaining.
      • hasTensorShape

        public boolean hasTensorShape()
         The static shape should be recorded here, to the extent that it can
         be known in advance.  In the case of a SparseTensor, this field describes
         the logical shape of the represented tensor (aka dense_shape).
         
        .org.platanios.tensorflow.proto.TensorShapeProto tensor_shape = 3;
        Specified by:
        hasTensorShape in interface TensorInfoOrBuilder
        Returns:
        Whether the tensorShape field is set.
      • getTensorShape

        public TensorShapeProto getTensorShape()
         The static shape should be recorded here, to the extent that it can
         be known in advance.  In the case of a SparseTensor, this field describes
         the logical shape of the represented tensor (aka dense_shape).
         
        .org.platanios.tensorflow.proto.TensorShapeProto tensor_shape = 3;
        Specified by:
        getTensorShape in interface TensorInfoOrBuilder
        Returns:
        The tensorShape.
      • setTensorShape

        public TensorInfo.Builder setTensorShape​(TensorShapeProto value)
         The static shape should be recorded here, to the extent that it can
         be known in advance.  In the case of a SparseTensor, this field describes
         the logical shape of the represented tensor (aka dense_shape).
         
        .org.platanios.tensorflow.proto.TensorShapeProto tensor_shape = 3;
      • setTensorShape

        public TensorInfo.Builder setTensorShape​(TensorShapeProto.Builder builderForValue)
         The static shape should be recorded here, to the extent that it can
         be known in advance.  In the case of a SparseTensor, this field describes
         the logical shape of the represented tensor (aka dense_shape).
         
        .org.platanios.tensorflow.proto.TensorShapeProto tensor_shape = 3;
      • mergeTensorShape

        public TensorInfo.Builder mergeTensorShape​(TensorShapeProto value)
         The static shape should be recorded here, to the extent that it can
         be known in advance.  In the case of a SparseTensor, this field describes
         the logical shape of the represented tensor (aka dense_shape).
         
        .org.platanios.tensorflow.proto.TensorShapeProto tensor_shape = 3;
      • clearTensorShape

        public TensorInfo.Builder clearTensorShape()
         The static shape should be recorded here, to the extent that it can
         be known in advance.  In the case of a SparseTensor, this field describes
         the logical shape of the represented tensor (aka dense_shape).
         
        .org.platanios.tensorflow.proto.TensorShapeProto tensor_shape = 3;
      • getTensorShapeBuilder

        public TensorShapeProto.Builder getTensorShapeBuilder()
         The static shape should be recorded here, to the extent that it can
         be known in advance.  In the case of a SparseTensor, this field describes
         the logical shape of the represented tensor (aka dense_shape).
         
        .org.platanios.tensorflow.proto.TensorShapeProto tensor_shape = 3;
      • getTensorShapeOrBuilder

        public TensorShapeProtoOrBuilder getTensorShapeOrBuilder()
         The static shape should be recorded here, to the extent that it can
         be known in advance.  In the case of a SparseTensor, this field describes
         the logical shape of the represented tensor (aka dense_shape).
         
        .org.platanios.tensorflow.proto.TensorShapeProto tensor_shape = 3;
        Specified by:
        getTensorShapeOrBuilder in interface TensorInfoOrBuilder
      • setUnknownFields

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

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