Package ai.onnx.proto

Class OnnxMl.TensorShapeProto.Dimension.Builder

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

public static final class OnnxMl.TensorShapeProto.Dimension.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<OnnxMl.TensorShapeProto.Dimension.Builder> implements OnnxMl.TensorShapeProto.DimensionOrBuilder
Protobuf type onnx.TensorShapeProto.Dimension
  • 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.TensorShapeProto.Dimension.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.TensorShapeProto.Dimension.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.TensorShapeProto.Dimension.Builder>
    • getDefaultInstanceForType

      public OnnxMl.TensorShapeProto.Dimension 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.TensorShapeProto.Dimension 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.TensorShapeProto.Dimension.Builder>
    • setField

      public OnnxMl.TensorShapeProto.Dimension.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.TensorShapeProto.Dimension.Builder>
    • clearField

      public OnnxMl.TensorShapeProto.Dimension.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.TensorShapeProto.Dimension.Builder>
    • clearOneof

      public OnnxMl.TensorShapeProto.Dimension.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.TensorShapeProto.Dimension.Builder>
    • setRepeatedField

      public OnnxMl.TensorShapeProto.Dimension.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.TensorShapeProto.Dimension.Builder>
    • addRepeatedField

      public OnnxMl.TensorShapeProto.Dimension.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.TensorShapeProto.Dimension.Builder>
    • mergeFrom

      public OnnxMl.TensorShapeProto.Dimension.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.TensorShapeProto.Dimension.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.TensorShapeProto.Dimension.Builder>
    • mergeFrom

      public OnnxMl.TensorShapeProto.Dimension.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.TensorShapeProto.Dimension.Builder>
      Throws:
      IOException
    • getValueCase

      Specified by:
      getValueCase in interface OnnxMl.TensorShapeProto.DimensionOrBuilder
    • clearValue

    • hasDimValue

      public boolean hasDimValue()
      int64 dim_value = 1;
      Specified by:
      hasDimValue in interface OnnxMl.TensorShapeProto.DimensionOrBuilder
      Returns:
      Whether the dimValue field is set.
    • getDimValue

      public long getDimValue()
      int64 dim_value = 1;
      Specified by:
      getDimValue in interface OnnxMl.TensorShapeProto.DimensionOrBuilder
      Returns:
      The dimValue.
    • setDimValue

      public OnnxMl.TensorShapeProto.Dimension.Builder setDimValue(long value)
      int64 dim_value = 1;
      Parameters:
      value - The dimValue to set.
      Returns:
      This builder for chaining.
    • clearDimValue

      int64 dim_value = 1;
      Returns:
      This builder for chaining.
    • hasDimParam

      public boolean hasDimParam()
       namespace Shape
       
      string dim_param = 2;
      Specified by:
      hasDimParam in interface OnnxMl.TensorShapeProto.DimensionOrBuilder
      Returns:
      Whether the dimParam field is set.
    • getDimParam

      public String getDimParam()
       namespace Shape
       
      string dim_param = 2;
      Specified by:
      getDimParam in interface OnnxMl.TensorShapeProto.DimensionOrBuilder
      Returns:
      The dimParam.
    • getDimParamBytes

      public com.google.protobuf.ByteString getDimParamBytes()
       namespace Shape
       
      string dim_param = 2;
      Specified by:
      getDimParamBytes in interface OnnxMl.TensorShapeProto.DimensionOrBuilder
      Returns:
      The bytes for dimParam.
    • setDimParam

       namespace Shape
       
      string dim_param = 2;
      Parameters:
      value - The dimParam to set.
      Returns:
      This builder for chaining.
    • clearDimParam

       namespace Shape
       
      string dim_param = 2;
      Returns:
      This builder for chaining.
    • setDimParamBytes

      public OnnxMl.TensorShapeProto.Dimension.Builder setDimParamBytes(com.google.protobuf.ByteString value)
       namespace Shape
       
      string dim_param = 2;
      Parameters:
      value - The bytes for dimParam to set.
      Returns:
      This builder for chaining.
    • hasDenotation

      public boolean hasDenotation()
       Standard denotation can optionally be used to denote tensor
       dimensions with standard semantic descriptions to ensure
       that operations are applied to the correct axis of a tensor.
       Refer to https://github.com/onnx/onnx/blob/master/docs/DimensionDenotation.md#denotation-definition
       for pre-defined dimension denotations.
       
      optional string denotation = 3;
      Specified by:
      hasDenotation in interface OnnxMl.TensorShapeProto.DimensionOrBuilder
      Returns:
      Whether the denotation field is set.
    • getDenotation

      public String getDenotation()
       Standard denotation can optionally be used to denote tensor
       dimensions with standard semantic descriptions to ensure
       that operations are applied to the correct axis of a tensor.
       Refer to https://github.com/onnx/onnx/blob/master/docs/DimensionDenotation.md#denotation-definition
       for pre-defined dimension denotations.
       
      optional string denotation = 3;
      Specified by:
      getDenotation in interface OnnxMl.TensorShapeProto.DimensionOrBuilder
      Returns:
      The denotation.
    • getDenotationBytes

      public com.google.protobuf.ByteString getDenotationBytes()
       Standard denotation can optionally be used to denote tensor
       dimensions with standard semantic descriptions to ensure
       that operations are applied to the correct axis of a tensor.
       Refer to https://github.com/onnx/onnx/blob/master/docs/DimensionDenotation.md#denotation-definition
       for pre-defined dimension denotations.
       
      optional string denotation = 3;
      Specified by:
      getDenotationBytes in interface OnnxMl.TensorShapeProto.DimensionOrBuilder
      Returns:
      The bytes for denotation.
    • setDenotation

      public OnnxMl.TensorShapeProto.Dimension.Builder setDenotation(String value)
       Standard denotation can optionally be used to denote tensor
       dimensions with standard semantic descriptions to ensure
       that operations are applied to the correct axis of a tensor.
       Refer to https://github.com/onnx/onnx/blob/master/docs/DimensionDenotation.md#denotation-definition
       for pre-defined dimension denotations.
       
      optional string denotation = 3;
      Parameters:
      value - The denotation to set.
      Returns:
      This builder for chaining.
    • clearDenotation

       Standard denotation can optionally be used to denote tensor
       dimensions with standard semantic descriptions to ensure
       that operations are applied to the correct axis of a tensor.
       Refer to https://github.com/onnx/onnx/blob/master/docs/DimensionDenotation.md#denotation-definition
       for pre-defined dimension denotations.
       
      optional string denotation = 3;
      Returns:
      This builder for chaining.
    • setDenotationBytes

      public OnnxMl.TensorShapeProto.Dimension.Builder setDenotationBytes(com.google.protobuf.ByteString value)
       Standard denotation can optionally be used to denote tensor
       dimensions with standard semantic descriptions to ensure
       that operations are applied to the correct axis of a tensor.
       Refer to https://github.com/onnx/onnx/blob/master/docs/DimensionDenotation.md#denotation-definition
       for pre-defined dimension denotations.
       
      optional string denotation = 3;
      Parameters:
      value - The bytes for denotation to set.
      Returns:
      This builder for chaining.
    • setUnknownFields

      public final OnnxMl.TensorShapeProto.Dimension.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.TensorShapeProto.Dimension.Builder>
    • mergeUnknownFields

      public final OnnxMl.TensorShapeProto.Dimension.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.TensorShapeProto.Dimension.Builder>