Package onnx
Class Onnx.TypeProto.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<Onnx.TypeProto.Builder>
onnx.Onnx.TypeProto.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable,Onnx.TypeProtoOrBuilder
- Enclosing class:
- Onnx.TypeProto
public static final class Onnx.TypeProto.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<Onnx.TypeProto.Builder>
implements Onnx.TypeProtoOrBuilder
Types The standard ONNX data types.Protobuf type
onnx.TypeProto-
Method Summary
Modifier and TypeMethodDescriptionaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()An optional denotation can be used to denote the whole type with a standard semantic description as to what is stored inside.clearField(com.google.protobuf.Descriptors.FieldDescriptor field) The type of a map.clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) The type of an optional.The type of a sequence.Type of the sparse tensorThe type of a tensor.clone()An optional denotation can be used to denote the whole type with a standard semantic description as to what is stored inside.com.google.protobuf.ByteStringAn optional denotation can be used to denote the whole type with a standard semantic description as to what is stored inside.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorThe type of a map.The type of a map.The type of a map.The type of an optional.The type of an optional.The type of an optional.The type of a sequence.The type of a sequence.The type of a sequence.Type of the sparse tensorType of the sparse tensorType of the sparse tensorThe type of a tensor.The type of a tensor.The type of a tensor.booleanAn optional denotation can be used to denote the whole type with a standard semantic description as to what is stored inside.booleanThe type of a map.booleanThe type of an optional.booleanThe type of a sequence.booleanType of the sparse tensorbooleanThe type of a tensor.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.TypeProto other) mergeMapType(Onnx.TypeProto.Map value) The type of a map.The type of an optional.The type of a sequence.Type of the sparse tensorThe type of a tensor.final Onnx.TypeProto.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) setDenotation(String value) An optional denotation can be used to denote the whole type with a standard semantic description as to what is stored inside.setDenotationBytes(com.google.protobuf.ByteString value) An optional denotation can be used to denote the whole type with a standard semantic description as to what is stored inside.setMapType(Onnx.TypeProto.Map value) The type of a map.setMapType(Onnx.TypeProto.Map.Builder builderForValue) The type of a map.The type of an optional.setOptionalType(Onnx.TypeProto.Optional.Builder builderForValue) The type of an optional.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) The type of a sequence.setSequenceType(Onnx.TypeProto.Sequence.Builder builderForValue) The type of a sequence.Type of the sparse tensorsetSparseTensorType(Onnx.TypeProto.SparseTensor.Builder builderForValue) Type of the sparse tensorThe type of a tensor.setTensorType(Onnx.TypeProto.Tensor.Builder builderForValue) The type of a tensor.final Onnx.TypeProto.BuildersetUnknownFields(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.TypeProto.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.TypeProto.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.TypeProto.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.TypeProto.Builder>
-
setField
public Onnx.TypeProto.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.TypeProto.Builder>
-
clearField
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Onnx.TypeProto.Builder>
-
clearOneof
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<Onnx.TypeProto.Builder>
-
setRepeatedField
public Onnx.TypeProto.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.TypeProto.Builder>
-
addRepeatedField
public Onnx.TypeProto.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.TypeProto.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Onnx.TypeProto.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<Onnx.TypeProto.Builder>
-
mergeFrom
public Onnx.TypeProto.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.TypeProto.Builder>- Throws:
IOException
-
getValueCase
- Specified by:
getValueCasein interfaceOnnx.TypeProtoOrBuilder
-
clearValue
-
hasTensorType
public boolean hasTensorType()The type of a tensor.
.onnx.TypeProto.Tensor tensor_type = 1;- Specified by:
hasTensorTypein interfaceOnnx.TypeProtoOrBuilder- Returns:
- Whether the tensorType field is set.
-
getTensorType
The type of a tensor.
.onnx.TypeProto.Tensor tensor_type = 1;- Specified by:
getTensorTypein interfaceOnnx.TypeProtoOrBuilder- Returns:
- The tensorType.
-
setTensorType
The type of a tensor.
.onnx.TypeProto.Tensor tensor_type = 1; -
setTensorType
The type of a tensor.
.onnx.TypeProto.Tensor tensor_type = 1; -
mergeTensorType
The type of a tensor.
.onnx.TypeProto.Tensor tensor_type = 1; -
clearTensorType
The type of a tensor.
.onnx.TypeProto.Tensor tensor_type = 1; -
getTensorTypeBuilder
The type of a tensor.
.onnx.TypeProto.Tensor tensor_type = 1; -
getTensorTypeOrBuilder
The type of a tensor.
.onnx.TypeProto.Tensor tensor_type = 1;- Specified by:
getTensorTypeOrBuilderin interfaceOnnx.TypeProtoOrBuilder
-
hasSequenceType
public boolean hasSequenceType()The type of a sequence.
.onnx.TypeProto.Sequence sequence_type = 4;- Specified by:
hasSequenceTypein interfaceOnnx.TypeProtoOrBuilder- Returns:
- Whether the sequenceType field is set.
-
getSequenceType
The type of a sequence.
.onnx.TypeProto.Sequence sequence_type = 4;- Specified by:
getSequenceTypein interfaceOnnx.TypeProtoOrBuilder- Returns:
- The sequenceType.
-
setSequenceType
The type of a sequence.
.onnx.TypeProto.Sequence sequence_type = 4; -
setSequenceType
The type of a sequence.
.onnx.TypeProto.Sequence sequence_type = 4; -
mergeSequenceType
The type of a sequence.
.onnx.TypeProto.Sequence sequence_type = 4; -
clearSequenceType
The type of a sequence.
.onnx.TypeProto.Sequence sequence_type = 4; -
getSequenceTypeBuilder
The type of a sequence.
.onnx.TypeProto.Sequence sequence_type = 4; -
getSequenceTypeOrBuilder
The type of a sequence.
.onnx.TypeProto.Sequence sequence_type = 4;- Specified by:
getSequenceTypeOrBuilderin interfaceOnnx.TypeProtoOrBuilder
-
hasMapType
public boolean hasMapType()The type of a map.
.onnx.TypeProto.Map map_type = 5;- Specified by:
hasMapTypein interfaceOnnx.TypeProtoOrBuilder- Returns:
- Whether the mapType field is set.
-
getMapType
The type of a map.
.onnx.TypeProto.Map map_type = 5;- Specified by:
getMapTypein interfaceOnnx.TypeProtoOrBuilder- Returns:
- The mapType.
-
setMapType
The type of a map.
.onnx.TypeProto.Map map_type = 5; -
setMapType
The type of a map.
.onnx.TypeProto.Map map_type = 5; -
mergeMapType
The type of a map.
.onnx.TypeProto.Map map_type = 5; -
clearMapType
The type of a map.
.onnx.TypeProto.Map map_type = 5; -
getMapTypeBuilder
The type of a map.
.onnx.TypeProto.Map map_type = 5; -
getMapTypeOrBuilder
The type of a map.
.onnx.TypeProto.Map map_type = 5;- Specified by:
getMapTypeOrBuilderin interfaceOnnx.TypeProtoOrBuilder
-
hasOptionalType
public boolean hasOptionalType()The type of an optional.
.onnx.TypeProto.Optional optional_type = 9;- Specified by:
hasOptionalTypein interfaceOnnx.TypeProtoOrBuilder- Returns:
- Whether the optionalType field is set.
-
getOptionalType
The type of an optional.
.onnx.TypeProto.Optional optional_type = 9;- Specified by:
getOptionalTypein interfaceOnnx.TypeProtoOrBuilder- Returns:
- The optionalType.
-
setOptionalType
The type of an optional.
.onnx.TypeProto.Optional optional_type = 9; -
setOptionalType
The type of an optional.
.onnx.TypeProto.Optional optional_type = 9; -
mergeOptionalType
The type of an optional.
.onnx.TypeProto.Optional optional_type = 9; -
clearOptionalType
The type of an optional.
.onnx.TypeProto.Optional optional_type = 9; -
getOptionalTypeBuilder
The type of an optional.
.onnx.TypeProto.Optional optional_type = 9; -
getOptionalTypeOrBuilder
The type of an optional.
.onnx.TypeProto.Optional optional_type = 9;- Specified by:
getOptionalTypeOrBuilderin interfaceOnnx.TypeProtoOrBuilder
-
hasSparseTensorType
public boolean hasSparseTensorType()Type of the sparse tensor
.onnx.TypeProto.SparseTensor sparse_tensor_type = 8;- Specified by:
hasSparseTensorTypein interfaceOnnx.TypeProtoOrBuilder- Returns:
- Whether the sparseTensorType field is set.
-
getSparseTensorType
Type of the sparse tensor
.onnx.TypeProto.SparseTensor sparse_tensor_type = 8;- Specified by:
getSparseTensorTypein interfaceOnnx.TypeProtoOrBuilder- Returns:
- The sparseTensorType.
-
setSparseTensorType
Type of the sparse tensor
.onnx.TypeProto.SparseTensor sparse_tensor_type = 8; -
setSparseTensorType
public Onnx.TypeProto.Builder setSparseTensorType(Onnx.TypeProto.SparseTensor.Builder builderForValue) Type of the sparse tensor
.onnx.TypeProto.SparseTensor sparse_tensor_type = 8; -
mergeSparseTensorType
Type of the sparse tensor
.onnx.TypeProto.SparseTensor sparse_tensor_type = 8; -
clearSparseTensorType
Type of the sparse tensor
.onnx.TypeProto.SparseTensor sparse_tensor_type = 8; -
getSparseTensorTypeBuilder
Type of the sparse tensor
.onnx.TypeProto.SparseTensor sparse_tensor_type = 8; -
getSparseTensorTypeOrBuilder
Type of the sparse tensor
.onnx.TypeProto.SparseTensor sparse_tensor_type = 8;- Specified by:
getSparseTensorTypeOrBuilderin interfaceOnnx.TypeProtoOrBuilder
-
hasDenotation
public boolean hasDenotation()An optional denotation can be used to denote the whole type with a standard semantic description as to what is stored inside. Refer to https://github.com/onnx/onnx/blob/main/docs/TypeDenotation.md#type-denotation-definition for pre-defined type denotations.
optional string denotation = 6;- Specified by:
hasDenotationin interfaceOnnx.TypeProtoOrBuilder- Returns:
- Whether the denotation field is set.
-
getDenotation
An optional denotation can be used to denote the whole type with a standard semantic description as to what is stored inside. Refer to https://github.com/onnx/onnx/blob/main/docs/TypeDenotation.md#type-denotation-definition for pre-defined type denotations.
optional string denotation = 6;- Specified by:
getDenotationin interfaceOnnx.TypeProtoOrBuilder- Returns:
- The denotation.
-
getDenotationBytes
public com.google.protobuf.ByteString getDenotationBytes()An optional denotation can be used to denote the whole type with a standard semantic description as to what is stored inside. Refer to https://github.com/onnx/onnx/blob/main/docs/TypeDenotation.md#type-denotation-definition for pre-defined type denotations.
optional string denotation = 6;- Specified by:
getDenotationBytesin interfaceOnnx.TypeProtoOrBuilder- Returns:
- The bytes for denotation.
-
setDenotation
An optional denotation can be used to denote the whole type with a standard semantic description as to what is stored inside. Refer to https://github.com/onnx/onnx/blob/main/docs/TypeDenotation.md#type-denotation-definition for pre-defined type denotations.
optional string denotation = 6;- Parameters:
value- The denotation to set.- Returns:
- This builder for chaining.
-
clearDenotation
An optional denotation can be used to denote the whole type with a standard semantic description as to what is stored inside. Refer to https://github.com/onnx/onnx/blob/main/docs/TypeDenotation.md#type-denotation-definition for pre-defined type denotations.
optional string denotation = 6;- Returns:
- This builder for chaining.
-
setDenotationBytes
An optional denotation can be used to denote the whole type with a standard semantic description as to what is stored inside. Refer to https://github.com/onnx/onnx/blob/main/docs/TypeDenotation.md#type-denotation-definition for pre-defined type denotations.
optional string denotation = 6;- Parameters:
value- The bytes for denotation to set.- Returns:
- This builder for chaining.
-
setUnknownFields
public final Onnx.TypeProto.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Onnx.TypeProto.Builder>
-
mergeUnknownFields
public final Onnx.TypeProto.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Onnx.TypeProto.Builder>
-