Package onnx
Class Onnx.AttributeProto.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<Onnx.AttributeProto.Builder>
onnx.Onnx.AttributeProto.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable,Onnx.AttributeProtoOrBuilder
- Enclosing class:
- Onnx.AttributeProto
public static final class Onnx.AttributeProto.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<Onnx.AttributeProto.Builder>
implements Onnx.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 Onnx.GraphProto> values) list of graphaddAllInts(Iterable<? extends Long> values) list of intsaddAllSparseTensors(Iterable<? extends Onnx.SparseTensorProto> values) list of sparse tensorsaddAllStrings(Iterable<? extends com.google.protobuf.ByteString> values) list of UTF-8 stringsaddAllTensors(Iterable<? extends Onnx.TensorProto> values) list of tensorsaddAllTypeProtos(Iterable<? extends Onnx.TypeProto> values) list of type protosaddFloats(float value) list of floatsaddGraphs(int index, Onnx.GraphProto value) list of graphaddGraphs(int index, Onnx.GraphProto.Builder builderForValue) list of graphaddGraphs(Onnx.GraphProto value) list of graphaddGraphs(Onnx.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, Onnx.SparseTensorProto value) list of sparse tensorsaddSparseTensors(int index, Onnx.SparseTensorProto.Builder builderForValue) list of sparse tensorslist of sparse tensorsaddSparseTensors(Onnx.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, Onnx.TensorProto value) list of tensorsaddTensors(int index, Onnx.TensorProto.Builder builderForValue) list of tensorsaddTensors(Onnx.TensorProto value) list of tensorsaddTensors(Onnx.TensorProto.Builder builderForValue) list of tensorslist of tensorsaddTensorsBuilder(int index) list of tensorsaddTypeProtos(int index, Onnx.TypeProto value) list of type protosaddTypeProtos(int index, Onnx.TypeProto.Builder builderForValue) list of type protosaddTypeProtos(Onnx.TypeProto value) list of type protosaddTypeProtos(Onnx.TypeProto.Builder builderForValue) list of type protoslist of type protosaddTypeProtosBuilder(int index) list of type protosbuild()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 tensorsclearTp()Do not use field below, it's deprecated.The type field MUST be present for this version of the IR.list of type protosclone()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 Onnx.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 Onnx.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 Onnx.TensorProtoOrBuilder>list of tensorstensor valuegetTp()Do not use field below, it's deprecated.Do not use field below, it's deprecated.Do not use field below, it's deprecated.getType()The type field MUST be present for this version of the IR.getTypeProtos(int index) list of type protosgetTypeProtosBuilder(int index) list of type protoslist of type protosintlist of type protoslist of type protosgetTypeProtosOrBuilder(int index) list of type protosList<? extends Onnx.TypeProtoOrBuilder>list of type protosbooleanA 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 valuebooleanhasTp()Do not use field below, it's deprecated.booleanhasType()The type field MUST be present for this version of the IR.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeFrom(Onnx.AttributeProto other) mergeG(Onnx.GraphProto value) graphsparse tensor valuemergeT(Onnx.TensorProto value) tensor valuemergeTp(Onnx.TypeProto value) Do not use field below, it's deprecated.mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) removeGraphs(int index) list of graphremoveSparseTensors(int index) list of sparse tensorsremoveTensors(int index) list of tensorsremoveTypeProtos(int index) list of type protossetDocString(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(Onnx.GraphProto value) graphsetG(Onnx.GraphProto.Builder builderForValue) graphsetGraphs(int index, Onnx.GraphProto value) list of graphsetGraphs(int index, Onnx.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(Onnx.SparseTensorProto.Builder builderForValue) sparse tensor valuesetSparseTensors(int index, Onnx.SparseTensorProto value) list of sparse tensorssetSparseTensors(int index, Onnx.SparseTensorProto.Builder builderForValue) list of sparse tensorssetStrings(int index, com.google.protobuf.ByteString value) list of UTF-8 stringssetT(Onnx.TensorProto value) tensor valuesetT(Onnx.TensorProto.Builder builderForValue) tensor valuesetTensors(int index, Onnx.TensorProto value) list of tensorssetTensors(int index, Onnx.TensorProto.Builder builderForValue) list of tensorssetTp(Onnx.TypeProto value) Do not use field below, it's deprecated.setTp(Onnx.TypeProto.Builder builderForValue) Do not use field below, it's deprecated.The type field MUST be present for this version of the IR.setTypeProtos(int index, Onnx.TypeProto value) list of type protossetTypeProtos(int index, Onnx.TypeProto.Builder builderForValue) list of type protossetUnknownFields(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, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods 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<Onnx.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<Onnx.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<Onnx.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<Onnx.AttributeProto.Builder>
-
setField
public Onnx.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<Onnx.AttributeProto.Builder>
-
clearField
public Onnx.AttributeProto.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) - Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Onnx.AttributeProto.Builder>
-
clearOneof
public Onnx.AttributeProto.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) - Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<Onnx.AttributeProto.Builder>
-
setRepeatedField
public Onnx.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<Onnx.AttributeProto.Builder>
-
addRepeatedField
public Onnx.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<Onnx.AttributeProto.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Onnx.AttributeProto.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<Onnx.AttributeProto.Builder>
-
mergeFrom
public Onnx.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<Onnx.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 interfaceOnnx.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 interfaceOnnx.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 interfaceOnnx.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 interfaceOnnx.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 interfaceOnnx.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 interfaceOnnx.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 interfaceOnnx.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 interfaceOnnx.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 interfaceOnnx.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 interfaceOnnx.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 interfaceOnnx.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 interfaceOnnx.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 interfaceOnnx.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 interfaceOnnx.AttributeProtoOrBuilder- Returns:
- Whether the i field is set.
-
getI
public long getI()int
optional int64 i = 3;- Specified by:
getIin interfaceOnnx.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 interfaceOnnx.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 interfaceOnnx.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 interfaceOnnx.AttributeProtoOrBuilder- Returns:
- Whether the t field is set.
-
getT
tensor value
optional .onnx.TensorProto t = 5;- Specified by:
getTin interfaceOnnx.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 interfaceOnnx.AttributeProtoOrBuilder
-
hasG
public boolean hasG()graph
optional .onnx.GraphProto g = 6;- Specified by:
hasGin interfaceOnnx.AttributeProtoOrBuilder- Returns:
- Whether the g field is set.
-
getG
graph
optional .onnx.GraphProto g = 6;- Specified by:
getGin interfaceOnnx.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 interfaceOnnx.AttributeProtoOrBuilder
-
hasSparseTensor
public boolean hasSparseTensor()sparse tensor value
optional .onnx.SparseTensorProto sparse_tensor = 22;- Specified by:
hasSparseTensorin interfaceOnnx.AttributeProtoOrBuilder- Returns:
- Whether the sparseTensor field is set.
-
getSparseTensor
sparse tensor value
optional .onnx.SparseTensorProto sparse_tensor = 22;- Specified by:
getSparseTensorin interfaceOnnx.AttributeProtoOrBuilder- Returns:
- The sparseTensor.
-
setSparseTensor
sparse tensor value
optional .onnx.SparseTensorProto sparse_tensor = 22; -
setSparseTensor
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 interfaceOnnx.AttributeProtoOrBuilder
-
hasTp
public boolean hasTp()Do not use field below, it's deprecated. optional ValueProto v = 12; // value - subsumes everything but graph
optional .onnx.TypeProto tp = 14;- Specified by:
hasTpin interfaceOnnx.AttributeProtoOrBuilder- Returns:
- Whether the tp field is set.
-
getTp
Do not use field below, it's deprecated. optional ValueProto v = 12; // value - subsumes everything but graph
optional .onnx.TypeProto tp = 14;- Specified by:
getTpin interfaceOnnx.AttributeProtoOrBuilder- Returns:
- The tp.
-
setTp
Do not use field below, it's deprecated. optional ValueProto v = 12; // value - subsumes everything but graph
optional .onnx.TypeProto tp = 14; -
setTp
Do not use field below, it's deprecated. optional ValueProto v = 12; // value - subsumes everything but graph
optional .onnx.TypeProto tp = 14; -
mergeTp
Do not use field below, it's deprecated. optional ValueProto v = 12; // value - subsumes everything but graph
optional .onnx.TypeProto tp = 14; -
clearTp
Do not use field below, it's deprecated. optional ValueProto v = 12; // value - subsumes everything but graph
optional .onnx.TypeProto tp = 14; -
getTpBuilder
Do not use field below, it's deprecated. optional ValueProto v = 12; // value - subsumes everything but graph
optional .onnx.TypeProto tp = 14; -
getTpOrBuilder
Do not use field below, it's deprecated. optional ValueProto v = 12; // value - subsumes everything but graph
optional .onnx.TypeProto tp = 14;- Specified by:
getTpOrBuilderin interfaceOnnx.AttributeProtoOrBuilder
-
getFloatsList
list of floats
repeated float floats = 7;- Specified by:
getFloatsListin interfaceOnnx.AttributeProtoOrBuilder- Returns:
- A list containing the floats.
-
getFloatsCount
public int getFloatsCount()list of floats
repeated float floats = 7;- Specified by:
getFloatsCountin interfaceOnnx.AttributeProtoOrBuilder- Returns:
- The count of floats.
-
getFloats
public float getFloats(int index) list of floats
repeated float floats = 7;- Specified by:
getFloatsin interfaceOnnx.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 interfaceOnnx.AttributeProtoOrBuilder- Returns:
- A list containing the ints.
-
getIntsCount
public int getIntsCount()list of ints
repeated int64 ints = 8;- Specified by:
getIntsCountin interfaceOnnx.AttributeProtoOrBuilder- Returns:
- The count of ints.
-
getInts
public long getInts(int index) list of ints
repeated int64 ints = 8;- Specified by:
getIntsin interfaceOnnx.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 interfaceOnnx.AttributeProtoOrBuilder- Returns:
- A list containing the strings.
-
getStringsCount
public int getStringsCount()list of UTF-8 strings
repeated bytes strings = 9;- Specified by:
getStringsCountin interfaceOnnx.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 interfaceOnnx.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 Onnx.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 interfaceOnnx.AttributeProtoOrBuilder
-
getTensorsCount
public int getTensorsCount()list of tensors
repeated .onnx.TensorProto tensors = 10;- Specified by:
getTensorsCountin interfaceOnnx.AttributeProtoOrBuilder
-
getTensors
list of tensors
repeated .onnx.TensorProto tensors = 10;- Specified by:
getTensorsin interfaceOnnx.AttributeProtoOrBuilder
-
setTensors
list of tensors
repeated .onnx.TensorProto tensors = 10; -
setTensors
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
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 interfaceOnnx.AttributeProtoOrBuilder
-
getTensorsOrBuilderList
list of tensors
repeated .onnx.TensorProto tensors = 10;- Specified by:
getTensorsOrBuilderListin interfaceOnnx.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 interfaceOnnx.AttributeProtoOrBuilder
-
getGraphsCount
public int getGraphsCount()list of graph
repeated .onnx.GraphProto graphs = 11;- Specified by:
getGraphsCountin interfaceOnnx.AttributeProtoOrBuilder
-
getGraphs
list of graph
repeated .onnx.GraphProto graphs = 11;- Specified by:
getGraphsin interfaceOnnx.AttributeProtoOrBuilder
-
setGraphs
list of graph
repeated .onnx.GraphProto graphs = 11; -
setGraphs
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
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 interfaceOnnx.AttributeProtoOrBuilder
-
getGraphsOrBuilderList
list of graph
repeated .onnx.GraphProto graphs = 11;- Specified by:
getGraphsOrBuilderListin interfaceOnnx.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 interfaceOnnx.AttributeProtoOrBuilder
-
getSparseTensorsCount
public int getSparseTensorsCount()list of sparse tensors
repeated .onnx.SparseTensorProto sparse_tensors = 23;- Specified by:
getSparseTensorsCountin interfaceOnnx.AttributeProtoOrBuilder
-
getSparseTensors
list of sparse tensors
repeated .onnx.SparseTensorProto sparse_tensors = 23;- Specified by:
getSparseTensorsin interfaceOnnx.AttributeProtoOrBuilder
-
setSparseTensors
list of sparse tensors
repeated .onnx.SparseTensorProto sparse_tensors = 23; -
setSparseTensors
public Onnx.AttributeProto.Builder setSparseTensors(int index, Onnx.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
list of sparse tensors
repeated .onnx.SparseTensorProto sparse_tensors = 23; -
addSparseTensors
public Onnx.AttributeProto.Builder addSparseTensors(int index, Onnx.SparseTensorProto.Builder builderForValue) list of sparse tensors
repeated .onnx.SparseTensorProto sparse_tensors = 23; -
addAllSparseTensors
public Onnx.AttributeProto.Builder addAllSparseTensors(Iterable<? extends Onnx.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 interfaceOnnx.AttributeProtoOrBuilder
-
getSparseTensorsOrBuilderList
list of sparse tensors
repeated .onnx.SparseTensorProto sparse_tensors = 23;- Specified by:
getSparseTensorsOrBuilderListin interfaceOnnx.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; -
getTypeProtosList
list of type protos
repeated .onnx.TypeProto type_protos = 15;- Specified by:
getTypeProtosListin interfaceOnnx.AttributeProtoOrBuilder
-
getTypeProtosCount
public int getTypeProtosCount()list of type protos
repeated .onnx.TypeProto type_protos = 15;- Specified by:
getTypeProtosCountin interfaceOnnx.AttributeProtoOrBuilder
-
getTypeProtos
list of type protos
repeated .onnx.TypeProto type_protos = 15;- Specified by:
getTypeProtosin interfaceOnnx.AttributeProtoOrBuilder
-
setTypeProtos
list of type protos
repeated .onnx.TypeProto type_protos = 15; -
setTypeProtos
list of type protos
repeated .onnx.TypeProto type_protos = 15; -
addTypeProtos
list of type protos
repeated .onnx.TypeProto type_protos = 15; -
addTypeProtos
list of type protos
repeated .onnx.TypeProto type_protos = 15; -
addTypeProtos
list of type protos
repeated .onnx.TypeProto type_protos = 15; -
addTypeProtos
list of type protos
repeated .onnx.TypeProto type_protos = 15; -
addAllTypeProtos
list of type protos
repeated .onnx.TypeProto type_protos = 15; -
clearTypeProtos
list of type protos
repeated .onnx.TypeProto type_protos = 15; -
removeTypeProtos
list of type protos
repeated .onnx.TypeProto type_protos = 15; -
getTypeProtosBuilder
list of type protos
repeated .onnx.TypeProto type_protos = 15; -
getTypeProtosOrBuilder
list of type protos
repeated .onnx.TypeProto type_protos = 15;- Specified by:
getTypeProtosOrBuilderin interfaceOnnx.AttributeProtoOrBuilder
-
getTypeProtosOrBuilderList
list of type protos
repeated .onnx.TypeProto type_protos = 15;- Specified by:
getTypeProtosOrBuilderListin interfaceOnnx.AttributeProtoOrBuilder
-
addTypeProtosBuilder
list of type protos
repeated .onnx.TypeProto type_protos = 15; -
addTypeProtosBuilder
list of type protos
repeated .onnx.TypeProto type_protos = 15; -
getTypeProtosBuilderList
list of type protos
repeated .onnx.TypeProto type_protos = 15; -
setUnknownFields
public final Onnx.AttributeProto.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Onnx.AttributeProto.Builder>
-
mergeUnknownFields
public final Onnx.AttributeProto.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Onnx.AttributeProto.Builder>
-