Class OnnxMl.AttributeProto.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<OnnxMl.AttributeProto.Builder>
com.google.protobuf.GeneratedMessageV3.Builder<OnnxMl.AttributeProto.Builder>
ai.onnx.proto.OnnxMl.AttributeProto.Builder
- All Implemented Interfaces:
OnnxMl.AttributeProtoOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
OnnxMl.AttributeProto
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-
Method Summary
Modifier and TypeMethodDescriptionaddAllFloats(Iterable<? extends Float> values) list of floatsaddAllGraphs(Iterable<? extends OnnxMl.GraphProto> values) list of graphaddAllInts(Iterable<? extends Long> values) list of intsaddAllSparseTensors(Iterable<? extends OnnxMl.SparseTensorProto> values) list of sparse tensorsaddAllStrings(Iterable<? extends com.google.protobuf.ByteString> values) list of UTF-8 stringsaddAllTensors(Iterable<? extends OnnxMl.TensorProto> values) list of tensorsaddFloats(float value) list of floatsaddGraphs(int index, OnnxMl.GraphProto value) list of graphaddGraphs(int index, OnnxMl.GraphProto.Builder builderForValue) list of graphaddGraphs(OnnxMl.GraphProto value) list of graphaddGraphs(OnnxMl.GraphProto.Builder builderForValue) list of graphlist of graphaddGraphsBuilder(int index) list of graphaddInts(long value) list of intsaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) addSparseTensors(int index, OnnxMl.SparseTensorProto value) list of sparse tensorsaddSparseTensors(int index, OnnxMl.SparseTensorProto.Builder builderForValue) list of sparse tensorslist of sparse tensorsaddSparseTensors(OnnxMl.SparseTensorProto.Builder builderForValue) list of sparse tensorslist of sparse tensorsaddSparseTensorsBuilder(int index) list of sparse tensorsaddStrings(com.google.protobuf.ByteString value) list of UTF-8 stringsaddTensors(int index, OnnxMl.TensorProto value) list of tensorsaddTensors(int index, OnnxMl.TensorProto.Builder builderForValue) list of tensorsaddTensors(OnnxMl.TensorProto value) list of tensorsaddTensors(OnnxMl.TensorProto.Builder builderForValue) list of tensorslist of tensorsaddTensorsBuilder(int index) list of tensorsbuild()clear()A human-readable documentation for this attribute.clearF()Exactly ONE of the following fields must be present for this version of the IRclearField(com.google.protobuf.Descriptors.FieldDescriptor field) list of floatsclearG()graphlist of graphclearI()intlist of intsThe name field MUST be present for this version of the IR.clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) if ref_attr_name is not empty, ref_attr_name is the attribute name in parent function.clearS()UTF-8 stringsparse tensor valuelist of sparse tensorslist of UTF-8 stringsclearT()tensor valuelist of tensorsThe type field MUST be present for this version of the IR.clone()static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorA human-readable documentation for this attribute.com.google.protobuf.ByteStringA human-readable documentation for this attribute.floatgetF()Exactly ONE of the following fields must be present for this version of the IRfloatgetFloats(int index) list of floatsintlist of floatslist of floatsgetG()graphgraphgraphgetGraphs(int index) list of graphgetGraphsBuilder(int index) list of graphlist of graphintlist of graphlist of graphgetGraphsOrBuilder(int index) list of graphList<? extends OnnxMl.GraphProtoOrBuilder> list of graphlonggetI()intlonggetInts(int index) list of intsintlist of intslist of intsgetName()The name field MUST be present for this version of the IR.com.google.protobuf.ByteStringThe name field MUST be present for this version of the IR.if ref_attr_name is not empty, ref_attr_name is the attribute name in parent function.com.google.protobuf.ByteStringif ref_attr_name is not empty, ref_attr_name is the attribute name in parent function.com.google.protobuf.ByteStringgetS()UTF-8 stringsparse tensor valuesparse tensor valuesparse tensor valuegetSparseTensors(int index) list of sparse tensorsgetSparseTensorsBuilder(int index) list of sparse tensorslist of sparse tensorsintlist of sparse tensorslist of sparse tensorsgetSparseTensorsOrBuilder(int index) list of sparse tensorsList<? extends OnnxMl.SparseTensorProtoOrBuilder> list of sparse tensorscom.google.protobuf.ByteStringgetStrings(int index) list of UTF-8 stringsintlist of UTF-8 stringsList<com.google.protobuf.ByteString> list of UTF-8 stringsgetT()tensor valuetensor valuegetTensors(int index) list of tensorsgetTensorsBuilder(int index) list of tensorslist of tensorsintlist of tensorslist of tensorsgetTensorsOrBuilder(int index) list of tensorsList<? extends OnnxMl.TensorProtoOrBuilder> list of tensorstensor valuegetType()The type field MUST be present for this version of the IR.booleanA human-readable documentation for this attribute.booleanhasF()Exactly ONE of the following fields must be present for this version of the IRbooleanhasG()graphbooleanhasI()intbooleanhasName()The name field MUST be present for this version of the IR.booleanif ref_attr_name is not empty, ref_attr_name is the attribute name in parent function.booleanhasS()UTF-8 stringbooleansparse tensor valuebooleanhasT()tensor valuebooleanhasType()The type field MUST be present for this version of the IR.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanmergeFrom(OnnxMl.AttributeProto other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeG(OnnxMl.GraphProto value) graphsparse tensor valuemergeT(OnnxMl.TensorProto value) tensor valuemergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) removeGraphs(int index) list of graphremoveSparseTensors(int index) list of sparse tensorsremoveTensors(int index) list of tensorssetDocString(String value) A human-readable documentation for this attribute.setDocStringBytes(com.google.protobuf.ByteString value) A human-readable documentation for this attribute.setF(float value) Exactly ONE of the following fields must be present for this version of the IRsetFloats(int index, float value) list of floatssetG(OnnxMl.GraphProto value) graphsetG(OnnxMl.GraphProto.Builder builderForValue) graphsetGraphs(int index, OnnxMl.GraphProto value) list of graphsetGraphs(int index, OnnxMl.GraphProto.Builder builderForValue) list of graphsetI(long value) intsetInts(int index, long value) list of intsThe name field MUST be present for this version of the IR.setNameBytes(com.google.protobuf.ByteString value) The name field MUST be present for this version of the IR.setRefAttrName(String value) if ref_attr_name is not empty, ref_attr_name is the attribute name in parent function.setRefAttrNameBytes(com.google.protobuf.ByteString value) if ref_attr_name is not empty, ref_attr_name is the attribute name in parent function.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setS(com.google.protobuf.ByteString value) UTF-8 stringsparse tensor valuesetSparseTensor(OnnxMl.SparseTensorProto.Builder builderForValue) sparse tensor valuesetSparseTensors(int index, OnnxMl.SparseTensorProto value) list of sparse tensorssetSparseTensors(int index, OnnxMl.SparseTensorProto.Builder builderForValue) list of sparse tensorssetStrings(int index, com.google.protobuf.ByteString value) list of UTF-8 stringssetT(OnnxMl.TensorProto value) tensor valuesetT(OnnxMl.TensorProto.Builder builderForValue) tensor valuesetTensors(int index, OnnxMl.TensorProto value) list of tensorssetTensors(int index, OnnxMl.TensorProto.Builder builderForValue) list of tensorsThe type field MUST be present for this version of the IR.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, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<OnnxMl.AttributeProto.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<OnnxMl.AttributeProto.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<OnnxMl.AttributeProto.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<OnnxMl.AttributeProto.Builder>
-
setField
public OnnxMl.AttributeProto.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<OnnxMl.AttributeProto.Builder>
-
clearField
public OnnxMl.AttributeProto.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) - Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<OnnxMl.AttributeProto.Builder>
-
clearOneof
public OnnxMl.AttributeProto.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) - Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<OnnxMl.AttributeProto.Builder>
-
setRepeatedField
public OnnxMl.AttributeProto.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) - Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<OnnxMl.AttributeProto.Builder>
-
addRepeatedField
public OnnxMl.AttributeProto.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<OnnxMl.AttributeProto.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<OnnxMl.AttributeProto.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<OnnxMl.AttributeProto.Builder>
-
mergeFrom
public OnnxMl.AttributeProto.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<OnnxMl.AttributeProto.Builder>- Throws:
IOException
-
hasName
public boolean hasName()The name field MUST be present for this version of the IR.
optional string name = 1;- Specified by:
hasNamein interfaceOnnxMl.AttributeProtoOrBuilder- Returns:
- Whether the name field is set.
-
getName
The name field MUST be present for this version of the IR.
optional string name = 1;- Specified by:
getNamein interfaceOnnxMl.AttributeProtoOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()The name field MUST be present for this version of the IR.
optional string name = 1;- Specified by:
getNameBytesin interfaceOnnxMl.AttributeProtoOrBuilder- Returns:
- The bytes for name.
-
setName
The name field MUST be present for this version of the IR.
optional string name = 1;- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
The name field MUST be present for this version of the IR.
optional string name = 1;- Returns:
- This builder for chaining.
-
setNameBytes
The name field MUST be present for this version of the IR.
optional string name = 1;- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
hasRefAttrName
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;- Specified by:
hasRefAttrNamein interfaceOnnxMl.AttributeProtoOrBuilder- Returns:
- Whether the refAttrName field is set.
-
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;- Specified by:
getRefAttrNamein interfaceOnnxMl.AttributeProtoOrBuilder- Returns:
- The refAttrName.
-
getRefAttrNameBytes
public 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;- Specified by:
getRefAttrNameBytesin interfaceOnnxMl.AttributeProtoOrBuilder- Returns:
- The bytes for refAttrName.
-
setRefAttrName
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;- Parameters:
value- The refAttrName to set.- Returns:
- This builder for chaining.
-
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;- Returns:
- This builder for chaining.
-
setRefAttrNameBytes
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;- Parameters:
value- The bytes for refAttrName to set.- Returns:
- This builder for chaining.
-
hasDocString
public boolean hasDocString()A human-readable documentation for this attribute. Markdown is allowed.
optional string doc_string = 13;- Specified by:
hasDocStringin interfaceOnnxMl.AttributeProtoOrBuilder- Returns:
- Whether the docString field is set.
-
getDocString
A human-readable documentation for this attribute. Markdown is allowed.
optional string doc_string = 13;- Specified by:
getDocStringin interfaceOnnxMl.AttributeProtoOrBuilder- Returns:
- The docString.
-
getDocStringBytes
public com.google.protobuf.ByteString getDocStringBytes()A human-readable documentation for this attribute. Markdown is allowed.
optional string doc_string = 13;- Specified by:
getDocStringBytesin interfaceOnnxMl.AttributeProtoOrBuilder- Returns:
- The bytes for docString.
-
setDocString
A human-readable documentation for this attribute. Markdown is allowed.
optional string doc_string = 13;- Parameters:
value- The docString to set.- Returns:
- This builder for chaining.
-
clearDocString
A human-readable documentation for this attribute. Markdown is allowed.
optional string doc_string = 13;- Returns:
- This builder for chaining.
-
setDocStringBytes
A human-readable documentation for this attribute. Markdown is allowed.
optional string doc_string = 13;- Parameters:
value- The bytes for docString to set.- Returns:
- This builder for chaining.
-
hasType
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;- Specified by:
hasTypein interfaceOnnxMl.AttributeProtoOrBuilder- Returns:
- Whether the type field is set.
-
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;- Specified by:
getTypein interfaceOnnxMl.AttributeProtoOrBuilder- Returns:
- The type.
-
setType
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;- Parameters:
value- The type to set.- Returns:
- This builder for chaining.
-
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;- Returns:
- This builder for chaining.
-
hasF
public boolean hasF()Exactly ONE of the following fields must be present for this version of the IR
optional float f = 2;- Specified by:
hasFin interfaceOnnxMl.AttributeProtoOrBuilder- Returns:
- Whether the f field is set.
-
getF
public float getF()Exactly ONE of the following fields must be present for this version of the IR
optional float f = 2;- Specified by:
getFin interfaceOnnxMl.AttributeProtoOrBuilder- Returns:
- The f.
-
setF
Exactly ONE of the following fields must be present for this version of the IR
optional float f = 2;- Parameters:
value- The f to set.- Returns:
- This builder for chaining.
-
clearF
Exactly ONE of the following fields must be present for this version of the IR
optional float f = 2;- Returns:
- This builder for chaining.
-
hasI
public boolean hasI()int
optional int64 i = 3;- Specified by:
hasIin interfaceOnnxMl.AttributeProtoOrBuilder- Returns:
- Whether the i field is set.
-
getI
public long getI()int
optional int64 i = 3;- Specified by:
getIin interfaceOnnxMl.AttributeProtoOrBuilder- Returns:
- The i.
-
setI
int
optional int64 i = 3;- Parameters:
value- The i to set.- Returns:
- This builder for chaining.
-
clearI
int
optional int64 i = 3;- Returns:
- This builder for chaining.
-
hasS
public boolean hasS()UTF-8 string
optional bytes s = 4;- Specified by:
hasSin interfaceOnnxMl.AttributeProtoOrBuilder- Returns:
- Whether the s field is set.
-
getS
public com.google.protobuf.ByteString getS()UTF-8 string
optional bytes s = 4;- Specified by:
getSin interfaceOnnxMl.AttributeProtoOrBuilder- Returns:
- The s.
-
setS
UTF-8 string
optional bytes s = 4;- Parameters:
value- The s to set.- Returns:
- This builder for chaining.
-
clearS
UTF-8 string
optional bytes s = 4;- Returns:
- This builder for chaining.
-
hasT
public boolean hasT()tensor value
optional .onnx.TensorProto t = 5;- Specified by:
hasTin interfaceOnnxMl.AttributeProtoOrBuilder- Returns:
- Whether the t field is set.
-
getT
tensor value
optional .onnx.TensorProto t = 5;- Specified by:
getTin interfaceOnnxMl.AttributeProtoOrBuilder- Returns:
- The t.
-
setT
tensor value
optional .onnx.TensorProto t = 5; -
setT
tensor value
optional .onnx.TensorProto t = 5; -
mergeT
tensor value
optional .onnx.TensorProto t = 5; -
clearT
tensor value
optional .onnx.TensorProto t = 5; -
getTBuilder
tensor value
optional .onnx.TensorProto t = 5; -
getTOrBuilder
tensor value
optional .onnx.TensorProto t = 5;- Specified by:
getTOrBuilderin interfaceOnnxMl.AttributeProtoOrBuilder
-
hasG
public boolean hasG()graph
optional .onnx.GraphProto g = 6;- Specified by:
hasGin interfaceOnnxMl.AttributeProtoOrBuilder- Returns:
- Whether the g field is set.
-
getG
graph
optional .onnx.GraphProto g = 6;- Specified by:
getGin interfaceOnnxMl.AttributeProtoOrBuilder- Returns:
- The g.
-
setG
graph
optional .onnx.GraphProto g = 6; -
setG
graph
optional .onnx.GraphProto g = 6; -
mergeG
graph
optional .onnx.GraphProto g = 6; -
clearG
graph
optional .onnx.GraphProto g = 6; -
getGBuilder
graph
optional .onnx.GraphProto g = 6; -
getGOrBuilder
graph
optional .onnx.GraphProto g = 6;- Specified by:
getGOrBuilderin interfaceOnnxMl.AttributeProtoOrBuilder
-
hasSparseTensor
public boolean hasSparseTensor()sparse tensor value
optional .onnx.SparseTensorProto sparse_tensor = 22;- Specified by:
hasSparseTensorin interfaceOnnxMl.AttributeProtoOrBuilder- Returns:
- Whether the sparseTensor field is set.
-
getSparseTensor
sparse tensor value
optional .onnx.SparseTensorProto sparse_tensor = 22;- Specified by:
getSparseTensorin interfaceOnnxMl.AttributeProtoOrBuilder- Returns:
- The sparseTensor.
-
setSparseTensor
sparse tensor value
optional .onnx.SparseTensorProto sparse_tensor = 22; -
setSparseTensor
public OnnxMl.AttributeProto.Builder setSparseTensor(OnnxMl.SparseTensorProto.Builder builderForValue) sparse tensor value
optional .onnx.SparseTensorProto sparse_tensor = 22; -
mergeSparseTensor
sparse tensor value
optional .onnx.SparseTensorProto sparse_tensor = 22; -
clearSparseTensor
sparse tensor value
optional .onnx.SparseTensorProto sparse_tensor = 22; -
getSparseTensorBuilder
sparse tensor value
optional .onnx.SparseTensorProto sparse_tensor = 22; -
getSparseTensorOrBuilder
sparse tensor value
optional .onnx.SparseTensorProto sparse_tensor = 22;- Specified by:
getSparseTensorOrBuilderin interfaceOnnxMl.AttributeProtoOrBuilder
-
getFloatsList
list of floats
repeated float floats = 7;- Specified by:
getFloatsListin interfaceOnnxMl.AttributeProtoOrBuilder- Returns:
- A list containing the floats.
-
getFloatsCount
public int getFloatsCount()list of floats
repeated float floats = 7;- Specified by:
getFloatsCountin interfaceOnnxMl.AttributeProtoOrBuilder- Returns:
- The count of floats.
-
getFloats
public float getFloats(int index) list of floats
repeated float floats = 7;- Specified by:
getFloatsin interfaceOnnxMl.AttributeProtoOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The floats at the given index.
-
setFloats
list of floats
repeated float floats = 7;- Parameters:
index- The index to set the value at.value- The floats to set.- Returns:
- This builder for chaining.
-
addFloats
list of floats
repeated float floats = 7;- Parameters:
value- The floats to add.- Returns:
- This builder for chaining.
-
addAllFloats
list of floats
repeated float floats = 7;- Parameters:
values- The floats to add.- Returns:
- This builder for chaining.
-
clearFloats
list of floats
repeated float floats = 7;- Returns:
- This builder for chaining.
-
getIntsList
list of ints
repeated int64 ints = 8;- Specified by:
getIntsListin interfaceOnnxMl.AttributeProtoOrBuilder- Returns:
- A list containing the ints.
-
getIntsCount
public int getIntsCount()list of ints
repeated int64 ints = 8;- Specified by:
getIntsCountin interfaceOnnxMl.AttributeProtoOrBuilder- Returns:
- The count of ints.
-
getInts
public long getInts(int index) list of ints
repeated int64 ints = 8;- Specified by:
getIntsin interfaceOnnxMl.AttributeProtoOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The ints at the given index.
-
setInts
list of ints
repeated int64 ints = 8;- Parameters:
index- The index to set the value at.value- The ints to set.- Returns:
- This builder for chaining.
-
addInts
list of ints
repeated int64 ints = 8;- Parameters:
value- The ints to add.- Returns:
- This builder for chaining.
-
addAllInts
list of ints
repeated int64 ints = 8;- Parameters:
values- The ints to add.- Returns:
- This builder for chaining.
-
clearInts
list of ints
repeated int64 ints = 8;- Returns:
- This builder for chaining.
-
getStringsList
list of UTF-8 strings
repeated bytes strings = 9;- Specified by:
getStringsListin interfaceOnnxMl.AttributeProtoOrBuilder- Returns:
- A list containing the strings.
-
getStringsCount
public int getStringsCount()list of UTF-8 strings
repeated bytes strings = 9;- Specified by:
getStringsCountin interfaceOnnxMl.AttributeProtoOrBuilder- Returns:
- The count of strings.
-
getStrings
public com.google.protobuf.ByteString getStrings(int index) list of UTF-8 strings
repeated bytes strings = 9;- Specified by:
getStringsin interfaceOnnxMl.AttributeProtoOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The strings at the given index.
-
setStrings
list of UTF-8 strings
repeated bytes strings = 9;- Parameters:
index- The index to set the value at.value- The strings to set.- Returns:
- This builder for chaining.
-
addStrings
list of UTF-8 strings
repeated bytes strings = 9;- Parameters:
value- The strings to add.- Returns:
- This builder for chaining.
-
addAllStrings
public OnnxMl.AttributeProto.Builder addAllStrings(Iterable<? extends com.google.protobuf.ByteString> values) list of UTF-8 strings
repeated bytes strings = 9;- Parameters:
values- The strings to add.- Returns:
- This builder for chaining.
-
clearStrings
list of UTF-8 strings
repeated bytes strings = 9;- Returns:
- This builder for chaining.
-
getTensorsList
list of tensors
repeated .onnx.TensorProto tensors = 10;- Specified by:
getTensorsListin interfaceOnnxMl.AttributeProtoOrBuilder
-
getTensorsCount
public int getTensorsCount()list of tensors
repeated .onnx.TensorProto tensors = 10;- Specified by:
getTensorsCountin interfaceOnnxMl.AttributeProtoOrBuilder
-
getTensors
list of tensors
repeated .onnx.TensorProto tensors = 10;- Specified by:
getTensorsin interfaceOnnxMl.AttributeProtoOrBuilder
-
setTensors
list of tensors
repeated .onnx.TensorProto tensors = 10; -
setTensors
public OnnxMl.AttributeProto.Builder setTensors(int index, OnnxMl.TensorProto.Builder builderForValue) list of tensors
repeated .onnx.TensorProto tensors = 10; -
addTensors
list of tensors
repeated .onnx.TensorProto tensors = 10; -
addTensors
list of tensors
repeated .onnx.TensorProto tensors = 10; -
addTensors
list of tensors
repeated .onnx.TensorProto tensors = 10; -
addTensors
public OnnxMl.AttributeProto.Builder addTensors(int index, OnnxMl.TensorProto.Builder builderForValue) list of tensors
repeated .onnx.TensorProto tensors = 10; -
addAllTensors
list of tensors
repeated .onnx.TensorProto tensors = 10; -
clearTensors
list of tensors
repeated .onnx.TensorProto tensors = 10; -
removeTensors
list of tensors
repeated .onnx.TensorProto tensors = 10; -
getTensorsBuilder
list of tensors
repeated .onnx.TensorProto tensors = 10; -
getTensorsOrBuilder
list of tensors
repeated .onnx.TensorProto tensors = 10;- Specified by:
getTensorsOrBuilderin interfaceOnnxMl.AttributeProtoOrBuilder
-
getTensorsOrBuilderList
list of tensors
repeated .onnx.TensorProto tensors = 10;- Specified by:
getTensorsOrBuilderListin interfaceOnnxMl.AttributeProtoOrBuilder
-
addTensorsBuilder
list of tensors
repeated .onnx.TensorProto tensors = 10; -
addTensorsBuilder
list of tensors
repeated .onnx.TensorProto tensors = 10; -
getTensorsBuilderList
list of tensors
repeated .onnx.TensorProto tensors = 10; -
getGraphsList
list of graph
repeated .onnx.GraphProto graphs = 11;- Specified by:
getGraphsListin interfaceOnnxMl.AttributeProtoOrBuilder
-
getGraphsCount
public int getGraphsCount()list of graph
repeated .onnx.GraphProto graphs = 11;- Specified by:
getGraphsCountin interfaceOnnxMl.AttributeProtoOrBuilder
-
getGraphs
list of graph
repeated .onnx.GraphProto graphs = 11;- Specified by:
getGraphsin interfaceOnnxMl.AttributeProtoOrBuilder
-
setGraphs
list of graph
repeated .onnx.GraphProto graphs = 11; -
setGraphs
public OnnxMl.AttributeProto.Builder setGraphs(int index, OnnxMl.GraphProto.Builder builderForValue) list of graph
repeated .onnx.GraphProto graphs = 11; -
addGraphs
list of graph
repeated .onnx.GraphProto graphs = 11; -
addGraphs
list of graph
repeated .onnx.GraphProto graphs = 11; -
addGraphs
list of graph
repeated .onnx.GraphProto graphs = 11; -
addGraphs
public OnnxMl.AttributeProto.Builder addGraphs(int index, OnnxMl.GraphProto.Builder builderForValue) list of graph
repeated .onnx.GraphProto graphs = 11; -
addAllGraphs
list of graph
repeated .onnx.GraphProto graphs = 11; -
clearGraphs
list of graph
repeated .onnx.GraphProto graphs = 11; -
removeGraphs
list of graph
repeated .onnx.GraphProto graphs = 11; -
getGraphsBuilder
list of graph
repeated .onnx.GraphProto graphs = 11; -
getGraphsOrBuilder
list of graph
repeated .onnx.GraphProto graphs = 11;- Specified by:
getGraphsOrBuilderin interfaceOnnxMl.AttributeProtoOrBuilder
-
getGraphsOrBuilderList
list of graph
repeated .onnx.GraphProto graphs = 11;- Specified by:
getGraphsOrBuilderListin interfaceOnnxMl.AttributeProtoOrBuilder
-
addGraphsBuilder
list of graph
repeated .onnx.GraphProto graphs = 11; -
addGraphsBuilder
list of graph
repeated .onnx.GraphProto graphs = 11; -
getGraphsBuilderList
list of graph
repeated .onnx.GraphProto graphs = 11; -
getSparseTensorsList
list of sparse tensors
repeated .onnx.SparseTensorProto sparse_tensors = 23;- Specified by:
getSparseTensorsListin interfaceOnnxMl.AttributeProtoOrBuilder
-
getSparseTensorsCount
public int getSparseTensorsCount()list of sparse tensors
repeated .onnx.SparseTensorProto sparse_tensors = 23;- Specified by:
getSparseTensorsCountin interfaceOnnxMl.AttributeProtoOrBuilder
-
getSparseTensors
list of sparse tensors
repeated .onnx.SparseTensorProto sparse_tensors = 23;- Specified by:
getSparseTensorsin interfaceOnnxMl.AttributeProtoOrBuilder
-
setSparseTensors
list of sparse tensors
repeated .onnx.SparseTensorProto sparse_tensors = 23; -
setSparseTensors
public OnnxMl.AttributeProto.Builder setSparseTensors(int index, OnnxMl.SparseTensorProto.Builder builderForValue) list of sparse tensors
repeated .onnx.SparseTensorProto sparse_tensors = 23; -
addSparseTensors
list of sparse tensors
repeated .onnx.SparseTensorProto sparse_tensors = 23; -
addSparseTensors
list of sparse tensors
repeated .onnx.SparseTensorProto sparse_tensors = 23; -
addSparseTensors
public OnnxMl.AttributeProto.Builder addSparseTensors(OnnxMl.SparseTensorProto.Builder builderForValue) list of sparse tensors
repeated .onnx.SparseTensorProto sparse_tensors = 23; -
addSparseTensors
public OnnxMl.AttributeProto.Builder addSparseTensors(int index, OnnxMl.SparseTensorProto.Builder builderForValue) list of sparse tensors
repeated .onnx.SparseTensorProto sparse_tensors = 23; -
addAllSparseTensors
public OnnxMl.AttributeProto.Builder addAllSparseTensors(Iterable<? extends OnnxMl.SparseTensorProto> values) list of sparse tensors
repeated .onnx.SparseTensorProto sparse_tensors = 23; -
clearSparseTensors
list of sparse tensors
repeated .onnx.SparseTensorProto sparse_tensors = 23; -
removeSparseTensors
list of sparse tensors
repeated .onnx.SparseTensorProto sparse_tensors = 23; -
getSparseTensorsBuilder
list of sparse tensors
repeated .onnx.SparseTensorProto sparse_tensors = 23; -
getSparseTensorsOrBuilder
list of sparse tensors
repeated .onnx.SparseTensorProto sparse_tensors = 23;- Specified by:
getSparseTensorsOrBuilderin interfaceOnnxMl.AttributeProtoOrBuilder
-
getSparseTensorsOrBuilderList
list of sparse tensors
repeated .onnx.SparseTensorProto sparse_tensors = 23;- Specified by:
getSparseTensorsOrBuilderListin interfaceOnnxMl.AttributeProtoOrBuilder
-
addSparseTensorsBuilder
list of sparse tensors
repeated .onnx.SparseTensorProto sparse_tensors = 23; -
addSparseTensorsBuilder
list of sparse tensors
repeated .onnx.SparseTensorProto sparse_tensors = 23; -
getSparseTensorsBuilderList
list of sparse tensors
repeated .onnx.SparseTensorProto sparse_tensors = 23; -
setUnknownFields
public final OnnxMl.AttributeProto.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<OnnxMl.AttributeProto.Builder>
-
mergeUnknownFields
public final OnnxMl.AttributeProto.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<OnnxMl.AttributeProto.Builder>
-