Class Predict.PredictStreamedOptions

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

public static final class Predict.PredictStreamedOptions extends com.google.protobuf.GeneratedMessageV3 implements Predict.PredictStreamedOptionsOrBuilder
 Options only used for streaming requests that control how inputs/ouputs are
 handled in the stream.
 
Protobuf type tensorflow.serving.PredictStreamedOptions
See Also:
  • Field Details

    • REQUEST_STATE_FIELD_NUMBER

      public static final int REQUEST_STATE_FIELD_NUMBER
      See Also:
    • SPLIT_DIMENSIONS_FIELD_NUMBER

      public static final int SPLIT_DIMENSIONS_FIELD_NUMBER
      See Also:
    • RETURN_SINGLE_RESPONSE_FIELD_NUMBER

      public static final int RETURN_SINGLE_RESPONSE_FIELD_NUMBER
      See Also:
  • 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
    • getRequestStateValue

      public int getRequestStateValue()
       Request state used to handle segmentation of requests.
       
      .tensorflow.serving.PredictStreamedOptions.RequestState request_state = 1;
      Specified by:
      getRequestStateValue in interface Predict.PredictStreamedOptionsOrBuilder
      Returns:
      The enum numeric value on the wire for requestState.
    • getRequestState

       Request state used to handle segmentation of requests.
       
      .tensorflow.serving.PredictStreamedOptions.RequestState request_state = 1;
      Specified by:
      getRequestState in interface Predict.PredictStreamedOptionsOrBuilder
      Returns:
      The requestState.
    • getSplitDimensionsCount

      public int getSplitDimensionsCount()
      Description copied from interface: Predict.PredictStreamedOptionsOrBuilder
       Input tensors split dimensions.
       Defines the dimension used to split input tensors specified
       in PredictRequest.inputs. The dimension will be used
       for concatenation of multiple SPLIT requests.
      
       For input tensor in PredictRequest.inputs that are not contained in this
       map, the tensors from the first SPLIT request will be used.
      
       For example, with an original input tensor of [[1, 2, 3, 4], [5, 6, 7, 8]].
      
       For a split dimension of 0 and two requests (SPLIT and END_SPLIT), the
       input tensors for request 1 should be [1, 2, 3, 4] and request 2 should be
       be [5, 6, 7, 8].
      
       For a split dimension of 1 and two requests (SPLIT and END_SPLIT), the
       input tensors for request 1 should be [[1, 2], [5, 6]] and request 2 should
       be [[3, 4], [7, 8]].
       
      map<string, int32> split_dimensions = 2;
      Specified by:
      getSplitDimensionsCount in interface Predict.PredictStreamedOptionsOrBuilder
    • containsSplitDimensions

      public boolean containsSplitDimensions(String key)
       Input tensors split dimensions.
       Defines the dimension used to split input tensors specified
       in PredictRequest.inputs. The dimension will be used
       for concatenation of multiple SPLIT requests.
      
       For input tensor in PredictRequest.inputs that are not contained in this
       map, the tensors from the first SPLIT request will be used.
      
       For example, with an original input tensor of [[1, 2, 3, 4], [5, 6, 7, 8]].
      
       For a split dimension of 0 and two requests (SPLIT and END_SPLIT), the
       input tensors for request 1 should be [1, 2, 3, 4] and request 2 should be
       be [5, 6, 7, 8].
      
       For a split dimension of 1 and two requests (SPLIT and END_SPLIT), the
       input tensors for request 1 should be [[1, 2], [5, 6]] and request 2 should
       be [[3, 4], [7, 8]].
       
      map<string, int32> split_dimensions = 2;
      Specified by:
      containsSplitDimensions in interface Predict.PredictStreamedOptionsOrBuilder
    • getSplitDimensions

      @Deprecated public Map<String,Integer> getSplitDimensions()
      Deprecated.
      Specified by:
      getSplitDimensions in interface Predict.PredictStreamedOptionsOrBuilder
    • getSplitDimensionsMap

      public Map<String,Integer> getSplitDimensionsMap()
       Input tensors split dimensions.
       Defines the dimension used to split input tensors specified
       in PredictRequest.inputs. The dimension will be used
       for concatenation of multiple SPLIT requests.
      
       For input tensor in PredictRequest.inputs that are not contained in this
       map, the tensors from the first SPLIT request will be used.
      
       For example, with an original input tensor of [[1, 2, 3, 4], [5, 6, 7, 8]].
      
       For a split dimension of 0 and two requests (SPLIT and END_SPLIT), the
       input tensors for request 1 should be [1, 2, 3, 4] and request 2 should be
       be [5, 6, 7, 8].
      
       For a split dimension of 1 and two requests (SPLIT and END_SPLIT), the
       input tensors for request 1 should be [[1, 2], [5, 6]] and request 2 should
       be [[3, 4], [7, 8]].
       
      map<string, int32> split_dimensions = 2;
      Specified by:
      getSplitDimensionsMap in interface Predict.PredictStreamedOptionsOrBuilder
    • getSplitDimensionsOrDefault

      public int getSplitDimensionsOrDefault(String key, int defaultValue)
       Input tensors split dimensions.
       Defines the dimension used to split input tensors specified
       in PredictRequest.inputs. The dimension will be used
       for concatenation of multiple SPLIT requests.
      
       For input tensor in PredictRequest.inputs that are not contained in this
       map, the tensors from the first SPLIT request will be used.
      
       For example, with an original input tensor of [[1, 2, 3, 4], [5, 6, 7, 8]].
      
       For a split dimension of 0 and two requests (SPLIT and END_SPLIT), the
       input tensors for request 1 should be [1, 2, 3, 4] and request 2 should be
       be [5, 6, 7, 8].
      
       For a split dimension of 1 and two requests (SPLIT and END_SPLIT), the
       input tensors for request 1 should be [[1, 2], [5, 6]] and request 2 should
       be [[3, 4], [7, 8]].
       
      map<string, int32> split_dimensions = 2;
      Specified by:
      getSplitDimensionsOrDefault in interface Predict.PredictStreamedOptionsOrBuilder
    • getSplitDimensionsOrThrow

      public int getSplitDimensionsOrThrow(String key)
       Input tensors split dimensions.
       Defines the dimension used to split input tensors specified
       in PredictRequest.inputs. The dimension will be used
       for concatenation of multiple SPLIT requests.
      
       For input tensor in PredictRequest.inputs that are not contained in this
       map, the tensors from the first SPLIT request will be used.
      
       For example, with an original input tensor of [[1, 2, 3, 4], [5, 6, 7, 8]].
      
       For a split dimension of 0 and two requests (SPLIT and END_SPLIT), the
       input tensors for request 1 should be [1, 2, 3, 4] and request 2 should be
       be [5, 6, 7, 8].
      
       For a split dimension of 1 and two requests (SPLIT and END_SPLIT), the
       input tensors for request 1 should be [[1, 2], [5, 6]] and request 2 should
       be [[3, 4], [7, 8]].
       
      map<string, int32> split_dimensions = 2;
      Specified by:
      getSplitDimensionsOrThrow in interface Predict.PredictStreamedOptionsOrBuilder
    • getReturnSingleResponse

      public boolean getReturnSingleResponse()
       If true, there will be a single PredictResponse output.
       If false, output can be split into 1 or more PredictResponses.
       Value of this field should be the same for all requests in the stream.
       
      bool return_single_response = 3;
      Specified by:
      getReturnSingleResponse in interface Predict.PredictStreamedOptionsOrBuilder
      Returns:
      The returnSingleResponse.
    • 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.PredictStreamedOptions parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

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

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

      public static Predict.PredictStreamedOptions 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.PredictStreamedOptions parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

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

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

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

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

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

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

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

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

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

    • toBuilder

      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

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

      public static Predict.PredictStreamedOptions getDefaultInstance()
    • parser

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

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