Package onnx
Class Onnx.TensorAnnotation.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderType>
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.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 Onnx.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
(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, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, 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.Message.Builder
mergeDelimitedFrom, mergeDelimitedFrom
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<Onnx.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<Onnx.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<Onnx.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<Onnx.TensorAnnotation.Builder>
-
setField
public Onnx.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<Onnx.TensorAnnotation.Builder>
-
clearField
public Onnx.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<Onnx.TensorAnnotation.Builder>
-
clearOneof
public Onnx.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<Onnx.TensorAnnotation.Builder>
-
setRepeatedField
public Onnx.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<Onnx.TensorAnnotation.Builder>
-
addRepeatedField
public Onnx.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<Onnx.TensorAnnotation.Builder>
-
mergeFrom
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<Onnx.TensorAnnotation.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in 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:
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.TensorAnnotation.Builder>
- Throws:
IOException
-
hasTensorName
public boolean hasTensorName()optional string tensor_name = 1;
- Specified by:
hasTensorName
in interfaceOnnx.TensorAnnotationOrBuilder
- Returns:
- Whether the tensorName field is set.
-
getTensorName
optional string tensor_name = 1;
- Specified by:
getTensorName
in interfaceOnnx.TensorAnnotationOrBuilder
- Returns:
- The tensorName.
-
getTensorNameBytes
public com.google.protobuf.ByteString getTensorNameBytes()optional string tensor_name = 1;
- Specified by:
getTensorNameBytes
in 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:
getQuantParameterTensorNamesList
in 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:
getQuantParameterTensorNamesCount
in 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:
getQuantParameterTensorNames
in 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:
getQuantParameterTensorNamesOrBuilder
in 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:
getQuantParameterTensorNamesOrBuilderList
in 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:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<Onnx.TensorAnnotation.Builder>
-
mergeUnknownFields
public final Onnx.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<Onnx.TensorAnnotation.Builder>
-