Package ai.onnx.proto
Class OnnxMl.AttributeProto.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderType>
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.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 OnnxMl.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 OnnxMl.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 OnnxMl.TensorProtoOrBuilder>
list of tensorstensor valuegetType()
The type field MUST be present for this version of the IR.boolean
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
hasType()
The type field MUST be present for this version of the IR.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
final boolean
mergeFrom
(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, setUnknownFieldsProto3
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeFrom, newUninitializedMessageException
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFrom
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<OnnxMl.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<OnnxMl.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<OnnxMl.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<OnnxMl.AttributeProto.Builder>
-
setField
public OnnxMl.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<OnnxMl.AttributeProto.Builder>
-
clearField
public OnnxMl.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<OnnxMl.AttributeProto.Builder>
-
clearOneof
public OnnxMl.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<OnnxMl.AttributeProto.Builder>
-
setRepeatedField
public OnnxMl.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<OnnxMl.AttributeProto.Builder>
-
addRepeatedField
public OnnxMl.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<OnnxMl.AttributeProto.Builder>
-
mergeFrom
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<OnnxMl.AttributeProto.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in 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:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<OnnxMl.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 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:
getName
in 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:
getNameBytes
in 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:
hasRefAttrName
in 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:
getRefAttrName
in 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:
getRefAttrNameBytes
in 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:
hasDocString
in 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:
getDocString
in 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:
getDocStringBytes
in 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:
hasType
in 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:
getType
in 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:
hasF
in 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:
getF
in 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:
hasI
in interfaceOnnxMl.AttributeProtoOrBuilder
- Returns:
- Whether the i field is set.
-
getI
public long getI()int
optional int64 i = 3;
- Specified by:
getI
in 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:
hasS
in 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:
getS
in 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:
hasT
in interfaceOnnxMl.AttributeProtoOrBuilder
- Returns:
- Whether the t field is set.
-
getT
tensor value
optional .onnx.TensorProto t = 5;
- Specified by:
getT
in 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:
getTOrBuilder
in interfaceOnnxMl.AttributeProtoOrBuilder
-
hasG
public boolean hasG()graph
optional .onnx.GraphProto g = 6;
- Specified by:
hasG
in interfaceOnnxMl.AttributeProtoOrBuilder
- Returns:
- Whether the g field is set.
-
getG
graph
optional .onnx.GraphProto g = 6;
- Specified by:
getG
in 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:
getGOrBuilder
in interfaceOnnxMl.AttributeProtoOrBuilder
-
hasSparseTensor
public boolean hasSparseTensor()sparse tensor value
optional .onnx.SparseTensorProto sparse_tensor = 22;
- Specified by:
hasSparseTensor
in interfaceOnnxMl.AttributeProtoOrBuilder
- Returns:
- Whether the sparseTensor field is set.
-
getSparseTensor
sparse tensor value
optional .onnx.SparseTensorProto sparse_tensor = 22;
- Specified by:
getSparseTensor
in 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:
getSparseTensorOrBuilder
in interfaceOnnxMl.AttributeProtoOrBuilder
-
getFloatsList
list of floats
repeated float floats = 7;
- Specified by:
getFloatsList
in interfaceOnnxMl.AttributeProtoOrBuilder
- Returns:
- A list containing the floats.
-
getFloatsCount
public int getFloatsCount()list of floats
repeated float floats = 7;
- Specified by:
getFloatsCount
in interfaceOnnxMl.AttributeProtoOrBuilder
- Returns:
- The count of floats.
-
getFloats
public float getFloats(int index) list of floats
repeated float floats = 7;
- Specified by:
getFloats
in 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:
getIntsList
in interfaceOnnxMl.AttributeProtoOrBuilder
- Returns:
- A list containing the ints.
-
getIntsCount
public int getIntsCount()list of ints
repeated int64 ints = 8;
- Specified by:
getIntsCount
in interfaceOnnxMl.AttributeProtoOrBuilder
- Returns:
- The count of ints.
-
getInts
public long getInts(int index) list of ints
repeated int64 ints = 8;
- Specified by:
getInts
in 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:
getStringsList
in interfaceOnnxMl.AttributeProtoOrBuilder
- Returns:
- A list containing the strings.
-
getStringsCount
public int getStringsCount()list of UTF-8 strings
repeated bytes strings = 9;
- Specified by:
getStringsCount
in 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:
getStrings
in 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:
getTensorsList
in interfaceOnnxMl.AttributeProtoOrBuilder
-
getTensorsCount
public int getTensorsCount()list of tensors
repeated .onnx.TensorProto tensors = 10;
- Specified by:
getTensorsCount
in interfaceOnnxMl.AttributeProtoOrBuilder
-
getTensors
list of tensors
repeated .onnx.TensorProto tensors = 10;
- Specified by:
getTensors
in 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:
getTensorsOrBuilder
in interfaceOnnxMl.AttributeProtoOrBuilder
-
getTensorsOrBuilderList
list of tensors
repeated .onnx.TensorProto tensors = 10;
- Specified by:
getTensorsOrBuilderList
in 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:
getGraphsList
in interfaceOnnxMl.AttributeProtoOrBuilder
-
getGraphsCount
public int getGraphsCount()list of graph
repeated .onnx.GraphProto graphs = 11;
- Specified by:
getGraphsCount
in interfaceOnnxMl.AttributeProtoOrBuilder
-
getGraphs
list of graph
repeated .onnx.GraphProto graphs = 11;
- Specified by:
getGraphs
in 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:
getGraphsOrBuilder
in interfaceOnnxMl.AttributeProtoOrBuilder
-
getGraphsOrBuilderList
list of graph
repeated .onnx.GraphProto graphs = 11;
- Specified by:
getGraphsOrBuilderList
in 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:
getSparseTensorsList
in interfaceOnnxMl.AttributeProtoOrBuilder
-
getSparseTensorsCount
public int getSparseTensorsCount()list of sparse tensors
repeated .onnx.SparseTensorProto sparse_tensors = 23;
- Specified by:
getSparseTensorsCount
in interfaceOnnxMl.AttributeProtoOrBuilder
-
getSparseTensors
list of sparse tensors
repeated .onnx.SparseTensorProto sparse_tensors = 23;
- Specified by:
getSparseTensors
in 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:
getSparseTensorsOrBuilder
in interfaceOnnxMl.AttributeProtoOrBuilder
-
getSparseTensorsOrBuilderList
list of sparse tensors
repeated .onnx.SparseTensorProto sparse_tensors = 23;
- Specified by:
getSparseTensorsOrBuilderList
in 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:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<OnnxMl.AttributeProto.Builder>
-
mergeUnknownFields
public final OnnxMl.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<OnnxMl.AttributeProto.Builder>
-