Package onnx

Class Onnx.FunctionProto

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
onnx.Onnx.FunctionProto
All Implemented Interfaces:
com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable, Onnx.FunctionProtoOrBuilder
Enclosing class:
Onnx

public static final class Onnx.FunctionProto extends com.google.protobuf.GeneratedMessageV3 implements Onnx.FunctionProtoOrBuilder
Protobuf type onnx.FunctionProto
See Also:
  • Field Details

  • Method Details

    • newInstance

      protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
      Overrides:
      newInstance in class com.google.protobuf.GeneratedMessageV3
    • getUnknownFields

      public final com.google.protobuf.UnknownFieldSet getUnknownFields()
      Specified by:
      getUnknownFields in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getUnknownFields in class com.google.protobuf.GeneratedMessageV3
    • 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
    • hasName

      public boolean hasName()
       The name of the function, similar usage of op_type in OperatorProto.
       Combined with FunctionProto.domain, this forms the unique identity of
       the FunctionProto.
       
      optional string name = 1;
      Specified by:
      hasName in interface Onnx.FunctionProtoOrBuilder
      Returns:
      Whether the name field is set.
    • getName

      public String getName()
       The name of the function, similar usage of op_type in OperatorProto.
       Combined with FunctionProto.domain, this forms the unique identity of
       the FunctionProto.
       
      optional string name = 1;
      Specified by:
      getName in interface Onnx.FunctionProtoOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       The name of the function, similar usage of op_type in OperatorProto.
       Combined with FunctionProto.domain, this forms the unique identity of
       the FunctionProto.
       
      optional string name = 1;
      Specified by:
      getNameBytes in interface Onnx.FunctionProtoOrBuilder
      Returns:
      The bytes for name.
    • getInputList

      public com.google.protobuf.ProtocolStringList getInputList()
       The inputs and outputs of the function.
       
      repeated string input = 4;
      Specified by:
      getInputList in interface Onnx.FunctionProtoOrBuilder
      Returns:
      A list containing the input.
    • getInputCount

      public int getInputCount()
       The inputs and outputs of the function.
       
      repeated string input = 4;
      Specified by:
      getInputCount in interface Onnx.FunctionProtoOrBuilder
      Returns:
      The count of input.
    • getInput

      public String getInput(int index)
       The inputs and outputs of the function.
       
      repeated string input = 4;
      Specified by:
      getInput in interface Onnx.FunctionProtoOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The input at the given index.
    • getInputBytes

      public com.google.protobuf.ByteString getInputBytes(int index)
       The inputs and outputs of the function.
       
      repeated string input = 4;
      Specified by:
      getInputBytes in interface Onnx.FunctionProtoOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the input at the given index.
    • getOutputList

      public com.google.protobuf.ProtocolStringList getOutputList()
      repeated string output = 5;
      Specified by:
      getOutputList in interface Onnx.FunctionProtoOrBuilder
      Returns:
      A list containing the output.
    • getOutputCount

      public int getOutputCount()
      repeated string output = 5;
      Specified by:
      getOutputCount in interface Onnx.FunctionProtoOrBuilder
      Returns:
      The count of output.
    • getOutput

      public String getOutput(int index)
      repeated string output = 5;
      Specified by:
      getOutput in interface Onnx.FunctionProtoOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The output at the given index.
    • getOutputBytes

      public com.google.protobuf.ByteString getOutputBytes(int index)
      repeated string output = 5;
      Specified by:
      getOutputBytes in interface Onnx.FunctionProtoOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the output at the given index.
    • getAttributeList

      public com.google.protobuf.ProtocolStringList getAttributeList()
       The attribute parameters of the function.
       It is for function parameters without default values.
       
      repeated string attribute = 6;
      Specified by:
      getAttributeList in interface Onnx.FunctionProtoOrBuilder
      Returns:
      A list containing the attribute.
    • getAttributeCount

      public int getAttributeCount()
       The attribute parameters of the function.
       It is for function parameters without default values.
       
      repeated string attribute = 6;
      Specified by:
      getAttributeCount in interface Onnx.FunctionProtoOrBuilder
      Returns:
      The count of attribute.
    • getAttribute

      public String getAttribute(int index)
       The attribute parameters of the function.
       It is for function parameters without default values.
       
      repeated string attribute = 6;
      Specified by:
      getAttribute in interface Onnx.FunctionProtoOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The attribute at the given index.
    • getAttributeBytes

      public com.google.protobuf.ByteString getAttributeBytes(int index)
       The attribute parameters of the function.
       It is for function parameters without default values.
       
      repeated string attribute = 6;
      Specified by:
      getAttributeBytes in interface Onnx.FunctionProtoOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the attribute at the given index.
    • getAttributeProtoList

      public List<Onnx.AttributeProto> getAttributeProtoList()
       The attribute protos of the function.
       It is for function attributes with default values.
       A function attribute shall be represented either as
       a string attribute or an AttributeProto, not both.
       
      repeated .onnx.AttributeProto attribute_proto = 11;
      Specified by:
      getAttributeProtoList in interface Onnx.FunctionProtoOrBuilder
    • getAttributeProtoOrBuilderList

      public List<? extends Onnx.AttributeProtoOrBuilder> getAttributeProtoOrBuilderList()
       The attribute protos of the function.
       It is for function attributes with default values.
       A function attribute shall be represented either as
       a string attribute or an AttributeProto, not both.
       
      repeated .onnx.AttributeProto attribute_proto = 11;
      Specified by:
      getAttributeProtoOrBuilderList in interface Onnx.FunctionProtoOrBuilder
    • getAttributeProtoCount

      public int getAttributeProtoCount()
       The attribute protos of the function.
       It is for function attributes with default values.
       A function attribute shall be represented either as
       a string attribute or an AttributeProto, not both.
       
      repeated .onnx.AttributeProto attribute_proto = 11;
      Specified by:
      getAttributeProtoCount in interface Onnx.FunctionProtoOrBuilder
    • getAttributeProto

      public Onnx.AttributeProto getAttributeProto(int index)
       The attribute protos of the function.
       It is for function attributes with default values.
       A function attribute shall be represented either as
       a string attribute or an AttributeProto, not both.
       
      repeated .onnx.AttributeProto attribute_proto = 11;
      Specified by:
      getAttributeProto in interface Onnx.FunctionProtoOrBuilder
    • getAttributeProtoOrBuilder

      public Onnx.AttributeProtoOrBuilder getAttributeProtoOrBuilder(int index)
       The attribute protos of the function.
       It is for function attributes with default values.
       A function attribute shall be represented either as
       a string attribute or an AttributeProto, not both.
       
      repeated .onnx.AttributeProto attribute_proto = 11;
      Specified by:
      getAttributeProtoOrBuilder in interface Onnx.FunctionProtoOrBuilder
    • getNodeList

      public List<Onnx.NodeProto> getNodeList()
       The nodes in the function.
       
      repeated .onnx.NodeProto node = 7;
      Specified by:
      getNodeList in interface Onnx.FunctionProtoOrBuilder
    • getNodeOrBuilderList

      public List<? extends Onnx.NodeProtoOrBuilder> getNodeOrBuilderList()
       The nodes in the function.
       
      repeated .onnx.NodeProto node = 7;
      Specified by:
      getNodeOrBuilderList in interface Onnx.FunctionProtoOrBuilder
    • getNodeCount

      public int getNodeCount()
       The nodes in the function.
       
      repeated .onnx.NodeProto node = 7;
      Specified by:
      getNodeCount in interface Onnx.FunctionProtoOrBuilder
    • getNode

      public Onnx.NodeProto getNode(int index)
       The nodes in the function.
       
      repeated .onnx.NodeProto node = 7;
      Specified by:
      getNode in interface Onnx.FunctionProtoOrBuilder
    • getNodeOrBuilder

      public Onnx.NodeProtoOrBuilder getNodeOrBuilder(int index)
       The nodes in the function.
       
      repeated .onnx.NodeProto node = 7;
      Specified by:
      getNodeOrBuilder in interface Onnx.FunctionProtoOrBuilder
    • hasDocString

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

      public String getDocString()
       A human-readable documentation for this function. Markdown is allowed.
       
      optional string doc_string = 8;
      Specified by:
      getDocString in interface Onnx.FunctionProtoOrBuilder
      Returns:
      The docString.
    • getDocStringBytes

      public com.google.protobuf.ByteString getDocStringBytes()
       A human-readable documentation for this function. Markdown is allowed.
       
      optional string doc_string = 8;
      Specified by:
      getDocStringBytes in interface Onnx.FunctionProtoOrBuilder
      Returns:
      The bytes for docString.
    • getOpsetImportList

      public List<Onnx.OperatorSetIdProto> getOpsetImportList()
      repeated .onnx.OperatorSetIdProto opset_import = 9;
      Specified by:
      getOpsetImportList in interface Onnx.FunctionProtoOrBuilder
    • getOpsetImportOrBuilderList

      public List<? extends Onnx.OperatorSetIdProtoOrBuilder> getOpsetImportOrBuilderList()
      repeated .onnx.OperatorSetIdProto opset_import = 9;
      Specified by:
      getOpsetImportOrBuilderList in interface Onnx.FunctionProtoOrBuilder
    • getOpsetImportCount

      public int getOpsetImportCount()
      repeated .onnx.OperatorSetIdProto opset_import = 9;
      Specified by:
      getOpsetImportCount in interface Onnx.FunctionProtoOrBuilder
    • getOpsetImport

      public Onnx.OperatorSetIdProto getOpsetImport(int index)
      repeated .onnx.OperatorSetIdProto opset_import = 9;
      Specified by:
      getOpsetImport in interface Onnx.FunctionProtoOrBuilder
    • getOpsetImportOrBuilder

      public Onnx.OperatorSetIdProtoOrBuilder getOpsetImportOrBuilder(int index)
      repeated .onnx.OperatorSetIdProto opset_import = 9;
      Specified by:
      getOpsetImportOrBuilder in interface Onnx.FunctionProtoOrBuilder
    • hasDomain

      public boolean hasDomain()
       The domain which this function belongs to. Combined with FunctionProto.name, this forms the unique identity of
       the FunctionProto.
       
      optional string domain = 10;
      Specified by:
      hasDomain in interface Onnx.FunctionProtoOrBuilder
      Returns:
      Whether the domain field is set.
    • getDomain

      public String getDomain()
       The domain which this function belongs to. Combined with FunctionProto.name, this forms the unique identity of
       the FunctionProto.
       
      optional string domain = 10;
      Specified by:
      getDomain in interface Onnx.FunctionProtoOrBuilder
      Returns:
      The domain.
    • getDomainBytes

      public com.google.protobuf.ByteString getDomainBytes()
       The domain which this function belongs to. Combined with FunctionProto.name, this forms the unique identity of
       the FunctionProto.
       
      optional string domain = 10;
      Specified by:
      getDomainBytes in interface Onnx.FunctionProtoOrBuilder
      Returns:
      The bytes for domain.
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessageV3
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessageV3
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessageV3
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static Onnx.FunctionProto parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Onnx.FunctionProto parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Onnx.FunctionProto parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Onnx.FunctionProto parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Onnx.FunctionProto parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Onnx.FunctionProto parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Onnx.FunctionProto parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static Onnx.FunctionProto parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static Onnx.FunctionProto parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static Onnx.FunctionProto parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static Onnx.FunctionProto parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static Onnx.FunctionProto parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

      public Onnx.FunctionProto.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static Onnx.FunctionProto.Builder newBuilder()
    • newBuilder

      public static Onnx.FunctionProto.Builder newBuilder(Onnx.FunctionProto prototype)
    • toBuilder

      public Onnx.FunctionProto.Builder toBuilder()
      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected Onnx.FunctionProto.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
      Specified by:
      newBuilderForType in class com.google.protobuf.GeneratedMessageV3
    • getDefaultInstance

      public static Onnx.FunctionProto getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<Onnx.FunctionProto> parser()
    • getParserForType

      public com.google.protobuf.Parser<Onnx.FunctionProto> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessageV3
    • getDefaultInstanceForType

      public Onnx.FunctionProto getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder