Package ai.onnx.proto
Class OnnxMl.TypeProto.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderType>
com.google.protobuf.GeneratedMessageV3.Builder<OnnxMl.TypeProto.Builder>
ai.onnx.proto.OnnxMl.TypeProto.Builder
- All Implemented Interfaces:
OnnxMl.TypeProtoOrBuilder
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
- Enclosing class:
- OnnxMl.TypeProto
public static final class OnnxMl.TypeProto.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<OnnxMl.TypeProto.Builder>
implements OnnxMl.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) .onnx.TypeProto.Opaque opaque_type = 7;
The type of a sequence..onnx.TypeProto.SparseTensor sparse_tensor_type = 8;
The 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..onnx.TypeProto.Opaque opaque_type = 7;
.onnx.TypeProto.Opaque opaque_type = 7;
.onnx.TypeProto.Opaque opaque_type = 7;
The type of a sequence.The type of a sequence.The type of a sequence..onnx.TypeProto.SparseTensor sparse_tensor_type = 8;
.onnx.TypeProto.SparseTensor sparse_tensor_type = 8;
.onnx.TypeProto.SparseTensor sparse_tensor_type = 8;
The 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
.onnx.TypeProto.Opaque opaque_type = 7;
boolean
The type of a sequence.boolean
.onnx.TypeProto.SparseTensor sparse_tensor_type = 8;
boolean
The type of a tensor.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
final boolean
mergeFrom
(OnnxMl.TypeProto other) mergeFrom
(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom
(com.google.protobuf.Message other) mergeMapType
(OnnxMl.TypeProto.Map value) The type of a map..onnx.TypeProto.Opaque opaque_type = 7;
The type of a sequence..onnx.TypeProto.SparseTensor sparse_tensor_type = 8;
The type of a tensor.final OnnxMl.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
(OnnxMl.TypeProto.Map value) The type of a map.setMapType
(OnnxMl.TypeProto.Map.Builder builderForValue) The type of a map..onnx.TypeProto.Opaque opaque_type = 7;
setOpaqueType
(OnnxMl.TypeProto.Opaque.Builder builderForValue) .onnx.TypeProto.Opaque opaque_type = 7;
setRepeatedField
(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) The type of a sequence.setSequenceType
(OnnxMl.TypeProto.Sequence.Builder builderForValue) The type of a sequence..onnx.TypeProto.SparseTensor sparse_tensor_type = 8;
setSparseTensorType
(OnnxMl.TypeProto.SparseTensor.Builder builderForValue) .onnx.TypeProto.SparseTensor sparse_tensor_type = 8;
The type of a tensor.setTensorType
(OnnxMl.TypeProto.Tensor.Builder builderForValue) The type of a tensor.final OnnxMl.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, 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.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<OnnxMl.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<OnnxMl.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<OnnxMl.TypeProto.Builder>
-
setField
public OnnxMl.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<OnnxMl.TypeProto.Builder>
-
clearField
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<OnnxMl.TypeProto.Builder>
-
clearOneof
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<OnnxMl.TypeProto.Builder>
-
setRepeatedField
public OnnxMl.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<OnnxMl.TypeProto.Builder>
-
addRepeatedField
public OnnxMl.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<OnnxMl.TypeProto.Builder>
-
mergeFrom
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<OnnxMl.TypeProto.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<OnnxMl.TypeProto.Builder>
-
mergeFrom
public OnnxMl.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<OnnxMl.TypeProto.Builder>
- Throws:
IOException
-
getValueCase
- Specified by:
getValueCase
in interfaceOnnxMl.TypeProtoOrBuilder
-
clearValue
-
hasTensorType
public boolean hasTensorType()The type of a tensor.
.onnx.TypeProto.Tensor tensor_type = 1;
- Specified by:
hasTensorType
in interfaceOnnxMl.TypeProtoOrBuilder
- Returns:
- Whether the tensorType field is set.
-
getTensorType
The type of a tensor.
.onnx.TypeProto.Tensor tensor_type = 1;
- Specified by:
getTensorType
in interfaceOnnxMl.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 interfaceOnnxMl.TypeProtoOrBuilder
-
hasSequenceType
public boolean hasSequenceType()The type of a sequence.
.onnx.TypeProto.Sequence sequence_type = 4;
- Specified by:
hasSequenceType
in interfaceOnnxMl.TypeProtoOrBuilder
- Returns:
- Whether the sequenceType field is set.
-
getSequenceType
The type of a sequence.
.onnx.TypeProto.Sequence sequence_type = 4;
- Specified by:
getSequenceType
in interfaceOnnxMl.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 interfaceOnnxMl.TypeProtoOrBuilder
-
hasMapType
public boolean hasMapType()The type of a map.
.onnx.TypeProto.Map map_type = 5;
- Specified by:
hasMapType
in interfaceOnnxMl.TypeProtoOrBuilder
- Returns:
- Whether the mapType field is set.
-
getMapType
The type of a map.
.onnx.TypeProto.Map map_type = 5;
- Specified by:
getMapType
in interfaceOnnxMl.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 interfaceOnnxMl.TypeProtoOrBuilder
-
hasSparseTensorType
public boolean hasSparseTensorType().onnx.TypeProto.SparseTensor sparse_tensor_type = 8;
- Specified by:
hasSparseTensorType
in interfaceOnnxMl.TypeProtoOrBuilder
- Returns:
- Whether the sparseTensorType field is set.
-
getSparseTensorType
.onnx.TypeProto.SparseTensor sparse_tensor_type = 8;
- Specified by:
getSparseTensorType
in interfaceOnnxMl.TypeProtoOrBuilder
- Returns:
- The sparseTensorType.
-
setSparseTensorType
.onnx.TypeProto.SparseTensor sparse_tensor_type = 8;
-
setSparseTensorType
public OnnxMl.TypeProto.Builder setSparseTensorType(OnnxMl.TypeProto.SparseTensor.Builder builderForValue) .onnx.TypeProto.SparseTensor sparse_tensor_type = 8;
-
mergeSparseTensorType
.onnx.TypeProto.SparseTensor sparse_tensor_type = 8;
-
clearSparseTensorType
.onnx.TypeProto.SparseTensor sparse_tensor_type = 8;
-
getSparseTensorTypeBuilder
.onnx.TypeProto.SparseTensor sparse_tensor_type = 8;
-
getSparseTensorTypeOrBuilder
.onnx.TypeProto.SparseTensor sparse_tensor_type = 8;
- Specified by:
getSparseTensorTypeOrBuilder
in interfaceOnnxMl.TypeProtoOrBuilder
-
hasOpaqueType
public boolean hasOpaqueType().onnx.TypeProto.Opaque opaque_type = 7;
- Specified by:
hasOpaqueType
in interfaceOnnxMl.TypeProtoOrBuilder
- Returns:
- Whether the opaqueType field is set.
-
getOpaqueType
.onnx.TypeProto.Opaque opaque_type = 7;
- Specified by:
getOpaqueType
in interfaceOnnxMl.TypeProtoOrBuilder
- Returns:
- The opaqueType.
-
setOpaqueType
.onnx.TypeProto.Opaque opaque_type = 7;
-
setOpaqueType
.onnx.TypeProto.Opaque opaque_type = 7;
-
mergeOpaqueType
.onnx.TypeProto.Opaque opaque_type = 7;
-
clearOpaqueType
.onnx.TypeProto.Opaque opaque_type = 7;
-
getOpaqueTypeBuilder
.onnx.TypeProto.Opaque opaque_type = 7;
-
getOpaqueTypeOrBuilder
.onnx.TypeProto.Opaque opaque_type = 7;
- Specified by:
getOpaqueTypeOrBuilder
in interfaceOnnxMl.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/master/docs/TypeDenotation.md#type-denotation-definition for pre-defined type denotations.
optional string denotation = 6;
- Specified by:
hasDenotation
in interfaceOnnxMl.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/master/docs/TypeDenotation.md#type-denotation-definition for pre-defined type denotations.
optional string denotation = 6;
- Specified by:
getDenotation
in interfaceOnnxMl.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/master/docs/TypeDenotation.md#type-denotation-definition for pre-defined type denotations.
optional string denotation = 6;
- Specified by:
getDenotationBytes
in interfaceOnnxMl.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/master/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/master/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/master/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 OnnxMl.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<OnnxMl.TypeProto.Builder>
-
mergeUnknownFields
public final OnnxMl.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<OnnxMl.TypeProto.Builder>
-