Package onnx
Class Onnx.ModelProto.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderType>
-
- com.google.protobuf.GeneratedMessageV3.Builder<Onnx.ModelProto.Builder>
-
- onnx.Onnx.ModelProto.Builder
-
- All Implemented Interfaces:
com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,java.lang.Cloneable
,Onnx.ModelProtoOrBuilder
- Enclosing class:
- Onnx.ModelProto
public static final class Onnx.ModelProto.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Onnx.ModelProto.Builder> implements Onnx.ModelProtoOrBuilder
Models ModelProto is a top-level file/container format for bundling a ML model and associating its computation graph with metadata. The semantics of the model are described by the associated GraphProto.
Protobuf typeonnx.ModelProto
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Onnx.ModelProto.Builder
addAllMetadataProps(java.lang.Iterable<? extends Onnx.StringStringEntryProto> values)
Named metadata values; keys should be distinct.Onnx.ModelProto.Builder
addAllOpsetImport(java.lang.Iterable<? extends Onnx.OperatorSetIdProto> values)
The OperatorSets this model relies on.Onnx.ModelProto.Builder
addMetadataProps(int index, Onnx.StringStringEntryProto value)
Named metadata values; keys should be distinct.Onnx.ModelProto.Builder
addMetadataProps(int index, Onnx.StringStringEntryProto.Builder builderForValue)
Named metadata values; keys should be distinct.Onnx.ModelProto.Builder
addMetadataProps(Onnx.StringStringEntryProto value)
Named metadata values; keys should be distinct.Onnx.ModelProto.Builder
addMetadataProps(Onnx.StringStringEntryProto.Builder builderForValue)
Named metadata values; keys should be distinct.Onnx.StringStringEntryProto.Builder
addMetadataPropsBuilder()
Named metadata values; keys should be distinct.Onnx.StringStringEntryProto.Builder
addMetadataPropsBuilder(int index)
Named metadata values; keys should be distinct.Onnx.ModelProto.Builder
addOpsetImport(int index, Onnx.OperatorSetIdProto value)
The OperatorSets this model relies on.Onnx.ModelProto.Builder
addOpsetImport(int index, Onnx.OperatorSetIdProto.Builder builderForValue)
The OperatorSets this model relies on.Onnx.ModelProto.Builder
addOpsetImport(Onnx.OperatorSetIdProto value)
The OperatorSets this model relies on.Onnx.ModelProto.Builder
addOpsetImport(Onnx.OperatorSetIdProto.Builder builderForValue)
The OperatorSets this model relies on.Onnx.OperatorSetIdProto.Builder
addOpsetImportBuilder()
The OperatorSets this model relies on.Onnx.OperatorSetIdProto.Builder
addOpsetImportBuilder(int index)
The OperatorSets this model relies on.Onnx.ModelProto.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
Onnx.ModelProto
build()
Onnx.ModelProto
buildPartial()
Onnx.ModelProto.Builder
clear()
Onnx.ModelProto.Builder
clearDocString()
A human-readable documentation for this model.Onnx.ModelProto.Builder
clearDomain()
Domain name of the model.Onnx.ModelProto.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
Onnx.ModelProto.Builder
clearGraph()
The parameterized graph that is evaluated to execute the model.Onnx.ModelProto.Builder
clearIrVersion()
The version of the IR this model targets.Onnx.ModelProto.Builder
clearMetadataProps()
Named metadata values; keys should be distinct.Onnx.ModelProto.Builder
clearModelVersion()
The version of the graph encoded.Onnx.ModelProto.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
Onnx.ModelProto.Builder
clearOpsetImport()
The OperatorSets this model relies on.Onnx.ModelProto.Builder
clearProducerName()
The name of the framework or tool used to generate this model.Onnx.ModelProto.Builder
clearProducerVersion()
The version of the framework or tool used to generate this model.Onnx.ModelProto.Builder
clone()
Onnx.ModelProto
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
java.lang.String
getDocString()
A human-readable documentation for this model.com.google.protobuf.ByteString
getDocStringBytes()
A human-readable documentation for this model.java.lang.String
getDomain()
Domain name of the model.com.google.protobuf.ByteString
getDomainBytes()
Domain name of the model.Onnx.GraphProto
getGraph()
The parameterized graph that is evaluated to execute the model.Onnx.GraphProto.Builder
getGraphBuilder()
The parameterized graph that is evaluated to execute the model.Onnx.GraphProtoOrBuilder
getGraphOrBuilder()
The parameterized graph that is evaluated to execute the model.long
getIrVersion()
The version of the IR this model targets.Onnx.StringStringEntryProto
getMetadataProps(int index)
Named metadata values; keys should be distinct.Onnx.StringStringEntryProto.Builder
getMetadataPropsBuilder(int index)
Named metadata values; keys should be distinct.java.util.List<Onnx.StringStringEntryProto.Builder>
getMetadataPropsBuilderList()
Named metadata values; keys should be distinct.int
getMetadataPropsCount()
Named metadata values; keys should be distinct.java.util.List<Onnx.StringStringEntryProto>
getMetadataPropsList()
Named metadata values; keys should be distinct.Onnx.StringStringEntryProtoOrBuilder
getMetadataPropsOrBuilder(int index)
Named metadata values; keys should be distinct.java.util.List<? extends Onnx.StringStringEntryProtoOrBuilder>
getMetadataPropsOrBuilderList()
Named metadata values; keys should be distinct.long
getModelVersion()
The version of the graph encoded.Onnx.OperatorSetIdProto
getOpsetImport(int index)
The OperatorSets this model relies on.Onnx.OperatorSetIdProto.Builder
getOpsetImportBuilder(int index)
The OperatorSets this model relies on.java.util.List<Onnx.OperatorSetIdProto.Builder>
getOpsetImportBuilderList()
The OperatorSets this model relies on.int
getOpsetImportCount()
The OperatorSets this model relies on.java.util.List<Onnx.OperatorSetIdProto>
getOpsetImportList()
The OperatorSets this model relies on.Onnx.OperatorSetIdProtoOrBuilder
getOpsetImportOrBuilder(int index)
The OperatorSets this model relies on.java.util.List<? extends Onnx.OperatorSetIdProtoOrBuilder>
getOpsetImportOrBuilderList()
The OperatorSets this model relies on.java.lang.String
getProducerName()
The name of the framework or tool used to generate this model.com.google.protobuf.ByteString
getProducerNameBytes()
The name of the framework or tool used to generate this model.java.lang.String
getProducerVersion()
The version of the framework or tool used to generate this model.com.google.protobuf.ByteString
getProducerVersionBytes()
The version of the framework or tool used to generate this model.boolean
hasDocString()
A human-readable documentation for this model.boolean
hasDomain()
Domain name of the model.boolean
hasGraph()
The parameterized graph that is evaluated to execute the model.boolean
hasIrVersion()
The version of the IR this model targets.boolean
hasModelVersion()
The version of the graph encoded.boolean
hasProducerName()
The name of the framework or tool used to generate this model.boolean
hasProducerVersion()
The version of the framework or tool used to generate this model.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
Onnx.ModelProto.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Onnx.ModelProto.Builder
mergeFrom(com.google.protobuf.Message other)
Onnx.ModelProto.Builder
mergeFrom(Onnx.ModelProto other)
Onnx.ModelProto.Builder
mergeGraph(Onnx.GraphProto value)
The parameterized graph that is evaluated to execute the model.Onnx.ModelProto.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
Onnx.ModelProto.Builder
removeMetadataProps(int index)
Named metadata values; keys should be distinct.Onnx.ModelProto.Builder
removeOpsetImport(int index)
The OperatorSets this model relies on.Onnx.ModelProto.Builder
setDocString(java.lang.String value)
A human-readable documentation for this model.Onnx.ModelProto.Builder
setDocStringBytes(com.google.protobuf.ByteString value)
A human-readable documentation for this model.Onnx.ModelProto.Builder
setDomain(java.lang.String value)
Domain name of the model.Onnx.ModelProto.Builder
setDomainBytes(com.google.protobuf.ByteString value)
Domain name of the model.Onnx.ModelProto.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
Onnx.ModelProto.Builder
setGraph(Onnx.GraphProto value)
The parameterized graph that is evaluated to execute the model.Onnx.ModelProto.Builder
setGraph(Onnx.GraphProto.Builder builderForValue)
The parameterized graph that is evaluated to execute the model.Onnx.ModelProto.Builder
setIrVersion(long value)
The version of the IR this model targets.Onnx.ModelProto.Builder
setMetadataProps(int index, Onnx.StringStringEntryProto value)
Named metadata values; keys should be distinct.Onnx.ModelProto.Builder
setMetadataProps(int index, Onnx.StringStringEntryProto.Builder builderForValue)
Named metadata values; keys should be distinct.Onnx.ModelProto.Builder
setModelVersion(long value)
The version of the graph encoded.Onnx.ModelProto.Builder
setOpsetImport(int index, Onnx.OperatorSetIdProto value)
The OperatorSets this model relies on.Onnx.ModelProto.Builder
setOpsetImport(int index, Onnx.OperatorSetIdProto.Builder builderForValue)
The OperatorSets this model relies on.Onnx.ModelProto.Builder
setProducerName(java.lang.String value)
The name of the framework or tool used to generate this model.Onnx.ModelProto.Builder
setProducerNameBytes(com.google.protobuf.ByteString value)
The name of the framework or tool used to generate this model.Onnx.ModelProto.Builder
setProducerVersion(java.lang.String value)
The version of the framework or tool used to generate this model.Onnx.ModelProto.Builder
setProducerVersionBytes(com.google.protobuf.ByteString value)
The version of the framework or tool used to generate this model.Onnx.ModelProto.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
Onnx.ModelProto.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
-
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.ModelProto.Builder>
-
clear
public Onnx.ModelProto.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.ModelProto.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.ModelProto.Builder>
-
getDefaultInstanceForType
public Onnx.ModelProto getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public Onnx.ModelProto build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Onnx.ModelProto buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public Onnx.ModelProto.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.ModelProto.Builder>
-
setField
public Onnx.ModelProto.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Onnx.ModelProto.Builder>
-
clearField
public Onnx.ModelProto.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.ModelProto.Builder>
-
clearOneof
public Onnx.ModelProto.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.ModelProto.Builder>
-
setRepeatedField
public Onnx.ModelProto.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Onnx.ModelProto.Builder>
-
addRepeatedField
public Onnx.ModelProto.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Onnx.ModelProto.Builder>
-
mergeFrom
public Onnx.ModelProto.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.ModelProto.Builder>
-
mergeFrom
public Onnx.ModelProto.Builder mergeFrom(Onnx.ModelProto other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<Onnx.ModelProto.Builder>
-
mergeFrom
public Onnx.ModelProto.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.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.ModelProto.Builder>
- Throws:
java.io.IOException
-
hasIrVersion
public boolean hasIrVersion()
The version of the IR this model targets. See Version enum above. This field MUST be present.
optional int64 ir_version = 1;
- Specified by:
hasIrVersion
in interfaceOnnx.ModelProtoOrBuilder
- Returns:
- Whether the irVersion field is set.
-
getIrVersion
public long getIrVersion()
The version of the IR this model targets. See Version enum above. This field MUST be present.
optional int64 ir_version = 1;
- Specified by:
getIrVersion
in interfaceOnnx.ModelProtoOrBuilder
- Returns:
- The irVersion.
-
setIrVersion
public Onnx.ModelProto.Builder setIrVersion(long value)
The version of the IR this model targets. See Version enum above. This field MUST be present.
optional int64 ir_version = 1;
- Parameters:
value
- The irVersion to set.- Returns:
- This builder for chaining.
-
clearIrVersion
public Onnx.ModelProto.Builder clearIrVersion()
The version of the IR this model targets. See Version enum above. This field MUST be present.
optional int64 ir_version = 1;
- Returns:
- This builder for chaining.
-
getOpsetImportList
public java.util.List<Onnx.OperatorSetIdProto> getOpsetImportList()
The OperatorSets this model relies on. All ModelProtos MUST have at least one entry that specifies which version of the ONNX OperatorSet is being imported. All nodes in the ModelProto's graph will bind against the operator with the same-domain/same-op_type operator with the HIGHEST version in the referenced operator sets.
repeated .onnx.OperatorSetIdProto opset_import = 8;
- Specified by:
getOpsetImportList
in interfaceOnnx.ModelProtoOrBuilder
-
getOpsetImportCount
public int getOpsetImportCount()
The OperatorSets this model relies on. All ModelProtos MUST have at least one entry that specifies which version of the ONNX OperatorSet is being imported. All nodes in the ModelProto's graph will bind against the operator with the same-domain/same-op_type operator with the HIGHEST version in the referenced operator sets.
repeated .onnx.OperatorSetIdProto opset_import = 8;
- Specified by:
getOpsetImportCount
in interfaceOnnx.ModelProtoOrBuilder
-
getOpsetImport
public Onnx.OperatorSetIdProto getOpsetImport(int index)
The OperatorSets this model relies on. All ModelProtos MUST have at least one entry that specifies which version of the ONNX OperatorSet is being imported. All nodes in the ModelProto's graph will bind against the operator with the same-domain/same-op_type operator with the HIGHEST version in the referenced operator sets.
repeated .onnx.OperatorSetIdProto opset_import = 8;
- Specified by:
getOpsetImport
in interfaceOnnx.ModelProtoOrBuilder
-
setOpsetImport
public Onnx.ModelProto.Builder setOpsetImport(int index, Onnx.OperatorSetIdProto value)
The OperatorSets this model relies on. All ModelProtos MUST have at least one entry that specifies which version of the ONNX OperatorSet is being imported. All nodes in the ModelProto's graph will bind against the operator with the same-domain/same-op_type operator with the HIGHEST version in the referenced operator sets.
repeated .onnx.OperatorSetIdProto opset_import = 8;
-
setOpsetImport
public Onnx.ModelProto.Builder setOpsetImport(int index, Onnx.OperatorSetIdProto.Builder builderForValue)
The OperatorSets this model relies on. All ModelProtos MUST have at least one entry that specifies which version of the ONNX OperatorSet is being imported. All nodes in the ModelProto's graph will bind against the operator with the same-domain/same-op_type operator with the HIGHEST version in the referenced operator sets.
repeated .onnx.OperatorSetIdProto opset_import = 8;
-
addOpsetImport
public Onnx.ModelProto.Builder addOpsetImport(Onnx.OperatorSetIdProto value)
The OperatorSets this model relies on. All ModelProtos MUST have at least one entry that specifies which version of the ONNX OperatorSet is being imported. All nodes in the ModelProto's graph will bind against the operator with the same-domain/same-op_type operator with the HIGHEST version in the referenced operator sets.
repeated .onnx.OperatorSetIdProto opset_import = 8;
-
addOpsetImport
public Onnx.ModelProto.Builder addOpsetImport(int index, Onnx.OperatorSetIdProto value)
The OperatorSets this model relies on. All ModelProtos MUST have at least one entry that specifies which version of the ONNX OperatorSet is being imported. All nodes in the ModelProto's graph will bind against the operator with the same-domain/same-op_type operator with the HIGHEST version in the referenced operator sets.
repeated .onnx.OperatorSetIdProto opset_import = 8;
-
addOpsetImport
public Onnx.ModelProto.Builder addOpsetImport(Onnx.OperatorSetIdProto.Builder builderForValue)
The OperatorSets this model relies on. All ModelProtos MUST have at least one entry that specifies which version of the ONNX OperatorSet is being imported. All nodes in the ModelProto's graph will bind against the operator with the same-domain/same-op_type operator with the HIGHEST version in the referenced operator sets.
repeated .onnx.OperatorSetIdProto opset_import = 8;
-
addOpsetImport
public Onnx.ModelProto.Builder addOpsetImport(int index, Onnx.OperatorSetIdProto.Builder builderForValue)
The OperatorSets this model relies on. All ModelProtos MUST have at least one entry that specifies which version of the ONNX OperatorSet is being imported. All nodes in the ModelProto's graph will bind against the operator with the same-domain/same-op_type operator with the HIGHEST version in the referenced operator sets.
repeated .onnx.OperatorSetIdProto opset_import = 8;
-
addAllOpsetImport
public Onnx.ModelProto.Builder addAllOpsetImport(java.lang.Iterable<? extends Onnx.OperatorSetIdProto> values)
The OperatorSets this model relies on. All ModelProtos MUST have at least one entry that specifies which version of the ONNX OperatorSet is being imported. All nodes in the ModelProto's graph will bind against the operator with the same-domain/same-op_type operator with the HIGHEST version in the referenced operator sets.
repeated .onnx.OperatorSetIdProto opset_import = 8;
-
clearOpsetImport
public Onnx.ModelProto.Builder clearOpsetImport()
The OperatorSets this model relies on. All ModelProtos MUST have at least one entry that specifies which version of the ONNX OperatorSet is being imported. All nodes in the ModelProto's graph will bind against the operator with the same-domain/same-op_type operator with the HIGHEST version in the referenced operator sets.
repeated .onnx.OperatorSetIdProto opset_import = 8;
-
removeOpsetImport
public Onnx.ModelProto.Builder removeOpsetImport(int index)
The OperatorSets this model relies on. All ModelProtos MUST have at least one entry that specifies which version of the ONNX OperatorSet is being imported. All nodes in the ModelProto's graph will bind against the operator with the same-domain/same-op_type operator with the HIGHEST version in the referenced operator sets.
repeated .onnx.OperatorSetIdProto opset_import = 8;
-
getOpsetImportBuilder
public Onnx.OperatorSetIdProto.Builder getOpsetImportBuilder(int index)
The OperatorSets this model relies on. All ModelProtos MUST have at least one entry that specifies which version of the ONNX OperatorSet is being imported. All nodes in the ModelProto's graph will bind against the operator with the same-domain/same-op_type operator with the HIGHEST version in the referenced operator sets.
repeated .onnx.OperatorSetIdProto opset_import = 8;
-
getOpsetImportOrBuilder
public Onnx.OperatorSetIdProtoOrBuilder getOpsetImportOrBuilder(int index)
The OperatorSets this model relies on. All ModelProtos MUST have at least one entry that specifies which version of the ONNX OperatorSet is being imported. All nodes in the ModelProto's graph will bind against the operator with the same-domain/same-op_type operator with the HIGHEST version in the referenced operator sets.
repeated .onnx.OperatorSetIdProto opset_import = 8;
- Specified by:
getOpsetImportOrBuilder
in interfaceOnnx.ModelProtoOrBuilder
-
getOpsetImportOrBuilderList
public java.util.List<? extends Onnx.OperatorSetIdProtoOrBuilder> getOpsetImportOrBuilderList()
The OperatorSets this model relies on. All ModelProtos MUST have at least one entry that specifies which version of the ONNX OperatorSet is being imported. All nodes in the ModelProto's graph will bind against the operator with the same-domain/same-op_type operator with the HIGHEST version in the referenced operator sets.
repeated .onnx.OperatorSetIdProto opset_import = 8;
- Specified by:
getOpsetImportOrBuilderList
in interfaceOnnx.ModelProtoOrBuilder
-
addOpsetImportBuilder
public Onnx.OperatorSetIdProto.Builder addOpsetImportBuilder()
The OperatorSets this model relies on. All ModelProtos MUST have at least one entry that specifies which version of the ONNX OperatorSet is being imported. All nodes in the ModelProto's graph will bind against the operator with the same-domain/same-op_type operator with the HIGHEST version in the referenced operator sets.
repeated .onnx.OperatorSetIdProto opset_import = 8;
-
addOpsetImportBuilder
public Onnx.OperatorSetIdProto.Builder addOpsetImportBuilder(int index)
The OperatorSets this model relies on. All ModelProtos MUST have at least one entry that specifies which version of the ONNX OperatorSet is being imported. All nodes in the ModelProto's graph will bind against the operator with the same-domain/same-op_type operator with the HIGHEST version in the referenced operator sets.
repeated .onnx.OperatorSetIdProto opset_import = 8;
-
getOpsetImportBuilderList
public java.util.List<Onnx.OperatorSetIdProto.Builder> getOpsetImportBuilderList()
The OperatorSets this model relies on. All ModelProtos MUST have at least one entry that specifies which version of the ONNX OperatorSet is being imported. All nodes in the ModelProto's graph will bind against the operator with the same-domain/same-op_type operator with the HIGHEST version in the referenced operator sets.
repeated .onnx.OperatorSetIdProto opset_import = 8;
-
hasProducerName
public boolean hasProducerName()
The name of the framework or tool used to generate this model. This field SHOULD be present to indicate which implementation/tool/framework emitted the model.
optional string producer_name = 2;
- Specified by:
hasProducerName
in interfaceOnnx.ModelProtoOrBuilder
- Returns:
- Whether the producerName field is set.
-
getProducerName
public java.lang.String getProducerName()
The name of the framework or tool used to generate this model. This field SHOULD be present to indicate which implementation/tool/framework emitted the model.
optional string producer_name = 2;
- Specified by:
getProducerName
in interfaceOnnx.ModelProtoOrBuilder
- Returns:
- The producerName.
-
getProducerNameBytes
public com.google.protobuf.ByteString getProducerNameBytes()
The name of the framework or tool used to generate this model. This field SHOULD be present to indicate which implementation/tool/framework emitted the model.
optional string producer_name = 2;
- Specified by:
getProducerNameBytes
in interfaceOnnx.ModelProtoOrBuilder
- Returns:
- The bytes for producerName.
-
setProducerName
public Onnx.ModelProto.Builder setProducerName(java.lang.String value)
The name of the framework or tool used to generate this model. This field SHOULD be present to indicate which implementation/tool/framework emitted the model.
optional string producer_name = 2;
- Parameters:
value
- The producerName to set.- Returns:
- This builder for chaining.
-
clearProducerName
public Onnx.ModelProto.Builder clearProducerName()
The name of the framework or tool used to generate this model. This field SHOULD be present to indicate which implementation/tool/framework emitted the model.
optional string producer_name = 2;
- Returns:
- This builder for chaining.
-
setProducerNameBytes
public Onnx.ModelProto.Builder setProducerNameBytes(com.google.protobuf.ByteString value)
The name of the framework or tool used to generate this model. This field SHOULD be present to indicate which implementation/tool/framework emitted the model.
optional string producer_name = 2;
- Parameters:
value
- The bytes for producerName to set.- Returns:
- This builder for chaining.
-
hasProducerVersion
public boolean hasProducerVersion()
The version of the framework or tool used to generate this model. This field SHOULD be present to indicate which implementation/tool/framework emitted the model.
optional string producer_version = 3;
- Specified by:
hasProducerVersion
in interfaceOnnx.ModelProtoOrBuilder
- Returns:
- Whether the producerVersion field is set.
-
getProducerVersion
public java.lang.String getProducerVersion()
The version of the framework or tool used to generate this model. This field SHOULD be present to indicate which implementation/tool/framework emitted the model.
optional string producer_version = 3;
- Specified by:
getProducerVersion
in interfaceOnnx.ModelProtoOrBuilder
- Returns:
- The producerVersion.
-
getProducerVersionBytes
public com.google.protobuf.ByteString getProducerVersionBytes()
The version of the framework or tool used to generate this model. This field SHOULD be present to indicate which implementation/tool/framework emitted the model.
optional string producer_version = 3;
- Specified by:
getProducerVersionBytes
in interfaceOnnx.ModelProtoOrBuilder
- Returns:
- The bytes for producerVersion.
-
setProducerVersion
public Onnx.ModelProto.Builder setProducerVersion(java.lang.String value)
The version of the framework or tool used to generate this model. This field SHOULD be present to indicate which implementation/tool/framework emitted the model.
optional string producer_version = 3;
- Parameters:
value
- The producerVersion to set.- Returns:
- This builder for chaining.
-
clearProducerVersion
public Onnx.ModelProto.Builder clearProducerVersion()
The version of the framework or tool used to generate this model. This field SHOULD be present to indicate which implementation/tool/framework emitted the model.
optional string producer_version = 3;
- Returns:
- This builder for chaining.
-
setProducerVersionBytes
public Onnx.ModelProto.Builder setProducerVersionBytes(com.google.protobuf.ByteString value)
The version of the framework or tool used to generate this model. This field SHOULD be present to indicate which implementation/tool/framework emitted the model.
optional string producer_version = 3;
- Parameters:
value
- The bytes for producerVersion to set.- Returns:
- This builder for chaining.
-
hasDomain
public boolean hasDomain()
Domain name of the model. We use reverse domain names as name space indicators. For example: `com.facebook.fair` or `com.microsoft.cognitiveservices` Together with `model_version` and GraphProto.name, this forms the unique identity of the graph.
optional string domain = 4;
- Specified by:
hasDomain
in interfaceOnnx.ModelProtoOrBuilder
- Returns:
- Whether the domain field is set.
-
getDomain
public java.lang.String getDomain()
Domain name of the model. We use reverse domain names as name space indicators. For example: `com.facebook.fair` or `com.microsoft.cognitiveservices` Together with `model_version` and GraphProto.name, this forms the unique identity of the graph.
optional string domain = 4;
- Specified by:
getDomain
in interfaceOnnx.ModelProtoOrBuilder
- Returns:
- The domain.
-
getDomainBytes
public com.google.protobuf.ByteString getDomainBytes()
Domain name of the model. We use reverse domain names as name space indicators. For example: `com.facebook.fair` or `com.microsoft.cognitiveservices` Together with `model_version` and GraphProto.name, this forms the unique identity of the graph.
optional string domain = 4;
- Specified by:
getDomainBytes
in interfaceOnnx.ModelProtoOrBuilder
- Returns:
- The bytes for domain.
-
setDomain
public Onnx.ModelProto.Builder setDomain(java.lang.String value)
Domain name of the model. We use reverse domain names as name space indicators. For example: `com.facebook.fair` or `com.microsoft.cognitiveservices` Together with `model_version` and GraphProto.name, this forms the unique identity of the graph.
optional string domain = 4;
- Parameters:
value
- The domain to set.- Returns:
- This builder for chaining.
-
clearDomain
public Onnx.ModelProto.Builder clearDomain()
Domain name of the model. We use reverse domain names as name space indicators. For example: `com.facebook.fair` or `com.microsoft.cognitiveservices` Together with `model_version` and GraphProto.name, this forms the unique identity of the graph.
optional string domain = 4;
- Returns:
- This builder for chaining.
-
setDomainBytes
public Onnx.ModelProto.Builder setDomainBytes(com.google.protobuf.ByteString value)
Domain name of the model. We use reverse domain names as name space indicators. For example: `com.facebook.fair` or `com.microsoft.cognitiveservices` Together with `model_version` and GraphProto.name, this forms the unique identity of the graph.
optional string domain = 4;
- Parameters:
value
- The bytes for domain to set.- Returns:
- This builder for chaining.
-
hasModelVersion
public boolean hasModelVersion()
The version of the graph encoded. See Version enum below.
optional int64 model_version = 5;
- Specified by:
hasModelVersion
in interfaceOnnx.ModelProtoOrBuilder
- Returns:
- Whether the modelVersion field is set.
-
getModelVersion
public long getModelVersion()
The version of the graph encoded. See Version enum below.
optional int64 model_version = 5;
- Specified by:
getModelVersion
in interfaceOnnx.ModelProtoOrBuilder
- Returns:
- The modelVersion.
-
setModelVersion
public Onnx.ModelProto.Builder setModelVersion(long value)
The version of the graph encoded. See Version enum below.
optional int64 model_version = 5;
- Parameters:
value
- The modelVersion to set.- Returns:
- This builder for chaining.
-
clearModelVersion
public Onnx.ModelProto.Builder clearModelVersion()
The version of the graph encoded. See Version enum below.
optional int64 model_version = 5;
- Returns:
- This builder for chaining.
-
hasDocString
public boolean hasDocString()
A human-readable documentation for this model. Markdown is allowed.
optional string doc_string = 6;
- Specified by:
hasDocString
in interfaceOnnx.ModelProtoOrBuilder
- Returns:
- Whether the docString field is set.
-
getDocString
public java.lang.String getDocString()
A human-readable documentation for this model. Markdown is allowed.
optional string doc_string = 6;
- Specified by:
getDocString
in interfaceOnnx.ModelProtoOrBuilder
- Returns:
- The docString.
-
getDocStringBytes
public com.google.protobuf.ByteString getDocStringBytes()
A human-readable documentation for this model. Markdown is allowed.
optional string doc_string = 6;
- Specified by:
getDocStringBytes
in interfaceOnnx.ModelProtoOrBuilder
- Returns:
- The bytes for docString.
-
setDocString
public Onnx.ModelProto.Builder setDocString(java.lang.String value)
A human-readable documentation for this model. Markdown is allowed.
optional string doc_string = 6;
- Parameters:
value
- The docString to set.- Returns:
- This builder for chaining.
-
clearDocString
public Onnx.ModelProto.Builder clearDocString()
A human-readable documentation for this model. Markdown is allowed.
optional string doc_string = 6;
- Returns:
- This builder for chaining.
-
setDocStringBytes
public Onnx.ModelProto.Builder setDocStringBytes(com.google.protobuf.ByteString value)
A human-readable documentation for this model. Markdown is allowed.
optional string doc_string = 6;
- Parameters:
value
- The bytes for docString to set.- Returns:
- This builder for chaining.
-
hasGraph
public boolean hasGraph()
The parameterized graph that is evaluated to execute the model.
optional .onnx.GraphProto graph = 7;
- Specified by:
hasGraph
in interfaceOnnx.ModelProtoOrBuilder
- Returns:
- Whether the graph field is set.
-
getGraph
public Onnx.GraphProto getGraph()
The parameterized graph that is evaluated to execute the model.
optional .onnx.GraphProto graph = 7;
- Specified by:
getGraph
in interfaceOnnx.ModelProtoOrBuilder
- Returns:
- The graph.
-
setGraph
public Onnx.ModelProto.Builder setGraph(Onnx.GraphProto value)
The parameterized graph that is evaluated to execute the model.
optional .onnx.GraphProto graph = 7;
-
setGraph
public Onnx.ModelProto.Builder setGraph(Onnx.GraphProto.Builder builderForValue)
The parameterized graph that is evaluated to execute the model.
optional .onnx.GraphProto graph = 7;
-
mergeGraph
public Onnx.ModelProto.Builder mergeGraph(Onnx.GraphProto value)
The parameterized graph that is evaluated to execute the model.
optional .onnx.GraphProto graph = 7;
-
clearGraph
public Onnx.ModelProto.Builder clearGraph()
The parameterized graph that is evaluated to execute the model.
optional .onnx.GraphProto graph = 7;
-
getGraphBuilder
public Onnx.GraphProto.Builder getGraphBuilder()
The parameterized graph that is evaluated to execute the model.
optional .onnx.GraphProto graph = 7;
-
getGraphOrBuilder
public Onnx.GraphProtoOrBuilder getGraphOrBuilder()
The parameterized graph that is evaluated to execute the model.
optional .onnx.GraphProto graph = 7;
- Specified by:
getGraphOrBuilder
in interfaceOnnx.ModelProtoOrBuilder
-
getMetadataPropsList
public java.util.List<Onnx.StringStringEntryProto> getMetadataPropsList()
Named metadata values; keys should be distinct.
repeated .onnx.StringStringEntryProto metadata_props = 14;
- Specified by:
getMetadataPropsList
in interfaceOnnx.ModelProtoOrBuilder
-
getMetadataPropsCount
public int getMetadataPropsCount()
Named metadata values; keys should be distinct.
repeated .onnx.StringStringEntryProto metadata_props = 14;
- Specified by:
getMetadataPropsCount
in interfaceOnnx.ModelProtoOrBuilder
-
getMetadataProps
public Onnx.StringStringEntryProto getMetadataProps(int index)
Named metadata values; keys should be distinct.
repeated .onnx.StringStringEntryProto metadata_props = 14;
- Specified by:
getMetadataProps
in interfaceOnnx.ModelProtoOrBuilder
-
setMetadataProps
public Onnx.ModelProto.Builder setMetadataProps(int index, Onnx.StringStringEntryProto value)
Named metadata values; keys should be distinct.
repeated .onnx.StringStringEntryProto metadata_props = 14;
-
setMetadataProps
public Onnx.ModelProto.Builder setMetadataProps(int index, Onnx.StringStringEntryProto.Builder builderForValue)
Named metadata values; keys should be distinct.
repeated .onnx.StringStringEntryProto metadata_props = 14;
-
addMetadataProps
public Onnx.ModelProto.Builder addMetadataProps(Onnx.StringStringEntryProto value)
Named metadata values; keys should be distinct.
repeated .onnx.StringStringEntryProto metadata_props = 14;
-
addMetadataProps
public Onnx.ModelProto.Builder addMetadataProps(int index, Onnx.StringStringEntryProto value)
Named metadata values; keys should be distinct.
repeated .onnx.StringStringEntryProto metadata_props = 14;
-
addMetadataProps
public Onnx.ModelProto.Builder addMetadataProps(Onnx.StringStringEntryProto.Builder builderForValue)
Named metadata values; keys should be distinct.
repeated .onnx.StringStringEntryProto metadata_props = 14;
-
addMetadataProps
public Onnx.ModelProto.Builder addMetadataProps(int index, Onnx.StringStringEntryProto.Builder builderForValue)
Named metadata values; keys should be distinct.
repeated .onnx.StringStringEntryProto metadata_props = 14;
-
addAllMetadataProps
public Onnx.ModelProto.Builder addAllMetadataProps(java.lang.Iterable<? extends Onnx.StringStringEntryProto> values)
Named metadata values; keys should be distinct.
repeated .onnx.StringStringEntryProto metadata_props = 14;
-
clearMetadataProps
public Onnx.ModelProto.Builder clearMetadataProps()
Named metadata values; keys should be distinct.
repeated .onnx.StringStringEntryProto metadata_props = 14;
-
removeMetadataProps
public Onnx.ModelProto.Builder removeMetadataProps(int index)
Named metadata values; keys should be distinct.
repeated .onnx.StringStringEntryProto metadata_props = 14;
-
getMetadataPropsBuilder
public Onnx.StringStringEntryProto.Builder getMetadataPropsBuilder(int index)
Named metadata values; keys should be distinct.
repeated .onnx.StringStringEntryProto metadata_props = 14;
-
getMetadataPropsOrBuilder
public Onnx.StringStringEntryProtoOrBuilder getMetadataPropsOrBuilder(int index)
Named metadata values; keys should be distinct.
repeated .onnx.StringStringEntryProto metadata_props = 14;
- Specified by:
getMetadataPropsOrBuilder
in interfaceOnnx.ModelProtoOrBuilder
-
getMetadataPropsOrBuilderList
public java.util.List<? extends Onnx.StringStringEntryProtoOrBuilder> getMetadataPropsOrBuilderList()
Named metadata values; keys should be distinct.
repeated .onnx.StringStringEntryProto metadata_props = 14;
- Specified by:
getMetadataPropsOrBuilderList
in interfaceOnnx.ModelProtoOrBuilder
-
addMetadataPropsBuilder
public Onnx.StringStringEntryProto.Builder addMetadataPropsBuilder()
Named metadata values; keys should be distinct.
repeated .onnx.StringStringEntryProto metadata_props = 14;
-
addMetadataPropsBuilder
public Onnx.StringStringEntryProto.Builder addMetadataPropsBuilder(int index)
Named metadata values; keys should be distinct.
repeated .onnx.StringStringEntryProto metadata_props = 14;
-
getMetadataPropsBuilderList
public java.util.List<Onnx.StringStringEntryProto.Builder> getMetadataPropsBuilderList()
Named metadata values; keys should be distinct.
repeated .onnx.StringStringEntryProto metadata_props = 14;
-
setUnknownFields
public final Onnx.ModelProto.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.ModelProto.Builder>
-
mergeUnknownFields
public final Onnx.ModelProto.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.ModelProto.Builder>
-
-