Package ai.onnx.proto

Class OnnxMl.TensorProto.Segment.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderType>
com.google.protobuf.GeneratedMessageV3.Builder<OnnxMl.TensorProto.Segment.Builder>
ai.onnx.proto.OnnxMl.TensorProto.Segment.Builder
All Implemented Interfaces:
OnnxMl.TensorProto.SegmentOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
OnnxMl.TensorProto.Segment

public static final class OnnxMl.TensorProto.Segment.Builder extends com.google.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 Details

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

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

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public OnnxMl.TensorProto.Segment buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.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<OnnxMl.TensorProto.Segment.Builder>
    • setField

      public OnnxMl.TensorProto.Segment.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      setField in interface com.google.protobuf.Message.Builder
      Overrides:
      setField in class com.google.protobuf.GeneratedMessageV3.Builder<OnnxMl.TensorProto.Segment.Builder>
    • clearField

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

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

      public OnnxMl.TensorProto.Segment.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
      Specified by:
      setRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<OnnxMl.TensorProto.Segment.Builder>
    • addRepeatedField

      public OnnxMl.TensorProto.Segment.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      addRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<OnnxMl.TensorProto.Segment.Builder>
    • mergeFrom

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

    • isInitialized

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

      public OnnxMl.TensorProto.Segment.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws 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<OnnxMl.TensorProto.Segment.Builder>
      Throws:
      IOException
    • hasBegin

      public boolean hasBegin()
      optional int64 begin = 1;
      Specified by:
      hasBegin in interface OnnxMl.TensorProto.SegmentOrBuilder
      Returns:
      Whether the begin field is set.
    • getBegin

      public long getBegin()
      optional int64 begin = 1;
      Specified by:
      getBegin in interface OnnxMl.TensorProto.SegmentOrBuilder
      Returns:
      The begin.
    • setBegin

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

      optional int64 begin = 1;
      Returns:
      This builder for chaining.
    • hasEnd

      public boolean hasEnd()
      optional int64 end = 2;
      Specified by:
      hasEnd in interface OnnxMl.TensorProto.SegmentOrBuilder
      Returns:
      Whether the end field is set.
    • getEnd

      public long getEnd()
      optional int64 end = 2;
      Specified by:
      getEnd in interface OnnxMl.TensorProto.SegmentOrBuilder
      Returns:
      The end.
    • setEnd

      public OnnxMl.TensorProto.Segment.Builder setEnd(long value)
      optional int64 end = 2;
      Parameters:
      value - The end to set.
      Returns:
      This builder for chaining.
    • clearEnd

      optional int64 end = 2;
      Returns:
      This builder for chaining.
    • setUnknownFields

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

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