Class SignatureDef

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
org.tensorflow.framework.SignatureDef
All Implemented Interfaces:
com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable, SignatureDefOrBuilder

public final class SignatureDef extends com.google.protobuf.GeneratedMessageV3 implements SignatureDefOrBuilder
 SignatureDef defines the signature of a computation supported by a TensorFlow
 graph.
 
Protobuf type tensorflow.SignatureDef
See Also:
  • Field Details

  • Method Details

    • newInstance

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

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

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
      Overrides:
      internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessageV3
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3
    • getInputsCount

      public int getInputsCount()
      Description copied from interface: SignatureDefOrBuilder
       Named input parameters.
       
      map<string, .tensorflow.TensorInfo> inputs = 1;
      Specified by:
      getInputsCount in interface SignatureDefOrBuilder
    • containsInputs

      public boolean containsInputs(String key)
       Named input parameters.
       
      map<string, .tensorflow.TensorInfo> inputs = 1;
      Specified by:
      containsInputs in interface SignatureDefOrBuilder
    • getInputs

      @Deprecated public Map<String,TensorInfo> getInputs()
      Deprecated.
      Use getInputsMap() instead.
      Specified by:
      getInputs in interface SignatureDefOrBuilder
    • getInputsMap

      public Map<String,TensorInfo> getInputsMap()
       Named input parameters.
       
      map<string, .tensorflow.TensorInfo> inputs = 1;
      Specified by:
      getInputsMap in interface SignatureDefOrBuilder
    • getInputsOrDefault

      public TensorInfo getInputsOrDefault(String key, TensorInfo defaultValue)
       Named input parameters.
       
      map<string, .tensorflow.TensorInfo> inputs = 1;
      Specified by:
      getInputsOrDefault in interface SignatureDefOrBuilder
    • getInputsOrThrow

      public TensorInfo getInputsOrThrow(String key)
       Named input parameters.
       
      map<string, .tensorflow.TensorInfo> inputs = 1;
      Specified by:
      getInputsOrThrow in interface SignatureDefOrBuilder
    • getOutputsCount

      public int getOutputsCount()
      Description copied from interface: SignatureDefOrBuilder
       Named output parameters.
       
      map<string, .tensorflow.TensorInfo> outputs = 2;
      Specified by:
      getOutputsCount in interface SignatureDefOrBuilder
    • containsOutputs

      public boolean containsOutputs(String key)
       Named output parameters.
       
      map<string, .tensorflow.TensorInfo> outputs = 2;
      Specified by:
      containsOutputs in interface SignatureDefOrBuilder
    • getOutputs

      @Deprecated public Map<String,TensorInfo> getOutputs()
      Deprecated.
      Use getOutputsMap() instead.
      Specified by:
      getOutputs in interface SignatureDefOrBuilder
    • getOutputsMap

      public Map<String,TensorInfo> getOutputsMap()
       Named output parameters.
       
      map<string, .tensorflow.TensorInfo> outputs = 2;
      Specified by:
      getOutputsMap in interface SignatureDefOrBuilder
    • getOutputsOrDefault

      public TensorInfo getOutputsOrDefault(String key, TensorInfo defaultValue)
       Named output parameters.
       
      map<string, .tensorflow.TensorInfo> outputs = 2;
      Specified by:
      getOutputsOrDefault in interface SignatureDefOrBuilder
    • getOutputsOrThrow

      public TensorInfo getOutputsOrThrow(String key)
       Named output parameters.
       
      map<string, .tensorflow.TensorInfo> outputs = 2;
      Specified by:
      getOutputsOrThrow in interface SignatureDefOrBuilder
    • getMethodName

      public String getMethodName()
       Deprecated: TensorFlow 2 always sets this to a fixed value;
       open-source TF Serving stopped checking by default since release 2.4.
      
       In TensorFlow 1, the method_name enabled users to mark a SignatureDef as
       supporting a particular method. Multiple SignatureDefs in a single
       MetaGraphDef could have the same method_name (e.g., to support multi-headed
       computation).
       
      string method_name = 3;
      Specified by:
      getMethodName in interface SignatureDefOrBuilder
      Returns:
      The methodName.
    • getMethodNameBytes

      public com.google.protobuf.ByteString getMethodNameBytes()
       Deprecated: TensorFlow 2 always sets this to a fixed value;
       open-source TF Serving stopped checking by default since release 2.4.
      
       In TensorFlow 1, the method_name enabled users to mark a SignatureDef as
       supporting a particular method. Multiple SignatureDefs in a single
       MetaGraphDef could have the same method_name (e.g., to support multi-headed
       computation).
       
      string method_name = 3;
      Specified by:
      getMethodNameBytes in interface SignatureDefOrBuilder
      Returns:
      The bytes for methodName.
    • getDefaultsCount

      public int getDefaultsCount()
      Description copied from interface: SignatureDefOrBuilder
       Named input to corresponding default values if any.
       
      map<string, .tensorflow.TensorProto> defaults = 4;
      Specified by:
      getDefaultsCount in interface SignatureDefOrBuilder
    • containsDefaults

      public boolean containsDefaults(String key)
       Named input to corresponding default values if any.
       
      map<string, .tensorflow.TensorProto> defaults = 4;
      Specified by:
      containsDefaults in interface SignatureDefOrBuilder
    • getDefaults

      @Deprecated public Map<String,TensorProto> getDefaults()
      Deprecated.
      Use getDefaultsMap() instead.
      Specified by:
      getDefaults in interface SignatureDefOrBuilder
    • getDefaultsMap

      public Map<String,TensorProto> getDefaultsMap()
       Named input to corresponding default values if any.
       
      map<string, .tensorflow.TensorProto> defaults = 4;
      Specified by:
      getDefaultsMap in interface SignatureDefOrBuilder
    • getDefaultsOrDefault

      public TensorProto getDefaultsOrDefault(String key, TensorProto defaultValue)
       Named input to corresponding default values if any.
       
      map<string, .tensorflow.TensorProto> defaults = 4;
      Specified by:
      getDefaultsOrDefault in interface SignatureDefOrBuilder
    • getDefaultsOrThrow

      public TensorProto getDefaultsOrThrow(String key)
       Named input to corresponding default values if any.
       
      map<string, .tensorflow.TensorProto> defaults = 4;
      Specified by:
      getDefaultsOrThrow in interface SignatureDefOrBuilder
    • 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 SignatureDef parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

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

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

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

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

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

      public static SignatureDef parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

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

      public static SignatureDef parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

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

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

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

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

      public static SignatureDef.Builder newBuilder()
    • newBuilder

      public static SignatureDef.Builder newBuilder(SignatureDef prototype)
    • toBuilder

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

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

      public static SignatureDef getDefaultInstance()
    • parser

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

      public com.google.protobuf.Parser<SignatureDef> 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 SignatureDef getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder