Class OnnxMl.NodeProto.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<OnnxMl.NodeProto.Builder>
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 Summary
Modifier and TypeMethodDescriptionaddAllAttribute(Iterable<? extends OnnxMl.AttributeProto> values) Additional named attributes.addAllInput(Iterable<String> values) namespace ValueaddAllOutput(Iterable<String> values) namespace ValueaddAttribute(int index, OnnxMl.AttributeProto value) Additional named attributes.addAttribute(int index, OnnxMl.AttributeProto.Builder builderForValue) Additional named attributes.Additional named attributes.addAttribute(OnnxMl.AttributeProto.Builder builderForValue) Additional named attributes.Additional named attributes.addAttributeBuilder(int index) Additional named attributes.namespace ValueaddInputBytes(com.google.protobuf.ByteString value) namespace Valuenamespace ValueaddOutputBytes(com.google.protobuf.ByteString value) namespace ValueaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()Additional named attributes.A human-readable documentation for this node.The domain of the OperatorSet that specifies the operator named by op_type.clearField(com.google.protobuf.Descriptors.FieldDescriptor field) namespace ValueAn optional identifier for this node in a graph.clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) The symbolic identifier of the Operator to execute.namespace Valueclone()getAttribute(int index) Additional named attributes.getAttributeBuilder(int index) Additional named attributes.Additional named attributes.intAdditional named attributes.Additional named attributes.getAttributeOrBuilder(int index) Additional named attributes.List<? extends OnnxMl.AttributeProtoOrBuilder> Additional named attributes.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorA human-readable documentation for this node.com.google.protobuf.ByteStringA human-readable documentation for this node.The domain of the OperatorSet that specifies the operator named by op_type.com.google.protobuf.ByteStringThe domain of the OperatorSet that specifies the operator named by op_type.getInput(int index) namespace Valuecom.google.protobuf.ByteStringgetInputBytes(int index) namespace Valueintnamespace Valuecom.google.protobuf.ProtocolStringListnamespace ValuegetName()An optional identifier for this node in a graph.com.google.protobuf.ByteStringAn optional identifier for this node in a graph.The symbolic identifier of the Operator to execute.com.google.protobuf.ByteStringThe symbolic identifier of the Operator to execute.getOutput(int index) namespace Valuecom.google.protobuf.ByteStringgetOutputBytes(int index) namespace Valueintnamespace Valuecom.google.protobuf.ProtocolStringListnamespace ValuebooleanA human-readable documentation for this node.booleanThe domain of the OperatorSet that specifies the operator named by op_type.booleanhasName()An optional identifier for this node in a graph.booleanThe symbolic identifier of the Operator to execute.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanmergeFrom(OnnxMl.NodeProto other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) final OnnxMl.NodeProto.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) removeAttribute(int index) Additional named attributes.setAttribute(int index, OnnxMl.AttributeProto value) Additional named attributes.setAttribute(int index, OnnxMl.AttributeProto.Builder builderForValue) Additional named attributes.setDocString(String value) A human-readable documentation for this node.setDocStringBytes(com.google.protobuf.ByteString value) A human-readable documentation for this node.The domain of the OperatorSet that specifies the operator named by op_type.setDomainBytes(com.google.protobuf.ByteString value) The domain of the OperatorSet that specifies the operator named by op_type.namespace ValueAn optional identifier for this node in a graph.setNameBytes(com.google.protobuf.ByteString value) An optional identifier for this node in a graph.The symbolic identifier of the Operator to execute.setOpTypeBytes(com.google.protobuf.ByteString value) The symbolic identifier of the Operator to execute.namespace ValuesetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) final OnnxMl.NodeProto.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<OnnxMl.NodeProto.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<OnnxMl.NodeProto.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<OnnxMl.NodeProto.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<OnnxMl.NodeProto.Builder>
-
setField
public OnnxMl.NodeProto.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<OnnxMl.NodeProto.Builder>
-
clearField
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<OnnxMl.NodeProto.Builder>
-
clearOneof
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.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:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<OnnxMl.NodeProto.Builder>
-
addRepeatedField
public OnnxMl.NodeProto.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<OnnxMl.NodeProto.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<OnnxMl.NodeProto.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<OnnxMl.NodeProto.Builder>- Throws:
IOException
-
getInputList
public com.google.protobuf.ProtocolStringList getInputList()namespace Value
repeated string input = 1;- Specified by:
getInputListin interfaceOnnxMl.NodeProtoOrBuilder- Returns:
- A list containing the input.
-
getInputCount
public int getInputCount()namespace Value
repeated string input = 1;- Specified by:
getInputCountin interfaceOnnxMl.NodeProtoOrBuilder- Returns:
- The count of input.
-
getInput
namespace Value
repeated string input = 1;- Specified by:
getInputin interfaceOnnxMl.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:
getInputBytesin interfaceOnnxMl.NodeProtoOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the input at the given index.
-
setInput
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
namespace Value
repeated string input = 1;- Parameters:
value- The input to add.- Returns:
- This builder for chaining.
-
addAllInput
namespace Value
repeated string input = 1;- Parameters:
values- The input to add.- Returns:
- This builder for chaining.
-
clearInput
namespace Value
repeated string input = 1;- Returns:
- This builder for chaining.
-
addInputBytes
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:
getOutputListin interfaceOnnxMl.NodeProtoOrBuilder- Returns:
- A list containing the output.
-
getOutputCount
public int getOutputCount()namespace Value
repeated string output = 2;- Specified by:
getOutputCountin interfaceOnnxMl.NodeProtoOrBuilder- Returns:
- The count of output.
-
getOutput
namespace Value
repeated string output = 2;- Specified by:
getOutputin interfaceOnnxMl.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:
getOutputBytesin interfaceOnnxMl.NodeProtoOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the output at the given index.
-
setOutput
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
namespace Value
repeated string output = 2;- Parameters:
value- The output to add.- Returns:
- This builder for chaining.
-
addAllOutput
namespace Value
repeated string output = 2;- Parameters:
values- The output to add.- Returns:
- This builder for chaining.
-
clearOutput
namespace Value
repeated string output = 2;- Returns:
- This builder for chaining.
-
addOutputBytes
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:
hasNamein interfaceOnnxMl.NodeProtoOrBuilder- Returns:
- Whether the name field is set.
-
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:
getNamein interfaceOnnxMl.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:
getNameBytesin interfaceOnnxMl.NodeProtoOrBuilder- Returns:
- The bytes for name.
-
setName
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
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
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:
hasOpTypein interfaceOnnxMl.NodeProtoOrBuilder- Returns:
- Whether the opType field is set.
-
getOpType
The symbolic identifier of the Operator to execute.
optional string op_type = 4;- Specified by:
getOpTypein interfaceOnnxMl.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:
getOpTypeBytesin interfaceOnnxMl.NodeProtoOrBuilder- Returns:
- The bytes for opType.
-
setOpType
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
The symbolic identifier of the Operator to execute.
optional string op_type = 4;- Returns:
- This builder for chaining.
-
setOpTypeBytes
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:
hasDomainin interfaceOnnxMl.NodeProtoOrBuilder- Returns:
- Whether the domain field is set.
-
getDomain
The domain of the OperatorSet that specifies the operator named by op_type.
optional string domain = 7;- Specified by:
getDomainin interfaceOnnxMl.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:
getDomainBytesin interfaceOnnxMl.NodeProtoOrBuilder- Returns:
- The bytes for domain.
-
setDomain
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
The domain of the OperatorSet that specifies the operator named by op_type.
optional string domain = 7;- Returns:
- This builder for chaining.
-
setDomainBytes
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
Additional named attributes.
repeated .onnx.AttributeProto attribute = 5;- Specified by:
getAttributeListin interfaceOnnxMl.NodeProtoOrBuilder
-
getAttributeCount
public int getAttributeCount()Additional named attributes.
repeated .onnx.AttributeProto attribute = 5;- Specified by:
getAttributeCountin interfaceOnnxMl.NodeProtoOrBuilder
-
getAttribute
Additional named attributes.
repeated .onnx.AttributeProto attribute = 5;- Specified by:
getAttributein interfaceOnnxMl.NodeProtoOrBuilder
-
setAttribute
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
Additional named attributes.
repeated .onnx.AttributeProto attribute = 5; -
addAttribute
Additional named attributes.
repeated .onnx.AttributeProto attribute = 5; -
addAttribute
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
Additional named attributes.
repeated .onnx.AttributeProto attribute = 5; -
clearAttribute
Additional named attributes.
repeated .onnx.AttributeProto attribute = 5; -
removeAttribute
Additional named attributes.
repeated .onnx.AttributeProto attribute = 5; -
getAttributeBuilder
Additional named attributes.
repeated .onnx.AttributeProto attribute = 5; -
getAttributeOrBuilder
Additional named attributes.
repeated .onnx.AttributeProto attribute = 5;- Specified by:
getAttributeOrBuilderin interfaceOnnxMl.NodeProtoOrBuilder
-
getAttributeOrBuilderList
Additional named attributes.
repeated .onnx.AttributeProto attribute = 5;- Specified by:
getAttributeOrBuilderListin interfaceOnnxMl.NodeProtoOrBuilder
-
addAttributeBuilder
Additional named attributes.
repeated .onnx.AttributeProto attribute = 5; -
addAttributeBuilder
Additional named attributes.
repeated .onnx.AttributeProto attribute = 5; -
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:
hasDocStringin interfaceOnnxMl.NodeProtoOrBuilder- Returns:
- Whether the docString field is set.
-
getDocString
A human-readable documentation for this node. Markdown is allowed.
optional string doc_string = 6;- Specified by:
getDocStringin interfaceOnnxMl.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:
getDocStringBytesin interfaceOnnxMl.NodeProtoOrBuilder- Returns:
- The bytes for docString.
-
setDocString
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
A human-readable documentation for this node. Markdown is allowed.
optional string doc_string = 6;- Returns:
- This builder for chaining.
-
setDocStringBytes
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:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<OnnxMl.NodeProto.Builder>
-
mergeUnknownFields
public final OnnxMl.NodeProto.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<OnnxMl.NodeProto.Builder>
-