Class TensorDescription.Builder

    • 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<TensorDescription.Builder>
      • clear

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

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

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

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

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

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

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

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

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

        public TensorDescription.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<TensorDescription.Builder>
        Throws:
        IOException
      • getDtypeValue

        public int getDtypeValue()
         Data type of tensor elements
         
        .tensorflow.DataType dtype = 1;
        Specified by:
        getDtypeValue in interface TensorDescriptionOrBuilder
        Returns:
        The enum numeric value on the wire for dtype.
      • setDtypeValue

        public TensorDescription.Builder setDtypeValue​(int value)
         Data type of tensor elements
         
        .tensorflow.DataType dtype = 1;
        Parameters:
        value - The enum numeric value on the wire for dtype to set.
        Returns:
        This builder for chaining.
      • setDtype

        public TensorDescription.Builder setDtype​(DataType value)
         Data type of tensor elements
         
        .tensorflow.DataType dtype = 1;
        Parameters:
        value - The dtype to set.
        Returns:
        This builder for chaining.
      • clearDtype

        public TensorDescription.Builder clearDtype()
         Data type of tensor elements
         
        .tensorflow.DataType dtype = 1;
        Returns:
        This builder for chaining.
      • hasShape

        public boolean hasShape()
         Shape of the tensor.
         
        .tensorflow.TensorShapeProto shape = 2;
        Specified by:
        hasShape in interface TensorDescriptionOrBuilder
        Returns:
        Whether the shape field is set.
      • getShapeBuilder

        public TensorShapeProto.Builder getShapeBuilder()
         Shape of the tensor.
         
        .tensorflow.TensorShapeProto shape = 2;
      • hasAllocationDescription

        public boolean hasAllocationDescription()
         Information about the size and allocator used for the data
         
        .tensorflow.AllocationDescription allocation_description = 4;
        Specified by:
        hasAllocationDescription in interface TensorDescriptionOrBuilder
        Returns:
        Whether the allocationDescription field is set.
      • setAllocationDescription

        public TensorDescription.Builder setAllocationDescription​(AllocationDescription value)
         Information about the size and allocator used for the data
         
        .tensorflow.AllocationDescription allocation_description = 4;
      • mergeAllocationDescription

        public TensorDescription.Builder mergeAllocationDescription​(AllocationDescription value)
         Information about the size and allocator used for the data
         
        .tensorflow.AllocationDescription allocation_description = 4;
      • clearAllocationDescription

        public TensorDescription.Builder clearAllocationDescription()
         Information about the size and allocator used for the data
         
        .tensorflow.AllocationDescription allocation_description = 4;
      • getAllocationDescriptionBuilder

        public AllocationDescription.Builder getAllocationDescriptionBuilder()
         Information about the size and allocator used for the data
         
        .tensorflow.AllocationDescription allocation_description = 4;
      • setUnknownFields

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

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