Package onnx
Class Onnx.GraphProto.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderType>
-
- com.google.protobuf.GeneratedMessageV3.Builder<Onnx.GraphProto.Builder>
-
- onnx.Onnx.GraphProto.Builder
-
- All Implemented Interfaces:
com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
,Onnx.GraphProtoOrBuilder
- Enclosing class:
- Onnx.GraphProto
public static final class Onnx.GraphProto.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Onnx.GraphProto.Builder> implements Onnx.GraphProtoOrBuilder
Graphs A graph defines the computational logic of a model and is comprised of a parameterized list of nodes that form a directed acyclic graph based on their inputs and outputs. This is the equivalent of the "network" or "graph" in many deep learning frameworks.
Protobuf typeonnx.GraphProto
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Onnx.GraphProto.Builder
addAllInitializer(Iterable<? extends Onnx.TensorProto> values)
A list of named tensor values, used to specify constant inputs of the graph.Onnx.GraphProto.Builder
addAllInput(Iterable<? extends Onnx.ValueInfoProto> values)
The inputs and outputs of the graph.Onnx.GraphProto.Builder
addAllNode(Iterable<? extends Onnx.NodeProto> values)
The nodes in the graph, sorted topologically.Onnx.GraphProto.Builder
addAllOutput(Iterable<? extends Onnx.ValueInfoProto> values)
repeated .onnx.ValueInfoProto output = 12;
Onnx.GraphProto.Builder
addAllValueInfo(Iterable<? extends Onnx.ValueInfoProto> values)
Information for the values in the graph.Onnx.GraphProto.Builder
addInitializer(int index, Onnx.TensorProto value)
A list of named tensor values, used to specify constant inputs of the graph.Onnx.GraphProto.Builder
addInitializer(int index, Onnx.TensorProto.Builder builderForValue)
A list of named tensor values, used to specify constant inputs of the graph.Onnx.GraphProto.Builder
addInitializer(Onnx.TensorProto value)
A list of named tensor values, used to specify constant inputs of the graph.Onnx.GraphProto.Builder
addInitializer(Onnx.TensorProto.Builder builderForValue)
A list of named tensor values, used to specify constant inputs of the graph.Onnx.TensorProto.Builder
addInitializerBuilder()
A list of named tensor values, used to specify constant inputs of the graph.Onnx.TensorProto.Builder
addInitializerBuilder(int index)
A list of named tensor values, used to specify constant inputs of the graph.Onnx.GraphProto.Builder
addInput(int index, Onnx.ValueInfoProto value)
The inputs and outputs of the graph.Onnx.GraphProto.Builder
addInput(int index, Onnx.ValueInfoProto.Builder builderForValue)
The inputs and outputs of the graph.Onnx.GraphProto.Builder
addInput(Onnx.ValueInfoProto value)
The inputs and outputs of the graph.Onnx.GraphProto.Builder
addInput(Onnx.ValueInfoProto.Builder builderForValue)
The inputs and outputs of the graph.Onnx.ValueInfoProto.Builder
addInputBuilder()
The inputs and outputs of the graph.Onnx.ValueInfoProto.Builder
addInputBuilder(int index)
The inputs and outputs of the graph.Onnx.GraphProto.Builder
addNode(int index, Onnx.NodeProto value)
The nodes in the graph, sorted topologically.Onnx.GraphProto.Builder
addNode(int index, Onnx.NodeProto.Builder builderForValue)
The nodes in the graph, sorted topologically.Onnx.GraphProto.Builder
addNode(Onnx.NodeProto value)
The nodes in the graph, sorted topologically.Onnx.GraphProto.Builder
addNode(Onnx.NodeProto.Builder builderForValue)
The nodes in the graph, sorted topologically.Onnx.NodeProto.Builder
addNodeBuilder()
The nodes in the graph, sorted topologically.Onnx.NodeProto.Builder
addNodeBuilder(int index)
The nodes in the graph, sorted topologically.Onnx.GraphProto.Builder
addOutput(int index, Onnx.ValueInfoProto value)
repeated .onnx.ValueInfoProto output = 12;
Onnx.GraphProto.Builder
addOutput(int index, Onnx.ValueInfoProto.Builder builderForValue)
repeated .onnx.ValueInfoProto output = 12;
Onnx.GraphProto.Builder
addOutput(Onnx.ValueInfoProto value)
repeated .onnx.ValueInfoProto output = 12;
Onnx.GraphProto.Builder
addOutput(Onnx.ValueInfoProto.Builder builderForValue)
repeated .onnx.ValueInfoProto output = 12;
Onnx.ValueInfoProto.Builder
addOutputBuilder()
repeated .onnx.ValueInfoProto output = 12;
Onnx.ValueInfoProto.Builder
addOutputBuilder(int index)
repeated .onnx.ValueInfoProto output = 12;
Onnx.GraphProto.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
Onnx.GraphProto.Builder
addValueInfo(int index, Onnx.ValueInfoProto value)
Information for the values in the graph.Onnx.GraphProto.Builder
addValueInfo(int index, Onnx.ValueInfoProto.Builder builderForValue)
Information for the values in the graph.Onnx.GraphProto.Builder
addValueInfo(Onnx.ValueInfoProto value)
Information for the values in the graph.Onnx.GraphProto.Builder
addValueInfo(Onnx.ValueInfoProto.Builder builderForValue)
Information for the values in the graph.Onnx.ValueInfoProto.Builder
addValueInfoBuilder()
Information for the values in the graph.Onnx.ValueInfoProto.Builder
addValueInfoBuilder(int index)
Information for the values in the graph.Onnx.GraphProto
build()
Onnx.GraphProto
buildPartial()
Onnx.GraphProto.Builder
clear()
Onnx.GraphProto.Builder
clearDocString()
A human-readable documentation for this graph.Onnx.GraphProto.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
Onnx.GraphProto.Builder
clearInitializer()
A list of named tensor values, used to specify constant inputs of the graph.Onnx.GraphProto.Builder
clearInput()
The inputs and outputs of the graph.Onnx.GraphProto.Builder
clearName()
The name of the graph.Onnx.GraphProto.Builder
clearNode()
The nodes in the graph, sorted topologically.Onnx.GraphProto.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
Onnx.GraphProto.Builder
clearOutput()
repeated .onnx.ValueInfoProto output = 12;
Onnx.GraphProto.Builder
clearValueInfo()
Information for the values in the graph.Onnx.GraphProto.Builder
clone()
Onnx.GraphProto
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
String
getDocString()
A human-readable documentation for this graph.com.google.protobuf.ByteString
getDocStringBytes()
A human-readable documentation for this graph.Onnx.TensorProto
getInitializer(int index)
A list of named tensor values, used to specify constant inputs of the graph.Onnx.TensorProto.Builder
getInitializerBuilder(int index)
A list of named tensor values, used to specify constant inputs of the graph.List<Onnx.TensorProto.Builder>
getInitializerBuilderList()
A list of named tensor values, used to specify constant inputs of the graph.int
getInitializerCount()
A list of named tensor values, used to specify constant inputs of the graph.List<Onnx.TensorProto>
getInitializerList()
A list of named tensor values, used to specify constant inputs of the graph.Onnx.TensorProtoOrBuilder
getInitializerOrBuilder(int index)
A list of named tensor values, used to specify constant inputs of the graph.List<? extends Onnx.TensorProtoOrBuilder>
getInitializerOrBuilderList()
A list of named tensor values, used to specify constant inputs of the graph.Onnx.ValueInfoProto
getInput(int index)
The inputs and outputs of the graph.Onnx.ValueInfoProto.Builder
getInputBuilder(int index)
The inputs and outputs of the graph.List<Onnx.ValueInfoProto.Builder>
getInputBuilderList()
The inputs and outputs of the graph.int
getInputCount()
The inputs and outputs of the graph.List<Onnx.ValueInfoProto>
getInputList()
The inputs and outputs of the graph.Onnx.ValueInfoProtoOrBuilder
getInputOrBuilder(int index)
The inputs and outputs of the graph.List<? extends Onnx.ValueInfoProtoOrBuilder>
getInputOrBuilderList()
The inputs and outputs of the graph.String
getName()
The name of the graph.com.google.protobuf.ByteString
getNameBytes()
The name of the graph.Onnx.NodeProto
getNode(int index)
The nodes in the graph, sorted topologically.Onnx.NodeProto.Builder
getNodeBuilder(int index)
The nodes in the graph, sorted topologically.List<Onnx.NodeProto.Builder>
getNodeBuilderList()
The nodes in the graph, sorted topologically.int
getNodeCount()
The nodes in the graph, sorted topologically.List<Onnx.NodeProto>
getNodeList()
The nodes in the graph, sorted topologically.Onnx.NodeProtoOrBuilder
getNodeOrBuilder(int index)
The nodes in the graph, sorted topologically.List<? extends Onnx.NodeProtoOrBuilder>
getNodeOrBuilderList()
The nodes in the graph, sorted topologically.Onnx.ValueInfoProto
getOutput(int index)
repeated .onnx.ValueInfoProto output = 12;
Onnx.ValueInfoProto.Builder
getOutputBuilder(int index)
repeated .onnx.ValueInfoProto output = 12;
List<Onnx.ValueInfoProto.Builder>
getOutputBuilderList()
repeated .onnx.ValueInfoProto output = 12;
int
getOutputCount()
repeated .onnx.ValueInfoProto output = 12;
List<Onnx.ValueInfoProto>
getOutputList()
repeated .onnx.ValueInfoProto output = 12;
Onnx.ValueInfoProtoOrBuilder
getOutputOrBuilder(int index)
repeated .onnx.ValueInfoProto output = 12;
List<? extends Onnx.ValueInfoProtoOrBuilder>
getOutputOrBuilderList()
repeated .onnx.ValueInfoProto output = 12;
Onnx.ValueInfoProto
getValueInfo(int index)
Information for the values in the graph.Onnx.ValueInfoProto.Builder
getValueInfoBuilder(int index)
Information for the values in the graph.List<Onnx.ValueInfoProto.Builder>
getValueInfoBuilderList()
Information for the values in the graph.int
getValueInfoCount()
Information for the values in the graph.List<Onnx.ValueInfoProto>
getValueInfoList()
Information for the values in the graph.Onnx.ValueInfoProtoOrBuilder
getValueInfoOrBuilder(int index)
Information for the values in the graph.List<? extends Onnx.ValueInfoProtoOrBuilder>
getValueInfoOrBuilderList()
Information for the values in the graph.boolean
hasDocString()
A human-readable documentation for this graph.boolean
hasName()
The name of the graph.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
Onnx.GraphProto.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Onnx.GraphProto.Builder
mergeFrom(com.google.protobuf.Message other)
Onnx.GraphProto.Builder
mergeFrom(Onnx.GraphProto other)
Onnx.GraphProto.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
Onnx.GraphProto.Builder
removeInitializer(int index)
A list of named tensor values, used to specify constant inputs of the graph.Onnx.GraphProto.Builder
removeInput(int index)
The inputs and outputs of the graph.Onnx.GraphProto.Builder
removeNode(int index)
The nodes in the graph, sorted topologically.Onnx.GraphProto.Builder
removeOutput(int index)
repeated .onnx.ValueInfoProto output = 12;
Onnx.GraphProto.Builder
removeValueInfo(int index)
Information for the values in the graph.Onnx.GraphProto.Builder
setDocString(String value)
A human-readable documentation for this graph.Onnx.GraphProto.Builder
setDocStringBytes(com.google.protobuf.ByteString value)
A human-readable documentation for this graph.Onnx.GraphProto.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
Onnx.GraphProto.Builder
setInitializer(int index, Onnx.TensorProto value)
A list of named tensor values, used to specify constant inputs of the graph.Onnx.GraphProto.Builder
setInitializer(int index, Onnx.TensorProto.Builder builderForValue)
A list of named tensor values, used to specify constant inputs of the graph.Onnx.GraphProto.Builder
setInput(int index, Onnx.ValueInfoProto value)
The inputs and outputs of the graph.Onnx.GraphProto.Builder
setInput(int index, Onnx.ValueInfoProto.Builder builderForValue)
The inputs and outputs of the graph.Onnx.GraphProto.Builder
setName(String value)
The name of the graph.Onnx.GraphProto.Builder
setNameBytes(com.google.protobuf.ByteString value)
The name of the graph.Onnx.GraphProto.Builder
setNode(int index, Onnx.NodeProto value)
The nodes in the graph, sorted topologically.Onnx.GraphProto.Builder
setNode(int index, Onnx.NodeProto.Builder builderForValue)
The nodes in the graph, sorted topologically.Onnx.GraphProto.Builder
setOutput(int index, Onnx.ValueInfoProto value)
repeated .onnx.ValueInfoProto output = 12;
Onnx.GraphProto.Builder
setOutput(int index, Onnx.ValueInfoProto.Builder builderForValue)
repeated .onnx.ValueInfoProto output = 12;
Onnx.GraphProto.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
Onnx.GraphProto.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
Onnx.GraphProto.Builder
setValueInfo(int index, Onnx.ValueInfoProto value)
Information for the values in the graph.Onnx.GraphProto.Builder
setValueInfo(int index, Onnx.ValueInfoProto.Builder builderForValue)
Information for the values in the graph.-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeFrom, newUninitializedMessageException
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<Onnx.GraphProto.Builder>
-
clear
public Onnx.GraphProto.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<Onnx.GraphProto.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<Onnx.GraphProto.Builder>
-
getDefaultInstanceForType
public Onnx.GraphProto getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public Onnx.GraphProto build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Onnx.GraphProto buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public Onnx.GraphProto.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<Onnx.GraphProto.Builder>
-
setField
public Onnx.GraphProto.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Onnx.GraphProto.Builder>
-
clearField
public Onnx.GraphProto.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Onnx.GraphProto.Builder>
-
clearOneof
public Onnx.GraphProto.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<Onnx.GraphProto.Builder>
-
setRepeatedField
public Onnx.GraphProto.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Onnx.GraphProto.Builder>
-
addRepeatedField
public Onnx.GraphProto.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Onnx.GraphProto.Builder>
-
mergeFrom
public Onnx.GraphProto.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<Onnx.GraphProto.Builder>
-
mergeFrom
public Onnx.GraphProto.Builder mergeFrom(Onnx.GraphProto other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<Onnx.GraphProto.Builder>
-
mergeFrom
public Onnx.GraphProto.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<Onnx.GraphProto.Builder>
- Throws:
IOException
-
getNodeList
public List<Onnx.NodeProto> getNodeList()
The nodes in the graph, sorted topologically.
repeated .onnx.NodeProto node = 1;
- Specified by:
getNodeList
in interfaceOnnx.GraphProtoOrBuilder
-
getNodeCount
public int getNodeCount()
The nodes in the graph, sorted topologically.
repeated .onnx.NodeProto node = 1;
- Specified by:
getNodeCount
in interfaceOnnx.GraphProtoOrBuilder
-
getNode
public Onnx.NodeProto getNode(int index)
The nodes in the graph, sorted topologically.
repeated .onnx.NodeProto node = 1;
- Specified by:
getNode
in interfaceOnnx.GraphProtoOrBuilder
-
setNode
public Onnx.GraphProto.Builder setNode(int index, Onnx.NodeProto value)
The nodes in the graph, sorted topologically.
repeated .onnx.NodeProto node = 1;
-
setNode
public Onnx.GraphProto.Builder setNode(int index, Onnx.NodeProto.Builder builderForValue)
The nodes in the graph, sorted topologically.
repeated .onnx.NodeProto node = 1;
-
addNode
public Onnx.GraphProto.Builder addNode(Onnx.NodeProto value)
The nodes in the graph, sorted topologically.
repeated .onnx.NodeProto node = 1;
-
addNode
public Onnx.GraphProto.Builder addNode(int index, Onnx.NodeProto value)
The nodes in the graph, sorted topologically.
repeated .onnx.NodeProto node = 1;
-
addNode
public Onnx.GraphProto.Builder addNode(Onnx.NodeProto.Builder builderForValue)
The nodes in the graph, sorted topologically.
repeated .onnx.NodeProto node = 1;
-
addNode
public Onnx.GraphProto.Builder addNode(int index, Onnx.NodeProto.Builder builderForValue)
The nodes in the graph, sorted topologically.
repeated .onnx.NodeProto node = 1;
-
addAllNode
public Onnx.GraphProto.Builder addAllNode(Iterable<? extends Onnx.NodeProto> values)
The nodes in the graph, sorted topologically.
repeated .onnx.NodeProto node = 1;
-
clearNode
public Onnx.GraphProto.Builder clearNode()
The nodes in the graph, sorted topologically.
repeated .onnx.NodeProto node = 1;
-
removeNode
public Onnx.GraphProto.Builder removeNode(int index)
The nodes in the graph, sorted topologically.
repeated .onnx.NodeProto node = 1;
-
getNodeBuilder
public Onnx.NodeProto.Builder getNodeBuilder(int index)
The nodes in the graph, sorted topologically.
repeated .onnx.NodeProto node = 1;
-
getNodeOrBuilder
public Onnx.NodeProtoOrBuilder getNodeOrBuilder(int index)
The nodes in the graph, sorted topologically.
repeated .onnx.NodeProto node = 1;
- Specified by:
getNodeOrBuilder
in interfaceOnnx.GraphProtoOrBuilder
-
getNodeOrBuilderList
public List<? extends Onnx.NodeProtoOrBuilder> getNodeOrBuilderList()
The nodes in the graph, sorted topologically.
repeated .onnx.NodeProto node = 1;
- Specified by:
getNodeOrBuilderList
in interfaceOnnx.GraphProtoOrBuilder
-
addNodeBuilder
public Onnx.NodeProto.Builder addNodeBuilder()
The nodes in the graph, sorted topologically.
repeated .onnx.NodeProto node = 1;
-
addNodeBuilder
public Onnx.NodeProto.Builder addNodeBuilder(int index)
The nodes in the graph, sorted topologically.
repeated .onnx.NodeProto node = 1;
-
getNodeBuilderList
public List<Onnx.NodeProto.Builder> getNodeBuilderList()
The nodes in the graph, sorted topologically.
repeated .onnx.NodeProto node = 1;
-
hasName
public boolean hasName()
The name of the graph.
optional string name = 2;
- Specified by:
hasName
in interfaceOnnx.GraphProtoOrBuilder
- Returns:
- Whether the name field is set.
-
getName
public String getName()
The name of the graph.
optional string name = 2;
- Specified by:
getName
in interfaceOnnx.GraphProtoOrBuilder
- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()
The name of the graph.
optional string name = 2;
- Specified by:
getNameBytes
in interfaceOnnx.GraphProtoOrBuilder
- Returns:
- The bytes for name.
-
setName
public Onnx.GraphProto.Builder setName(String value)
The name of the graph.
optional string name = 2;
- Parameters:
value
- The name to set.- Returns:
- This builder for chaining.
-
clearName
public Onnx.GraphProto.Builder clearName()
The name of the graph.
optional string name = 2;
- Returns:
- This builder for chaining.
-
setNameBytes
public Onnx.GraphProto.Builder setNameBytes(com.google.protobuf.ByteString value)
The name of the graph.
optional string name = 2;
- Parameters:
value
- The bytes for name to set.- Returns:
- This builder for chaining.
-
getInitializerList
public List<Onnx.TensorProto> getInitializerList()
A list of named tensor values, used to specify constant inputs of the graph. Each TensorProto entry must have a distinct name (within the list) that also appears in the input list.
repeated .onnx.TensorProto initializer = 5;
- Specified by:
getInitializerList
in interfaceOnnx.GraphProtoOrBuilder
-
getInitializerCount
public int getInitializerCount()
A list of named tensor values, used to specify constant inputs of the graph. Each TensorProto entry must have a distinct name (within the list) that also appears in the input list.
repeated .onnx.TensorProto initializer = 5;
- Specified by:
getInitializerCount
in interfaceOnnx.GraphProtoOrBuilder
-
getInitializer
public Onnx.TensorProto getInitializer(int index)
A list of named tensor values, used to specify constant inputs of the graph. Each TensorProto entry must have a distinct name (within the list) that also appears in the input list.
repeated .onnx.TensorProto initializer = 5;
- Specified by:
getInitializer
in interfaceOnnx.GraphProtoOrBuilder
-
setInitializer
public Onnx.GraphProto.Builder setInitializer(int index, Onnx.TensorProto value)
A list of named tensor values, used to specify constant inputs of the graph. Each TensorProto entry must have a distinct name (within the list) that also appears in the input list.
repeated .onnx.TensorProto initializer = 5;
-
setInitializer
public Onnx.GraphProto.Builder setInitializer(int index, Onnx.TensorProto.Builder builderForValue)
A list of named tensor values, used to specify constant inputs of the graph. Each TensorProto entry must have a distinct name (within the list) that also appears in the input list.
repeated .onnx.TensorProto initializer = 5;
-
addInitializer
public Onnx.GraphProto.Builder addInitializer(Onnx.TensorProto value)
A list of named tensor values, used to specify constant inputs of the graph. Each TensorProto entry must have a distinct name (within the list) that also appears in the input list.
repeated .onnx.TensorProto initializer = 5;
-
addInitializer
public Onnx.GraphProto.Builder addInitializer(int index, Onnx.TensorProto value)
A list of named tensor values, used to specify constant inputs of the graph. Each TensorProto entry must have a distinct name (within the list) that also appears in the input list.
repeated .onnx.TensorProto initializer = 5;
-
addInitializer
public Onnx.GraphProto.Builder addInitializer(Onnx.TensorProto.Builder builderForValue)
A list of named tensor values, used to specify constant inputs of the graph. Each TensorProto entry must have a distinct name (within the list) that also appears in the input list.
repeated .onnx.TensorProto initializer = 5;
-
addInitializer
public Onnx.GraphProto.Builder addInitializer(int index, Onnx.TensorProto.Builder builderForValue)
A list of named tensor values, used to specify constant inputs of the graph. Each TensorProto entry must have a distinct name (within the list) that also appears in the input list.
repeated .onnx.TensorProto initializer = 5;
-
addAllInitializer
public Onnx.GraphProto.Builder addAllInitializer(Iterable<? extends Onnx.TensorProto> values)
A list of named tensor values, used to specify constant inputs of the graph. Each TensorProto entry must have a distinct name (within the list) that also appears in the input list.
repeated .onnx.TensorProto initializer = 5;
-
clearInitializer
public Onnx.GraphProto.Builder clearInitializer()
A list of named tensor values, used to specify constant inputs of the graph. Each TensorProto entry must have a distinct name (within the list) that also appears in the input list.
repeated .onnx.TensorProto initializer = 5;
-
removeInitializer
public Onnx.GraphProto.Builder removeInitializer(int index)
A list of named tensor values, used to specify constant inputs of the graph. Each TensorProto entry must have a distinct name (within the list) that also appears in the input list.
repeated .onnx.TensorProto initializer = 5;
-
getInitializerBuilder
public Onnx.TensorProto.Builder getInitializerBuilder(int index)
A list of named tensor values, used to specify constant inputs of the graph. Each TensorProto entry must have a distinct name (within the list) that also appears in the input list.
repeated .onnx.TensorProto initializer = 5;
-
getInitializerOrBuilder
public Onnx.TensorProtoOrBuilder getInitializerOrBuilder(int index)
A list of named tensor values, used to specify constant inputs of the graph. Each TensorProto entry must have a distinct name (within the list) that also appears in the input list.
repeated .onnx.TensorProto initializer = 5;
- Specified by:
getInitializerOrBuilder
in interfaceOnnx.GraphProtoOrBuilder
-
getInitializerOrBuilderList
public List<? extends Onnx.TensorProtoOrBuilder> getInitializerOrBuilderList()
A list of named tensor values, used to specify constant inputs of the graph. Each TensorProto entry must have a distinct name (within the list) that also appears in the input list.
repeated .onnx.TensorProto initializer = 5;
- Specified by:
getInitializerOrBuilderList
in interfaceOnnx.GraphProtoOrBuilder
-
addInitializerBuilder
public Onnx.TensorProto.Builder addInitializerBuilder()
A list of named tensor values, used to specify constant inputs of the graph. Each TensorProto entry must have a distinct name (within the list) that also appears in the input list.
repeated .onnx.TensorProto initializer = 5;
-
addInitializerBuilder
public Onnx.TensorProto.Builder addInitializerBuilder(int index)
A list of named tensor values, used to specify constant inputs of the graph. Each TensorProto entry must have a distinct name (within the list) that also appears in the input list.
repeated .onnx.TensorProto initializer = 5;
-
getInitializerBuilderList
public List<Onnx.TensorProto.Builder> getInitializerBuilderList()
A list of named tensor values, used to specify constant inputs of the graph. Each TensorProto entry must have a distinct name (within the list) that also appears in the input list.
repeated .onnx.TensorProto initializer = 5;
-
hasDocString
public boolean hasDocString()
A human-readable documentation for this graph. Markdown is allowed.
optional string doc_string = 10;
- Specified by:
hasDocString
in interfaceOnnx.GraphProtoOrBuilder
- Returns:
- Whether the docString field is set.
-
getDocString
public String getDocString()
A human-readable documentation for this graph. Markdown is allowed.
optional string doc_string = 10;
- Specified by:
getDocString
in interfaceOnnx.GraphProtoOrBuilder
- Returns:
- The docString.
-
getDocStringBytes
public com.google.protobuf.ByteString getDocStringBytes()
A human-readable documentation for this graph. Markdown is allowed.
optional string doc_string = 10;
- Specified by:
getDocStringBytes
in interfaceOnnx.GraphProtoOrBuilder
- Returns:
- The bytes for docString.
-
setDocString
public Onnx.GraphProto.Builder setDocString(String value)
A human-readable documentation for this graph. Markdown is allowed.
optional string doc_string = 10;
- Parameters:
value
- The docString to set.- Returns:
- This builder for chaining.
-
clearDocString
public Onnx.GraphProto.Builder clearDocString()
A human-readable documentation for this graph. Markdown is allowed.
optional string doc_string = 10;
- Returns:
- This builder for chaining.
-
setDocStringBytes
public Onnx.GraphProto.Builder setDocStringBytes(com.google.protobuf.ByteString value)
A human-readable documentation for this graph. Markdown is allowed.
optional string doc_string = 10;
- Parameters:
value
- The bytes for docString to set.- Returns:
- This builder for chaining.
-
getInputList
public List<Onnx.ValueInfoProto> getInputList()
The inputs and outputs of the graph.
repeated .onnx.ValueInfoProto input = 11;
- Specified by:
getInputList
in interfaceOnnx.GraphProtoOrBuilder
-
getInputCount
public int getInputCount()
The inputs and outputs of the graph.
repeated .onnx.ValueInfoProto input = 11;
- Specified by:
getInputCount
in interfaceOnnx.GraphProtoOrBuilder
-
getInput
public Onnx.ValueInfoProto getInput(int index)
The inputs and outputs of the graph.
repeated .onnx.ValueInfoProto input = 11;
- Specified by:
getInput
in interfaceOnnx.GraphProtoOrBuilder
-
setInput
public Onnx.GraphProto.Builder setInput(int index, Onnx.ValueInfoProto value)
The inputs and outputs of the graph.
repeated .onnx.ValueInfoProto input = 11;
-
setInput
public Onnx.GraphProto.Builder setInput(int index, Onnx.ValueInfoProto.Builder builderForValue)
The inputs and outputs of the graph.
repeated .onnx.ValueInfoProto input = 11;
-
addInput
public Onnx.GraphProto.Builder addInput(Onnx.ValueInfoProto value)
The inputs and outputs of the graph.
repeated .onnx.ValueInfoProto input = 11;
-
addInput
public Onnx.GraphProto.Builder addInput(int index, Onnx.ValueInfoProto value)
The inputs and outputs of the graph.
repeated .onnx.ValueInfoProto input = 11;
-
addInput
public Onnx.GraphProto.Builder addInput(Onnx.ValueInfoProto.Builder builderForValue)
The inputs and outputs of the graph.
repeated .onnx.ValueInfoProto input = 11;
-
addInput
public Onnx.GraphProto.Builder addInput(int index, Onnx.ValueInfoProto.Builder builderForValue)
The inputs and outputs of the graph.
repeated .onnx.ValueInfoProto input = 11;
-
addAllInput
public Onnx.GraphProto.Builder addAllInput(Iterable<? extends Onnx.ValueInfoProto> values)
The inputs and outputs of the graph.
repeated .onnx.ValueInfoProto input = 11;
-
clearInput
public Onnx.GraphProto.Builder clearInput()
The inputs and outputs of the graph.
repeated .onnx.ValueInfoProto input = 11;
-
removeInput
public Onnx.GraphProto.Builder removeInput(int index)
The inputs and outputs of the graph.
repeated .onnx.ValueInfoProto input = 11;
-
getInputBuilder
public Onnx.ValueInfoProto.Builder getInputBuilder(int index)
The inputs and outputs of the graph.
repeated .onnx.ValueInfoProto input = 11;
-
getInputOrBuilder
public Onnx.ValueInfoProtoOrBuilder getInputOrBuilder(int index)
The inputs and outputs of the graph.
repeated .onnx.ValueInfoProto input = 11;
- Specified by:
getInputOrBuilder
in interfaceOnnx.GraphProtoOrBuilder
-
getInputOrBuilderList
public List<? extends Onnx.ValueInfoProtoOrBuilder> getInputOrBuilderList()
The inputs and outputs of the graph.
repeated .onnx.ValueInfoProto input = 11;
- Specified by:
getInputOrBuilderList
in interfaceOnnx.GraphProtoOrBuilder
-
addInputBuilder
public Onnx.ValueInfoProto.Builder addInputBuilder()
The inputs and outputs of the graph.
repeated .onnx.ValueInfoProto input = 11;
-
addInputBuilder
public Onnx.ValueInfoProto.Builder addInputBuilder(int index)
The inputs and outputs of the graph.
repeated .onnx.ValueInfoProto input = 11;
-
getInputBuilderList
public List<Onnx.ValueInfoProto.Builder> getInputBuilderList()
The inputs and outputs of the graph.
repeated .onnx.ValueInfoProto input = 11;
-
getOutputList
public List<Onnx.ValueInfoProto> getOutputList()
repeated .onnx.ValueInfoProto output = 12;
- Specified by:
getOutputList
in interfaceOnnx.GraphProtoOrBuilder
-
getOutputCount
public int getOutputCount()
repeated .onnx.ValueInfoProto output = 12;
- Specified by:
getOutputCount
in interfaceOnnx.GraphProtoOrBuilder
-
getOutput
public Onnx.ValueInfoProto getOutput(int index)
repeated .onnx.ValueInfoProto output = 12;
- Specified by:
getOutput
in interfaceOnnx.GraphProtoOrBuilder
-
setOutput
public Onnx.GraphProto.Builder setOutput(int index, Onnx.ValueInfoProto value)
repeated .onnx.ValueInfoProto output = 12;
-
setOutput
public Onnx.GraphProto.Builder setOutput(int index, Onnx.ValueInfoProto.Builder builderForValue)
repeated .onnx.ValueInfoProto output = 12;
-
addOutput
public Onnx.GraphProto.Builder addOutput(Onnx.ValueInfoProto value)
repeated .onnx.ValueInfoProto output = 12;
-
addOutput
public Onnx.GraphProto.Builder addOutput(int index, Onnx.ValueInfoProto value)
repeated .onnx.ValueInfoProto output = 12;
-
addOutput
public Onnx.GraphProto.Builder addOutput(Onnx.ValueInfoProto.Builder builderForValue)
repeated .onnx.ValueInfoProto output = 12;
-
addOutput
public Onnx.GraphProto.Builder addOutput(int index, Onnx.ValueInfoProto.Builder builderForValue)
repeated .onnx.ValueInfoProto output = 12;
-
addAllOutput
public Onnx.GraphProto.Builder addAllOutput(Iterable<? extends Onnx.ValueInfoProto> values)
repeated .onnx.ValueInfoProto output = 12;
-
clearOutput
public Onnx.GraphProto.Builder clearOutput()
repeated .onnx.ValueInfoProto output = 12;
-
removeOutput
public Onnx.GraphProto.Builder removeOutput(int index)
repeated .onnx.ValueInfoProto output = 12;
-
getOutputBuilder
public Onnx.ValueInfoProto.Builder getOutputBuilder(int index)
repeated .onnx.ValueInfoProto output = 12;
-
getOutputOrBuilder
public Onnx.ValueInfoProtoOrBuilder getOutputOrBuilder(int index)
repeated .onnx.ValueInfoProto output = 12;
- Specified by:
getOutputOrBuilder
in interfaceOnnx.GraphProtoOrBuilder
-
getOutputOrBuilderList
public List<? extends Onnx.ValueInfoProtoOrBuilder> getOutputOrBuilderList()
repeated .onnx.ValueInfoProto output = 12;
- Specified by:
getOutputOrBuilderList
in interfaceOnnx.GraphProtoOrBuilder
-
addOutputBuilder
public Onnx.ValueInfoProto.Builder addOutputBuilder()
repeated .onnx.ValueInfoProto output = 12;
-
addOutputBuilder
public Onnx.ValueInfoProto.Builder addOutputBuilder(int index)
repeated .onnx.ValueInfoProto output = 12;
-
getOutputBuilderList
public List<Onnx.ValueInfoProto.Builder> getOutputBuilderList()
repeated .onnx.ValueInfoProto output = 12;
-
getValueInfoList
public List<Onnx.ValueInfoProto> getValueInfoList()
Information for the values in the graph. The ValueInfoProto.name's must be distinct. It is optional for a value to appear in value_info list.
repeated .onnx.ValueInfoProto value_info = 13;
- Specified by:
getValueInfoList
in interfaceOnnx.GraphProtoOrBuilder
-
getValueInfoCount
public int getValueInfoCount()
Information for the values in the graph. The ValueInfoProto.name's must be distinct. It is optional for a value to appear in value_info list.
repeated .onnx.ValueInfoProto value_info = 13;
- Specified by:
getValueInfoCount
in interfaceOnnx.GraphProtoOrBuilder
-
getValueInfo
public Onnx.ValueInfoProto getValueInfo(int index)
Information for the values in the graph. The ValueInfoProto.name's must be distinct. It is optional for a value to appear in value_info list.
repeated .onnx.ValueInfoProto value_info = 13;
- Specified by:
getValueInfo
in interfaceOnnx.GraphProtoOrBuilder
-
setValueInfo
public Onnx.GraphProto.Builder setValueInfo(int index, Onnx.ValueInfoProto value)
Information for the values in the graph. The ValueInfoProto.name's must be distinct. It is optional for a value to appear in value_info list.
repeated .onnx.ValueInfoProto value_info = 13;
-
setValueInfo
public Onnx.GraphProto.Builder setValueInfo(int index, Onnx.ValueInfoProto.Builder builderForValue)
Information for the values in the graph. The ValueInfoProto.name's must be distinct. It is optional for a value to appear in value_info list.
repeated .onnx.ValueInfoProto value_info = 13;
-
addValueInfo
public Onnx.GraphProto.Builder addValueInfo(Onnx.ValueInfoProto value)
Information for the values in the graph. The ValueInfoProto.name's must be distinct. It is optional for a value to appear in value_info list.
repeated .onnx.ValueInfoProto value_info = 13;
-
addValueInfo
public Onnx.GraphProto.Builder addValueInfo(int index, Onnx.ValueInfoProto value)
Information for the values in the graph. The ValueInfoProto.name's must be distinct. It is optional for a value to appear in value_info list.
repeated .onnx.ValueInfoProto value_info = 13;
-
addValueInfo
public Onnx.GraphProto.Builder addValueInfo(Onnx.ValueInfoProto.Builder builderForValue)
Information for the values in the graph. The ValueInfoProto.name's must be distinct. It is optional for a value to appear in value_info list.
repeated .onnx.ValueInfoProto value_info = 13;
-
addValueInfo
public Onnx.GraphProto.Builder addValueInfo(int index, Onnx.ValueInfoProto.Builder builderForValue)
Information for the values in the graph. The ValueInfoProto.name's must be distinct. It is optional for a value to appear in value_info list.
repeated .onnx.ValueInfoProto value_info = 13;
-
addAllValueInfo
public Onnx.GraphProto.Builder addAllValueInfo(Iterable<? extends Onnx.ValueInfoProto> values)
Information for the values in the graph. The ValueInfoProto.name's must be distinct. It is optional for a value to appear in value_info list.
repeated .onnx.ValueInfoProto value_info = 13;
-
clearValueInfo
public Onnx.GraphProto.Builder clearValueInfo()
Information for the values in the graph. The ValueInfoProto.name's must be distinct. It is optional for a value to appear in value_info list.
repeated .onnx.ValueInfoProto value_info = 13;
-
removeValueInfo
public Onnx.GraphProto.Builder removeValueInfo(int index)
Information for the values in the graph. The ValueInfoProto.name's must be distinct. It is optional for a value to appear in value_info list.
repeated .onnx.ValueInfoProto value_info = 13;
-
getValueInfoBuilder
public Onnx.ValueInfoProto.Builder getValueInfoBuilder(int index)
Information for the values in the graph. The ValueInfoProto.name's must be distinct. It is optional for a value to appear in value_info list.
repeated .onnx.ValueInfoProto value_info = 13;
-
getValueInfoOrBuilder
public Onnx.ValueInfoProtoOrBuilder getValueInfoOrBuilder(int index)
Information for the values in the graph. The ValueInfoProto.name's must be distinct. It is optional for a value to appear in value_info list.
repeated .onnx.ValueInfoProto value_info = 13;
- Specified by:
getValueInfoOrBuilder
in interfaceOnnx.GraphProtoOrBuilder
-
getValueInfoOrBuilderList
public List<? extends Onnx.ValueInfoProtoOrBuilder> getValueInfoOrBuilderList()
Information for the values in the graph. The ValueInfoProto.name's must be distinct. It is optional for a value to appear in value_info list.
repeated .onnx.ValueInfoProto value_info = 13;
- Specified by:
getValueInfoOrBuilderList
in interfaceOnnx.GraphProtoOrBuilder
-
addValueInfoBuilder
public Onnx.ValueInfoProto.Builder addValueInfoBuilder()
Information for the values in the graph. The ValueInfoProto.name's must be distinct. It is optional for a value to appear in value_info list.
repeated .onnx.ValueInfoProto value_info = 13;
-
addValueInfoBuilder
public Onnx.ValueInfoProto.Builder addValueInfoBuilder(int index)
Information for the values in the graph. The ValueInfoProto.name's must be distinct. It is optional for a value to appear in value_info list.
repeated .onnx.ValueInfoProto value_info = 13;
-
getValueInfoBuilderList
public List<Onnx.ValueInfoProto.Builder> getValueInfoBuilderList()
Information for the values in the graph. The ValueInfoProto.name's must be distinct. It is optional for a value to appear in value_info list.
repeated .onnx.ValueInfoProto value_info = 13;
-
setUnknownFields
public final Onnx.GraphProto.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<Onnx.GraphProto.Builder>
-
mergeUnknownFields
public final Onnx.GraphProto.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<Onnx.GraphProto.Builder>
-
-