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 Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<OnnxMl.ValueInfoProto.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessageV3.Builder<OnnxMl.ValueInfoProto.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<OnnxMl.ValueInfoProto.Builder>
    • getDefaultInstanceForType

      public OnnxMl.ValueInfoProto getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public OnnxMl.ValueInfoProto build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public OnnxMl.ValueInfoProto buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • clone

      Specified by:
      clone in interface com.google.protobuf.Message.Builder
      Specified by:
      clone in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clone in class com.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 interface com.google.protobuf.Message.Builder
      Overrides:
      setField in class com.google.protobuf.GeneratedMessageV3.Builder<OnnxMl.ValueInfoProto.Builder>
    • clearField

      public OnnxMl.ValueInfoProto.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
      Specified by:
      clearField in interface com.google.protobuf.Message.Builder
      Overrides:
      clearField in class com.google.protobuf.GeneratedMessageV3.Builder<OnnxMl.ValueInfoProto.Builder>
    • clearOneof

      public OnnxMl.ValueInfoProto.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
      Specified by:
      clearOneof in interface com.google.protobuf.Message.Builder
      Overrides:
      clearOneof in class com.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 interface com.google.protobuf.Message.Builder
      Overrides:
      setRepeatedField in class com.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 interface com.google.protobuf.Message.Builder
      Overrides:
      addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<OnnxMl.ValueInfoProto.Builder>
    • mergeFrom

      public OnnxMl.ValueInfoProto.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<OnnxMl.ValueInfoProto.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.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 interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.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 interface OnnxMl.ValueInfoProtoOrBuilder
      Returns:
      Whether the name field is set.
    • getName

      public String getName()
       This field MUST be present in this version of the IR.
       
      optional string name = 1;
      Specified by:
      getName in interface OnnxMl.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 interface OnnxMl.ValueInfoProtoOrBuilder
      Returns:
      The bytes for name.
    • setName

      public OnnxMl.ValueInfoProto.Builder setName(String value)
       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

      public OnnxMl.ValueInfoProto.Builder clearName()
       This field MUST be present in this version of the IR.
       
      optional string name = 1;
      Returns:
      This builder for chaining.
    • setNameBytes

      public OnnxMl.ValueInfoProto.Builder setNameBytes(com.google.protobuf.ByteString value)
       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 interface OnnxMl.ValueInfoProtoOrBuilder
      Returns:
      Whether the type field is set.
    • getType

      public OnnxMl.TypeProto 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 interface OnnxMl.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

      public OnnxMl.ValueInfoProto.Builder 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.
       
      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

      public OnnxMl.ValueInfoProto.Builder 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

      public OnnxMl.TypeProto.Builder 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

      public OnnxMl.TypeProtoOrBuilder 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 interface OnnxMl.ValueInfoProtoOrBuilder
    • hasDocString

      public boolean hasDocString()
       A human-readable documentation for this value. Markdown is allowed.
       
      optional string doc_string = 3;
      Specified by:
      hasDocString in interface OnnxMl.ValueInfoProtoOrBuilder
      Returns:
      Whether the docString field is set.
    • getDocString

      public String getDocString()
       A human-readable documentation for this value. Markdown is allowed.
       
      optional string doc_string = 3;
      Specified by:
      getDocString in interface OnnxMl.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 interface OnnxMl.ValueInfoProtoOrBuilder
      Returns:
      The bytes for docString.
    • setDocString

      public OnnxMl.ValueInfoProto.Builder setDocString(String value)
       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

      public OnnxMl.ValueInfoProto.Builder clearDocString()
       A human-readable documentation for this value. Markdown is allowed.
       
      optional string doc_string = 3;
      Returns:
      This builder for chaining.
    • setDocStringBytes

      public OnnxMl.ValueInfoProto.Builder setDocStringBytes(com.google.protobuf.ByteString value)
       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 interface com.google.protobuf.Message.Builder
      Overrides:
      setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<OnnxMl.ValueInfoProto.Builder>
    • mergeUnknownFields

      public final OnnxMl.ValueInfoProto.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      mergeUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<OnnxMl.ValueInfoProto.Builder>