Package ai.onnx.proto

Class OnnxMl.NodeProto.Builder

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

public static final class OnnxMl.NodeProto.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<OnnxMl.NodeProto.Builder> implements OnnxMl.NodeProtoOrBuilder
 Nodes
 Computation graphs are made up of a DAG of nodes, which represent what is
 commonly called a "layer" or "pipeline stage" in machine learning frameworks.
 For example, it can be a node of type "Conv" that takes in an image, a filter
 tensor and a bias tensor, and produces the convolved output.
 
Protobuf type onnx.NodeProto
  • 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.NodeProto.Builder>
    • clear

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

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

      public OnnxMl.NodeProto build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public OnnxMl.NodeProto buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • clone

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

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

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

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

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

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

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

      public OnnxMl.NodeProto.Builder mergeFrom(OnnxMl.NodeProto other)
    • isInitialized

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

      public OnnxMl.NodeProto.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.NodeProto.Builder>
      Throws:
      IOException
    • getInputList

      public com.google.protobuf.ProtocolStringList getInputList()
       namespace Value
       
      repeated string input = 1;
      Specified by:
      getInputList in interface OnnxMl.NodeProtoOrBuilder
      Returns:
      A list containing the input.
    • getInputCount

      public int getInputCount()
       namespace Value
       
      repeated string input = 1;
      Specified by:
      getInputCount in interface OnnxMl.NodeProtoOrBuilder
      Returns:
      The count of input.
    • getInput

      public String getInput(int index)
       namespace Value
       
      repeated string input = 1;
      Specified by:
      getInput in interface OnnxMl.NodeProtoOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The input at the given index.
    • getInputBytes

      public com.google.protobuf.ByteString getInputBytes(int index)
       namespace Value
       
      repeated string input = 1;
      Specified by:
      getInputBytes in interface OnnxMl.NodeProtoOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the input at the given index.
    • setInput

      public OnnxMl.NodeProto.Builder setInput(int index, String value)
       namespace Value
       
      repeated string input = 1;
      Parameters:
      index - The index to set the value at.
      value - The input to set.
      Returns:
      This builder for chaining.
    • addInput

      public OnnxMl.NodeProto.Builder addInput(String value)
       namespace Value
       
      repeated string input = 1;
      Parameters:
      value - The input to add.
      Returns:
      This builder for chaining.
    • addAllInput

      public OnnxMl.NodeProto.Builder addAllInput(Iterable<String> values)
       namespace Value
       
      repeated string input = 1;
      Parameters:
      values - The input to add.
      Returns:
      This builder for chaining.
    • clearInput

      public OnnxMl.NodeProto.Builder clearInput()
       namespace Value
       
      repeated string input = 1;
      Returns:
      This builder for chaining.
    • addInputBytes

      public OnnxMl.NodeProto.Builder addInputBytes(com.google.protobuf.ByteString value)
       namespace Value
       
      repeated string input = 1;
      Parameters:
      value - The bytes of the input to add.
      Returns:
      This builder for chaining.
    • getOutputList

      public com.google.protobuf.ProtocolStringList getOutputList()
       namespace Value
       
      repeated string output = 2;
      Specified by:
      getOutputList in interface OnnxMl.NodeProtoOrBuilder
      Returns:
      A list containing the output.
    • getOutputCount

      public int getOutputCount()
       namespace Value
       
      repeated string output = 2;
      Specified by:
      getOutputCount in interface OnnxMl.NodeProtoOrBuilder
      Returns:
      The count of output.
    • getOutput

      public String getOutput(int index)
       namespace Value
       
      repeated string output = 2;
      Specified by:
      getOutput in interface OnnxMl.NodeProtoOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The output at the given index.
    • getOutputBytes

      public com.google.protobuf.ByteString getOutputBytes(int index)
       namespace Value
       
      repeated string output = 2;
      Specified by:
      getOutputBytes in interface OnnxMl.NodeProtoOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the output at the given index.
    • setOutput

      public OnnxMl.NodeProto.Builder setOutput(int index, String value)
       namespace Value
       
      repeated string output = 2;
      Parameters:
      index - The index to set the value at.
      value - The output to set.
      Returns:
      This builder for chaining.
    • addOutput

      public OnnxMl.NodeProto.Builder addOutput(String value)
       namespace Value
       
      repeated string output = 2;
      Parameters:
      value - The output to add.
      Returns:
      This builder for chaining.
    • addAllOutput

      public OnnxMl.NodeProto.Builder addAllOutput(Iterable<String> values)
       namespace Value
       
      repeated string output = 2;
      Parameters:
      values - The output to add.
      Returns:
      This builder for chaining.
    • clearOutput

      public OnnxMl.NodeProto.Builder clearOutput()
       namespace Value
       
      repeated string output = 2;
      Returns:
      This builder for chaining.
    • addOutputBytes

      public OnnxMl.NodeProto.Builder addOutputBytes(com.google.protobuf.ByteString value)
       namespace Value
       
      repeated string output = 2;
      Parameters:
      value - The bytes of the output to add.
      Returns:
      This builder for chaining.
    • hasName

      public boolean hasName()
       An optional identifier for this node in a graph.
       This field MAY be absent in ths version of the IR.
       
      optional string name = 3;
      Specified by:
      hasName in interface OnnxMl.NodeProtoOrBuilder
      Returns:
      Whether the name field is set.
    • getName

      public String getName()
       An optional identifier for this node in a graph.
       This field MAY be absent in ths version of the IR.
       
      optional string name = 3;
      Specified by:
      getName in interface OnnxMl.NodeProtoOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       An optional identifier for this node in a graph.
       This field MAY be absent in ths version of the IR.
       
      optional string name = 3;
      Specified by:
      getNameBytes in interface OnnxMl.NodeProtoOrBuilder
      Returns:
      The bytes for name.
    • setName

      public OnnxMl.NodeProto.Builder setName(String value)
       An optional identifier for this node in a graph.
       This field MAY be absent in ths version of the IR.
       
      optional string name = 3;
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

      public OnnxMl.NodeProto.Builder clearName()
       An optional identifier for this node in a graph.
       This field MAY be absent in ths version of the IR.
       
      optional string name = 3;
      Returns:
      This builder for chaining.
    • setNameBytes

      public OnnxMl.NodeProto.Builder setNameBytes(com.google.protobuf.ByteString value)
       An optional identifier for this node in a graph.
       This field MAY be absent in ths version of the IR.
       
      optional string name = 3;
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • hasOpType

      public boolean hasOpType()
       The symbolic identifier of the Operator to execute.
       
      optional string op_type = 4;
      Specified by:
      hasOpType in interface OnnxMl.NodeProtoOrBuilder
      Returns:
      Whether the opType field is set.
    • getOpType

      public String getOpType()
       The symbolic identifier of the Operator to execute.
       
      optional string op_type = 4;
      Specified by:
      getOpType in interface OnnxMl.NodeProtoOrBuilder
      Returns:
      The opType.
    • getOpTypeBytes

      public com.google.protobuf.ByteString getOpTypeBytes()
       The symbolic identifier of the Operator to execute.
       
      optional string op_type = 4;
      Specified by:
      getOpTypeBytes in interface OnnxMl.NodeProtoOrBuilder
      Returns:
      The bytes for opType.
    • setOpType

      public OnnxMl.NodeProto.Builder setOpType(String value)
       The symbolic identifier of the Operator to execute.
       
      optional string op_type = 4;
      Parameters:
      value - The opType to set.
      Returns:
      This builder for chaining.
    • clearOpType

      public OnnxMl.NodeProto.Builder clearOpType()
       The symbolic identifier of the Operator to execute.
       
      optional string op_type = 4;
      Returns:
      This builder for chaining.
    • setOpTypeBytes

      public OnnxMl.NodeProto.Builder setOpTypeBytes(com.google.protobuf.ByteString value)
       The symbolic identifier of the Operator to execute.
       
      optional string op_type = 4;
      Parameters:
      value - The bytes for opType to set.
      Returns:
      This builder for chaining.
    • hasDomain

      public boolean hasDomain()
       The domain of the OperatorSet that specifies the operator named by op_type.
       
      optional string domain = 7;
      Specified by:
      hasDomain in interface OnnxMl.NodeProtoOrBuilder
      Returns:
      Whether the domain field is set.
    • getDomain

      public String getDomain()
       The domain of the OperatorSet that specifies the operator named by op_type.
       
      optional string domain = 7;
      Specified by:
      getDomain in interface OnnxMl.NodeProtoOrBuilder
      Returns:
      The domain.
    • getDomainBytes

      public com.google.protobuf.ByteString getDomainBytes()
       The domain of the OperatorSet that specifies the operator named by op_type.
       
      optional string domain = 7;
      Specified by:
      getDomainBytes in interface OnnxMl.NodeProtoOrBuilder
      Returns:
      The bytes for domain.
    • setDomain

      public OnnxMl.NodeProto.Builder setDomain(String value)
       The domain of the OperatorSet that specifies the operator named by op_type.
       
      optional string domain = 7;
      Parameters:
      value - The domain to set.
      Returns:
      This builder for chaining.
    • clearDomain

      public OnnxMl.NodeProto.Builder clearDomain()
       The domain of the OperatorSet that specifies the operator named by op_type.
       
      optional string domain = 7;
      Returns:
      This builder for chaining.
    • setDomainBytes

      public OnnxMl.NodeProto.Builder setDomainBytes(com.google.protobuf.ByteString value)
       The domain of the OperatorSet that specifies the operator named by op_type.
       
      optional string domain = 7;
      Parameters:
      value - The bytes for domain to set.
      Returns:
      This builder for chaining.
    • getAttributeList

      public List<OnnxMl.AttributeProto> getAttributeList()
       Additional named attributes.
       
      repeated .onnx.AttributeProto attribute = 5;
      Specified by:
      getAttributeList in interface OnnxMl.NodeProtoOrBuilder
    • getAttributeCount

      public int getAttributeCount()
       Additional named attributes.
       
      repeated .onnx.AttributeProto attribute = 5;
      Specified by:
      getAttributeCount in interface OnnxMl.NodeProtoOrBuilder
    • getAttribute

      public OnnxMl.AttributeProto getAttribute(int index)
       Additional named attributes.
       
      repeated .onnx.AttributeProto attribute = 5;
      Specified by:
      getAttribute in interface OnnxMl.NodeProtoOrBuilder
    • setAttribute

      public OnnxMl.NodeProto.Builder setAttribute(int index, OnnxMl.AttributeProto value)
       Additional named attributes.
       
      repeated .onnx.AttributeProto attribute = 5;
    • setAttribute

      public OnnxMl.NodeProto.Builder setAttribute(int index, OnnxMl.AttributeProto.Builder builderForValue)
       Additional named attributes.
       
      repeated .onnx.AttributeProto attribute = 5;
    • addAttribute

      public OnnxMl.NodeProto.Builder addAttribute(OnnxMl.AttributeProto value)
       Additional named attributes.
       
      repeated .onnx.AttributeProto attribute = 5;
    • addAttribute

      public OnnxMl.NodeProto.Builder addAttribute(int index, OnnxMl.AttributeProto value)
       Additional named attributes.
       
      repeated .onnx.AttributeProto attribute = 5;
    • addAttribute

      public OnnxMl.NodeProto.Builder addAttribute(OnnxMl.AttributeProto.Builder builderForValue)
       Additional named attributes.
       
      repeated .onnx.AttributeProto attribute = 5;
    • addAttribute

      public OnnxMl.NodeProto.Builder addAttribute(int index, OnnxMl.AttributeProto.Builder builderForValue)
       Additional named attributes.
       
      repeated .onnx.AttributeProto attribute = 5;
    • addAllAttribute

      public OnnxMl.NodeProto.Builder addAllAttribute(Iterable<? extends OnnxMl.AttributeProto> values)
       Additional named attributes.
       
      repeated .onnx.AttributeProto attribute = 5;
    • clearAttribute

      public OnnxMl.NodeProto.Builder clearAttribute()
       Additional named attributes.
       
      repeated .onnx.AttributeProto attribute = 5;
    • removeAttribute

      public OnnxMl.NodeProto.Builder removeAttribute(int index)
       Additional named attributes.
       
      repeated .onnx.AttributeProto attribute = 5;
    • getAttributeBuilder

      public OnnxMl.AttributeProto.Builder getAttributeBuilder(int index)
       Additional named attributes.
       
      repeated .onnx.AttributeProto attribute = 5;
    • getAttributeOrBuilder

      public OnnxMl.AttributeProtoOrBuilder getAttributeOrBuilder(int index)
       Additional named attributes.
       
      repeated .onnx.AttributeProto attribute = 5;
      Specified by:
      getAttributeOrBuilder in interface OnnxMl.NodeProtoOrBuilder
    • getAttributeOrBuilderList

      public List<? extends OnnxMl.AttributeProtoOrBuilder> getAttributeOrBuilderList()
       Additional named attributes.
       
      repeated .onnx.AttributeProto attribute = 5;
      Specified by:
      getAttributeOrBuilderList in interface OnnxMl.NodeProtoOrBuilder
    • addAttributeBuilder

      public OnnxMl.AttributeProto.Builder addAttributeBuilder()
       Additional named attributes.
       
      repeated .onnx.AttributeProto attribute = 5;
    • addAttributeBuilder

      public OnnxMl.AttributeProto.Builder addAttributeBuilder(int index)
       Additional named attributes.
       
      repeated .onnx.AttributeProto attribute = 5;
    • getAttributeBuilderList

      public List<OnnxMl.AttributeProto.Builder> getAttributeBuilderList()
       Additional named attributes.
       
      repeated .onnx.AttributeProto attribute = 5;
    • hasDocString

      public boolean hasDocString()
       A human-readable documentation for this node. Markdown is allowed.
       
      optional string doc_string = 6;
      Specified by:
      hasDocString in interface OnnxMl.NodeProtoOrBuilder
      Returns:
      Whether the docString field is set.
    • getDocString

      public String getDocString()
       A human-readable documentation for this node. Markdown is allowed.
       
      optional string doc_string = 6;
      Specified by:
      getDocString in interface OnnxMl.NodeProtoOrBuilder
      Returns:
      The docString.
    • getDocStringBytes

      public com.google.protobuf.ByteString getDocStringBytes()
       A human-readable documentation for this node. Markdown is allowed.
       
      optional string doc_string = 6;
      Specified by:
      getDocStringBytes in interface OnnxMl.NodeProtoOrBuilder
      Returns:
      The bytes for docString.
    • setDocString

      public OnnxMl.NodeProto.Builder setDocString(String value)
       A human-readable documentation for this node. Markdown is allowed.
       
      optional string doc_string = 6;
      Parameters:
      value - The docString to set.
      Returns:
      This builder for chaining.
    • clearDocString

      public OnnxMl.NodeProto.Builder clearDocString()
       A human-readable documentation for this node. Markdown is allowed.
       
      optional string doc_string = 6;
      Returns:
      This builder for chaining.
    • setDocStringBytes

      public OnnxMl.NodeProto.Builder setDocStringBytes(com.google.protobuf.ByteString value)
       A human-readable documentation for this node. Markdown is allowed.
       
      optional string doc_string = 6;
      Parameters:
      value - The bytes for docString to set.
      Returns:
      This builder for chaining.
    • setUnknownFields

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

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