Class TensorSliceProto.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, TensorSliceProtoOrBuilder
    Enclosing class:
    TensorSliceProto

    public static final class TensorSliceProto.Builder
    extends org.nd4j.shade.protobuf.GeneratedMessageV3.Builder<TensorSliceProto.Builder>
    implements TensorSliceProtoOrBuilder
     Can only be interpreted if you know the corresponding TensorShape.
     
    Protobuf type tensorflow.TensorSliceProto
    • 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<TensorSliceProto.Builder>
      • clear

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

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

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

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

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

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

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

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

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

        public TensorSliceProto.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<TensorSliceProto.Builder>
        Throws:
        IOException
      • getExtentList

        public List<TensorSliceProto.Extent> getExtentList()
         Extent of the slice in all tensor dimensions.
         Must have one entry for each of the dimension of the tensor that this
         slice belongs to.  The order of sizes is the same as the order of
         dimensions in the TensorShape.
         
        repeated .tensorflow.TensorSliceProto.Extent extent = 1;
        Specified by:
        getExtentList in interface TensorSliceProtoOrBuilder
      • getExtentCount

        public int getExtentCount()
         Extent of the slice in all tensor dimensions.
         Must have one entry for each of the dimension of the tensor that this
         slice belongs to.  The order of sizes is the same as the order of
         dimensions in the TensorShape.
         
        repeated .tensorflow.TensorSliceProto.Extent extent = 1;
        Specified by:
        getExtentCount in interface TensorSliceProtoOrBuilder
      • getExtent

        public TensorSliceProto.Extent getExtent​(int index)
         Extent of the slice in all tensor dimensions.
         Must have one entry for each of the dimension of the tensor that this
         slice belongs to.  The order of sizes is the same as the order of
         dimensions in the TensorShape.
         
        repeated .tensorflow.TensorSliceProto.Extent extent = 1;
        Specified by:
        getExtent in interface TensorSliceProtoOrBuilder
      • setExtent

        public TensorSliceProto.Builder setExtent​(int index,
                                                  TensorSliceProto.Extent value)
         Extent of the slice in all tensor dimensions.
         Must have one entry for each of the dimension of the tensor that this
         slice belongs to.  The order of sizes is the same as the order of
         dimensions in the TensorShape.
         
        repeated .tensorflow.TensorSliceProto.Extent extent = 1;
      • setExtent

        public TensorSliceProto.Builder setExtent​(int index,
                                                  TensorSliceProto.Extent.Builder builderForValue)
         Extent of the slice in all tensor dimensions.
         Must have one entry for each of the dimension of the tensor that this
         slice belongs to.  The order of sizes is the same as the order of
         dimensions in the TensorShape.
         
        repeated .tensorflow.TensorSliceProto.Extent extent = 1;
      • addExtent

        public TensorSliceProto.Builder addExtent​(TensorSliceProto.Extent value)
         Extent of the slice in all tensor dimensions.
         Must have one entry for each of the dimension of the tensor that this
         slice belongs to.  The order of sizes is the same as the order of
         dimensions in the TensorShape.
         
        repeated .tensorflow.TensorSliceProto.Extent extent = 1;
      • addExtent

        public TensorSliceProto.Builder addExtent​(int index,
                                                  TensorSliceProto.Extent value)
         Extent of the slice in all tensor dimensions.
         Must have one entry for each of the dimension of the tensor that this
         slice belongs to.  The order of sizes is the same as the order of
         dimensions in the TensorShape.
         
        repeated .tensorflow.TensorSliceProto.Extent extent = 1;
      • addExtent

        public TensorSliceProto.Builder addExtent​(TensorSliceProto.Extent.Builder builderForValue)
         Extent of the slice in all tensor dimensions.
         Must have one entry for each of the dimension of the tensor that this
         slice belongs to.  The order of sizes is the same as the order of
         dimensions in the TensorShape.
         
        repeated .tensorflow.TensorSliceProto.Extent extent = 1;
      • addExtent

        public TensorSliceProto.Builder addExtent​(int index,
                                                  TensorSliceProto.Extent.Builder builderForValue)
         Extent of the slice in all tensor dimensions.
         Must have one entry for each of the dimension of the tensor that this
         slice belongs to.  The order of sizes is the same as the order of
         dimensions in the TensorShape.
         
        repeated .tensorflow.TensorSliceProto.Extent extent = 1;
      • addAllExtent

        public TensorSliceProto.Builder addAllExtent​(Iterable<? extends TensorSliceProto.Extent> values)
         Extent of the slice in all tensor dimensions.
         Must have one entry for each of the dimension of the tensor that this
         slice belongs to.  The order of sizes is the same as the order of
         dimensions in the TensorShape.
         
        repeated .tensorflow.TensorSliceProto.Extent extent = 1;
      • clearExtent

        public TensorSliceProto.Builder clearExtent()
         Extent of the slice in all tensor dimensions.
         Must have one entry for each of the dimension of the tensor that this
         slice belongs to.  The order of sizes is the same as the order of
         dimensions in the TensorShape.
         
        repeated .tensorflow.TensorSliceProto.Extent extent = 1;
      • removeExtent

        public TensorSliceProto.Builder removeExtent​(int index)
         Extent of the slice in all tensor dimensions.
         Must have one entry for each of the dimension of the tensor that this
         slice belongs to.  The order of sizes is the same as the order of
         dimensions in the TensorShape.
         
        repeated .tensorflow.TensorSliceProto.Extent extent = 1;
      • getExtentBuilder

        public TensorSliceProto.Extent.Builder getExtentBuilder​(int index)
         Extent of the slice in all tensor dimensions.
         Must have one entry for each of the dimension of the tensor that this
         slice belongs to.  The order of sizes is the same as the order of
         dimensions in the TensorShape.
         
        repeated .tensorflow.TensorSliceProto.Extent extent = 1;
      • getExtentOrBuilder

        public TensorSliceProto.ExtentOrBuilder getExtentOrBuilder​(int index)
         Extent of the slice in all tensor dimensions.
         Must have one entry for each of the dimension of the tensor that this
         slice belongs to.  The order of sizes is the same as the order of
         dimensions in the TensorShape.
         
        repeated .tensorflow.TensorSliceProto.Extent extent = 1;
        Specified by:
        getExtentOrBuilder in interface TensorSliceProtoOrBuilder
      • getExtentOrBuilderList

        public List<? extends TensorSliceProto.ExtentOrBuilder> getExtentOrBuilderList()
         Extent of the slice in all tensor dimensions.
         Must have one entry for each of the dimension of the tensor that this
         slice belongs to.  The order of sizes is the same as the order of
         dimensions in the TensorShape.
         
        repeated .tensorflow.TensorSliceProto.Extent extent = 1;
        Specified by:
        getExtentOrBuilderList in interface TensorSliceProtoOrBuilder
      • addExtentBuilder

        public TensorSliceProto.Extent.Builder addExtentBuilder()
         Extent of the slice in all tensor dimensions.
         Must have one entry for each of the dimension of the tensor that this
         slice belongs to.  The order of sizes is the same as the order of
         dimensions in the TensorShape.
         
        repeated .tensorflow.TensorSliceProto.Extent extent = 1;
      • addExtentBuilder

        public TensorSliceProto.Extent.Builder addExtentBuilder​(int index)
         Extent of the slice in all tensor dimensions.
         Must have one entry for each of the dimension of the tensor that this
         slice belongs to.  The order of sizes is the same as the order of
         dimensions in the TensorShape.
         
        repeated .tensorflow.TensorSliceProto.Extent extent = 1;
      • getExtentBuilderList

        public List<TensorSliceProto.Extent.Builder> getExtentBuilderList()
         Extent of the slice in all tensor dimensions.
         Must have one entry for each of the dimension of the tensor that this
         slice belongs to.  The order of sizes is the same as the order of
         dimensions in the TensorShape.
         
        repeated .tensorflow.TensorSliceProto.Extent extent = 1;
      • setUnknownFields

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

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