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.ByteString
An 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.Descriptor
com.google.protobuf.Descriptors.Descriptor
The 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.boolean
An optional denotation can be used to denote the whole type with a standard semantic description as to what is stored inside.boolean
The type of a map.boolean
The type of an optional.boolean
The type of a sequence.boolean
Type of the sparse tensorboolean
The type of a tensor.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.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.Builder
mergeUnknownFields
(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.Builder
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.TypeProto.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.TypeProto.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.TypeProto.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.TypeProto.Builder>
-
setField
public Onnx.TypeProto.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.TypeProto.Builder>
-
clearField
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Onnx.TypeProto.Builder>
-
clearOneof
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in 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:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Onnx.TypeProto.Builder>
-
addRepeatedField
public Onnx.TypeProto.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.TypeProto.Builder>
-
mergeFrom
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<Onnx.TypeProto.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in 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:
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.TypeProto.Builder>
- Throws:
IOException
-
getValueCase
- Specified by:
getValueCase
in interfaceOnnx.TypeProtoOrBuilder
-
clearValue
-
hasTensorType
public boolean hasTensorType()The type of a tensor.
.onnx.TypeProto.Tensor tensor_type = 1;
- Specified by:
hasTensorType
in interfaceOnnx.TypeProtoOrBuilder
- Returns:
- Whether the tensorType field is set.
-
getTensorType
The type of a tensor.
.onnx.TypeProto.Tensor tensor_type = 1;
- Specified by:
getTensorType
in 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:
getTensorTypeOrBuilder
in interfaceOnnx.TypeProtoOrBuilder
-
hasSequenceType
public boolean hasSequenceType()The type of a sequence.
.onnx.TypeProto.Sequence sequence_type = 4;
- Specified by:
hasSequenceType
in interfaceOnnx.TypeProtoOrBuilder
- Returns:
- Whether the sequenceType field is set.
-
getSequenceType
The type of a sequence.
.onnx.TypeProto.Sequence sequence_type = 4;
- Specified by:
getSequenceType
in 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:
getSequenceTypeOrBuilder
in interfaceOnnx.TypeProtoOrBuilder
-
hasMapType
public boolean hasMapType()The type of a map.
.onnx.TypeProto.Map map_type = 5;
- Specified by:
hasMapType
in interfaceOnnx.TypeProtoOrBuilder
- Returns:
- Whether the mapType field is set.
-
getMapType
The type of a map.
.onnx.TypeProto.Map map_type = 5;
- Specified by:
getMapType
in 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:
getMapTypeOrBuilder
in interfaceOnnx.TypeProtoOrBuilder
-
hasOptionalType
public boolean hasOptionalType()The type of an optional.
.onnx.TypeProto.Optional optional_type = 9;
- Specified by:
hasOptionalType
in interfaceOnnx.TypeProtoOrBuilder
- Returns:
- Whether the optionalType field is set.
-
getOptionalType
The type of an optional.
.onnx.TypeProto.Optional optional_type = 9;
- Specified by:
getOptionalType
in 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:
getOptionalTypeOrBuilder
in interfaceOnnx.TypeProtoOrBuilder
-
hasSparseTensorType
public boolean hasSparseTensorType()Type of the sparse tensor
.onnx.TypeProto.SparseTensor sparse_tensor_type = 8;
- Specified by:
hasSparseTensorType
in interfaceOnnx.TypeProtoOrBuilder
- Returns:
- Whether the sparseTensorType field is set.
-
getSparseTensorType
Type of the sparse tensor
.onnx.TypeProto.SparseTensor sparse_tensor_type = 8;
- Specified by:
getSparseTensorType
in 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:
getSparseTensorTypeOrBuilder
in 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:
hasDenotation
in 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:
getDenotation
in 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:
getDenotationBytes
in 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:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<Onnx.TypeProto.Builder>
-
mergeUnknownFields
public final Onnx.TypeProto.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.TypeProto.Builder>
-