Package onnx
Class Onnx.AttributeProto.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderType>
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.Descriptor
com.google.protobuf.Descriptors.Descriptor
A human-readable documentation for this attribute.com.google.protobuf.ByteString
A human-readable documentation for this attribute.float
getF()
Exactly ONE of the following fields must be present for this version of the IRfloat
getFloats
(int index) list of floatsint
list of floatslist of floatsgetG()
graphgraphgraphgetGraphs
(int index) list of graphgetGraphsBuilder
(int index) list of graphlist of graphint
list of graphlist of graphgetGraphsOrBuilder
(int index) list of graphList<? extends Onnx.GraphProtoOrBuilder>
list of graphlong
getI()
intlong
getInts
(int index) list of intsint
list of intslist of intsgetName()
The name field MUST be present for this version of the IR.com.google.protobuf.ByteString
The 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.ByteString
if ref_attr_name is not empty, ref_attr_name is the attribute name in parent function.com.google.protobuf.ByteString
getS()
UTF-8 stringsparse tensor valuesparse tensor valuesparse tensor valuegetSparseTensors
(int index) list of sparse tensorsgetSparseTensorsBuilder
(int index) list of sparse tensorslist of sparse tensorsint
list of sparse tensorslist of sparse tensorsgetSparseTensorsOrBuilder
(int index) list of sparse tensorsList<? extends Onnx.SparseTensorProtoOrBuilder>
list of sparse tensorscom.google.protobuf.ByteString
getStrings
(int index) list of UTF-8 stringsint
list 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 tensorsint
list 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 protosint
list of type protoslist of type protosgetTypeProtosOrBuilder
(int index) list of type protosList<? extends Onnx.TypeProtoOrBuilder>
list of type protosboolean
A human-readable documentation for this attribute.boolean
hasF()
Exactly ONE of the following fields must be present for this version of the IRboolean
hasG()
graphboolean
hasI()
intboolean
hasName()
The name field MUST be present for this version of the IR.boolean
if ref_attr_name is not empty, ref_attr_name is the attribute name in parent function.boolean
hasS()
UTF-8 stringboolean
sparse tensor valueboolean
hasT()
tensor valueboolean
hasTp()
Do not use field below, it's deprecated.boolean
hasType()
The type field MUST be present for this version of the IR.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
final boolean
mergeFrom
(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, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFrom
Methods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFrom
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<Onnx.AttributeProto.Builder>
-
clear
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<Onnx.AttributeProto.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<Onnx.AttributeProto.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<Onnx.AttributeProto.Builder>
-
setField
public Onnx.AttributeProto.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Onnx.AttributeProto.Builder>
-
clearField
public Onnx.AttributeProto.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) - Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Onnx.AttributeProto.Builder>
-
clearOneof
public Onnx.AttributeProto.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) - Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<Onnx.AttributeProto.Builder>
-
setRepeatedField
public Onnx.AttributeProto.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) - Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Onnx.AttributeProto.Builder>
-
addRepeatedField
public Onnx.AttributeProto.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Onnx.AttributeProto.Builder>
-
mergeFrom
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<Onnx.AttributeProto.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in 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:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<Onnx.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:
hasName
in 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:
getName
in 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:
getNameBytes
in 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:
hasRefAttrName
in 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:
getRefAttrName
in 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:
getRefAttrNameBytes
in 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:
hasDocString
in 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:
getDocString
in 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:
getDocStringBytes
in 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:
hasType
in 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:
getType
in 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:
hasF
in 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:
getF
in 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:
hasI
in interfaceOnnx.AttributeProtoOrBuilder
- Returns:
- Whether the i field is set.
-
getI
public long getI()int
optional int64 i = 3;
- Specified by:
getI
in 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:
hasS
in 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:
getS
in 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:
hasT
in interfaceOnnx.AttributeProtoOrBuilder
- Returns:
- Whether the t field is set.
-
getT
tensor value
optional .onnx.TensorProto t = 5;
- Specified by:
getT
in 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:
getTOrBuilder
in interfaceOnnx.AttributeProtoOrBuilder
-
hasG
public boolean hasG()graph
optional .onnx.GraphProto g = 6;
- Specified by:
hasG
in interfaceOnnx.AttributeProtoOrBuilder
- Returns:
- Whether the g field is set.
-
getG
graph
optional .onnx.GraphProto g = 6;
- Specified by:
getG
in 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:
getGOrBuilder
in interfaceOnnx.AttributeProtoOrBuilder
-
hasSparseTensor
public boolean hasSparseTensor()sparse tensor value
optional .onnx.SparseTensorProto sparse_tensor = 22;
- Specified by:
hasSparseTensor
in interfaceOnnx.AttributeProtoOrBuilder
- Returns:
- Whether the sparseTensor field is set.
-
getSparseTensor
sparse tensor value
optional .onnx.SparseTensorProto sparse_tensor = 22;
- Specified by:
getSparseTensor
in 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:
getSparseTensorOrBuilder
in 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:
hasTp
in 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:
getTp
in 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:
getTpOrBuilder
in interfaceOnnx.AttributeProtoOrBuilder
-
getFloatsList
list of floats
repeated float floats = 7;
- Specified by:
getFloatsList
in interfaceOnnx.AttributeProtoOrBuilder
- Returns:
- A list containing the floats.
-
getFloatsCount
public int getFloatsCount()list of floats
repeated float floats = 7;
- Specified by:
getFloatsCount
in interfaceOnnx.AttributeProtoOrBuilder
- Returns:
- The count of floats.
-
getFloats
public float getFloats(int index) list of floats
repeated float floats = 7;
- Specified by:
getFloats
in 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:
getIntsList
in interfaceOnnx.AttributeProtoOrBuilder
- Returns:
- A list containing the ints.
-
getIntsCount
public int getIntsCount()list of ints
repeated int64 ints = 8;
- Specified by:
getIntsCount
in interfaceOnnx.AttributeProtoOrBuilder
- Returns:
- The count of ints.
-
getInts
public long getInts(int index) list of ints
repeated int64 ints = 8;
- Specified by:
getInts
in 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:
getStringsList
in interfaceOnnx.AttributeProtoOrBuilder
- Returns:
- A list containing the strings.
-
getStringsCount
public int getStringsCount()list of UTF-8 strings
repeated bytes strings = 9;
- Specified by:
getStringsCount
in 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:
getStrings
in 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:
getTensorsList
in interfaceOnnx.AttributeProtoOrBuilder
-
getTensorsCount
public int getTensorsCount()list of tensors
repeated .onnx.TensorProto tensors = 10;
- Specified by:
getTensorsCount
in interfaceOnnx.AttributeProtoOrBuilder
-
getTensors
list of tensors
repeated .onnx.TensorProto tensors = 10;
- Specified by:
getTensors
in 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:
getTensorsOrBuilder
in interfaceOnnx.AttributeProtoOrBuilder
-
getTensorsOrBuilderList
list of tensors
repeated .onnx.TensorProto tensors = 10;
- Specified by:
getTensorsOrBuilderList
in 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:
getGraphsList
in interfaceOnnx.AttributeProtoOrBuilder
-
getGraphsCount
public int getGraphsCount()list of graph
repeated .onnx.GraphProto graphs = 11;
- Specified by:
getGraphsCount
in interfaceOnnx.AttributeProtoOrBuilder
-
getGraphs
list of graph
repeated .onnx.GraphProto graphs = 11;
- Specified by:
getGraphs
in 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:
getGraphsOrBuilder
in interfaceOnnx.AttributeProtoOrBuilder
-
getGraphsOrBuilderList
list of graph
repeated .onnx.GraphProto graphs = 11;
- Specified by:
getGraphsOrBuilderList
in 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:
getSparseTensorsList
in interfaceOnnx.AttributeProtoOrBuilder
-
getSparseTensorsCount
public int getSparseTensorsCount()list of sparse tensors
repeated .onnx.SparseTensorProto sparse_tensors = 23;
- Specified by:
getSparseTensorsCount
in interfaceOnnx.AttributeProtoOrBuilder
-
getSparseTensors
list of sparse tensors
repeated .onnx.SparseTensorProto sparse_tensors = 23;
- Specified by:
getSparseTensors
in 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:
getSparseTensorsOrBuilder
in interfaceOnnx.AttributeProtoOrBuilder
-
getSparseTensorsOrBuilderList
list of sparse tensors
repeated .onnx.SparseTensorProto sparse_tensors = 23;
- Specified by:
getSparseTensorsOrBuilderList
in 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:
getTypeProtosList
in interfaceOnnx.AttributeProtoOrBuilder
-
getTypeProtosCount
public int getTypeProtosCount()list of type protos
repeated .onnx.TypeProto type_protos = 15;
- Specified by:
getTypeProtosCount
in interfaceOnnx.AttributeProtoOrBuilder
-
getTypeProtos
list of type protos
repeated .onnx.TypeProto type_protos = 15;
- Specified by:
getTypeProtos
in 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:
getTypeProtosOrBuilder
in interfaceOnnx.AttributeProtoOrBuilder
-
getTypeProtosOrBuilderList
list of type protos
repeated .onnx.TypeProto type_protos = 15;
- Specified by:
getTypeProtosOrBuilderList
in 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:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<Onnx.AttributeProto.Builder>
-
mergeUnknownFields
public final Onnx.AttributeProto.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<Onnx.AttributeProto.Builder>
-