Class Predict.PredictResponse

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
tensorflow.serving.Predict.PredictResponse
All Implemented Interfaces:
com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable, Predict.PredictResponseOrBuilder
Enclosing class:
Predict

public static final class Predict.PredictResponse extends com.google.protobuf.GeneratedMessageV3 implements Predict.PredictResponseOrBuilder
 Response for PredictRequest on successful run.
 
Protobuf type tensorflow.serving.PredictResponse
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
    • hasModelSpec

      public boolean hasModelSpec()
       Effective Model Specification used to process PredictRequest.
       
      .tensorflow.serving.ModelSpec model_spec = 2;
      Specified by:
      hasModelSpec in interface Predict.PredictResponseOrBuilder
      Returns:
      Whether the modelSpec field is set.
    • getModelSpec

      public Model.ModelSpec getModelSpec()
       Effective Model Specification used to process PredictRequest.
       
      .tensorflow.serving.ModelSpec model_spec = 2;
      Specified by:
      getModelSpec in interface Predict.PredictResponseOrBuilder
      Returns:
      The modelSpec.
    • getModelSpecOrBuilder

      public Model.ModelSpecOrBuilder getModelSpecOrBuilder()
       Effective Model Specification used to process PredictRequest.
       
      .tensorflow.serving.ModelSpec model_spec = 2;
      Specified by:
      getModelSpecOrBuilder in interface Predict.PredictResponseOrBuilder
    • getOutputsCount

      public int getOutputsCount()
      Description copied from interface: Predict.PredictResponseOrBuilder
       Output tensors.
       
      map<string, .tensorflow.TensorProto> outputs = 1;
      Specified by:
      getOutputsCount in interface Predict.PredictResponseOrBuilder
    • containsOutputs

      public boolean containsOutputs(String key)
       Output tensors.
       
      map<string, .tensorflow.TensorProto> outputs = 1;
      Specified by:
      containsOutputs in interface Predict.PredictResponseOrBuilder
    • getOutputs

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

      public Map<String,TensorProto> getOutputsMap()
       Output tensors.
       
      map<string, .tensorflow.TensorProto> outputs = 1;
      Specified by:
      getOutputsMap in interface Predict.PredictResponseOrBuilder
    • getOutputsOrDefault

      public TensorProto getOutputsOrDefault(String key, TensorProto defaultValue)
       Output tensors.
       
      map<string, .tensorflow.TensorProto> outputs = 1;
      Specified by:
      getOutputsOrDefault in interface Predict.PredictResponseOrBuilder
    • getOutputsOrThrow

      public TensorProto getOutputsOrThrow(String key)
       Output tensors.
       
      map<string, .tensorflow.TensorProto> outputs = 1;
      Specified by:
      getOutputsOrThrow in interface Predict.PredictResponseOrBuilder
    • 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 Predict.PredictResponse parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

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

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

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

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

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

      public static Predict.PredictResponse parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

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

      public static Predict.PredictResponse parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

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

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

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

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

      public static Predict.PredictResponse.Builder newBuilder()
    • newBuilder

      public static Predict.PredictResponse.Builder newBuilder(Predict.PredictResponse prototype)
    • toBuilder

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

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

      public static Predict.PredictResponse getDefaultInstance()
    • parser

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

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