Package ai.onnx.proto
Class OnnxMl.ModelProto.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderType>
com.google.protobuf.GeneratedMessageV3.Builder<OnnxMl.ModelProto.Builder>
ai.onnx.proto.OnnxMl.ModelProto.Builder
- All Implemented Interfaces:
OnnxMl.ModelProtoOrBuilder
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
- Enclosing class:
- OnnxMl.ModelProto
public static final class OnnxMl.ModelProto.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<OnnxMl.ModelProto.Builder>
implements OnnxMl.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's.Protobuf type
onnx.ModelProto
-
Method Summary
Modifier and TypeMethodDescriptionaddAllMetadataProps
(Iterable<? extends OnnxMl.StringStringEntryProto> values) Named metadata values; keys should be distinct.addAllOpsetImport
(Iterable<? extends OnnxMl.OperatorSetIdProto> values) The OperatorSets this model relies on.addAllTrainingInfo
(Iterable<? extends OnnxMl.TrainingInfoProto> values) Training-specific information.addMetadataProps
(int index, OnnxMl.StringStringEntryProto value) Named metadata values; keys should be distinct.addMetadataProps
(int index, OnnxMl.StringStringEntryProto.Builder builderForValue) Named metadata values; keys should be distinct.Named metadata values; keys should be distinct.addMetadataProps
(OnnxMl.StringStringEntryProto.Builder builderForValue) Named metadata values; keys should be distinct.Named metadata values; keys should be distinct.addMetadataPropsBuilder
(int index) Named metadata values; keys should be distinct.addOpsetImport
(int index, OnnxMl.OperatorSetIdProto value) The OperatorSets this model relies on.addOpsetImport
(int index, OnnxMl.OperatorSetIdProto.Builder builderForValue) The OperatorSets this model relies on.The OperatorSets this model relies on.addOpsetImport
(OnnxMl.OperatorSetIdProto.Builder builderForValue) The OperatorSets this model relies on.The OperatorSets this model relies on.addOpsetImportBuilder
(int index) The OperatorSets this model relies on.addRepeatedField
(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) addTrainingInfo
(int index, OnnxMl.TrainingInfoProto value) Training-specific information.addTrainingInfo
(int index, OnnxMl.TrainingInfoProto.Builder builderForValue) Training-specific information.Training-specific information.addTrainingInfo
(OnnxMl.TrainingInfoProto.Builder builderForValue) Training-specific information.Training-specific information.addTrainingInfoBuilder
(int index) Training-specific information.build()
clear()
A human-readable documentation for this model.Domain name of the model.clearField
(com.google.protobuf.Descriptors.FieldDescriptor field) The parameterized graph that is evaluated to execute the model.The version of the IR this model targets.Named metadata values; keys should be distinct.The version of the graph encoded.clearOneof
(com.google.protobuf.Descriptors.OneofDescriptor oneof) The OperatorSets this model relies on.The name of the framework or tool used to generate this model.The version of the framework or tool used to generate this model.Training-specific information.clone()
static final com.google.protobuf.Descriptors.Descriptor
com.google.protobuf.Descriptors.Descriptor
A human-readable documentation for this model.com.google.protobuf.ByteString
A human-readable documentation for this model.Domain name of the model.com.google.protobuf.ByteString
Domain name of the model.getGraph()
The parameterized graph that is evaluated to execute the model.The parameterized graph that is evaluated to execute the model.The parameterized graph that is evaluated to execute the model.long
The version of the IR this model targets.getMetadataProps
(int index) Named metadata values; keys should be distinct.getMetadataPropsBuilder
(int index) Named metadata values; keys should be distinct.Named metadata values; keys should be distinct.int
Named metadata values; keys should be distinct.Named metadata values; keys should be distinct.getMetadataPropsOrBuilder
(int index) Named metadata values; keys should be distinct.List<? extends OnnxMl.StringStringEntryProtoOrBuilder>
Named metadata values; keys should be distinct.long
The version of the graph encoded.getOpsetImport
(int index) The OperatorSets this model relies on.getOpsetImportBuilder
(int index) The OperatorSets this model relies on.The OperatorSets this model relies on.int
The OperatorSets this model relies on.The OperatorSets this model relies on.getOpsetImportOrBuilder
(int index) The OperatorSets this model relies on.List<? extends OnnxMl.OperatorSetIdProtoOrBuilder>
The OperatorSets this model relies on.The name of the framework or tool used to generate this model.com.google.protobuf.ByteString
The name of the framework or tool used to generate this model.The version of the framework or tool used to generate this model.com.google.protobuf.ByteString
The version of the framework or tool used to generate this model.getTrainingInfo
(int index) Training-specific information.getTrainingInfoBuilder
(int index) Training-specific information.Training-specific information.int
Training-specific information.Training-specific information.getTrainingInfoOrBuilder
(int index) Training-specific information.List<? extends OnnxMl.TrainingInfoProtoOrBuilder>
Training-specific information.boolean
A human-readable documentation for this model.boolean
Domain name of the model.boolean
hasGraph()
The parameterized graph that is evaluated to execute the model.boolean
The version of the IR this model targets.boolean
The version of the graph encoded.boolean
The name of the framework or tool used to generate this model.boolean
The version of the framework or tool used to generate this model.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
final boolean
mergeFrom
(OnnxMl.ModelProto other) mergeFrom
(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom
(com.google.protobuf.Message other) mergeGraph
(OnnxMl.GraphProto value) The parameterized graph that is evaluated to execute the model.mergeUnknownFields
(com.google.protobuf.UnknownFieldSet unknownFields) removeMetadataProps
(int index) Named metadata values; keys should be distinct.removeOpsetImport
(int index) The OperatorSets this model relies on.removeTrainingInfo
(int index) Training-specific information.setDocString
(String value) A human-readable documentation for this model.setDocStringBytes
(com.google.protobuf.ByteString value) A human-readable documentation for this model.Domain name of the model.setDomainBytes
(com.google.protobuf.ByteString value) Domain name of the model.setGraph
(OnnxMl.GraphProto value) The parameterized graph that is evaluated to execute the model.setGraph
(OnnxMl.GraphProto.Builder builderForValue) The parameterized graph that is evaluated to execute the model.setIrVersion
(long value) The version of the IR this model targets.setMetadataProps
(int index, OnnxMl.StringStringEntryProto value) Named metadata values; keys should be distinct.setMetadataProps
(int index, OnnxMl.StringStringEntryProto.Builder builderForValue) Named metadata values; keys should be distinct.setModelVersion
(long value) The version of the graph encoded.setOpsetImport
(int index, OnnxMl.OperatorSetIdProto value) The OperatorSets this model relies on.setOpsetImport
(int index, OnnxMl.OperatorSetIdProto.Builder builderForValue) The OperatorSets this model relies on.setProducerName
(String value) The name of the framework or tool used to generate this model.setProducerNameBytes
(com.google.protobuf.ByteString value) The name of the framework or tool used to generate this model.setProducerVersion
(String value) The version of the framework or tool used to generate this model.setProducerVersionBytes
(com.google.protobuf.ByteString value) The version of the framework or tool used to generate this model.setRepeatedField
(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setTrainingInfo
(int index, OnnxMl.TrainingInfoProto value) Training-specific information.setTrainingInfo
(int index, OnnxMl.TrainingInfoProto.Builder builderForValue) Training-specific information.setUnknownFields
(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, 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
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFrom
Methods 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:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<OnnxMl.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<OnnxMl.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<OnnxMl.ModelProto.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.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<OnnxMl.ModelProto.Builder>
-
setField
public OnnxMl.ModelProto.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<OnnxMl.ModelProto.Builder>
-
clearField
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<OnnxMl.ModelProto.Builder>
-
clearOneof
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<OnnxMl.ModelProto.Builder>
-
setRepeatedField
public OnnxMl.ModelProto.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<OnnxMl.ModelProto.Builder>
-
addRepeatedField
public OnnxMl.ModelProto.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<OnnxMl.ModelProto.Builder>
-
mergeFrom
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<OnnxMl.ModelProto.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<OnnxMl.ModelProto.Builder>
-
mergeFrom
public OnnxMl.ModelProto.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<OnnxMl.ModelProto.Builder>
- Throws:
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 interfaceOnnxMl.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 interfaceOnnxMl.ModelProtoOrBuilder
- Returns:
- The irVersion.
-
setIrVersion
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
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
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 interfaceOnnxMl.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 interfaceOnnxMl.ModelProtoOrBuilder
-
getOpsetImport
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 interfaceOnnxMl.ModelProtoOrBuilder
-
setOpsetImport
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 OnnxMl.ModelProto.Builder setOpsetImport(int index, OnnxMl.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
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
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
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 OnnxMl.ModelProto.Builder addOpsetImport(int index, OnnxMl.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 OnnxMl.ModelProto.Builder addAllOpsetImport(Iterable<? extends OnnxMl.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
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
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
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
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 interfaceOnnxMl.ModelProtoOrBuilder
-
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 interfaceOnnxMl.ModelProtoOrBuilder
-
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
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
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 interfaceOnnxMl.ModelProtoOrBuilder
- Returns:
- Whether the producerName field is set.
-
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 interfaceOnnxMl.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 interfaceOnnxMl.ModelProtoOrBuilder
- Returns:
- The bytes for producerName.
-
setProducerName
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
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
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 interfaceOnnxMl.ModelProtoOrBuilder
- Returns:
- Whether the producerVersion field is set.
-
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 interfaceOnnxMl.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 interfaceOnnxMl.ModelProtoOrBuilder
- Returns:
- The bytes for producerVersion.
-
setProducerVersion
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
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
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 interfaceOnnxMl.ModelProtoOrBuilder
- Returns:
- Whether the domain field is set.
-
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 interfaceOnnxMl.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 interfaceOnnxMl.ModelProtoOrBuilder
- Returns:
- The bytes for domain.
-
setDomain
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
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
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 interfaceOnnxMl.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 interfaceOnnxMl.ModelProtoOrBuilder
- Returns:
- The modelVersion.
-
setModelVersion
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
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 interfaceOnnxMl.ModelProtoOrBuilder
- Returns:
- Whether the docString field is set.
-
getDocString
A human-readable documentation for this model. Markdown is allowed.
optional string doc_string = 6;
- Specified by:
getDocString
in interfaceOnnxMl.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 interfaceOnnxMl.ModelProtoOrBuilder
- Returns:
- The bytes for docString.
-
setDocString
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
A human-readable documentation for this model. Markdown is allowed.
optional string doc_string = 6;
- Returns:
- This builder for chaining.
-
setDocStringBytes
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 interfaceOnnxMl.ModelProtoOrBuilder
- Returns:
- Whether the graph field is set.
-
getGraph
The parameterized graph that is evaluated to execute the model.
optional .onnx.GraphProto graph = 7;
- Specified by:
getGraph
in interfaceOnnxMl.ModelProtoOrBuilder
- Returns:
- The graph.
-
setGraph
The parameterized graph that is evaluated to execute the model.
optional .onnx.GraphProto graph = 7;
-
setGraph
The parameterized graph that is evaluated to execute the model.
optional .onnx.GraphProto graph = 7;
-
mergeGraph
The parameterized graph that is evaluated to execute the model.
optional .onnx.GraphProto graph = 7;
-
clearGraph
The parameterized graph that is evaluated to execute the model.
optional .onnx.GraphProto graph = 7;
-
getGraphBuilder
The parameterized graph that is evaluated to execute the model.
optional .onnx.GraphProto graph = 7;
-
getGraphOrBuilder
The parameterized graph that is evaluated to execute the model.
optional .onnx.GraphProto graph = 7;
- Specified by:
getGraphOrBuilder
in interfaceOnnxMl.ModelProtoOrBuilder
-
getMetadataPropsList
Named metadata values; keys should be distinct.
repeated .onnx.StringStringEntryProto metadata_props = 14;
- Specified by:
getMetadataPropsList
in interfaceOnnxMl.ModelProtoOrBuilder
-
getMetadataPropsCount
public int getMetadataPropsCount()Named metadata values; keys should be distinct.
repeated .onnx.StringStringEntryProto metadata_props = 14;
- Specified by:
getMetadataPropsCount
in interfaceOnnxMl.ModelProtoOrBuilder
-
getMetadataProps
Named metadata values; keys should be distinct.
repeated .onnx.StringStringEntryProto metadata_props = 14;
- Specified by:
getMetadataProps
in interfaceOnnxMl.ModelProtoOrBuilder
-
setMetadataProps
Named metadata values; keys should be distinct.
repeated .onnx.StringStringEntryProto metadata_props = 14;
-
setMetadataProps
public OnnxMl.ModelProto.Builder setMetadataProps(int index, OnnxMl.StringStringEntryProto.Builder builderForValue) Named metadata values; keys should be distinct.
repeated .onnx.StringStringEntryProto metadata_props = 14;
-
addMetadataProps
Named metadata values; keys should be distinct.
repeated .onnx.StringStringEntryProto metadata_props = 14;
-
addMetadataProps
Named metadata values; keys should be distinct.
repeated .onnx.StringStringEntryProto metadata_props = 14;
-
addMetadataProps
public OnnxMl.ModelProto.Builder addMetadataProps(OnnxMl.StringStringEntryProto.Builder builderForValue) Named metadata values; keys should be distinct.
repeated .onnx.StringStringEntryProto metadata_props = 14;
-
addMetadataProps
public OnnxMl.ModelProto.Builder addMetadataProps(int index, OnnxMl.StringStringEntryProto.Builder builderForValue) Named metadata values; keys should be distinct.
repeated .onnx.StringStringEntryProto metadata_props = 14;
-
addAllMetadataProps
public OnnxMl.ModelProto.Builder addAllMetadataProps(Iterable<? extends OnnxMl.StringStringEntryProto> values) Named metadata values; keys should be distinct.
repeated .onnx.StringStringEntryProto metadata_props = 14;
-
clearMetadataProps
Named metadata values; keys should be distinct.
repeated .onnx.StringStringEntryProto metadata_props = 14;
-
removeMetadataProps
Named metadata values; keys should be distinct.
repeated .onnx.StringStringEntryProto metadata_props = 14;
-
getMetadataPropsBuilder
Named metadata values; keys should be distinct.
repeated .onnx.StringStringEntryProto metadata_props = 14;
-
getMetadataPropsOrBuilder
Named metadata values; keys should be distinct.
repeated .onnx.StringStringEntryProto metadata_props = 14;
- Specified by:
getMetadataPropsOrBuilder
in interfaceOnnxMl.ModelProtoOrBuilder
-
getMetadataPropsOrBuilderList
Named metadata values; keys should be distinct.
repeated .onnx.StringStringEntryProto metadata_props = 14;
- Specified by:
getMetadataPropsOrBuilderList
in interfaceOnnxMl.ModelProtoOrBuilder
-
addMetadataPropsBuilder
Named metadata values; keys should be distinct.
repeated .onnx.StringStringEntryProto metadata_props = 14;
-
addMetadataPropsBuilder
Named metadata values; keys should be distinct.
repeated .onnx.StringStringEntryProto metadata_props = 14;
-
getMetadataPropsBuilderList
Named metadata values; keys should be distinct.
repeated .onnx.StringStringEntryProto metadata_props = 14;
-
getTrainingInfoList
Training-specific information. Sequentially executing all stored `TrainingInfoProto.algorithm`s and assigning their outputs following the corresponding `TrainingInfoProto.update_binding`s is one training iteration. Similarly, to initialize the model (as if training hasn't happened), the user should sequentially execute all stored `TrainingInfoProto.initialization`s and assigns their outputs using `TrainingInfoProto.initialization_binding`s. If this field is empty, the training behavior of the model is undefined.
repeated .onnx.TrainingInfoProto training_info = 20;
- Specified by:
getTrainingInfoList
in interfaceOnnxMl.ModelProtoOrBuilder
-
getTrainingInfoCount
public int getTrainingInfoCount()Training-specific information. Sequentially executing all stored `TrainingInfoProto.algorithm`s and assigning their outputs following the corresponding `TrainingInfoProto.update_binding`s is one training iteration. Similarly, to initialize the model (as if training hasn't happened), the user should sequentially execute all stored `TrainingInfoProto.initialization`s and assigns their outputs using `TrainingInfoProto.initialization_binding`s. If this field is empty, the training behavior of the model is undefined.
repeated .onnx.TrainingInfoProto training_info = 20;
- Specified by:
getTrainingInfoCount
in interfaceOnnxMl.ModelProtoOrBuilder
-
getTrainingInfo
Training-specific information. Sequentially executing all stored `TrainingInfoProto.algorithm`s and assigning their outputs following the corresponding `TrainingInfoProto.update_binding`s is one training iteration. Similarly, to initialize the model (as if training hasn't happened), the user should sequentially execute all stored `TrainingInfoProto.initialization`s and assigns their outputs using `TrainingInfoProto.initialization_binding`s. If this field is empty, the training behavior of the model is undefined.
repeated .onnx.TrainingInfoProto training_info = 20;
- Specified by:
getTrainingInfo
in interfaceOnnxMl.ModelProtoOrBuilder
-
setTrainingInfo
Training-specific information. Sequentially executing all stored `TrainingInfoProto.algorithm`s and assigning their outputs following the corresponding `TrainingInfoProto.update_binding`s is one training iteration. Similarly, to initialize the model (as if training hasn't happened), the user should sequentially execute all stored `TrainingInfoProto.initialization`s and assigns their outputs using `TrainingInfoProto.initialization_binding`s. If this field is empty, the training behavior of the model is undefined.
repeated .onnx.TrainingInfoProto training_info = 20;
-
setTrainingInfo
public OnnxMl.ModelProto.Builder setTrainingInfo(int index, OnnxMl.TrainingInfoProto.Builder builderForValue) Training-specific information. Sequentially executing all stored `TrainingInfoProto.algorithm`s and assigning their outputs following the corresponding `TrainingInfoProto.update_binding`s is one training iteration. Similarly, to initialize the model (as if training hasn't happened), the user should sequentially execute all stored `TrainingInfoProto.initialization`s and assigns their outputs using `TrainingInfoProto.initialization_binding`s. If this field is empty, the training behavior of the model is undefined.
repeated .onnx.TrainingInfoProto training_info = 20;
-
addTrainingInfo
Training-specific information. Sequentially executing all stored `TrainingInfoProto.algorithm`s and assigning their outputs following the corresponding `TrainingInfoProto.update_binding`s is one training iteration. Similarly, to initialize the model (as if training hasn't happened), the user should sequentially execute all stored `TrainingInfoProto.initialization`s and assigns their outputs using `TrainingInfoProto.initialization_binding`s. If this field is empty, the training behavior of the model is undefined.
repeated .onnx.TrainingInfoProto training_info = 20;
-
addTrainingInfo
Training-specific information. Sequentially executing all stored `TrainingInfoProto.algorithm`s and assigning their outputs following the corresponding `TrainingInfoProto.update_binding`s is one training iteration. Similarly, to initialize the model (as if training hasn't happened), the user should sequentially execute all stored `TrainingInfoProto.initialization`s and assigns their outputs using `TrainingInfoProto.initialization_binding`s. If this field is empty, the training behavior of the model is undefined.
repeated .onnx.TrainingInfoProto training_info = 20;
-
addTrainingInfo
Training-specific information. Sequentially executing all stored `TrainingInfoProto.algorithm`s and assigning their outputs following the corresponding `TrainingInfoProto.update_binding`s is one training iteration. Similarly, to initialize the model (as if training hasn't happened), the user should sequentially execute all stored `TrainingInfoProto.initialization`s and assigns their outputs using `TrainingInfoProto.initialization_binding`s. If this field is empty, the training behavior of the model is undefined.
repeated .onnx.TrainingInfoProto training_info = 20;
-
addTrainingInfo
public OnnxMl.ModelProto.Builder addTrainingInfo(int index, OnnxMl.TrainingInfoProto.Builder builderForValue) Training-specific information. Sequentially executing all stored `TrainingInfoProto.algorithm`s and assigning their outputs following the corresponding `TrainingInfoProto.update_binding`s is one training iteration. Similarly, to initialize the model (as if training hasn't happened), the user should sequentially execute all stored `TrainingInfoProto.initialization`s and assigns their outputs using `TrainingInfoProto.initialization_binding`s. If this field is empty, the training behavior of the model is undefined.
repeated .onnx.TrainingInfoProto training_info = 20;
-
addAllTrainingInfo
public OnnxMl.ModelProto.Builder addAllTrainingInfo(Iterable<? extends OnnxMl.TrainingInfoProto> values) Training-specific information. Sequentially executing all stored `TrainingInfoProto.algorithm`s and assigning their outputs following the corresponding `TrainingInfoProto.update_binding`s is one training iteration. Similarly, to initialize the model (as if training hasn't happened), the user should sequentially execute all stored `TrainingInfoProto.initialization`s and assigns their outputs using `TrainingInfoProto.initialization_binding`s. If this field is empty, the training behavior of the model is undefined.
repeated .onnx.TrainingInfoProto training_info = 20;
-
clearTrainingInfo
Training-specific information. Sequentially executing all stored `TrainingInfoProto.algorithm`s and assigning their outputs following the corresponding `TrainingInfoProto.update_binding`s is one training iteration. Similarly, to initialize the model (as if training hasn't happened), the user should sequentially execute all stored `TrainingInfoProto.initialization`s and assigns their outputs using `TrainingInfoProto.initialization_binding`s. If this field is empty, the training behavior of the model is undefined.
repeated .onnx.TrainingInfoProto training_info = 20;
-
removeTrainingInfo
Training-specific information. Sequentially executing all stored `TrainingInfoProto.algorithm`s and assigning their outputs following the corresponding `TrainingInfoProto.update_binding`s is one training iteration. Similarly, to initialize the model (as if training hasn't happened), the user should sequentially execute all stored `TrainingInfoProto.initialization`s and assigns their outputs using `TrainingInfoProto.initialization_binding`s. If this field is empty, the training behavior of the model is undefined.
repeated .onnx.TrainingInfoProto training_info = 20;
-
getTrainingInfoBuilder
Training-specific information. Sequentially executing all stored `TrainingInfoProto.algorithm`s and assigning their outputs following the corresponding `TrainingInfoProto.update_binding`s is one training iteration. Similarly, to initialize the model (as if training hasn't happened), the user should sequentially execute all stored `TrainingInfoProto.initialization`s and assigns their outputs using `TrainingInfoProto.initialization_binding`s. If this field is empty, the training behavior of the model is undefined.
repeated .onnx.TrainingInfoProto training_info = 20;
-
getTrainingInfoOrBuilder
Training-specific information. Sequentially executing all stored `TrainingInfoProto.algorithm`s and assigning their outputs following the corresponding `TrainingInfoProto.update_binding`s is one training iteration. Similarly, to initialize the model (as if training hasn't happened), the user should sequentially execute all stored `TrainingInfoProto.initialization`s and assigns their outputs using `TrainingInfoProto.initialization_binding`s. If this field is empty, the training behavior of the model is undefined.
repeated .onnx.TrainingInfoProto training_info = 20;
- Specified by:
getTrainingInfoOrBuilder
in interfaceOnnxMl.ModelProtoOrBuilder
-
getTrainingInfoOrBuilderList
Training-specific information. Sequentially executing all stored `TrainingInfoProto.algorithm`s and assigning their outputs following the corresponding `TrainingInfoProto.update_binding`s is one training iteration. Similarly, to initialize the model (as if training hasn't happened), the user should sequentially execute all stored `TrainingInfoProto.initialization`s and assigns their outputs using `TrainingInfoProto.initialization_binding`s. If this field is empty, the training behavior of the model is undefined.
repeated .onnx.TrainingInfoProto training_info = 20;
- Specified by:
getTrainingInfoOrBuilderList
in interfaceOnnxMl.ModelProtoOrBuilder
-
addTrainingInfoBuilder
Training-specific information. Sequentially executing all stored `TrainingInfoProto.algorithm`s and assigning their outputs following the corresponding `TrainingInfoProto.update_binding`s is one training iteration. Similarly, to initialize the model (as if training hasn't happened), the user should sequentially execute all stored `TrainingInfoProto.initialization`s and assigns their outputs using `TrainingInfoProto.initialization_binding`s. If this field is empty, the training behavior of the model is undefined.
repeated .onnx.TrainingInfoProto training_info = 20;
-
addTrainingInfoBuilder
Training-specific information. Sequentially executing all stored `TrainingInfoProto.algorithm`s and assigning their outputs following the corresponding `TrainingInfoProto.update_binding`s is one training iteration. Similarly, to initialize the model (as if training hasn't happened), the user should sequentially execute all stored `TrainingInfoProto.initialization`s and assigns their outputs using `TrainingInfoProto.initialization_binding`s. If this field is empty, the training behavior of the model is undefined.
repeated .onnx.TrainingInfoProto training_info = 20;
-
getTrainingInfoBuilderList
Training-specific information. Sequentially executing all stored `TrainingInfoProto.algorithm`s and assigning their outputs following the corresponding `TrainingInfoProto.update_binding`s is one training iteration. Similarly, to initialize the model (as if training hasn't happened), the user should sequentially execute all stored `TrainingInfoProto.initialization`s and assigns their outputs using `TrainingInfoProto.initialization_binding`s. If this field is empty, the training behavior of the model is undefined.
repeated .onnx.TrainingInfoProto training_info = 20;
-
setUnknownFields
public final OnnxMl.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<OnnxMl.ModelProto.Builder>
-
mergeUnknownFields
public final OnnxMl.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<OnnxMl.ModelProto.Builder>
-