Package onnx
Class Onnx.TensorAnnotation.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<Onnx.TensorAnnotation.Builder>
onnx.Onnx.TensorAnnotation.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable,Onnx.TensorAnnotationOrBuilder
- Enclosing class:
- Onnx.TensorAnnotation
public static final class Onnx.TensorAnnotation.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<Onnx.TensorAnnotation.Builder>
implements Onnx.TensorAnnotationOrBuilder
Protobuf type
onnx.TensorAnnotation-
Method Summary
Modifier and TypeMethodDescriptionaddAllQuantParameterTensorNames(Iterable<? extends Onnx.StringStringEntryProto> values) <key, value> pairs to annotate tensor specified by <tensor_name> above.addQuantParameterTensorNames(int index, Onnx.StringStringEntryProto value) <key, value> pairs to annotate tensor specified by <tensor_name> above.addQuantParameterTensorNames(int index, Onnx.StringStringEntryProto.Builder builderForValue) <key, value> pairs to annotate tensor specified by <tensor_name> above.<key, value> pairs to annotate tensor specified by <tensor_name> above.addQuantParameterTensorNames(Onnx.StringStringEntryProto.Builder builderForValue) <key, value> pairs to annotate tensor specified by <tensor_name> above.<key, value> pairs to annotate tensor specified by <tensor_name> above.addQuantParameterTensorNamesBuilder(int index) <key, value> pairs to annotate tensor specified by <tensor_name> above.addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()clearField(com.google.protobuf.Descriptors.FieldDescriptor field) clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) <key, value> pairs to annotate tensor specified by <tensor_name> above.optional string tensor_name = 1;clone()static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetQuantParameterTensorNames(int index) <key, value> pairs to annotate tensor specified by <tensor_name> above.getQuantParameterTensorNamesBuilder(int index) <key, value> pairs to annotate tensor specified by <tensor_name> above.<key, value> pairs to annotate tensor specified by <tensor_name> above.int<key, value> pairs to annotate tensor specified by <tensor_name> above.<key, value> pairs to annotate tensor specified by <tensor_name> above.getQuantParameterTensorNamesOrBuilder(int index) <key, value> pairs to annotate tensor specified by <tensor_name> above.List<? extends Onnx.StringStringEntryProtoOrBuilder><key, value> pairs to annotate tensor specified by <tensor_name> above.optional string tensor_name = 1;com.google.protobuf.ByteStringoptional string tensor_name = 1;booleanoptional string tensor_name = 1;protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeFrom(Onnx.TensorAnnotation other) mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) removeQuantParameterTensorNames(int index) <key, value> pairs to annotate tensor specified by <tensor_name> above.setQuantParameterTensorNames(int index, Onnx.StringStringEntryProto value) <key, value> pairs to annotate tensor specified by <tensor_name> above.setQuantParameterTensorNames(int index, Onnx.StringStringEntryProto.Builder builderForValue) <key, value> pairs to annotate tensor specified by <tensor_name> above.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setTensorName(String value) optional string tensor_name = 1;setTensorNameBytes(com.google.protobuf.ByteString value) optional string tensor_name = 1;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, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<Onnx.TensorAnnotation.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<Onnx.TensorAnnotation.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<Onnx.TensorAnnotation.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<Onnx.TensorAnnotation.Builder>
-
setField
public Onnx.TensorAnnotation.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Onnx.TensorAnnotation.Builder>
-
clearField
public Onnx.TensorAnnotation.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) - Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Onnx.TensorAnnotation.Builder>
-
clearOneof
public Onnx.TensorAnnotation.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) - Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<Onnx.TensorAnnotation.Builder>
-
setRepeatedField
public Onnx.TensorAnnotation.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) - Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Onnx.TensorAnnotation.Builder>
-
addRepeatedField
public Onnx.TensorAnnotation.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Onnx.TensorAnnotation.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Onnx.TensorAnnotation.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<Onnx.TensorAnnotation.Builder>
-
mergeFrom
public Onnx.TensorAnnotation.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Onnx.TensorAnnotation.Builder>- Throws:
IOException
-
hasTensorName
public boolean hasTensorName()optional string tensor_name = 1;- Specified by:
hasTensorNamein interfaceOnnx.TensorAnnotationOrBuilder- Returns:
- Whether the tensorName field is set.
-
getTensorName
optional string tensor_name = 1;- Specified by:
getTensorNamein interfaceOnnx.TensorAnnotationOrBuilder- Returns:
- The tensorName.
-
getTensorNameBytes
public com.google.protobuf.ByteString getTensorNameBytes()optional string tensor_name = 1;- Specified by:
getTensorNameBytesin interfaceOnnx.TensorAnnotationOrBuilder- Returns:
- The bytes for tensorName.
-
setTensorName
optional string tensor_name = 1;- Parameters:
value- The tensorName to set.- Returns:
- This builder for chaining.
-
clearTensorName
optional string tensor_name = 1;- Returns:
- This builder for chaining.
-
setTensorNameBytes
optional string tensor_name = 1;- Parameters:
value- The bytes for tensorName to set.- Returns:
- This builder for chaining.
-
getQuantParameterTensorNamesList
<key, value> pairs to annotate tensor specified by <tensor_name> above. The keys used in the mapping below must be pre-defined in ONNX spec. For example, for 8-bit linear quantization case, 'SCALE_TENSOR', 'ZERO_POINT_TENSOR' will be pre-defined as quantization parameter keys.
repeated .onnx.StringStringEntryProto quant_parameter_tensor_names = 2;- Specified by:
getQuantParameterTensorNamesListin interfaceOnnx.TensorAnnotationOrBuilder
-
getQuantParameterTensorNamesCount
public int getQuantParameterTensorNamesCount()<key, value> pairs to annotate tensor specified by <tensor_name> above. The keys used in the mapping below must be pre-defined in ONNX spec. For example, for 8-bit linear quantization case, 'SCALE_TENSOR', 'ZERO_POINT_TENSOR' will be pre-defined as quantization parameter keys.
repeated .onnx.StringStringEntryProto quant_parameter_tensor_names = 2;- Specified by:
getQuantParameterTensorNamesCountin interfaceOnnx.TensorAnnotationOrBuilder
-
getQuantParameterTensorNames
<key, value> pairs to annotate tensor specified by <tensor_name> above. The keys used in the mapping below must be pre-defined in ONNX spec. For example, for 8-bit linear quantization case, 'SCALE_TENSOR', 'ZERO_POINT_TENSOR' will be pre-defined as quantization parameter keys.
repeated .onnx.StringStringEntryProto quant_parameter_tensor_names = 2;- Specified by:
getQuantParameterTensorNamesin interfaceOnnx.TensorAnnotationOrBuilder
-
setQuantParameterTensorNames
public Onnx.TensorAnnotation.Builder setQuantParameterTensorNames(int index, Onnx.StringStringEntryProto value) <key, value> pairs to annotate tensor specified by <tensor_name> above. The keys used in the mapping below must be pre-defined in ONNX spec. For example, for 8-bit linear quantization case, 'SCALE_TENSOR', 'ZERO_POINT_TENSOR' will be pre-defined as quantization parameter keys.
repeated .onnx.StringStringEntryProto quant_parameter_tensor_names = 2; -
setQuantParameterTensorNames
public Onnx.TensorAnnotation.Builder setQuantParameterTensorNames(int index, Onnx.StringStringEntryProto.Builder builderForValue) <key, value> pairs to annotate tensor specified by <tensor_name> above. The keys used in the mapping below must be pre-defined in ONNX spec. For example, for 8-bit linear quantization case, 'SCALE_TENSOR', 'ZERO_POINT_TENSOR' will be pre-defined as quantization parameter keys.
repeated .onnx.StringStringEntryProto quant_parameter_tensor_names = 2; -
addQuantParameterTensorNames
public Onnx.TensorAnnotation.Builder addQuantParameterTensorNames(Onnx.StringStringEntryProto value) <key, value> pairs to annotate tensor specified by <tensor_name> above. The keys used in the mapping below must be pre-defined in ONNX spec. For example, for 8-bit linear quantization case, 'SCALE_TENSOR', 'ZERO_POINT_TENSOR' will be pre-defined as quantization parameter keys.
repeated .onnx.StringStringEntryProto quant_parameter_tensor_names = 2; -
addQuantParameterTensorNames
public Onnx.TensorAnnotation.Builder addQuantParameterTensorNames(int index, Onnx.StringStringEntryProto value) <key, value> pairs to annotate tensor specified by <tensor_name> above. The keys used in the mapping below must be pre-defined in ONNX spec. For example, for 8-bit linear quantization case, 'SCALE_TENSOR', 'ZERO_POINT_TENSOR' will be pre-defined as quantization parameter keys.
repeated .onnx.StringStringEntryProto quant_parameter_tensor_names = 2; -
addQuantParameterTensorNames
public Onnx.TensorAnnotation.Builder addQuantParameterTensorNames(Onnx.StringStringEntryProto.Builder builderForValue) <key, value> pairs to annotate tensor specified by <tensor_name> above. The keys used in the mapping below must be pre-defined in ONNX spec. For example, for 8-bit linear quantization case, 'SCALE_TENSOR', 'ZERO_POINT_TENSOR' will be pre-defined as quantization parameter keys.
repeated .onnx.StringStringEntryProto quant_parameter_tensor_names = 2; -
addQuantParameterTensorNames
public Onnx.TensorAnnotation.Builder addQuantParameterTensorNames(int index, Onnx.StringStringEntryProto.Builder builderForValue) <key, value> pairs to annotate tensor specified by <tensor_name> above. The keys used in the mapping below must be pre-defined in ONNX spec. For example, for 8-bit linear quantization case, 'SCALE_TENSOR', 'ZERO_POINT_TENSOR' will be pre-defined as quantization parameter keys.
repeated .onnx.StringStringEntryProto quant_parameter_tensor_names = 2; -
addAllQuantParameterTensorNames
public Onnx.TensorAnnotation.Builder addAllQuantParameterTensorNames(Iterable<? extends Onnx.StringStringEntryProto> values) <key, value> pairs to annotate tensor specified by <tensor_name> above. The keys used in the mapping below must be pre-defined in ONNX spec. For example, for 8-bit linear quantization case, 'SCALE_TENSOR', 'ZERO_POINT_TENSOR' will be pre-defined as quantization parameter keys.
repeated .onnx.StringStringEntryProto quant_parameter_tensor_names = 2; -
clearQuantParameterTensorNames
<key, value> pairs to annotate tensor specified by <tensor_name> above. The keys used in the mapping below must be pre-defined in ONNX spec. For example, for 8-bit linear quantization case, 'SCALE_TENSOR', 'ZERO_POINT_TENSOR' will be pre-defined as quantization parameter keys.
repeated .onnx.StringStringEntryProto quant_parameter_tensor_names = 2; -
removeQuantParameterTensorNames
<key, value> pairs to annotate tensor specified by <tensor_name> above. The keys used in the mapping below must be pre-defined in ONNX spec. For example, for 8-bit linear quantization case, 'SCALE_TENSOR', 'ZERO_POINT_TENSOR' will be pre-defined as quantization parameter keys.
repeated .onnx.StringStringEntryProto quant_parameter_tensor_names = 2; -
getQuantParameterTensorNamesBuilder
<key, value> pairs to annotate tensor specified by <tensor_name> above. The keys used in the mapping below must be pre-defined in ONNX spec. For example, for 8-bit linear quantization case, 'SCALE_TENSOR', 'ZERO_POINT_TENSOR' will be pre-defined as quantization parameter keys.
repeated .onnx.StringStringEntryProto quant_parameter_tensor_names = 2; -
getQuantParameterTensorNamesOrBuilder
<key, value> pairs to annotate tensor specified by <tensor_name> above. The keys used in the mapping below must be pre-defined in ONNX spec. For example, for 8-bit linear quantization case, 'SCALE_TENSOR', 'ZERO_POINT_TENSOR' will be pre-defined as quantization parameter keys.
repeated .onnx.StringStringEntryProto quant_parameter_tensor_names = 2;- Specified by:
getQuantParameterTensorNamesOrBuilderin interfaceOnnx.TensorAnnotationOrBuilder
-
getQuantParameterTensorNamesOrBuilderList
public List<? extends Onnx.StringStringEntryProtoOrBuilder> getQuantParameterTensorNamesOrBuilderList()<key, value> pairs to annotate tensor specified by <tensor_name> above. The keys used in the mapping below must be pre-defined in ONNX spec. For example, for 8-bit linear quantization case, 'SCALE_TENSOR', 'ZERO_POINT_TENSOR' will be pre-defined as quantization parameter keys.
repeated .onnx.StringStringEntryProto quant_parameter_tensor_names = 2;- Specified by:
getQuantParameterTensorNamesOrBuilderListin interfaceOnnx.TensorAnnotationOrBuilder
-
addQuantParameterTensorNamesBuilder
<key, value> pairs to annotate tensor specified by <tensor_name> above. The keys used in the mapping below must be pre-defined in ONNX spec. For example, for 8-bit linear quantization case, 'SCALE_TENSOR', 'ZERO_POINT_TENSOR' will be pre-defined as quantization parameter keys.
repeated .onnx.StringStringEntryProto quant_parameter_tensor_names = 2; -
addQuantParameterTensorNamesBuilder
<key, value> pairs to annotate tensor specified by <tensor_name> above. The keys used in the mapping below must be pre-defined in ONNX spec. For example, for 8-bit linear quantization case, 'SCALE_TENSOR', 'ZERO_POINT_TENSOR' will be pre-defined as quantization parameter keys.
repeated .onnx.StringStringEntryProto quant_parameter_tensor_names = 2; -
getQuantParameterTensorNamesBuilderList
<key, value> pairs to annotate tensor specified by <tensor_name> above. The keys used in the mapping below must be pre-defined in ONNX spec. For example, for 8-bit linear quantization case, 'SCALE_TENSOR', 'ZERO_POINT_TENSOR' will be pre-defined as quantization parameter keys.
repeated .onnx.StringStringEntryProto quant_parameter_tensor_names = 2; -
setUnknownFields
public final Onnx.TensorAnnotation.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Onnx.TensorAnnotation.Builder>
-
mergeUnknownFields
public final Onnx.TensorAnnotation.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Onnx.TensorAnnotation.Builder>
-