Package tensorflow.serving
Class Predict.PredictStreamedOptions.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<Predict.PredictStreamedOptions.Builder>
com.google.protobuf.GeneratedMessageV3.Builder<Predict.PredictStreamedOptions.Builder>
tensorflow.serving.Predict.PredictStreamedOptions.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable,Predict.PredictStreamedOptionsOrBuilder
- Enclosing class:
Predict.PredictStreamedOptions
public static final class Predict.PredictStreamedOptions.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<Predict.PredictStreamedOptions.Builder>
implements Predict.PredictStreamedOptionsOrBuilder
Options only used for streaming requests that control how inputs/ouputs are handled in the stream.Protobuf type
tensorflow.serving.PredictStreamedOptions-
Method Summary
Modifier and TypeMethodDescriptionaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()clearField(com.google.protobuf.Descriptors.FieldDescriptor field) clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) Request state used to handle segmentation of requests.If true, there will be a single PredictResponse output.clone()booleanInput tensors split dimensions.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorDeprecated.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.Deprecated.intInput tensors split dimensions.Input tensors split dimensions.intgetSplitDimensionsOrDefault(String key, int defaultValue) Input tensors split dimensions.intInput tensors split dimensions.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableprotected com.google.protobuf.MapFieldReflectionAccessorinternalGetMapFieldReflection(int number) protected com.google.protobuf.MapFieldReflectionAccessorinternalGetMutableMapFieldReflection(int number) final booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) putAllSplitDimensions(Map<String, Integer> values) Input tensors split dimensions.putSplitDimensions(String key, int value) Input tensors split dimensions.Input tensors split dimensions.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) Request state used to handle segmentation of requests.setRequestStateValue(int value) Request state used to handle segmentation of requests.setReturnSingleResponse(boolean value) If true, there will be a single PredictResponse output.setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
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.Builder<Predict.PredictStreamedOptions.Builder>
-
internalGetMutableMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number) - Overrides:
internalGetMutableMapFieldReflectionin classcom.google.protobuf.GeneratedMessageV3.Builder<Predict.PredictStreamedOptions.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<Predict.PredictStreamedOptions.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<Predict.PredictStreamedOptions.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<Predict.PredictStreamedOptions.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<Predict.PredictStreamedOptions.Builder>
-
setField
public Predict.PredictStreamedOptions.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Predict.PredictStreamedOptions.Builder>
-
clearField
public Predict.PredictStreamedOptions.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) - Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Predict.PredictStreamedOptions.Builder>
-
clearOneof
public Predict.PredictStreamedOptions.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) - Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<Predict.PredictStreamedOptions.Builder>
-
setRepeatedField
public Predict.PredictStreamedOptions.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) - Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Predict.PredictStreamedOptions.Builder>
-
addRepeatedField
public Predict.PredictStreamedOptions.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Predict.PredictStreamedOptions.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Predict.PredictStreamedOptions.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<Predict.PredictStreamedOptions.Builder>
-
mergeFrom
public Predict.PredictStreamedOptions.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Predict.PredictStreamedOptions.Builder>- Throws:
IOException
-
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.
-
setRequestStateValue
Request state used to handle segmentation of requests.
.tensorflow.serving.PredictStreamedOptions.RequestState request_state = 1;- Parameters:
value- The enum numeric value on the wire for requestState to set.- Returns:
- This builder for chaining.
-
getRequestState
Request state used to handle segmentation of requests.
.tensorflow.serving.PredictStreamedOptions.RequestState request_state = 1;- Specified by:
getRequestStatein interfacePredict.PredictStreamedOptionsOrBuilder- Returns:
- The requestState.
-
setRequestState
public Predict.PredictStreamedOptions.Builder setRequestState(Predict.PredictStreamedOptions.RequestState value) Request state used to handle segmentation of requests.
.tensorflow.serving.PredictStreamedOptions.RequestState request_state = 1;- Parameters:
value- The requestState to set.- Returns:
- This builder for chaining.
-
clearRequestState
Request state used to handle segmentation of requests.
.tensorflow.serving.PredictStreamedOptions.RequestState request_state = 1;- Returns:
- This builder for chaining.
-
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
-
clearSplitDimensions
-
removeSplitDimensions
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; -
getMutableSplitDimensions
Deprecated.Use alternate mutation accessors instead. -
putSplitDimensions
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; -
putAllSplitDimensions
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; -
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.
-
setReturnSingleResponse
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;- Parameters:
value- The returnSingleResponse to set.- Returns:
- This builder for chaining.
-
clearReturnSingleResponse
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;- Returns:
- This builder for chaining.
-
setUnknownFields
public final Predict.PredictStreamedOptions.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Predict.PredictStreamedOptions.Builder>
-
mergeUnknownFields
public final Predict.PredictStreamedOptions.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Predict.PredictStreamedOptions.Builder>
-