Class OnnxMl.TypeProto.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<OnnxMl.TypeProto.Builder>
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.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..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.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.boolean.onnx.TypeProto.Opaque opaque_type = 7;booleanThe type of a sequence.boolean.onnx.TypeProto.SparseTensor sparse_tensor_type = 8;booleanThe type of a tensor.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanmergeFrom(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.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(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.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, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods 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<OnnxMl.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<OnnxMl.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<OnnxMl.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<OnnxMl.TypeProto.Builder>
-
setField
public OnnxMl.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<OnnxMl.TypeProto.Builder>
-
clearField
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<OnnxMl.TypeProto.Builder>
-
clearOneof
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin 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:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<OnnxMl.TypeProto.Builder>
-
addRepeatedField
public OnnxMl.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<OnnxMl.TypeProto.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<OnnxMl.TypeProto.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin 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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<OnnxMl.TypeProto.Builder>- Throws:
IOException
-
getValueCase
- Specified by:
getValueCasein interfaceOnnxMl.TypeProtoOrBuilder
-
clearValue
-
hasTensorType
public boolean hasTensorType()The type of a tensor.
.onnx.TypeProto.Tensor tensor_type = 1;- Specified by:
hasTensorTypein interfaceOnnxMl.TypeProtoOrBuilder- Returns:
- Whether the tensorType field is set.
-
getTensorType
The type of a tensor.
.onnx.TypeProto.Tensor tensor_type = 1;- Specified by:
getTensorTypein 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:
getTensorTypeOrBuilderin interfaceOnnxMl.TypeProtoOrBuilder
-
hasSequenceType
public boolean hasSequenceType()The type of a sequence.
.onnx.TypeProto.Sequence sequence_type = 4;- Specified by:
hasSequenceTypein interfaceOnnxMl.TypeProtoOrBuilder- Returns:
- Whether the sequenceType field is set.
-
getSequenceType
The type of a sequence.
.onnx.TypeProto.Sequence sequence_type = 4;- Specified by:
getSequenceTypein 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:
getSequenceTypeOrBuilderin interfaceOnnxMl.TypeProtoOrBuilder
-
hasMapType
public boolean hasMapType()The type of a map.
.onnx.TypeProto.Map map_type = 5;- Specified by:
hasMapTypein interfaceOnnxMl.TypeProtoOrBuilder- Returns:
- Whether the mapType field is set.
-
getMapType
The type of a map.
.onnx.TypeProto.Map map_type = 5;- Specified by:
getMapTypein 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:
getMapTypeOrBuilderin interfaceOnnxMl.TypeProtoOrBuilder
-
hasSparseTensorType
public boolean hasSparseTensorType().onnx.TypeProto.SparseTensor sparse_tensor_type = 8;- Specified by:
hasSparseTensorTypein interfaceOnnxMl.TypeProtoOrBuilder- Returns:
- Whether the sparseTensorType field is set.
-
getSparseTensorType
.onnx.TypeProto.SparseTensor sparse_tensor_type = 8;- Specified by:
getSparseTensorTypein 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:
getSparseTensorTypeOrBuilderin interfaceOnnxMl.TypeProtoOrBuilder
-
hasOpaqueType
public boolean hasOpaqueType().onnx.TypeProto.Opaque opaque_type = 7;- Specified by:
hasOpaqueTypein interfaceOnnxMl.TypeProtoOrBuilder- Returns:
- Whether the opaqueType field is set.
-
getOpaqueType
.onnx.TypeProto.Opaque opaque_type = 7;- Specified by:
getOpaqueTypein 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:
getOpaqueTypeOrBuilderin 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:
hasDenotationin 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:
getDenotationin 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:
getDenotationBytesin 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:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<OnnxMl.TypeProto.Builder>
-
mergeUnknownFields
public final OnnxMl.TypeProto.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<OnnxMl.TypeProto.Builder>
-