Package tensorflow.serving
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:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classOptions only used for streaming requests that control how inputs/ouputs are handled in the stream.static enumProtobuf enumtensorflow.serving.PredictStreamedOptions.RequestStateNested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessageV3
alwaysUseFieldBuilders, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleanInput tensors split dimensions.booleanstatic final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Parser<Predict.PredictStreamedOptions> Request state used to handle segmentation of requests.intRequest state used to handle segmentation of requests.booleanIf true, there will be a single PredictResponse output.intDeprecated.intInput tensors split dimensions.Input tensors split dimensions.intgetSplitDimensionsOrDefault(String key, int defaultValue) Input tensors split dimensions.intInput tensors split dimensions.inthashCode()protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableprotected com.google.protobuf.MapFieldReflectionAccessorinternalGetMapFieldReflection(int number) final booleannewBuilder(Predict.PredictStreamedOptions prototype) protected Predict.PredictStreamedOptions.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) parseDelimitedFrom(InputStream input) parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) parseFrom(byte[] data) parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) parseFrom(com.google.protobuf.ByteString data) parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) parseFrom(com.google.protobuf.CodedInputStream input) parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) parseFrom(InputStream input) parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) parseFrom(ByteBuffer data) parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<Predict.PredictStreamedOptions> parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
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
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number) - Overrides:
internalGetMapFieldReflectionin classcom.google.protobuf.GeneratedMessageV3
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3
-
getRequestStateValue
public int getRequestStateValue()Request state used to handle segmentation of requests.
.tensorflow.serving.PredictStreamedOptions.RequestState request_state = 1;- Specified by:
getRequestStateValuein interfacePredict.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:
getRequestStatein interfacePredict.PredictStreamedOptionsOrBuilder- Returns:
- The requestState.
-
getSplitDimensionsCount
public int getSplitDimensionsCount()Description copied from interface:Predict.PredictStreamedOptionsOrBuilderInput 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:
getSplitDimensionsCountin interfacePredict.PredictStreamedOptionsOrBuilder
-
containsSplitDimensions
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:
containsSplitDimensionsin interfacePredict.PredictStreamedOptionsOrBuilder
-
getSplitDimensions
Deprecated.UsegetSplitDimensionsMap()instead.- Specified by:
getSplitDimensionsin interfacePredict.PredictStreamedOptionsOrBuilder
-
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:
getSplitDimensionsMapin interfacePredict.PredictStreamedOptionsOrBuilder
-
getSplitDimensionsOrDefault
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:
getSplitDimensionsOrDefaultin interfacePredict.PredictStreamedOptionsOrBuilder
-
getSplitDimensionsOrThrow
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:
getSplitDimensionsOrThrowin interfacePredict.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:
getReturnSingleResponsein interfacePredict.PredictStreamedOptionsOrBuilder- Returns:
- The returnSingleResponse.
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.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
- 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
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
public static Predict.PredictStreamedOptions.Builder newBuilder(Predict.PredictStreamedOptions prototype) -
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected Predict.PredictStreamedOptions.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) - Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-