Package onnx

Class OnnxMl.TensorProto.Segment.Builder

  • All Implemented Interfaces:
    Cloneable, OnnxMl.TensorProto.SegmentOrBuilder, org.nd4j.shade.protobuf.Message.Builder, org.nd4j.shade.protobuf.MessageLite.Builder, org.nd4j.shade.protobuf.MessageLiteOrBuilder, org.nd4j.shade.protobuf.MessageOrBuilder
    Enclosing class:
    OnnxMl.TensorProto.Segment

    public static final class OnnxMl.TensorProto.Segment.Builder
    extends org.nd4j.shade.protobuf.GeneratedMessageV3.Builder<OnnxMl.TensorProto.Segment.Builder>
    implements OnnxMl.TensorProto.SegmentOrBuilder
     For very large tensors, we may want to store them in chunks, in which
     case the following fields will specify the segment that is stored in
     the current TensorProto.
     
    Protobuf type onnx.TensorProto.Segment
    • 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<OnnxMl.TensorProto.Segment.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<OnnxMl.TensorProto.Segment.Builder>
      • getDefaultInstanceForType

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

        public OnnxMl.TensorProto.Segment 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 OnnxMl.TensorProto.Segment buildPartial()
        Specified by:
        buildPartial in interface org.nd4j.shade.protobuf.Message.Builder
        Specified by:
        buildPartial in interface org.nd4j.shade.protobuf.MessageLite.Builder
      • setRepeatedField

        public OnnxMl.TensorProto.Segment.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<OnnxMl.TensorProto.Segment.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<OnnxMl.TensorProto.Segment.Builder>
      • mergeFrom

        public OnnxMl.TensorProto.Segment.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<OnnxMl.TensorProto.Segment.Builder>
        Throws:
        IOException
      • setBegin

        public OnnxMl.TensorProto.Segment.Builder setBegin​(long value)
        int64 begin = 1;
        Parameters:
        value - The begin to set.
        Returns:
        This builder for chaining.
      • setUnknownFields

        public final OnnxMl.TensorProto.Segment.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<OnnxMl.TensorProto.Segment.Builder>
      • mergeUnknownFields

        public final OnnxMl.TensorProto.Segment.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<OnnxMl.TensorProto.Segment.Builder>