public static final class OnnxProto3.AttributeProto.Builder extends com.github.os72.protobuf351.GeneratedMessageV3.Builder<OnnxProto3.AttributeProto.Builder> implements OnnxProto3.AttributeProtoOrBuilder
A named attribute containing either singular float, integer, string and tensor values, or repeated float, integer, string 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
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
public static final com.github.os72.protobuf351.Descriptors.Descriptor getDescriptor()
protected com.github.os72.protobuf351.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class com.github.os72.protobuf351.GeneratedMessageV3.Builder<OnnxProto3.AttributeProto.Builder>
public OnnxProto3.AttributeProto.Builder clear()
clear
in interface com.github.os72.protobuf351.Message.Builder
clear
in interface com.github.os72.protobuf351.MessageLite.Builder
clear
in class com.github.os72.protobuf351.GeneratedMessageV3.Builder<OnnxProto3.AttributeProto.Builder>
public com.github.os72.protobuf351.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface com.github.os72.protobuf351.Message.Builder
getDescriptorForType
in interface com.github.os72.protobuf351.MessageOrBuilder
getDescriptorForType
in class com.github.os72.protobuf351.GeneratedMessageV3.Builder<OnnxProto3.AttributeProto.Builder>
public OnnxProto3.AttributeProto getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.github.os72.protobuf351.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.github.os72.protobuf351.MessageOrBuilder
public OnnxProto3.AttributeProto build()
build
in interface com.github.os72.protobuf351.Message.Builder
build
in interface com.github.os72.protobuf351.MessageLite.Builder
public OnnxProto3.AttributeProto buildPartial()
buildPartial
in interface com.github.os72.protobuf351.Message.Builder
buildPartial
in interface com.github.os72.protobuf351.MessageLite.Builder
public OnnxProto3.AttributeProto.Builder clone()
clone
in interface com.github.os72.protobuf351.Message.Builder
clone
in interface com.github.os72.protobuf351.MessageLite.Builder
clone
in class com.github.os72.protobuf351.GeneratedMessageV3.Builder<OnnxProto3.AttributeProto.Builder>
public OnnxProto3.AttributeProto.Builder setField(com.github.os72.protobuf351.Descriptors.FieldDescriptor field, Object value)
setField
in interface com.github.os72.protobuf351.Message.Builder
setField
in class com.github.os72.protobuf351.GeneratedMessageV3.Builder<OnnxProto3.AttributeProto.Builder>
public OnnxProto3.AttributeProto.Builder clearField(com.github.os72.protobuf351.Descriptors.FieldDescriptor field)
clearField
in interface com.github.os72.protobuf351.Message.Builder
clearField
in class com.github.os72.protobuf351.GeneratedMessageV3.Builder<OnnxProto3.AttributeProto.Builder>
public OnnxProto3.AttributeProto.Builder clearOneof(com.github.os72.protobuf351.Descriptors.OneofDescriptor oneof)
clearOneof
in interface com.github.os72.protobuf351.Message.Builder
clearOneof
in class com.github.os72.protobuf351.GeneratedMessageV3.Builder<OnnxProto3.AttributeProto.Builder>
public OnnxProto3.AttributeProto.Builder setRepeatedField(com.github.os72.protobuf351.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField
in interface com.github.os72.protobuf351.Message.Builder
setRepeatedField
in class com.github.os72.protobuf351.GeneratedMessageV3.Builder<OnnxProto3.AttributeProto.Builder>
public OnnxProto3.AttributeProto.Builder addRepeatedField(com.github.os72.protobuf351.Descriptors.FieldDescriptor field, Object value)
addRepeatedField
in interface com.github.os72.protobuf351.Message.Builder
addRepeatedField
in class com.github.os72.protobuf351.GeneratedMessageV3.Builder<OnnxProto3.AttributeProto.Builder>
public OnnxProto3.AttributeProto.Builder mergeFrom(com.github.os72.protobuf351.Message other)
mergeFrom
in interface com.github.os72.protobuf351.Message.Builder
mergeFrom
in class com.github.os72.protobuf351.AbstractMessage.Builder<OnnxProto3.AttributeProto.Builder>
public OnnxProto3.AttributeProto.Builder mergeFrom(OnnxProto3.AttributeProto other)
public final boolean isInitialized()
isInitialized
in interface com.github.os72.protobuf351.MessageLiteOrBuilder
isInitialized
in class com.github.os72.protobuf351.GeneratedMessageV3.Builder<OnnxProto3.AttributeProto.Builder>
public OnnxProto3.AttributeProto.Builder mergeFrom(com.github.os72.protobuf351.CodedInputStream input, com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom
in interface com.github.os72.protobuf351.Message.Builder
mergeFrom
in interface com.github.os72.protobuf351.MessageLite.Builder
mergeFrom
in class com.github.os72.protobuf351.AbstractMessage.Builder<OnnxProto3.AttributeProto.Builder>
IOException
public String getName()
The name field MUST be present for this version of the IR.
string name = 1;
getName
in interface OnnxProto3.AttributeProtoOrBuilder
public com.github.os72.protobuf351.ByteString getNameBytes()
The name field MUST be present for this version of the IR.
string name = 1;
getNameBytes
in interface OnnxProto3.AttributeProtoOrBuilder
public OnnxProto3.AttributeProto.Builder setName(String value)
The name field MUST be present for this version of the IR.
string name = 1;
public OnnxProto3.AttributeProto.Builder clearName()
The name field MUST be present for this version of the IR.
string name = 1;
public OnnxProto3.AttributeProto.Builder setNameBytes(com.github.os72.protobuf351.ByteString value)
The name field MUST be present for this version of the IR.
string name = 1;
public String getDocString()
A human-readable documentation for this attribute. Markdown is allowed.
string doc_string = 13;
getDocString
in interface OnnxProto3.AttributeProtoOrBuilder
public com.github.os72.protobuf351.ByteString getDocStringBytes()
A human-readable documentation for this attribute. Markdown is allowed.
string doc_string = 13;
getDocStringBytes
in interface OnnxProto3.AttributeProtoOrBuilder
public OnnxProto3.AttributeProto.Builder setDocString(String value)
A human-readable documentation for this attribute. Markdown is allowed.
string doc_string = 13;
public OnnxProto3.AttributeProto.Builder clearDocString()
A human-readable documentation for this attribute. Markdown is allowed.
string doc_string = 13;
public OnnxProto3.AttributeProto.Builder setDocStringBytes(com.github.os72.protobuf351.ByteString value)
A human-readable documentation for this attribute. Markdown is allowed.
string doc_string = 13;
public int getTypeValue()
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.
.onnx.AttributeProto.AttributeType type = 20;
getTypeValue
in interface OnnxProto3.AttributeProtoOrBuilder
public OnnxProto3.AttributeProto.Builder setTypeValue(int 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.
.onnx.AttributeProto.AttributeType type = 20;
public OnnxProto3.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.
.onnx.AttributeProto.AttributeType type = 20;
getType
in interface OnnxProto3.AttributeProtoOrBuilder
public OnnxProto3.AttributeProto.Builder setType(OnnxProto3.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.
.onnx.AttributeProto.AttributeType type = 20;
public OnnxProto3.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.
.onnx.AttributeProto.AttributeType type = 20;
public float getF()
Exactly ONE of the following fields must be present for this version of the IR
float f = 2;
getF
in interface OnnxProto3.AttributeProtoOrBuilder
public OnnxProto3.AttributeProto.Builder setF(float value)
Exactly ONE of the following fields must be present for this version of the IR
float f = 2;
public OnnxProto3.AttributeProto.Builder clearF()
Exactly ONE of the following fields must be present for this version of the IR
float f = 2;
public long getI()
int
int64 i = 3;
getI
in interface OnnxProto3.AttributeProtoOrBuilder
public OnnxProto3.AttributeProto.Builder setI(long value)
int
int64 i = 3;
public OnnxProto3.AttributeProto.Builder clearI()
int
int64 i = 3;
public com.github.os72.protobuf351.ByteString getS()
UTF-8 string
bytes s = 4;
getS
in interface OnnxProto3.AttributeProtoOrBuilder
public OnnxProto3.AttributeProto.Builder setS(com.github.os72.protobuf351.ByteString value)
UTF-8 string
bytes s = 4;
public OnnxProto3.AttributeProto.Builder clearS()
UTF-8 string
bytes s = 4;
public boolean hasT()
tensor value
.onnx.TensorProto t = 5;
hasT
in interface OnnxProto3.AttributeProtoOrBuilder
public OnnxProto3.TensorProto getT()
tensor value
.onnx.TensorProto t = 5;
getT
in interface OnnxProto3.AttributeProtoOrBuilder
public OnnxProto3.AttributeProto.Builder setT(OnnxProto3.TensorProto value)
tensor value
.onnx.TensorProto t = 5;
public OnnxProto3.AttributeProto.Builder setT(OnnxProto3.TensorProto.Builder builderForValue)
tensor value
.onnx.TensorProto t = 5;
public OnnxProto3.AttributeProto.Builder mergeT(OnnxProto3.TensorProto value)
tensor value
.onnx.TensorProto t = 5;
public OnnxProto3.AttributeProto.Builder clearT()
tensor value
.onnx.TensorProto t = 5;
public OnnxProto3.TensorProto.Builder getTBuilder()
tensor value
.onnx.TensorProto t = 5;
public OnnxProto3.TensorProtoOrBuilder getTOrBuilder()
tensor value
.onnx.TensorProto t = 5;
getTOrBuilder
in interface OnnxProto3.AttributeProtoOrBuilder
public boolean hasG()
graph
.onnx.GraphProto g = 6;
hasG
in interface OnnxProto3.AttributeProtoOrBuilder
public OnnxProto3.GraphProto getG()
graph
.onnx.GraphProto g = 6;
getG
in interface OnnxProto3.AttributeProtoOrBuilder
public OnnxProto3.AttributeProto.Builder setG(OnnxProto3.GraphProto value)
graph
.onnx.GraphProto g = 6;
public OnnxProto3.AttributeProto.Builder setG(OnnxProto3.GraphProto.Builder builderForValue)
graph
.onnx.GraphProto g = 6;
public OnnxProto3.AttributeProto.Builder mergeG(OnnxProto3.GraphProto value)
graph
.onnx.GraphProto g = 6;
public OnnxProto3.AttributeProto.Builder clearG()
graph
.onnx.GraphProto g = 6;
public OnnxProto3.GraphProto.Builder getGBuilder()
graph
.onnx.GraphProto g = 6;
public OnnxProto3.GraphProtoOrBuilder getGOrBuilder()
graph
.onnx.GraphProto g = 6;
getGOrBuilder
in interface OnnxProto3.AttributeProtoOrBuilder
public List<Float> getFloatsList()
list of floats
repeated float floats = 7;
getFloatsList
in interface OnnxProto3.AttributeProtoOrBuilder
public int getFloatsCount()
list of floats
repeated float floats = 7;
getFloatsCount
in interface OnnxProto3.AttributeProtoOrBuilder
public float getFloats(int index)
list of floats
repeated float floats = 7;
getFloats
in interface OnnxProto3.AttributeProtoOrBuilder
public OnnxProto3.AttributeProto.Builder setFloats(int index, float value)
list of floats
repeated float floats = 7;
public OnnxProto3.AttributeProto.Builder addFloats(float value)
list of floats
repeated float floats = 7;
public OnnxProto3.AttributeProto.Builder addAllFloats(Iterable<? extends Float> values)
list of floats
repeated float floats = 7;
public OnnxProto3.AttributeProto.Builder clearFloats()
list of floats
repeated float floats = 7;
public List<Long> getIntsList()
list of ints
repeated int64 ints = 8;
getIntsList
in interface OnnxProto3.AttributeProtoOrBuilder
public int getIntsCount()
list of ints
repeated int64 ints = 8;
getIntsCount
in interface OnnxProto3.AttributeProtoOrBuilder
public long getInts(int index)
list of ints
repeated int64 ints = 8;
getInts
in interface OnnxProto3.AttributeProtoOrBuilder
public OnnxProto3.AttributeProto.Builder setInts(int index, long value)
list of ints
repeated int64 ints = 8;
public OnnxProto3.AttributeProto.Builder addInts(long value)
list of ints
repeated int64 ints = 8;
public OnnxProto3.AttributeProto.Builder addAllInts(Iterable<? extends Long> values)
list of ints
repeated int64 ints = 8;
public OnnxProto3.AttributeProto.Builder clearInts()
list of ints
repeated int64 ints = 8;
public List<com.github.os72.protobuf351.ByteString> getStringsList()
list of UTF-8 strings
repeated bytes strings = 9;
getStringsList
in interface OnnxProto3.AttributeProtoOrBuilder
public int getStringsCount()
list of UTF-8 strings
repeated bytes strings = 9;
getStringsCount
in interface OnnxProto3.AttributeProtoOrBuilder
public com.github.os72.protobuf351.ByteString getStrings(int index)
list of UTF-8 strings
repeated bytes strings = 9;
getStrings
in interface OnnxProto3.AttributeProtoOrBuilder
public OnnxProto3.AttributeProto.Builder setStrings(int index, com.github.os72.protobuf351.ByteString value)
list of UTF-8 strings
repeated bytes strings = 9;
public OnnxProto3.AttributeProto.Builder addStrings(com.github.os72.protobuf351.ByteString value)
list of UTF-8 strings
repeated bytes strings = 9;
public OnnxProto3.AttributeProto.Builder addAllStrings(Iterable<? extends com.github.os72.protobuf351.ByteString> values)
list of UTF-8 strings
repeated bytes strings = 9;
public OnnxProto3.AttributeProto.Builder clearStrings()
list of UTF-8 strings
repeated bytes strings = 9;
public List<OnnxProto3.TensorProto> getTensorsList()
list of tensors
repeated .onnx.TensorProto tensors = 10;
getTensorsList
in interface OnnxProto3.AttributeProtoOrBuilder
public int getTensorsCount()
list of tensors
repeated .onnx.TensorProto tensors = 10;
getTensorsCount
in interface OnnxProto3.AttributeProtoOrBuilder
public OnnxProto3.TensorProto getTensors(int index)
list of tensors
repeated .onnx.TensorProto tensors = 10;
getTensors
in interface OnnxProto3.AttributeProtoOrBuilder
public OnnxProto3.AttributeProto.Builder setTensors(int index, OnnxProto3.TensorProto value)
list of tensors
repeated .onnx.TensorProto tensors = 10;
public OnnxProto3.AttributeProto.Builder setTensors(int index, OnnxProto3.TensorProto.Builder builderForValue)
list of tensors
repeated .onnx.TensorProto tensors = 10;
public OnnxProto3.AttributeProto.Builder addTensors(OnnxProto3.TensorProto value)
list of tensors
repeated .onnx.TensorProto tensors = 10;
public OnnxProto3.AttributeProto.Builder addTensors(int index, OnnxProto3.TensorProto value)
list of tensors
repeated .onnx.TensorProto tensors = 10;
public OnnxProto3.AttributeProto.Builder addTensors(OnnxProto3.TensorProto.Builder builderForValue)
list of tensors
repeated .onnx.TensorProto tensors = 10;
public OnnxProto3.AttributeProto.Builder addTensors(int index, OnnxProto3.TensorProto.Builder builderForValue)
list of tensors
repeated .onnx.TensorProto tensors = 10;
public OnnxProto3.AttributeProto.Builder addAllTensors(Iterable<? extends OnnxProto3.TensorProto> values)
list of tensors
repeated .onnx.TensorProto tensors = 10;
public OnnxProto3.AttributeProto.Builder clearTensors()
list of tensors
repeated .onnx.TensorProto tensors = 10;
public OnnxProto3.AttributeProto.Builder removeTensors(int index)
list of tensors
repeated .onnx.TensorProto tensors = 10;
public OnnxProto3.TensorProto.Builder getTensorsBuilder(int index)
list of tensors
repeated .onnx.TensorProto tensors = 10;
public OnnxProto3.TensorProtoOrBuilder getTensorsOrBuilder(int index)
list of tensors
repeated .onnx.TensorProto tensors = 10;
getTensorsOrBuilder
in interface OnnxProto3.AttributeProtoOrBuilder
public List<? extends OnnxProto3.TensorProtoOrBuilder> getTensorsOrBuilderList()
list of tensors
repeated .onnx.TensorProto tensors = 10;
getTensorsOrBuilderList
in interface OnnxProto3.AttributeProtoOrBuilder
public OnnxProto3.TensorProto.Builder addTensorsBuilder()
list of tensors
repeated .onnx.TensorProto tensors = 10;
public OnnxProto3.TensorProto.Builder addTensorsBuilder(int index)
list of tensors
repeated .onnx.TensorProto tensors = 10;
public List<OnnxProto3.TensorProto.Builder> getTensorsBuilderList()
list of tensors
repeated .onnx.TensorProto tensors = 10;
public List<OnnxProto3.GraphProto> getGraphsList()
list of graph
repeated .onnx.GraphProto graphs = 11;
getGraphsList
in interface OnnxProto3.AttributeProtoOrBuilder
public int getGraphsCount()
list of graph
repeated .onnx.GraphProto graphs = 11;
getGraphsCount
in interface OnnxProto3.AttributeProtoOrBuilder
public OnnxProto3.GraphProto getGraphs(int index)
list of graph
repeated .onnx.GraphProto graphs = 11;
getGraphs
in interface OnnxProto3.AttributeProtoOrBuilder
public OnnxProto3.AttributeProto.Builder setGraphs(int index, OnnxProto3.GraphProto value)
list of graph
repeated .onnx.GraphProto graphs = 11;
public OnnxProto3.AttributeProto.Builder setGraphs(int index, OnnxProto3.GraphProto.Builder builderForValue)
list of graph
repeated .onnx.GraphProto graphs = 11;
public OnnxProto3.AttributeProto.Builder addGraphs(OnnxProto3.GraphProto value)
list of graph
repeated .onnx.GraphProto graphs = 11;
public OnnxProto3.AttributeProto.Builder addGraphs(int index, OnnxProto3.GraphProto value)
list of graph
repeated .onnx.GraphProto graphs = 11;
public OnnxProto3.AttributeProto.Builder addGraphs(OnnxProto3.GraphProto.Builder builderForValue)
list of graph
repeated .onnx.GraphProto graphs = 11;
public OnnxProto3.AttributeProto.Builder addGraphs(int index, OnnxProto3.GraphProto.Builder builderForValue)
list of graph
repeated .onnx.GraphProto graphs = 11;
public OnnxProto3.AttributeProto.Builder addAllGraphs(Iterable<? extends OnnxProto3.GraphProto> values)
list of graph
repeated .onnx.GraphProto graphs = 11;
public OnnxProto3.AttributeProto.Builder clearGraphs()
list of graph
repeated .onnx.GraphProto graphs = 11;
public OnnxProto3.AttributeProto.Builder removeGraphs(int index)
list of graph
repeated .onnx.GraphProto graphs = 11;
public OnnxProto3.GraphProto.Builder getGraphsBuilder(int index)
list of graph
repeated .onnx.GraphProto graphs = 11;
public OnnxProto3.GraphProtoOrBuilder getGraphsOrBuilder(int index)
list of graph
repeated .onnx.GraphProto graphs = 11;
getGraphsOrBuilder
in interface OnnxProto3.AttributeProtoOrBuilder
public List<? extends OnnxProto3.GraphProtoOrBuilder> getGraphsOrBuilderList()
list of graph
repeated .onnx.GraphProto graphs = 11;
getGraphsOrBuilderList
in interface OnnxProto3.AttributeProtoOrBuilder
public OnnxProto3.GraphProto.Builder addGraphsBuilder()
list of graph
repeated .onnx.GraphProto graphs = 11;
public OnnxProto3.GraphProto.Builder addGraphsBuilder(int index)
list of graph
repeated .onnx.GraphProto graphs = 11;
public List<OnnxProto3.GraphProto.Builder> getGraphsBuilderList()
list of graph
repeated .onnx.GraphProto graphs = 11;
public final OnnxProto3.AttributeProto.Builder setUnknownFields(com.github.os72.protobuf351.UnknownFieldSet unknownFields)
setUnknownFields
in interface com.github.os72.protobuf351.Message.Builder
setUnknownFields
in class com.github.os72.protobuf351.GeneratedMessageV3.Builder<OnnxProto3.AttributeProto.Builder>
public final OnnxProto3.AttributeProto.Builder mergeUnknownFields(com.github.os72.protobuf351.UnknownFieldSet unknownFields)
mergeUnknownFields
in interface com.github.os72.protobuf351.Message.Builder
mergeUnknownFields
in class com.github.os72.protobuf351.GeneratedMessageV3.Builder<OnnxProto3.AttributeProto.Builder>
Copyright © 2018. All rights reserved.