public static final class OnnxMl.AttributeProto.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<OnnxMl.AttributeProto.Builder> implements OnnxMl.AttributeProtoOrBuilder
Attributes A named attribute containing either singular float, integer, string, graph, and tensor values, or repeated float, integer, string, graph, and tensor values. An AttributeProto MUST contain the name field, and *only one* of the following content fields, effectively enforcing a C/C++ union equivalent.Protobuf type
onnx.AttributeProto| Modifier and Type | Method and Description |
|---|---|
OnnxMl.AttributeProto.Builder |
addAllFloats(java.lang.Iterable<? extends java.lang.Float> values)
list of floats
|
OnnxMl.AttributeProto.Builder |
addAllGraphs(java.lang.Iterable<? extends OnnxMl.GraphProto> values)
list of graph
|
OnnxMl.AttributeProto.Builder |
addAllInts(java.lang.Iterable<? extends java.lang.Long> values)
list of ints
|
OnnxMl.AttributeProto.Builder |
addAllSparseTensors(java.lang.Iterable<? extends OnnxMl.SparseTensorProto> values)
list of sparse tensors
|
OnnxMl.AttributeProto.Builder |
addAllStrings(java.lang.Iterable<? extends com.google.protobuf.ByteString> values)
list of UTF-8 strings
|
OnnxMl.AttributeProto.Builder |
addAllTensors(java.lang.Iterable<? extends OnnxMl.TensorProto> values)
list of tensors
|
OnnxMl.AttributeProto.Builder |
addFloats(float value)
list of floats
|
OnnxMl.AttributeProto.Builder |
addGraphs(int index,
OnnxMl.GraphProto.Builder builderForValue)
list of graph
|
OnnxMl.AttributeProto.Builder |
addGraphs(int index,
OnnxMl.GraphProto value)
list of graph
|
OnnxMl.AttributeProto.Builder |
addGraphs(OnnxMl.GraphProto.Builder builderForValue)
list of graph
|
OnnxMl.AttributeProto.Builder |
addGraphs(OnnxMl.GraphProto value)
list of graph
|
OnnxMl.GraphProto.Builder |
addGraphsBuilder()
list of graph
|
OnnxMl.GraphProto.Builder |
addGraphsBuilder(int index)
list of graph
|
OnnxMl.AttributeProto.Builder |
addInts(long value)
list of ints
|
OnnxMl.AttributeProto.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) |
OnnxMl.AttributeProto.Builder |
addSparseTensors(int index,
OnnxMl.SparseTensorProto.Builder builderForValue)
list of sparse tensors
|
OnnxMl.AttributeProto.Builder |
addSparseTensors(int index,
OnnxMl.SparseTensorProto value)
list of sparse tensors
|
OnnxMl.AttributeProto.Builder |
addSparseTensors(OnnxMl.SparseTensorProto.Builder builderForValue)
list of sparse tensors
|
OnnxMl.AttributeProto.Builder |
addSparseTensors(OnnxMl.SparseTensorProto value)
list of sparse tensors
|
OnnxMl.SparseTensorProto.Builder |
addSparseTensorsBuilder()
list of sparse tensors
|
OnnxMl.SparseTensorProto.Builder |
addSparseTensorsBuilder(int index)
list of sparse tensors
|
OnnxMl.AttributeProto.Builder |
addStrings(com.google.protobuf.ByteString value)
list of UTF-8 strings
|
OnnxMl.AttributeProto.Builder |
addTensors(int index,
OnnxMl.TensorProto.Builder builderForValue)
list of tensors
|
OnnxMl.AttributeProto.Builder |
addTensors(int index,
OnnxMl.TensorProto value)
list of tensors
|
OnnxMl.AttributeProto.Builder |
addTensors(OnnxMl.TensorProto.Builder builderForValue)
list of tensors
|
OnnxMl.AttributeProto.Builder |
addTensors(OnnxMl.TensorProto value)
list of tensors
|
OnnxMl.TensorProto.Builder |
addTensorsBuilder()
list of tensors
|
OnnxMl.TensorProto.Builder |
addTensorsBuilder(int index)
list of tensors
|
OnnxMl.AttributeProto |
build() |
OnnxMl.AttributeProto |
buildPartial() |
OnnxMl.AttributeProto.Builder |
clear() |
OnnxMl.AttributeProto.Builder |
clearDocString()
A human-readable documentation for this attribute.
|
OnnxMl.AttributeProto.Builder |
clearF()
Exactly ONE of the following fields must be present for this version of the IR
|
OnnxMl.AttributeProto.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
OnnxMl.AttributeProto.Builder |
clearFloats()
list of floats
|
OnnxMl.AttributeProto.Builder |
clearG()
graph
|
OnnxMl.AttributeProto.Builder |
clearGraphs()
list of graph
|
OnnxMl.AttributeProto.Builder |
clearI()
int
|
OnnxMl.AttributeProto.Builder |
clearInts()
list of ints
|
OnnxMl.AttributeProto.Builder |
clearName()
The name field MUST be present for this version of the IR.
|
OnnxMl.AttributeProto.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
OnnxMl.AttributeProto.Builder |
clearRefAttrName()
if ref_attr_name is not empty, ref_attr_name is the attribute name in parent function.
|
OnnxMl.AttributeProto.Builder |
clearS()
UTF-8 string
|
OnnxMl.AttributeProto.Builder |
clearSparseTensor()
sparse tensor value
|
OnnxMl.AttributeProto.Builder |
clearSparseTensors()
list of sparse tensors
|
OnnxMl.AttributeProto.Builder |
clearStrings()
list of UTF-8 strings
|
OnnxMl.AttributeProto.Builder |
clearT()
tensor value
|
OnnxMl.AttributeProto.Builder |
clearTensors()
list of tensors
|
OnnxMl.AttributeProto.Builder |
clearType()
The type field MUST be present for this version of the IR.
|
OnnxMl.AttributeProto.Builder |
clone() |
OnnxMl.AttributeProto |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
java.lang.String |
getDocString()
A human-readable documentation for this attribute.
|
com.google.protobuf.ByteString |
getDocStringBytes()
A human-readable documentation for this attribute.
|
float |
getF()
Exactly ONE of the following fields must be present for this version of the IR
|
float |
getFloats(int index)
list of floats
|
int |
getFloatsCount()
list of floats
|
java.util.List<java.lang.Float> |
getFloatsList()
list of floats
|
OnnxMl.GraphProto |
getG()
graph
|
OnnxMl.GraphProto.Builder |
getGBuilder()
graph
|
OnnxMl.GraphProtoOrBuilder |
getGOrBuilder()
graph
|
OnnxMl.GraphProto |
getGraphs(int index)
list of graph
|
OnnxMl.GraphProto.Builder |
getGraphsBuilder(int index)
list of graph
|
java.util.List<OnnxMl.GraphProto.Builder> |
getGraphsBuilderList()
list of graph
|
int |
getGraphsCount()
list of graph
|
java.util.List<OnnxMl.GraphProto> |
getGraphsList()
list of graph
|
OnnxMl.GraphProtoOrBuilder |
getGraphsOrBuilder(int index)
list of graph
|
java.util.List<? extends OnnxMl.GraphProtoOrBuilder> |
getGraphsOrBuilderList()
list of graph
|
long |
getI()
int
|
long |
getInts(int index)
list of ints
|
int |
getIntsCount()
list of ints
|
java.util.List<java.lang.Long> |
getIntsList()
list of ints
|
java.lang.String |
getName()
The name field MUST be present for this version of the IR.
|
com.google.protobuf.ByteString |
getNameBytes()
The name field MUST be present for this version of the IR.
|
java.lang.String |
getRefAttrName()
if ref_attr_name is not empty, ref_attr_name is the attribute name in parent function.
|
com.google.protobuf.ByteString |
getRefAttrNameBytes()
if ref_attr_name is not empty, ref_attr_name is the attribute name in parent function.
|
com.google.protobuf.ByteString |
getS()
UTF-8 string
|
OnnxMl.SparseTensorProto |
getSparseTensor()
sparse tensor value
|
OnnxMl.SparseTensorProto.Builder |
getSparseTensorBuilder()
sparse tensor value
|
OnnxMl.SparseTensorProtoOrBuilder |
getSparseTensorOrBuilder()
sparse tensor value
|
OnnxMl.SparseTensorProto |
getSparseTensors(int index)
list of sparse tensors
|
OnnxMl.SparseTensorProto.Builder |
getSparseTensorsBuilder(int index)
list of sparse tensors
|
java.util.List<OnnxMl.SparseTensorProto.Builder> |
getSparseTensorsBuilderList()
list of sparse tensors
|
int |
getSparseTensorsCount()
list of sparse tensors
|
java.util.List<OnnxMl.SparseTensorProto> |
getSparseTensorsList()
list of sparse tensors
|
OnnxMl.SparseTensorProtoOrBuilder |
getSparseTensorsOrBuilder(int index)
list of sparse tensors
|
java.util.List<? extends OnnxMl.SparseTensorProtoOrBuilder> |
getSparseTensorsOrBuilderList()
list of sparse tensors
|
com.google.protobuf.ByteString |
getStrings(int index)
list of UTF-8 strings
|
int |
getStringsCount()
list of UTF-8 strings
|
java.util.List<com.google.protobuf.ByteString> |
getStringsList()
list of UTF-8 strings
|
OnnxMl.TensorProto |
getT()
tensor value
|
OnnxMl.TensorProto.Builder |
getTBuilder()
tensor value
|
OnnxMl.TensorProto |
getTensors(int index)
list of tensors
|
OnnxMl.TensorProto.Builder |
getTensorsBuilder(int index)
list of tensors
|
java.util.List<OnnxMl.TensorProto.Builder> |
getTensorsBuilderList()
list of tensors
|
int |
getTensorsCount()
list of tensors
|
java.util.List<OnnxMl.TensorProto> |
getTensorsList()
list of tensors
|
OnnxMl.TensorProtoOrBuilder |
getTensorsOrBuilder(int index)
list of tensors
|
java.util.List<? extends OnnxMl.TensorProtoOrBuilder> |
getTensorsOrBuilderList()
list of tensors
|
OnnxMl.TensorProtoOrBuilder |
getTOrBuilder()
tensor value
|
OnnxMl.AttributeProto.AttributeType |
getType()
The type field MUST be present for this version of the IR.
|
boolean |
hasDocString()
A human-readable documentation for this attribute.
|
boolean |
hasF()
Exactly ONE of the following fields must be present for this version of the IR
|
boolean |
hasG()
graph
|
boolean |
hasI()
int
|
boolean |
hasName()
The name field MUST be present for this version of the IR.
|
boolean |
hasRefAttrName()
if ref_attr_name is not empty, ref_attr_name is the attribute name in parent function.
|
boolean |
hasS()
UTF-8 string
|
boolean |
hasSparseTensor()
sparse tensor value
|
boolean |
hasT()
tensor value
|
boolean |
hasType()
The type field MUST be present for this version of the IR.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
OnnxMl.AttributeProto.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
OnnxMl.AttributeProto.Builder |
mergeFrom(com.google.protobuf.Message other) |
OnnxMl.AttributeProto.Builder |
mergeFrom(OnnxMl.AttributeProto other) |
OnnxMl.AttributeProto.Builder |
mergeG(OnnxMl.GraphProto value)
graph
|
OnnxMl.AttributeProto.Builder |
mergeSparseTensor(OnnxMl.SparseTensorProto value)
sparse tensor value
|
OnnxMl.AttributeProto.Builder |
mergeT(OnnxMl.TensorProto value)
tensor value
|
OnnxMl.AttributeProto.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
OnnxMl.AttributeProto.Builder |
removeGraphs(int index)
list of graph
|
OnnxMl.AttributeProto.Builder |
removeSparseTensors(int index)
list of sparse tensors
|
OnnxMl.AttributeProto.Builder |
removeTensors(int index)
list of tensors
|
OnnxMl.AttributeProto.Builder |
setDocString(java.lang.String value)
A human-readable documentation for this attribute.
|
OnnxMl.AttributeProto.Builder |
setDocStringBytes(com.google.protobuf.ByteString value)
A human-readable documentation for this attribute.
|
OnnxMl.AttributeProto.Builder |
setF(float value)
Exactly ONE of the following fields must be present for this version of the IR
|
OnnxMl.AttributeProto.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) |
OnnxMl.AttributeProto.Builder |
setFloats(int index,
float value)
list of floats
|
OnnxMl.AttributeProto.Builder |
setG(OnnxMl.GraphProto.Builder builderForValue)
graph
|
OnnxMl.AttributeProto.Builder |
setG(OnnxMl.GraphProto value)
graph
|
OnnxMl.AttributeProto.Builder |
setGraphs(int index,
OnnxMl.GraphProto.Builder builderForValue)
list of graph
|
OnnxMl.AttributeProto.Builder |
setGraphs(int index,
OnnxMl.GraphProto value)
list of graph
|
OnnxMl.AttributeProto.Builder |
setI(long value)
int
|
OnnxMl.AttributeProto.Builder |
setInts(int index,
long value)
list of ints
|
OnnxMl.AttributeProto.Builder |
setName(java.lang.String value)
The name field MUST be present for this version of the IR.
|
OnnxMl.AttributeProto.Builder |
setNameBytes(com.google.protobuf.ByteString value)
The name field MUST be present for this version of the IR.
|
OnnxMl.AttributeProto.Builder |
setRefAttrName(java.lang.String value)
if ref_attr_name is not empty, ref_attr_name is the attribute name in parent function.
|
OnnxMl.AttributeProto.Builder |
setRefAttrNameBytes(com.google.protobuf.ByteString value)
if ref_attr_name is not empty, ref_attr_name is the attribute name in parent function.
|
OnnxMl.AttributeProto.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
java.lang.Object value) |
OnnxMl.AttributeProto.Builder |
setS(com.google.protobuf.ByteString value)
UTF-8 string
|
OnnxMl.AttributeProto.Builder |
setSparseTensor(OnnxMl.SparseTensorProto.Builder builderForValue)
sparse tensor value
|
OnnxMl.AttributeProto.Builder |
setSparseTensor(OnnxMl.SparseTensorProto value)
sparse tensor value
|
OnnxMl.AttributeProto.Builder |
setSparseTensors(int index,
OnnxMl.SparseTensorProto.Builder builderForValue)
list of sparse tensors
|
OnnxMl.AttributeProto.Builder |
setSparseTensors(int index,
OnnxMl.SparseTensorProto value)
list of sparse tensors
|
OnnxMl.AttributeProto.Builder |
setStrings(int index,
com.google.protobuf.ByteString value)
list of UTF-8 strings
|
OnnxMl.AttributeProto.Builder |
setT(OnnxMl.TensorProto.Builder builderForValue)
tensor value
|
OnnxMl.AttributeProto.Builder |
setT(OnnxMl.TensorProto value)
tensor value
|
OnnxMl.AttributeProto.Builder |
setTensors(int index,
OnnxMl.TensorProto.Builder builderForValue)
list of tensors
|
OnnxMl.AttributeProto.Builder |
setTensors(int index,
OnnxMl.TensorProto value)
list of tensors
|
OnnxMl.AttributeProto.Builder |
setType(OnnxMl.AttributeProto.AttributeType value)
The type field MUST be present for this version of the IR.
|
OnnxMl.AttributeProto.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<OnnxMl.AttributeProto.Builder>public OnnxMl.AttributeProto.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<OnnxMl.AttributeProto.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<OnnxMl.AttributeProto.Builder>public OnnxMl.AttributeProto getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic OnnxMl.AttributeProto build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic OnnxMl.AttributeProto buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic OnnxMl.AttributeProto.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<OnnxMl.AttributeProto.Builder>public OnnxMl.AttributeProto.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<OnnxMl.AttributeProto.Builder>public OnnxMl.AttributeProto.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<OnnxMl.AttributeProto.Builder>public OnnxMl.AttributeProto.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<OnnxMl.AttributeProto.Builder>public OnnxMl.AttributeProto.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<OnnxMl.AttributeProto.Builder>public OnnxMl.AttributeProto.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<OnnxMl.AttributeProto.Builder>public OnnxMl.AttributeProto.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<OnnxMl.AttributeProto.Builder>public OnnxMl.AttributeProto.Builder mergeFrom(OnnxMl.AttributeProto other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<OnnxMl.AttributeProto.Builder>public OnnxMl.AttributeProto.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<OnnxMl.AttributeProto.Builder>java.io.IOExceptionpublic boolean hasName()
The name field MUST be present for this version of the IR.
optional string name = 1;hasName in interface OnnxMl.AttributeProtoOrBuilderpublic java.lang.String getName()
The name field MUST be present for this version of the IR.
optional string name = 1;getName in interface OnnxMl.AttributeProtoOrBuilderpublic com.google.protobuf.ByteString getNameBytes()
The name field MUST be present for this version of the IR.
optional string name = 1;getNameBytes in interface OnnxMl.AttributeProtoOrBuilderpublic OnnxMl.AttributeProto.Builder setName(java.lang.String value)
The name field MUST be present for this version of the IR.
optional string name = 1;value - The name to set.public OnnxMl.AttributeProto.Builder clearName()
The name field MUST be present for this version of the IR.
optional string name = 1;public OnnxMl.AttributeProto.Builder setNameBytes(com.google.protobuf.ByteString value)
The name field MUST be present for this version of the IR.
optional string name = 1;value - The bytes for name to set.public boolean hasRefAttrName()
if ref_attr_name is not empty, ref_attr_name is the attribute name in parent function. In this case, this AttributeProto does not contain data, and it's a reference of attribute in parent scope. NOTE: This should ONLY be used in function (sub-graph). It's invalid to be used in main graph.
optional string ref_attr_name = 21;hasRefAttrName in interface OnnxMl.AttributeProtoOrBuilderpublic java.lang.String getRefAttrName()
if ref_attr_name is not empty, ref_attr_name is the attribute name in parent function. In this case, this AttributeProto does not contain data, and it's a reference of attribute in parent scope. NOTE: This should ONLY be used in function (sub-graph). It's invalid to be used in main graph.
optional string ref_attr_name = 21;getRefAttrName in interface OnnxMl.AttributeProtoOrBuilderpublic com.google.protobuf.ByteString getRefAttrNameBytes()
if ref_attr_name is not empty, ref_attr_name is the attribute name in parent function. In this case, this AttributeProto does not contain data, and it's a reference of attribute in parent scope. NOTE: This should ONLY be used in function (sub-graph). It's invalid to be used in main graph.
optional string ref_attr_name = 21;getRefAttrNameBytes in interface OnnxMl.AttributeProtoOrBuilderpublic OnnxMl.AttributeProto.Builder setRefAttrName(java.lang.String value)
if ref_attr_name is not empty, ref_attr_name is the attribute name in parent function. In this case, this AttributeProto does not contain data, and it's a reference of attribute in parent scope. NOTE: This should ONLY be used in function (sub-graph). It's invalid to be used in main graph.
optional string ref_attr_name = 21;value - The refAttrName to set.public OnnxMl.AttributeProto.Builder clearRefAttrName()
if ref_attr_name is not empty, ref_attr_name is the attribute name in parent function. In this case, this AttributeProto does not contain data, and it's a reference of attribute in parent scope. NOTE: This should ONLY be used in function (sub-graph). It's invalid to be used in main graph.
optional string ref_attr_name = 21;public OnnxMl.AttributeProto.Builder setRefAttrNameBytes(com.google.protobuf.ByteString value)
if ref_attr_name is not empty, ref_attr_name is the attribute name in parent function. In this case, this AttributeProto does not contain data, and it's a reference of attribute in parent scope. NOTE: This should ONLY be used in function (sub-graph). It's invalid to be used in main graph.
optional string ref_attr_name = 21;value - The bytes for refAttrName to set.public boolean hasDocString()
A human-readable documentation for this attribute. Markdown is allowed.
optional string doc_string = 13;hasDocString in interface OnnxMl.AttributeProtoOrBuilderpublic java.lang.String getDocString()
A human-readable documentation for this attribute. Markdown is allowed.
optional string doc_string = 13;getDocString in interface OnnxMl.AttributeProtoOrBuilderpublic com.google.protobuf.ByteString getDocStringBytes()
A human-readable documentation for this attribute. Markdown is allowed.
optional string doc_string = 13;getDocStringBytes in interface OnnxMl.AttributeProtoOrBuilderpublic OnnxMl.AttributeProto.Builder setDocString(java.lang.String value)
A human-readable documentation for this attribute. Markdown is allowed.
optional string doc_string = 13;value - The docString to set.public OnnxMl.AttributeProto.Builder clearDocString()
A human-readable documentation for this attribute. Markdown is allowed.
optional string doc_string = 13;public OnnxMl.AttributeProto.Builder setDocStringBytes(com.google.protobuf.ByteString value)
A human-readable documentation for this attribute. Markdown is allowed.
optional string doc_string = 13;value - The bytes for docString to set.public boolean hasType()
The type field MUST be present for this version of the IR. For 0.0.1 versions of the IR, this field was not defined, and implementations needed to use has_field heuristics to determine which value field was in use. For IR_VERSION 0.0.2 or later, this field MUST be set and match the f|i|s|t|... field in use. This change was made to accommodate proto3 implementations.
optional .onnx.AttributeProto.AttributeType type = 20;hasType in interface OnnxMl.AttributeProtoOrBuilderpublic OnnxMl.AttributeProto.AttributeType getType()
The type field MUST be present for this version of the IR. For 0.0.1 versions of the IR, this field was not defined, and implementations needed to use has_field heuristics to determine which value field was in use. For IR_VERSION 0.0.2 or later, this field MUST be set and match the f|i|s|t|... field in use. This change was made to accommodate proto3 implementations.
optional .onnx.AttributeProto.AttributeType type = 20;getType in interface OnnxMl.AttributeProtoOrBuilderpublic OnnxMl.AttributeProto.Builder setType(OnnxMl.AttributeProto.AttributeType value)
The type field MUST be present for this version of the IR. For 0.0.1 versions of the IR, this field was not defined, and implementations needed to use has_field heuristics to determine which value field was in use. For IR_VERSION 0.0.2 or later, this field MUST be set and match the f|i|s|t|... field in use. This change was made to accommodate proto3 implementations.
optional .onnx.AttributeProto.AttributeType type = 20;value - The type to set.public OnnxMl.AttributeProto.Builder clearType()
The type field MUST be present for this version of the IR. For 0.0.1 versions of the IR, this field was not defined, and implementations needed to use has_field heuristics to determine which value field was in use. For IR_VERSION 0.0.2 or later, this field MUST be set and match the f|i|s|t|... field in use. This change was made to accommodate proto3 implementations.
optional .onnx.AttributeProto.AttributeType type = 20;public boolean hasF()
Exactly ONE of the following fields must be present for this version of the IR
optional float f = 2;hasF in interface OnnxMl.AttributeProtoOrBuilderpublic float getF()
Exactly ONE of the following fields must be present for this version of the IR
optional float f = 2;getF in interface OnnxMl.AttributeProtoOrBuilderpublic OnnxMl.AttributeProto.Builder setF(float value)
Exactly ONE of the following fields must be present for this version of the IR
optional float f = 2;value - The f to set.public OnnxMl.AttributeProto.Builder clearF()
Exactly ONE of the following fields must be present for this version of the IR
optional float f = 2;public boolean hasI()
int
optional int64 i = 3;hasI in interface OnnxMl.AttributeProtoOrBuilderpublic long getI()
int
optional int64 i = 3;getI in interface OnnxMl.AttributeProtoOrBuilderpublic OnnxMl.AttributeProto.Builder setI(long value)
int
optional int64 i = 3;value - The i to set.public OnnxMl.AttributeProto.Builder clearI()
int
optional int64 i = 3;public boolean hasS()
UTF-8 string
optional bytes s = 4;hasS in interface OnnxMl.AttributeProtoOrBuilderpublic com.google.protobuf.ByteString getS()
UTF-8 string
optional bytes s = 4;getS in interface OnnxMl.AttributeProtoOrBuilderpublic OnnxMl.AttributeProto.Builder setS(com.google.protobuf.ByteString value)
UTF-8 string
optional bytes s = 4;value - The s to set.public OnnxMl.AttributeProto.Builder clearS()
UTF-8 string
optional bytes s = 4;public boolean hasT()
tensor value
optional .onnx.TensorProto t = 5;hasT in interface OnnxMl.AttributeProtoOrBuilderpublic OnnxMl.TensorProto getT()
tensor value
optional .onnx.TensorProto t = 5;getT in interface OnnxMl.AttributeProtoOrBuilderpublic OnnxMl.AttributeProto.Builder setT(OnnxMl.TensorProto value)
tensor value
optional .onnx.TensorProto t = 5;public OnnxMl.AttributeProto.Builder setT(OnnxMl.TensorProto.Builder builderForValue)
tensor value
optional .onnx.TensorProto t = 5;public OnnxMl.AttributeProto.Builder mergeT(OnnxMl.TensorProto value)
tensor value
optional .onnx.TensorProto t = 5;public OnnxMl.AttributeProto.Builder clearT()
tensor value
optional .onnx.TensorProto t = 5;public OnnxMl.TensorProto.Builder getTBuilder()
tensor value
optional .onnx.TensorProto t = 5;public OnnxMl.TensorProtoOrBuilder getTOrBuilder()
tensor value
optional .onnx.TensorProto t = 5;getTOrBuilder in interface OnnxMl.AttributeProtoOrBuilderpublic boolean hasG()
graph
optional .onnx.GraphProto g = 6;hasG in interface OnnxMl.AttributeProtoOrBuilderpublic OnnxMl.GraphProto getG()
graph
optional .onnx.GraphProto g = 6;getG in interface OnnxMl.AttributeProtoOrBuilderpublic OnnxMl.AttributeProto.Builder setG(OnnxMl.GraphProto value)
graph
optional .onnx.GraphProto g = 6;public OnnxMl.AttributeProto.Builder setG(OnnxMl.GraphProto.Builder builderForValue)
graph
optional .onnx.GraphProto g = 6;public OnnxMl.AttributeProto.Builder mergeG(OnnxMl.GraphProto value)
graph
optional .onnx.GraphProto g = 6;public OnnxMl.AttributeProto.Builder clearG()
graph
optional .onnx.GraphProto g = 6;public OnnxMl.GraphProto.Builder getGBuilder()
graph
optional .onnx.GraphProto g = 6;public OnnxMl.GraphProtoOrBuilder getGOrBuilder()
graph
optional .onnx.GraphProto g = 6;getGOrBuilder in interface OnnxMl.AttributeProtoOrBuilderpublic boolean hasSparseTensor()
sparse tensor value
optional .onnx.SparseTensorProto sparse_tensor = 22;hasSparseTensor in interface OnnxMl.AttributeProtoOrBuilderpublic OnnxMl.SparseTensorProto getSparseTensor()
sparse tensor value
optional .onnx.SparseTensorProto sparse_tensor = 22;getSparseTensor in interface OnnxMl.AttributeProtoOrBuilderpublic OnnxMl.AttributeProto.Builder setSparseTensor(OnnxMl.SparseTensorProto value)
sparse tensor value
optional .onnx.SparseTensorProto sparse_tensor = 22;public OnnxMl.AttributeProto.Builder setSparseTensor(OnnxMl.SparseTensorProto.Builder builderForValue)
sparse tensor value
optional .onnx.SparseTensorProto sparse_tensor = 22;public OnnxMl.AttributeProto.Builder mergeSparseTensor(OnnxMl.SparseTensorProto value)
sparse tensor value
optional .onnx.SparseTensorProto sparse_tensor = 22;public OnnxMl.AttributeProto.Builder clearSparseTensor()
sparse tensor value
optional .onnx.SparseTensorProto sparse_tensor = 22;public OnnxMl.SparseTensorProto.Builder getSparseTensorBuilder()
sparse tensor value
optional .onnx.SparseTensorProto sparse_tensor = 22;public OnnxMl.SparseTensorProtoOrBuilder getSparseTensorOrBuilder()
sparse tensor value
optional .onnx.SparseTensorProto sparse_tensor = 22;getSparseTensorOrBuilder in interface OnnxMl.AttributeProtoOrBuilderpublic java.util.List<java.lang.Float> getFloatsList()
list of floats
repeated float floats = 7;getFloatsList in interface OnnxMl.AttributeProtoOrBuilderpublic int getFloatsCount()
list of floats
repeated float floats = 7;getFloatsCount in interface OnnxMl.AttributeProtoOrBuilderpublic float getFloats(int index)
list of floats
repeated float floats = 7;getFloats in interface OnnxMl.AttributeProtoOrBuilderindex - The index of the element to return.public OnnxMl.AttributeProto.Builder setFloats(int index, float value)
list of floats
repeated float floats = 7;index - The index to set the value at.value - The floats to set.public OnnxMl.AttributeProto.Builder addFloats(float value)
list of floats
repeated float floats = 7;value - The floats to add.public OnnxMl.AttributeProto.Builder addAllFloats(java.lang.Iterable<? extends java.lang.Float> values)
list of floats
repeated float floats = 7;values - The floats to add.public OnnxMl.AttributeProto.Builder clearFloats()
list of floats
repeated float floats = 7;public java.util.List<java.lang.Long> getIntsList()
list of ints
repeated int64 ints = 8;getIntsList in interface OnnxMl.AttributeProtoOrBuilderpublic int getIntsCount()
list of ints
repeated int64 ints = 8;getIntsCount in interface OnnxMl.AttributeProtoOrBuilderpublic long getInts(int index)
list of ints
repeated int64 ints = 8;getInts in interface OnnxMl.AttributeProtoOrBuilderindex - The index of the element to return.public OnnxMl.AttributeProto.Builder setInts(int index, long value)
list of ints
repeated int64 ints = 8;index - The index to set the value at.value - The ints to set.public OnnxMl.AttributeProto.Builder addInts(long value)
list of ints
repeated int64 ints = 8;value - The ints to add.public OnnxMl.AttributeProto.Builder addAllInts(java.lang.Iterable<? extends java.lang.Long> values)
list of ints
repeated int64 ints = 8;values - The ints to add.public OnnxMl.AttributeProto.Builder clearInts()
list of ints
repeated int64 ints = 8;public java.util.List<com.google.protobuf.ByteString> getStringsList()
list of UTF-8 strings
repeated bytes strings = 9;getStringsList in interface OnnxMl.AttributeProtoOrBuilderpublic int getStringsCount()
list of UTF-8 strings
repeated bytes strings = 9;getStringsCount in interface OnnxMl.AttributeProtoOrBuilderpublic com.google.protobuf.ByteString getStrings(int index)
list of UTF-8 strings
repeated bytes strings = 9;getStrings in interface OnnxMl.AttributeProtoOrBuilderindex - The index of the element to return.public OnnxMl.AttributeProto.Builder setStrings(int index, com.google.protobuf.ByteString value)
list of UTF-8 strings
repeated bytes strings = 9;index - The index to set the value at.value - The strings to set.public OnnxMl.AttributeProto.Builder addStrings(com.google.protobuf.ByteString value)
list of UTF-8 strings
repeated bytes strings = 9;value - The strings to add.public OnnxMl.AttributeProto.Builder addAllStrings(java.lang.Iterable<? extends com.google.protobuf.ByteString> values)
list of UTF-8 strings
repeated bytes strings = 9;values - The strings to add.public OnnxMl.AttributeProto.Builder clearStrings()
list of UTF-8 strings
repeated bytes strings = 9;public java.util.List<OnnxMl.TensorProto> getTensorsList()
list of tensors
repeated .onnx.TensorProto tensors = 10;getTensorsList in interface OnnxMl.AttributeProtoOrBuilderpublic int getTensorsCount()
list of tensors
repeated .onnx.TensorProto tensors = 10;getTensorsCount in interface OnnxMl.AttributeProtoOrBuilderpublic OnnxMl.TensorProto getTensors(int index)
list of tensors
repeated .onnx.TensorProto tensors = 10;getTensors in interface OnnxMl.AttributeProtoOrBuilderpublic OnnxMl.AttributeProto.Builder setTensors(int index, OnnxMl.TensorProto value)
list of tensors
repeated .onnx.TensorProto tensors = 10;public OnnxMl.AttributeProto.Builder setTensors(int index, OnnxMl.TensorProto.Builder builderForValue)
list of tensors
repeated .onnx.TensorProto tensors = 10;public OnnxMl.AttributeProto.Builder addTensors(OnnxMl.TensorProto value)
list of tensors
repeated .onnx.TensorProto tensors = 10;public OnnxMl.AttributeProto.Builder addTensors(int index, OnnxMl.TensorProto value)
list of tensors
repeated .onnx.TensorProto tensors = 10;public OnnxMl.AttributeProto.Builder addTensors(OnnxMl.TensorProto.Builder builderForValue)
list of tensors
repeated .onnx.TensorProto tensors = 10;public OnnxMl.AttributeProto.Builder addTensors(int index, OnnxMl.TensorProto.Builder builderForValue)
list of tensors
repeated .onnx.TensorProto tensors = 10;public OnnxMl.AttributeProto.Builder addAllTensors(java.lang.Iterable<? extends OnnxMl.TensorProto> values)
list of tensors
repeated .onnx.TensorProto tensors = 10;public OnnxMl.AttributeProto.Builder clearTensors()
list of tensors
repeated .onnx.TensorProto tensors = 10;public OnnxMl.AttributeProto.Builder removeTensors(int index)
list of tensors
repeated .onnx.TensorProto tensors = 10;public OnnxMl.TensorProto.Builder getTensorsBuilder(int index)
list of tensors
repeated .onnx.TensorProto tensors = 10;public OnnxMl.TensorProtoOrBuilder getTensorsOrBuilder(int index)
list of tensors
repeated .onnx.TensorProto tensors = 10;getTensorsOrBuilder in interface OnnxMl.AttributeProtoOrBuilderpublic java.util.List<? extends OnnxMl.TensorProtoOrBuilder> getTensorsOrBuilderList()
list of tensors
repeated .onnx.TensorProto tensors = 10;getTensorsOrBuilderList in interface OnnxMl.AttributeProtoOrBuilderpublic OnnxMl.TensorProto.Builder addTensorsBuilder()
list of tensors
repeated .onnx.TensorProto tensors = 10;public OnnxMl.TensorProto.Builder addTensorsBuilder(int index)
list of tensors
repeated .onnx.TensorProto tensors = 10;public java.util.List<OnnxMl.TensorProto.Builder> getTensorsBuilderList()
list of tensors
repeated .onnx.TensorProto tensors = 10;public java.util.List<OnnxMl.GraphProto> getGraphsList()
list of graph
repeated .onnx.GraphProto graphs = 11;getGraphsList in interface OnnxMl.AttributeProtoOrBuilderpublic int getGraphsCount()
list of graph
repeated .onnx.GraphProto graphs = 11;getGraphsCount in interface OnnxMl.AttributeProtoOrBuilderpublic OnnxMl.GraphProto getGraphs(int index)
list of graph
repeated .onnx.GraphProto graphs = 11;getGraphs in interface OnnxMl.AttributeProtoOrBuilderpublic OnnxMl.AttributeProto.Builder setGraphs(int index, OnnxMl.GraphProto value)
list of graph
repeated .onnx.GraphProto graphs = 11;public OnnxMl.AttributeProto.Builder setGraphs(int index, OnnxMl.GraphProto.Builder builderForValue)
list of graph
repeated .onnx.GraphProto graphs = 11;public OnnxMl.AttributeProto.Builder addGraphs(OnnxMl.GraphProto value)
list of graph
repeated .onnx.GraphProto graphs = 11;public OnnxMl.AttributeProto.Builder addGraphs(int index, OnnxMl.GraphProto value)
list of graph
repeated .onnx.GraphProto graphs = 11;public OnnxMl.AttributeProto.Builder addGraphs(OnnxMl.GraphProto.Builder builderForValue)
list of graph
repeated .onnx.GraphProto graphs = 11;public OnnxMl.AttributeProto.Builder addGraphs(int index, OnnxMl.GraphProto.Builder builderForValue)
list of graph
repeated .onnx.GraphProto graphs = 11;public OnnxMl.AttributeProto.Builder addAllGraphs(java.lang.Iterable<? extends OnnxMl.GraphProto> values)
list of graph
repeated .onnx.GraphProto graphs = 11;public OnnxMl.AttributeProto.Builder clearGraphs()
list of graph
repeated .onnx.GraphProto graphs = 11;public OnnxMl.AttributeProto.Builder removeGraphs(int index)
list of graph
repeated .onnx.GraphProto graphs = 11;public OnnxMl.GraphProto.Builder getGraphsBuilder(int index)
list of graph
repeated .onnx.GraphProto graphs = 11;public OnnxMl.GraphProtoOrBuilder getGraphsOrBuilder(int index)
list of graph
repeated .onnx.GraphProto graphs = 11;getGraphsOrBuilder in interface OnnxMl.AttributeProtoOrBuilderpublic java.util.List<? extends OnnxMl.GraphProtoOrBuilder> getGraphsOrBuilderList()
list of graph
repeated .onnx.GraphProto graphs = 11;getGraphsOrBuilderList in interface OnnxMl.AttributeProtoOrBuilderpublic OnnxMl.GraphProto.Builder addGraphsBuilder()
list of graph
repeated .onnx.GraphProto graphs = 11;public OnnxMl.GraphProto.Builder addGraphsBuilder(int index)
list of graph
repeated .onnx.GraphProto graphs = 11;public java.util.List<OnnxMl.GraphProto.Builder> getGraphsBuilderList()
list of graph
repeated .onnx.GraphProto graphs = 11;public java.util.List<OnnxMl.SparseTensorProto> getSparseTensorsList()
list of sparse tensors
repeated .onnx.SparseTensorProto sparse_tensors = 23;getSparseTensorsList in interface OnnxMl.AttributeProtoOrBuilderpublic int getSparseTensorsCount()
list of sparse tensors
repeated .onnx.SparseTensorProto sparse_tensors = 23;getSparseTensorsCount in interface OnnxMl.AttributeProtoOrBuilderpublic OnnxMl.SparseTensorProto getSparseTensors(int index)
list of sparse tensors
repeated .onnx.SparseTensorProto sparse_tensors = 23;getSparseTensors in interface OnnxMl.AttributeProtoOrBuilderpublic OnnxMl.AttributeProto.Builder setSparseTensors(int index, OnnxMl.SparseTensorProto value)
list of sparse tensors
repeated .onnx.SparseTensorProto sparse_tensors = 23;public OnnxMl.AttributeProto.Builder setSparseTensors(int index, OnnxMl.SparseTensorProto.Builder builderForValue)
list of sparse tensors
repeated .onnx.SparseTensorProto sparse_tensors = 23;public OnnxMl.AttributeProto.Builder addSparseTensors(OnnxMl.SparseTensorProto value)
list of sparse tensors
repeated .onnx.SparseTensorProto sparse_tensors = 23;public OnnxMl.AttributeProto.Builder addSparseTensors(int index, OnnxMl.SparseTensorProto value)
list of sparse tensors
repeated .onnx.SparseTensorProto sparse_tensors = 23;public OnnxMl.AttributeProto.Builder addSparseTensors(OnnxMl.SparseTensorProto.Builder builderForValue)
list of sparse tensors
repeated .onnx.SparseTensorProto sparse_tensors = 23;public OnnxMl.AttributeProto.Builder addSparseTensors(int index, OnnxMl.SparseTensorProto.Builder builderForValue)
list of sparse tensors
repeated .onnx.SparseTensorProto sparse_tensors = 23;public OnnxMl.AttributeProto.Builder addAllSparseTensors(java.lang.Iterable<? extends OnnxMl.SparseTensorProto> values)
list of sparse tensors
repeated .onnx.SparseTensorProto sparse_tensors = 23;public OnnxMl.AttributeProto.Builder clearSparseTensors()
list of sparse tensors
repeated .onnx.SparseTensorProto sparse_tensors = 23;public OnnxMl.AttributeProto.Builder removeSparseTensors(int index)
list of sparse tensors
repeated .onnx.SparseTensorProto sparse_tensors = 23;public OnnxMl.SparseTensorProto.Builder getSparseTensorsBuilder(int index)
list of sparse tensors
repeated .onnx.SparseTensorProto sparse_tensors = 23;public OnnxMl.SparseTensorProtoOrBuilder getSparseTensorsOrBuilder(int index)
list of sparse tensors
repeated .onnx.SparseTensorProto sparse_tensors = 23;getSparseTensorsOrBuilder in interface OnnxMl.AttributeProtoOrBuilderpublic java.util.List<? extends OnnxMl.SparseTensorProtoOrBuilder> getSparseTensorsOrBuilderList()
list of sparse tensors
repeated .onnx.SparseTensorProto sparse_tensors = 23;getSparseTensorsOrBuilderList in interface OnnxMl.AttributeProtoOrBuilderpublic OnnxMl.SparseTensorProto.Builder addSparseTensorsBuilder()
list of sparse tensors
repeated .onnx.SparseTensorProto sparse_tensors = 23;public OnnxMl.SparseTensorProto.Builder addSparseTensorsBuilder(int index)
list of sparse tensors
repeated .onnx.SparseTensorProto sparse_tensors = 23;public java.util.List<OnnxMl.SparseTensorProto.Builder> getSparseTensorsBuilderList()
list of sparse tensors
repeated .onnx.SparseTensorProto sparse_tensors = 23;public final OnnxMl.AttributeProto.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<OnnxMl.AttributeProto.Builder>public final OnnxMl.AttributeProto.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<OnnxMl.AttributeProto.Builder>