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 typeonnx.AttributeProto
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Onnx.AttributeProto.Builder
addAllFloats(Iterable<? extends Float> values)
list of floatsOnnx.AttributeProto.Builder
addAllGraphs(Iterable<? extends Onnx.GraphProto> values)
list of graphOnnx.AttributeProto.Builder
addAllInts(Iterable<? extends Long> values)
list of intsOnnx.AttributeProto.Builder
addAllStrings(Iterable<? extends com.google.protobuf.ByteString> values)
list of UTF-8 stringsOnnx.AttributeProto.Builder
addAllTensors(Iterable<? extends Onnx.TensorProto> values)
list of tensorsOnnx.AttributeProto.Builder
addFloats(float value)
list of floatsOnnx.AttributeProto.Builder
addGraphs(int index, Onnx.GraphProto value)
list of graphOnnx.AttributeProto.Builder
addGraphs(int index, Onnx.GraphProto.Builder builderForValue)
list of graphOnnx.AttributeProto.Builder
addGraphs(Onnx.GraphProto value)
list of graphOnnx.AttributeProto.Builder
addGraphs(Onnx.GraphProto.Builder builderForValue)
list of graphOnnx.GraphProto.Builder
addGraphsBuilder()
list of graphOnnx.GraphProto.Builder
addGraphsBuilder(int index)
list of graphOnnx.AttributeProto.Builder
addInts(long value)
list of intsOnnx.AttributeProto.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
Onnx.AttributeProto.Builder
addStrings(com.google.protobuf.ByteString value)
list of UTF-8 stringsOnnx.AttributeProto.Builder
addTensors(int index, Onnx.TensorProto value)
list of tensorsOnnx.AttributeProto.Builder
addTensors(int index, Onnx.TensorProto.Builder builderForValue)
list of tensorsOnnx.AttributeProto.Builder
addTensors(Onnx.TensorProto value)
list of tensorsOnnx.AttributeProto.Builder
addTensors(Onnx.TensorProto.Builder builderForValue)
list of tensorsOnnx.TensorProto.Builder
addTensorsBuilder()
list of tensorsOnnx.TensorProto.Builder
addTensorsBuilder(int index)
list of tensorsOnnx.AttributeProto
build()
Onnx.AttributeProto
buildPartial()
Onnx.AttributeProto.Builder
clear()
Onnx.AttributeProto.Builder
clearDocString()
A human-readable documentation for this attribute.Onnx.AttributeProto.Builder
clearF()
Exactly ONE of the following fields must be present for this version of the IROnnx.AttributeProto.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
Onnx.AttributeProto.Builder
clearFloats()
list of floatsOnnx.AttributeProto.Builder
clearG()
graphOnnx.AttributeProto.Builder
clearGraphs()
list of graphOnnx.AttributeProto.Builder
clearI()
intOnnx.AttributeProto.Builder
clearInts()
list of intsOnnx.AttributeProto.Builder
clearName()
The name field MUST be present for this version of the IR.Onnx.AttributeProto.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
Onnx.AttributeProto.Builder
clearRefAttrName()
if ref_attr_name is not empty, ref_attr_name is the attribute name in parent function.Onnx.AttributeProto.Builder
clearS()
UTF-8 stringOnnx.AttributeProto.Builder
clearStrings()
list of UTF-8 stringsOnnx.AttributeProto.Builder
clearT()
tensor valueOnnx.AttributeProto.Builder
clearTensors()
list of tensorsOnnx.AttributeProto.Builder
clearType()
The type field MUST be present for this version of the IR.Onnx.AttributeProto.Builder
clone()
Onnx.AttributeProto
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
String
getDocString()
A human-readable documentation for this attribute.com.google.protobuf.ByteString
getDocStringBytes()
A human-readable documentation for this attribute.float
getF()
Exactly ONE of the following fields must be present for this version of the IRfloat
getFloats(int index)
list of floatsint
getFloatsCount()
list of floatsList<Float>
getFloatsList()
list of floatsOnnx.GraphProto
getG()
graphOnnx.GraphProto.Builder
getGBuilder()
graphOnnx.GraphProtoOrBuilder
getGOrBuilder()
graphOnnx.GraphProto
getGraphs(int index)
list of graphOnnx.GraphProto.Builder
getGraphsBuilder(int index)
list of graphList<Onnx.GraphProto.Builder>
getGraphsBuilderList()
list of graphint
getGraphsCount()
list of graphList<Onnx.GraphProto>
getGraphsList()
list of graphOnnx.GraphProtoOrBuilder
getGraphsOrBuilder(int index)
list of graphList<? extends Onnx.GraphProtoOrBuilder>
getGraphsOrBuilderList()
list of graphlong
getI()
intlong
getInts(int index)
list of intsint
getIntsCount()
list of intsList<Long>
getIntsList()
list of intsString
getName()
The name field MUST be present for this version of the IR.com.google.protobuf.ByteString
getNameBytes()
The name field MUST be present for this version of the IR.String
getRefAttrName()
if ref_attr_name is not empty, ref_attr_name is the attribute name in parent function.com.google.protobuf.ByteString
getRefAttrNameBytes()
if ref_attr_name is not empty, ref_attr_name is the attribute name in parent function.com.google.protobuf.ByteString
getS()
UTF-8 stringcom.google.protobuf.ByteString
getStrings(int index)
list of UTF-8 stringsint
getStringsCount()
list of UTF-8 stringsList<com.google.protobuf.ByteString>
getStringsList()
list of UTF-8 stringsOnnx.TensorProto
getT()
tensor valueOnnx.TensorProto.Builder
getTBuilder()
tensor valueOnnx.TensorProto
getTensors(int index)
list of tensorsOnnx.TensorProto.Builder
getTensorsBuilder(int index)
list of tensorsList<Onnx.TensorProto.Builder>
getTensorsBuilderList()
list of tensorsint
getTensorsCount()
list of tensorsList<Onnx.TensorProto>
getTensorsList()
list of tensorsOnnx.TensorProtoOrBuilder
getTensorsOrBuilder(int index)
list of tensorsList<? extends Onnx.TensorProtoOrBuilder>
getTensorsOrBuilderList()
list of tensorsOnnx.TensorProtoOrBuilder
getTOrBuilder()
tensor valueOnnx.AttributeProto.AttributeType
getType()
The type field MUST be present for this version of the IR.boolean
hasDocString()
A human-readable documentation for this attribute.boolean
hasF()
Exactly ONE of the following fields must be present for this version of the IRboolean
hasG()
graphboolean
hasI()
intboolean
hasName()
The name field MUST be present for this version of the IR.boolean
hasRefAttrName()
if ref_attr_name is not empty, ref_attr_name is the attribute name in parent function.boolean
hasS()
UTF-8 stringboolean
hasT()
tensor valueboolean
hasType()
The type field MUST be present for this version of the IR.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
Onnx.AttributeProto.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Onnx.AttributeProto.Builder
mergeFrom(com.google.protobuf.Message other)
Onnx.AttributeProto.Builder
mergeFrom(Onnx.AttributeProto other)
Onnx.AttributeProto.Builder
mergeG(Onnx.GraphProto value)
graphOnnx.AttributeProto.Builder
mergeT(Onnx.TensorProto value)
tensor valueOnnx.AttributeProto.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
Onnx.AttributeProto.Builder
removeGraphs(int index)
list of graphOnnx.AttributeProto.Builder
removeTensors(int index)
list of tensorsOnnx.AttributeProto.Builder
setDocString(String value)
A human-readable documentation for this attribute.Onnx.AttributeProto.Builder
setDocStringBytes(com.google.protobuf.ByteString value)
A human-readable documentation for this attribute.Onnx.AttributeProto.Builder
setF(float value)
Exactly ONE of the following fields must be present for this version of the IROnnx.AttributeProto.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
Onnx.AttributeProto.Builder
setFloats(int index, float value)
list of floatsOnnx.AttributeProto.Builder
setG(Onnx.GraphProto value)
graphOnnx.AttributeProto.Builder
setG(Onnx.GraphProto.Builder builderForValue)
graphOnnx.AttributeProto.Builder
setGraphs(int index, Onnx.GraphProto value)
list of graphOnnx.AttributeProto.Builder
setGraphs(int index, Onnx.GraphProto.Builder builderForValue)
list of graphOnnx.AttributeProto.Builder
setI(long value)
intOnnx.AttributeProto.Builder
setInts(int index, long value)
list of intsOnnx.AttributeProto.Builder
setName(String value)
The name field MUST be present for this version of the IR.Onnx.AttributeProto.Builder
setNameBytes(com.google.protobuf.ByteString value)
The name field MUST be present for this version of the IR.Onnx.AttributeProto.Builder
setRefAttrName(String value)
if ref_attr_name is not empty, ref_attr_name is the attribute name in parent function.Onnx.AttributeProto.Builder
setRefAttrNameBytes(com.google.protobuf.ByteString value)
if ref_attr_name is not empty, ref_attr_name is the attribute name in parent function.Onnx.AttributeProto.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
Onnx.AttributeProto.Builder
setS(com.google.protobuf.ByteString value)
UTF-8 stringOnnx.AttributeProto.Builder
setStrings(int index, com.google.protobuf.ByteString value)
list of UTF-8 stringsOnnx.AttributeProto.Builder
setT(Onnx.TensorProto value)
tensor valueOnnx.AttributeProto.Builder
setT(Onnx.TensorProto.Builder builderForValue)
tensor valueOnnx.AttributeProto.Builder
setTensors(int index, Onnx.TensorProto value)
list of tensorsOnnx.AttributeProto.Builder
setTensors(int index, Onnx.TensorProto.Builder builderForValue)
list of tensorsOnnx.AttributeProto.Builder
setType(Onnx.AttributeProto.AttributeType value)
The type field MUST be present for this version of the IR.Onnx.AttributeProto.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, 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
-
-
-
-
Method Detail
-
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
public 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
public Onnx.AttributeProto getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public Onnx.AttributeProto build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Onnx.AttributeProto buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public Onnx.AttributeProto.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
public Onnx.AttributeProto.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<Onnx.AttributeProto.Builder>
-
mergeFrom
public Onnx.AttributeProto.Builder mergeFrom(Onnx.AttributeProto other)
-
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
public String 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
public Onnx.AttributeProto.Builder setName(String value)
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
public Onnx.AttributeProto.Builder clearName()
The name field MUST be present for this version of the IR.
optional string name = 1;
- Returns:
- This builder for chaining.
-
setNameBytes
public Onnx.AttributeProto.Builder setNameBytes(com.google.protobuf.ByteString value)
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
public String getRefAttrName()
if ref_attr_name is not empty, ref_attr_name is the attribute name in parent function. In this case, this AttributeProto does not contain data, and it's a reference of attribute in parent scope. NOTE: This should ONLY be used in function (sub-graph). It's invalid to be used in main graph.
optional string ref_attr_name = 21;
- 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
public Onnx.AttributeProto.Builder setRefAttrName(String value)
if ref_attr_name is not empty, ref_attr_name is the attribute name in parent function. In this case, this AttributeProto does not contain data, and it's a reference of attribute in parent scope. NOTE: This should ONLY be used in function (sub-graph). It's invalid to be used in main graph.
optional string ref_attr_name = 21;
- Parameters:
value
- The refAttrName to set.- Returns:
- This builder for chaining.
-
clearRefAttrName
public Onnx.AttributeProto.Builder clearRefAttrName()
if ref_attr_name is not empty, ref_attr_name is the attribute name in parent function. In this case, this AttributeProto does not contain data, and it's a reference of attribute in parent scope. NOTE: This should ONLY be used in function (sub-graph). It's invalid to be used in main graph.
optional string ref_attr_name = 21;
- Returns:
- This builder for chaining.
-
setRefAttrNameBytes
public Onnx.AttributeProto.Builder setRefAttrNameBytes(com.google.protobuf.ByteString value)
if ref_attr_name is not empty, ref_attr_name is the attribute name in parent function. In this case, this AttributeProto does not contain data, and it's a reference of attribute in parent scope. NOTE: This should ONLY be used in function (sub-graph). It's invalid to be used in main graph.
optional string ref_attr_name = 21;
- 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
public String 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
public Onnx.AttributeProto.Builder setDocString(String value)
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
public Onnx.AttributeProto.Builder clearDocString()
A human-readable documentation for this attribute. Markdown is allowed.
optional string doc_string = 13;
- Returns:
- This builder for chaining.
-
setDocStringBytes
public Onnx.AttributeProto.Builder setDocStringBytes(com.google.protobuf.ByteString value)
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 hueristics 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 accomodate proto3 implementations.
optional .onnx.AttributeProto.AttributeType type = 20;
- Specified by:
hasType
in interfaceOnnx.AttributeProtoOrBuilder
- Returns:
- Whether the type field is set.
-
getType
public Onnx.AttributeProto.AttributeType getType()
The type field MUST be present for this version of the IR. For 0.0.1 versions of the IR, this field was not defined, and implementations needed to use has_field hueristics 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 accomodate proto3 implementations.
optional .onnx.AttributeProto.AttributeType type = 20;
- Specified by:
getType
in interfaceOnnx.AttributeProtoOrBuilder
- Returns:
- The type.
-
setType
public Onnx.AttributeProto.Builder setType(Onnx.AttributeProto.AttributeType value)
The type field MUST be present for this version of the IR. For 0.0.1 versions of the IR, this field was not defined, and implementations needed to use has_field hueristics 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 accomodate proto3 implementations.
optional .onnx.AttributeProto.AttributeType type = 20;
- Parameters:
value
- The type to set.- Returns:
- This builder for chaining.
-
clearType
public Onnx.AttributeProto.Builder clearType()
The type field MUST be present for this version of the IR. For 0.0.1 versions of the IR, this field was not defined, and implementations needed to use has_field hueristics 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 accomodate 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
public Onnx.AttributeProto.Builder setF(float value)
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
public Onnx.AttributeProto.Builder 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
public Onnx.AttributeProto.Builder setI(long value)
int
optional int64 i = 3;
- Parameters:
value
- The i to set.- Returns:
- This builder for chaining.
-
clearI
public Onnx.AttributeProto.Builder 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
public Onnx.AttributeProto.Builder setS(com.google.protobuf.ByteString value)
UTF-8 string
optional bytes s = 4;
- Parameters:
value
- The s to set.- Returns:
- This builder for chaining.
-
clearS
public Onnx.AttributeProto.Builder 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
public Onnx.TensorProto getT()
tensor value
optional .onnx.TensorProto t = 5;
- Specified by:
getT
in interfaceOnnx.AttributeProtoOrBuilder
- Returns:
- The t.
-
setT
public Onnx.AttributeProto.Builder setT(Onnx.TensorProto value)
tensor value
optional .onnx.TensorProto t = 5;
-
setT
public Onnx.AttributeProto.Builder setT(Onnx.TensorProto.Builder builderForValue)
tensor value
optional .onnx.TensorProto t = 5;
-
mergeT
public Onnx.AttributeProto.Builder mergeT(Onnx.TensorProto value)
tensor value
optional .onnx.TensorProto t = 5;
-
clearT
public Onnx.AttributeProto.Builder clearT()
tensor value
optional .onnx.TensorProto t = 5;
-
getTBuilder
public Onnx.TensorProto.Builder getTBuilder()
tensor value
optional .onnx.TensorProto t = 5;
-
getTOrBuilder
public Onnx.TensorProtoOrBuilder 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
public Onnx.GraphProto getG()
graph
optional .onnx.GraphProto g = 6;
- Specified by:
getG
in interfaceOnnx.AttributeProtoOrBuilder
- Returns:
- The g.
-
setG
public Onnx.AttributeProto.Builder setG(Onnx.GraphProto value)
graph
optional .onnx.GraphProto g = 6;
-
setG
public Onnx.AttributeProto.Builder setG(Onnx.GraphProto.Builder builderForValue)
graph
optional .onnx.GraphProto g = 6;
-
mergeG
public Onnx.AttributeProto.Builder mergeG(Onnx.GraphProto value)
graph
optional .onnx.GraphProto g = 6;
-
clearG
public Onnx.AttributeProto.Builder clearG()
graph
optional .onnx.GraphProto g = 6;
-
getGBuilder
public Onnx.GraphProto.Builder getGBuilder()
graph
optional .onnx.GraphProto g = 6;
-
getGOrBuilder
public Onnx.GraphProtoOrBuilder getGOrBuilder()
graph
optional .onnx.GraphProto g = 6;
- Specified by:
getGOrBuilder
in interfaceOnnx.AttributeProtoOrBuilder
-
getFloatsList
public List<Float> 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
public Onnx.AttributeProto.Builder setFloats(int index, float value)
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
public Onnx.AttributeProto.Builder addFloats(float value)
list of floats
repeated float floats = 7;
- Parameters:
value
- The floats to add.- Returns:
- This builder for chaining.
-
addAllFloats
public Onnx.AttributeProto.Builder addAllFloats(Iterable<? extends Float> values)
list of floats
repeated float floats = 7;
- Parameters:
values
- The floats to add.- Returns:
- This builder for chaining.
-
clearFloats
public Onnx.AttributeProto.Builder clearFloats()
list of floats
repeated float floats = 7;
- Returns:
- This builder for chaining.
-
getIntsList
public List<Long> 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
public Onnx.AttributeProto.Builder setInts(int index, long value)
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
public Onnx.AttributeProto.Builder addInts(long value)
list of ints
repeated int64 ints = 8;
- Parameters:
value
- The ints to add.- Returns:
- This builder for chaining.
-
addAllInts
public Onnx.AttributeProto.Builder addAllInts(Iterable<? extends Long> values)
list of ints
repeated int64 ints = 8;
- Parameters:
values
- The ints to add.- Returns:
- This builder for chaining.
-
clearInts
public Onnx.AttributeProto.Builder clearInts()
list of ints
repeated int64 ints = 8;
- Returns:
- This builder for chaining.
-
getStringsList
public List<com.google.protobuf.ByteString> 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
public Onnx.AttributeProto.Builder setStrings(int index, com.google.protobuf.ByteString value)
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
public Onnx.AttributeProto.Builder addStrings(com.google.protobuf.ByteString value)
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
public Onnx.AttributeProto.Builder clearStrings()
list of UTF-8 strings
repeated bytes strings = 9;
- Returns:
- This builder for chaining.
-
getTensorsList
public List<Onnx.TensorProto> 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
public Onnx.TensorProto getTensors(int index)
list of tensors
repeated .onnx.TensorProto tensors = 10;
- Specified by:
getTensors
in interfaceOnnx.AttributeProtoOrBuilder
-
setTensors
public Onnx.AttributeProto.Builder setTensors(int index, Onnx.TensorProto value)
list of tensors
repeated .onnx.TensorProto tensors = 10;
-
setTensors
public Onnx.AttributeProto.Builder setTensors(int index, Onnx.TensorProto.Builder builderForValue)
list of tensors
repeated .onnx.TensorProto tensors = 10;
-
addTensors
public Onnx.AttributeProto.Builder addTensors(Onnx.TensorProto value)
list of tensors
repeated .onnx.TensorProto tensors = 10;
-
addTensors
public Onnx.AttributeProto.Builder addTensors(int index, Onnx.TensorProto value)
list of tensors
repeated .onnx.TensorProto tensors = 10;
-
addTensors
public Onnx.AttributeProto.Builder addTensors(Onnx.TensorProto.Builder builderForValue)
list of tensors
repeated .onnx.TensorProto tensors = 10;
-
addTensors
public Onnx.AttributeProto.Builder addTensors(int index, Onnx.TensorProto.Builder builderForValue)
list of tensors
repeated .onnx.TensorProto tensors = 10;
-
addAllTensors
public Onnx.AttributeProto.Builder addAllTensors(Iterable<? extends Onnx.TensorProto> values)
list of tensors
repeated .onnx.TensorProto tensors = 10;
-
clearTensors
public Onnx.AttributeProto.Builder clearTensors()
list of tensors
repeated .onnx.TensorProto tensors = 10;
-
removeTensors
public Onnx.AttributeProto.Builder removeTensors(int index)
list of tensors
repeated .onnx.TensorProto tensors = 10;
-
getTensorsBuilder
public Onnx.TensorProto.Builder getTensorsBuilder(int index)
list of tensors
repeated .onnx.TensorProto tensors = 10;
-
getTensorsOrBuilder
public Onnx.TensorProtoOrBuilder getTensorsOrBuilder(int index)
list of tensors
repeated .onnx.TensorProto tensors = 10;
- Specified by:
getTensorsOrBuilder
in interfaceOnnx.AttributeProtoOrBuilder
-
getTensorsOrBuilderList
public List<? extends Onnx.TensorProtoOrBuilder> getTensorsOrBuilderList()
list of tensors
repeated .onnx.TensorProto tensors = 10;
- Specified by:
getTensorsOrBuilderList
in interfaceOnnx.AttributeProtoOrBuilder
-
addTensorsBuilder
public Onnx.TensorProto.Builder addTensorsBuilder()
list of tensors
repeated .onnx.TensorProto tensors = 10;
-
addTensorsBuilder
public Onnx.TensorProto.Builder addTensorsBuilder(int index)
list of tensors
repeated .onnx.TensorProto tensors = 10;
-
getTensorsBuilderList
public List<Onnx.TensorProto.Builder> getTensorsBuilderList()
list of tensors
repeated .onnx.TensorProto tensors = 10;
-
getGraphsList
public List<Onnx.GraphProto> 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
public Onnx.GraphProto getGraphs(int index)
list of graph
repeated .onnx.GraphProto graphs = 11;
- Specified by:
getGraphs
in interfaceOnnx.AttributeProtoOrBuilder
-
setGraphs
public Onnx.AttributeProto.Builder setGraphs(int index, Onnx.GraphProto value)
list of graph
repeated .onnx.GraphProto graphs = 11;
-
setGraphs
public Onnx.AttributeProto.Builder setGraphs(int index, Onnx.GraphProto.Builder builderForValue)
list of graph
repeated .onnx.GraphProto graphs = 11;
-
addGraphs
public Onnx.AttributeProto.Builder addGraphs(Onnx.GraphProto value)
list of graph
repeated .onnx.GraphProto graphs = 11;
-
addGraphs
public Onnx.AttributeProto.Builder addGraphs(int index, Onnx.GraphProto value)
list of graph
repeated .onnx.GraphProto graphs = 11;
-
addGraphs
public Onnx.AttributeProto.Builder addGraphs(Onnx.GraphProto.Builder builderForValue)
list of graph
repeated .onnx.GraphProto graphs = 11;
-
addGraphs
public Onnx.AttributeProto.Builder addGraphs(int index, Onnx.GraphProto.Builder builderForValue)
list of graph
repeated .onnx.GraphProto graphs = 11;
-
addAllGraphs
public Onnx.AttributeProto.Builder addAllGraphs(Iterable<? extends Onnx.GraphProto> values)
list of graph
repeated .onnx.GraphProto graphs = 11;
-
clearGraphs
public Onnx.AttributeProto.Builder clearGraphs()
list of graph
repeated .onnx.GraphProto graphs = 11;
-
removeGraphs
public Onnx.AttributeProto.Builder removeGraphs(int index)
list of graph
repeated .onnx.GraphProto graphs = 11;
-
getGraphsBuilder
public Onnx.GraphProto.Builder getGraphsBuilder(int index)
list of graph
repeated .onnx.GraphProto graphs = 11;
-
getGraphsOrBuilder
public Onnx.GraphProtoOrBuilder getGraphsOrBuilder(int index)
list of graph
repeated .onnx.GraphProto graphs = 11;
- Specified by:
getGraphsOrBuilder
in interfaceOnnx.AttributeProtoOrBuilder
-
getGraphsOrBuilderList
public List<? extends Onnx.GraphProtoOrBuilder> getGraphsOrBuilderList()
list of graph
repeated .onnx.GraphProto graphs = 11;
- Specified by:
getGraphsOrBuilderList
in interfaceOnnx.AttributeProtoOrBuilder
-
addGraphsBuilder
public Onnx.GraphProto.Builder addGraphsBuilder()
list of graph
repeated .onnx.GraphProto graphs = 11;
-
addGraphsBuilder
public Onnx.GraphProto.Builder addGraphsBuilder(int index)
list of graph
repeated .onnx.GraphProto graphs = 11;
-
getGraphsBuilderList
public List<Onnx.GraphProto.Builder> getGraphsBuilderList()
list of graph
repeated .onnx.GraphProto graphs = 11;
-
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>
-
-