Package ai.onnx.proto
Class OnnxMl.ValueInfoProto.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderType>
com.google.protobuf.GeneratedMessageV3.Builder<OnnxMl.ValueInfoProto.Builder>
ai.onnx.proto.OnnxMl.ValueInfoProto.Builder
- All Implemented Interfaces:
OnnxMl.ValueInfoProtoOrBuilder
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
- Enclosing class:
- OnnxMl.ValueInfoProto
public static final class OnnxMl.ValueInfoProto.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<OnnxMl.ValueInfoProto.Builder>
implements OnnxMl.ValueInfoProtoOrBuilder
Defines information on value, including the name, the type, and the shape of the value.Protobuf type
onnx.ValueInfoProto
-
Method Summary
Modifier and TypeMethodDescriptionaddRepeatedField
(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()
clear()
A human-readable documentation for this value.clearField
(com.google.protobuf.Descriptors.FieldDescriptor field) This field MUST be present in this version of the IR.clearOneof
(com.google.protobuf.Descriptors.OneofDescriptor oneof) This field MUST be present in this version of the IR for inputs and outputs of the top-level graph.clone()
static final com.google.protobuf.Descriptors.Descriptor
com.google.protobuf.Descriptors.Descriptor
A human-readable documentation for this value.com.google.protobuf.ByteString
A human-readable documentation for this value.getName()
This field MUST be present in this version of the IR.com.google.protobuf.ByteString
This field MUST be present in this version of the IR.getType()
This field MUST be present in this version of the IR for inputs and outputs of the top-level graph.This field MUST be present in this version of the IR for inputs and outputs of the top-level graph.This field MUST be present in this version of the IR for inputs and outputs of the top-level graph.boolean
A human-readable documentation for this value.boolean
hasName()
This field MUST be present in this version of the IR.boolean
hasType()
This field MUST be present in this version of the IR for inputs and outputs of the top-level graph.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
final boolean
mergeFrom
(OnnxMl.ValueInfoProto other) mergeFrom
(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom
(com.google.protobuf.Message other) mergeType
(OnnxMl.TypeProto value) This field MUST be present in this version of the IR for inputs and outputs of the top-level graph.mergeUnknownFields
(com.google.protobuf.UnknownFieldSet unknownFields) setDocString
(String value) A human-readable documentation for this value.setDocStringBytes
(com.google.protobuf.ByteString value) A human-readable documentation for this value.This field MUST be present in this version of the IR.setNameBytes
(com.google.protobuf.ByteString value) This field MUST be present in this version of the IR.setRepeatedField
(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setType
(OnnxMl.TypeProto value) This field MUST be present in this version of the IR for inputs and outputs of the top-level graph.setType
(OnnxMl.TypeProto.Builder builderForValue) This field MUST be present in this version of the IR for inputs and outputs of the top-level graph.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.ValueInfoProto.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.ValueInfoProto.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.ValueInfoProto.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.ValueInfoProto.Builder>
-
setField
public OnnxMl.ValueInfoProto.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.ValueInfoProto.Builder>
-
clearField
public OnnxMl.ValueInfoProto.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<OnnxMl.ValueInfoProto.Builder>
-
clearOneof
public OnnxMl.ValueInfoProto.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<OnnxMl.ValueInfoProto.Builder>
-
setRepeatedField
public OnnxMl.ValueInfoProto.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.ValueInfoProto.Builder>
-
addRepeatedField
public OnnxMl.ValueInfoProto.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.ValueInfoProto.Builder>
-
mergeFrom
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<OnnxMl.ValueInfoProto.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<OnnxMl.ValueInfoProto.Builder>
-
mergeFrom
public OnnxMl.ValueInfoProto.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.ValueInfoProto.Builder>
- Throws:
IOException
-
hasName
public boolean hasName()This field MUST be present in this version of the IR.
optional string name = 1;
- Specified by:
hasName
in interfaceOnnxMl.ValueInfoProtoOrBuilder
- Returns:
- Whether the name field is set.
-
getName
This field MUST be present in this version of the IR.
optional string name = 1;
- Specified by:
getName
in interfaceOnnxMl.ValueInfoProtoOrBuilder
- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()This field MUST be present in this version of the IR.
optional string name = 1;
- Specified by:
getNameBytes
in interfaceOnnxMl.ValueInfoProtoOrBuilder
- Returns:
- The bytes for name.
-
setName
This field MUST be present in this version of the IR.
optional string name = 1;
- Parameters:
value
- The name to set.- Returns:
- This builder for chaining.
-
clearName
This field MUST be present in this version of the IR.
optional string name = 1;
- Returns:
- This builder for chaining.
-
setNameBytes
This field MUST be present in this version of the IR.
optional string name = 1;
- Parameters:
value
- The bytes for name to set.- Returns:
- This builder for chaining.
-
hasType
public boolean hasType()This field MUST be present in this version of the IR for inputs and outputs of the top-level graph.
optional .onnx.TypeProto type = 2;
- Specified by:
hasType
in interfaceOnnxMl.ValueInfoProtoOrBuilder
- Returns:
- Whether the type field is set.
-
getType
This field MUST be present in this version of the IR for inputs and outputs of the top-level graph.
optional .onnx.TypeProto type = 2;
- Specified by:
getType
in interfaceOnnxMl.ValueInfoProtoOrBuilder
- Returns:
- The type.
-
setType
This field MUST be present in this version of the IR for inputs and outputs of the top-level graph.
optional .onnx.TypeProto type = 2;
-
setType
This field MUST be present in this version of the IR for inputs and outputs of the top-level graph.
optional .onnx.TypeProto type = 2;
-
mergeType
This field MUST be present in this version of the IR for inputs and outputs of the top-level graph.
optional .onnx.TypeProto type = 2;
-
clearType
This field MUST be present in this version of the IR for inputs and outputs of the top-level graph.
optional .onnx.TypeProto type = 2;
-
getTypeBuilder
This field MUST be present in this version of the IR for inputs and outputs of the top-level graph.
optional .onnx.TypeProto type = 2;
-
getTypeOrBuilder
This field MUST be present in this version of the IR for inputs and outputs of the top-level graph.
optional .onnx.TypeProto type = 2;
- Specified by:
getTypeOrBuilder
in interfaceOnnxMl.ValueInfoProtoOrBuilder
-
hasDocString
public boolean hasDocString()A human-readable documentation for this value. Markdown is allowed.
optional string doc_string = 3;
- Specified by:
hasDocString
in interfaceOnnxMl.ValueInfoProtoOrBuilder
- Returns:
- Whether the docString field is set.
-
getDocString
A human-readable documentation for this value. Markdown is allowed.
optional string doc_string = 3;
- Specified by:
getDocString
in interfaceOnnxMl.ValueInfoProtoOrBuilder
- Returns:
- The docString.
-
getDocStringBytes
public com.google.protobuf.ByteString getDocStringBytes()A human-readable documentation for this value. Markdown is allowed.
optional string doc_string = 3;
- Specified by:
getDocStringBytes
in interfaceOnnxMl.ValueInfoProtoOrBuilder
- Returns:
- The bytes for docString.
-
setDocString
A human-readable documentation for this value. Markdown is allowed.
optional string doc_string = 3;
- Parameters:
value
- The docString to set.- Returns:
- This builder for chaining.
-
clearDocString
A human-readable documentation for this value. Markdown is allowed.
optional string doc_string = 3;
- Returns:
- This builder for chaining.
-
setDocStringBytes
A human-readable documentation for this value. Markdown is allowed.
optional string doc_string = 3;
- Parameters:
value
- The bytes for docString to set.- Returns:
- This builder for chaining.
-
setUnknownFields
public final OnnxMl.ValueInfoProto.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.ValueInfoProto.Builder>
-
mergeUnknownFields
public final OnnxMl.ValueInfoProto.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.ValueInfoProto.Builder>
-