Package ai.onnx.proto
Class OnnxMl.TensorAnnotation.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderType>
com.google.protobuf.GeneratedMessageV3.Builder<OnnxMl.TensorAnnotation.Builder>
ai.onnx.proto.OnnxMl.TensorAnnotation.Builder
- All Implemented Interfaces:
OnnxMl.TensorAnnotationOrBuilder
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
- Enclosing class:
- OnnxMl.TensorAnnotation
public static final class OnnxMl.TensorAnnotation.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<OnnxMl.TensorAnnotation.Builder>
implements OnnxMl.TensorAnnotationOrBuilder
Protobuf type
onnx.TensorAnnotation
-
Method Summary
Modifier and TypeMethodDescriptionaddAllQuantParameterTensorNames
(Iterable<? extends OnnxMl.StringStringEntryProto> values) <key, value> pairs to annotate tensor specified by <tensor_name> above.addQuantParameterTensorNames
(int index, OnnxMl.StringStringEntryProto value) <key, value> pairs to annotate tensor specified by <tensor_name> above.addQuantParameterTensorNames
(int index, OnnxMl.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
(OnnxMl.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.Descriptor
com.google.protobuf.Descriptors.Descriptor
getQuantParameterTensorNames
(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 OnnxMl.StringStringEntryProtoOrBuilder>
<key, value> pairs to annotate tensor specified by <tensor_name> above.optional string tensor_name = 1;
com.google.protobuf.ByteString
optional string tensor_name = 1;
boolean
optional string tensor_name = 1;
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
final boolean
mergeFrom
(OnnxMl.TensorAnnotation other) mergeFrom
(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom
(com.google.protobuf.Message other) mergeUnknownFields
(com.google.protobuf.UnknownFieldSet unknownFields) removeQuantParameterTensorNames
(int index) <key, value> pairs to annotate tensor specified by <tensor_name> above.setQuantParameterTensorNames
(int index, OnnxMl.StringStringEntryProto value) <key, value> pairs to annotate tensor specified by <tensor_name> above.setQuantParameterTensorNames
(int index, OnnxMl.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, 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.TensorAnnotation.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.TensorAnnotation.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.TensorAnnotation.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.TensorAnnotation.Builder>
-
setField
public OnnxMl.TensorAnnotation.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.TensorAnnotation.Builder>
-
clearField
public OnnxMl.TensorAnnotation.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.TensorAnnotation.Builder>
-
clearOneof
public OnnxMl.TensorAnnotation.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.TensorAnnotation.Builder>
-
setRepeatedField
public OnnxMl.TensorAnnotation.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.TensorAnnotation.Builder>
-
addRepeatedField
public OnnxMl.TensorAnnotation.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.TensorAnnotation.Builder>
-
mergeFrom
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<OnnxMl.TensorAnnotation.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<OnnxMl.TensorAnnotation.Builder>
-
mergeFrom
public OnnxMl.TensorAnnotation.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.TensorAnnotation.Builder>
- Throws:
IOException
-
hasTensorName
public boolean hasTensorName()optional string tensor_name = 1;
- Specified by:
hasTensorName
in interfaceOnnxMl.TensorAnnotationOrBuilder
- Returns:
- Whether the tensorName field is set.
-
getTensorName
optional string tensor_name = 1;
- Specified by:
getTensorName
in interfaceOnnxMl.TensorAnnotationOrBuilder
- Returns:
- The tensorName.
-
getTensorNameBytes
public com.google.protobuf.ByteString getTensorNameBytes()optional string tensor_name = 1;
- Specified by:
getTensorNameBytes
in interfaceOnnxMl.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:
getQuantParameterTensorNamesList
in interfaceOnnxMl.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:
getQuantParameterTensorNamesCount
in interfaceOnnxMl.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:
getQuantParameterTensorNames
in interfaceOnnxMl.TensorAnnotationOrBuilder
-
setQuantParameterTensorNames
public OnnxMl.TensorAnnotation.Builder setQuantParameterTensorNames(int index, OnnxMl.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 OnnxMl.TensorAnnotation.Builder setQuantParameterTensorNames(int index, OnnxMl.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 OnnxMl.TensorAnnotation.Builder addQuantParameterTensorNames(OnnxMl.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 OnnxMl.TensorAnnotation.Builder addQuantParameterTensorNames(int index, OnnxMl.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 OnnxMl.TensorAnnotation.Builder addQuantParameterTensorNames(OnnxMl.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 OnnxMl.TensorAnnotation.Builder addQuantParameterTensorNames(int index, OnnxMl.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 OnnxMl.TensorAnnotation.Builder addAllQuantParameterTensorNames(Iterable<? extends OnnxMl.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:
getQuantParameterTensorNamesOrBuilder
in interfaceOnnxMl.TensorAnnotationOrBuilder
-
getQuantParameterTensorNamesOrBuilderList
public List<? extends OnnxMl.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:
getQuantParameterTensorNamesOrBuilderList
in interfaceOnnxMl.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 OnnxMl.TensorAnnotation.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.TensorAnnotation.Builder>
-
mergeUnknownFields
public final OnnxMl.TensorAnnotation.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.TensorAnnotation.Builder>
-