Package tensorflow.serving
Class SessionServiceOuterClass.SessionRunRequest.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderType>
com.google.protobuf.GeneratedMessageV3.Builder<SessionServiceOuterClass.SessionRunRequest.Builder>
tensorflow.serving.SessionServiceOuterClass.SessionRunRequest.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,java.lang.Cloneable,SessionServiceOuterClass.SessionRunRequestOrBuilder
- Enclosing class:
- SessionServiceOuterClass.SessionRunRequest
public static final class SessionServiceOuterClass.SessionRunRequest.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<SessionServiceOuterClass.SessionRunRequest.Builder> implements SessionServiceOuterClass.SessionRunRequestOrBuilder
Protobuf type
tensorflow.serving.SessionRunRequest-
Method Summary
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeFrom, newUninitializedMessageException
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<SessionServiceOuterClass.SessionRunRequest.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<SessionServiceOuterClass.SessionRunRequest.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<SessionServiceOuterClass.SessionRunRequest.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<SessionServiceOuterClass.SessionRunRequest.Builder>
-
setField
public SessionServiceOuterClass.SessionRunRequest.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<SessionServiceOuterClass.SessionRunRequest.Builder>
-
clearField
public SessionServiceOuterClass.SessionRunRequest.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<SessionServiceOuterClass.SessionRunRequest.Builder>
-
clearOneof
public SessionServiceOuterClass.SessionRunRequest.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<SessionServiceOuterClass.SessionRunRequest.Builder>
-
setRepeatedField
public SessionServiceOuterClass.SessionRunRequest.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<SessionServiceOuterClass.SessionRunRequest.Builder>
-
addRepeatedField
public SessionServiceOuterClass.SessionRunRequest.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<SessionServiceOuterClass.SessionRunRequest.Builder>
-
mergeFrom
public SessionServiceOuterClass.SessionRunRequest.Builder mergeFrom(com.google.protobuf.Message other)- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<SessionServiceOuterClass.SessionRunRequest.Builder>
-
mergeFrom
public SessionServiceOuterClass.SessionRunRequest.Builder mergeFrom(SessionServiceOuterClass.SessionRunRequest other) -
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<SessionServiceOuterClass.SessionRunRequest.Builder>
-
mergeFrom
public SessionServiceOuterClass.SessionRunRequest.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<SessionServiceOuterClass.SessionRunRequest.Builder>- Throws:
java.io.IOException
-
hasModelSpec
public boolean hasModelSpec()Model Specification. If version is not specified, will use the latest (numerical) version.
.tensorflow.serving.ModelSpec model_spec = 1;- Specified by:
hasModelSpecin interfaceSessionServiceOuterClass.SessionRunRequestOrBuilder- Returns:
- Whether the modelSpec field is set.
-
getModelSpec
Model Specification. If version is not specified, will use the latest (numerical) version.
.tensorflow.serving.ModelSpec model_spec = 1;- Specified by:
getModelSpecin interfaceSessionServiceOuterClass.SessionRunRequestOrBuilder- Returns:
- The modelSpec.
-
setModelSpec
Model Specification. If version is not specified, will use the latest (numerical) version.
.tensorflow.serving.ModelSpec model_spec = 1; -
setModelSpec
public SessionServiceOuterClass.SessionRunRequest.Builder setModelSpec(Model.ModelSpec.Builder builderForValue)Model Specification. If version is not specified, will use the latest (numerical) version.
.tensorflow.serving.ModelSpec model_spec = 1; -
mergeModelSpec
Model Specification. If version is not specified, will use the latest (numerical) version.
.tensorflow.serving.ModelSpec model_spec = 1; -
clearModelSpec
Model Specification. If version is not specified, will use the latest (numerical) version.
.tensorflow.serving.ModelSpec model_spec = 1; -
getModelSpecBuilder
Model Specification. If version is not specified, will use the latest (numerical) version.
.tensorflow.serving.ModelSpec model_spec = 1; -
getModelSpecOrBuilder
Model Specification. If version is not specified, will use the latest (numerical) version.
.tensorflow.serving.ModelSpec model_spec = 1;- Specified by:
getModelSpecOrBuilderin interfaceSessionServiceOuterClass.SessionRunRequestOrBuilder
-
getFeedList
Tensors to be fed in the step. Each feed is a named tensor.
repeated .tensorflow.NamedTensorProto feed = 2;- Specified by:
getFeedListin interfaceSessionServiceOuterClass.SessionRunRequestOrBuilder
-
getFeedCount
public int getFeedCount()Tensors to be fed in the step. Each feed is a named tensor.
repeated .tensorflow.NamedTensorProto feed = 2;- Specified by:
getFeedCountin interfaceSessionServiceOuterClass.SessionRunRequestOrBuilder
-
getFeed
Tensors to be fed in the step. Each feed is a named tensor.
repeated .tensorflow.NamedTensorProto feed = 2;- Specified by:
getFeedin interfaceSessionServiceOuterClass.SessionRunRequestOrBuilder
-
setFeed
public SessionServiceOuterClass.SessionRunRequest.Builder setFeed(int index, NamedTensorProto value)Tensors to be fed in the step. Each feed is a named tensor.
repeated .tensorflow.NamedTensorProto feed = 2; -
setFeed
public SessionServiceOuterClass.SessionRunRequest.Builder setFeed(int index, NamedTensorProto.Builder builderForValue)Tensors to be fed in the step. Each feed is a named tensor.
repeated .tensorflow.NamedTensorProto feed = 2; -
addFeed
Tensors to be fed in the step. Each feed is a named tensor.
repeated .tensorflow.NamedTensorProto feed = 2; -
addFeed
public SessionServiceOuterClass.SessionRunRequest.Builder addFeed(int index, NamedTensorProto value)Tensors to be fed in the step. Each feed is a named tensor.
repeated .tensorflow.NamedTensorProto feed = 2; -
addFeed
public SessionServiceOuterClass.SessionRunRequest.Builder addFeed(NamedTensorProto.Builder builderForValue)Tensors to be fed in the step. Each feed is a named tensor.
repeated .tensorflow.NamedTensorProto feed = 2; -
addFeed
public SessionServiceOuterClass.SessionRunRequest.Builder addFeed(int index, NamedTensorProto.Builder builderForValue)Tensors to be fed in the step. Each feed is a named tensor.
repeated .tensorflow.NamedTensorProto feed = 2; -
addAllFeed
public SessionServiceOuterClass.SessionRunRequest.Builder addAllFeed(java.lang.Iterable<? extends NamedTensorProto> values)Tensors to be fed in the step. Each feed is a named tensor.
repeated .tensorflow.NamedTensorProto feed = 2; -
clearFeed
Tensors to be fed in the step. Each feed is a named tensor.
repeated .tensorflow.NamedTensorProto feed = 2; -
removeFeed
Tensors to be fed in the step. Each feed is a named tensor.
repeated .tensorflow.NamedTensorProto feed = 2; -
getFeedBuilder
Tensors to be fed in the step. Each feed is a named tensor.
repeated .tensorflow.NamedTensorProto feed = 2; -
getFeedOrBuilder
Tensors to be fed in the step. Each feed is a named tensor.
repeated .tensorflow.NamedTensorProto feed = 2;- Specified by:
getFeedOrBuilderin interfaceSessionServiceOuterClass.SessionRunRequestOrBuilder
-
getFeedOrBuilderList
Tensors to be fed in the step. Each feed is a named tensor.
repeated .tensorflow.NamedTensorProto feed = 2;- Specified by:
getFeedOrBuilderListin interfaceSessionServiceOuterClass.SessionRunRequestOrBuilder
-
addFeedBuilder
Tensors to be fed in the step. Each feed is a named tensor.
repeated .tensorflow.NamedTensorProto feed = 2; -
addFeedBuilder
Tensors to be fed in the step. Each feed is a named tensor.
repeated .tensorflow.NamedTensorProto feed = 2; -
getFeedBuilderList
Tensors to be fed in the step. Each feed is a named tensor.
repeated .tensorflow.NamedTensorProto feed = 2; -
getFetchList
public com.google.protobuf.ProtocolStringList getFetchList()Fetches. A list of tensor names. The caller expects a tensor to be returned for each fetch[i] (see RunResponse.tensor). The order of specified fetches does not change the execution order.
repeated string fetch = 3;- Specified by:
getFetchListin interfaceSessionServiceOuterClass.SessionRunRequestOrBuilder- Returns:
- A list containing the fetch.
-
getFetchCount
public int getFetchCount()Fetches. A list of tensor names. The caller expects a tensor to be returned for each fetch[i] (see RunResponse.tensor). The order of specified fetches does not change the execution order.
repeated string fetch = 3;- Specified by:
getFetchCountin interfaceSessionServiceOuterClass.SessionRunRequestOrBuilder- Returns:
- The count of fetch.
-
getFetch
public java.lang.String getFetch(int index)Fetches. A list of tensor names. The caller expects a tensor to be returned for each fetch[i] (see RunResponse.tensor). The order of specified fetches does not change the execution order.
repeated string fetch = 3;- Specified by:
getFetchin interfaceSessionServiceOuterClass.SessionRunRequestOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The fetch at the given index.
-
getFetchBytes
public com.google.protobuf.ByteString getFetchBytes(int index)Fetches. A list of tensor names. The caller expects a tensor to be returned for each fetch[i] (see RunResponse.tensor). The order of specified fetches does not change the execution order.
repeated string fetch = 3;- Specified by:
getFetchBytesin interfaceSessionServiceOuterClass.SessionRunRequestOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the fetch at the given index.
-
setFetch
public SessionServiceOuterClass.SessionRunRequest.Builder setFetch(int index, java.lang.String value)Fetches. A list of tensor names. The caller expects a tensor to be returned for each fetch[i] (see RunResponse.tensor). The order of specified fetches does not change the execution order.
repeated string fetch = 3;- Parameters:
index- The index to set the value at.value- The fetch to set.- Returns:
- This builder for chaining.
-
addFetch
Fetches. A list of tensor names. The caller expects a tensor to be returned for each fetch[i] (see RunResponse.tensor). The order of specified fetches does not change the execution order.
repeated string fetch = 3;- Parameters:
value- The fetch to add.- Returns:
- This builder for chaining.
-
addAllFetch
public SessionServiceOuterClass.SessionRunRequest.Builder addAllFetch(java.lang.Iterable<java.lang.String> values)Fetches. A list of tensor names. The caller expects a tensor to be returned for each fetch[i] (see RunResponse.tensor). The order of specified fetches does not change the execution order.
repeated string fetch = 3;- Parameters:
values- The fetch to add.- Returns:
- This builder for chaining.
-
clearFetch
Fetches. A list of tensor names. The caller expects a tensor to be returned for each fetch[i] (see RunResponse.tensor). The order of specified fetches does not change the execution order.
repeated string fetch = 3;- Returns:
- This builder for chaining.
-
addFetchBytes
public SessionServiceOuterClass.SessionRunRequest.Builder addFetchBytes(com.google.protobuf.ByteString value)Fetches. A list of tensor names. The caller expects a tensor to be returned for each fetch[i] (see RunResponse.tensor). The order of specified fetches does not change the execution order.
repeated string fetch = 3;- Parameters:
value- The bytes of the fetch to add.- Returns:
- This builder for chaining.
-
getTargetList
public com.google.protobuf.ProtocolStringList getTargetList()Target Nodes. A list of node names. The named nodes will be run to but their outputs will not be fetched.
repeated string target = 4;- Specified by:
getTargetListin interfaceSessionServiceOuterClass.SessionRunRequestOrBuilder- Returns:
- A list containing the target.
-
getTargetCount
public int getTargetCount()Target Nodes. A list of node names. The named nodes will be run to but their outputs will not be fetched.
repeated string target = 4;- Specified by:
getTargetCountin interfaceSessionServiceOuterClass.SessionRunRequestOrBuilder- Returns:
- The count of target.
-
getTarget
public java.lang.String getTarget(int index)Target Nodes. A list of node names. The named nodes will be run to but their outputs will not be fetched.
repeated string target = 4;- Specified by:
getTargetin interfaceSessionServiceOuterClass.SessionRunRequestOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The target at the given index.
-
getTargetBytes
public com.google.protobuf.ByteString getTargetBytes(int index)Target Nodes. A list of node names. The named nodes will be run to but their outputs will not be fetched.
repeated string target = 4;- Specified by:
getTargetBytesin interfaceSessionServiceOuterClass.SessionRunRequestOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the target at the given index.
-
setTarget
public SessionServiceOuterClass.SessionRunRequest.Builder setTarget(int index, java.lang.String value)Target Nodes. A list of node names. The named nodes will be run to but their outputs will not be fetched.
repeated string target = 4;- Parameters:
index- The index to set the value at.value- The target to set.- Returns:
- This builder for chaining.
-
addTarget
Target Nodes. A list of node names. The named nodes will be run to but their outputs will not be fetched.
repeated string target = 4;- Parameters:
value- The target to add.- Returns:
- This builder for chaining.
-
addAllTarget
public SessionServiceOuterClass.SessionRunRequest.Builder addAllTarget(java.lang.Iterable<java.lang.String> values)Target Nodes. A list of node names. The named nodes will be run to but their outputs will not be fetched.
repeated string target = 4;- Parameters:
values- The target to add.- Returns:
- This builder for chaining.
-
clearTarget
Target Nodes. A list of node names. The named nodes will be run to but their outputs will not be fetched.
repeated string target = 4;- Returns:
- This builder for chaining.
-
addTargetBytes
public SessionServiceOuterClass.SessionRunRequest.Builder addTargetBytes(com.google.protobuf.ByteString value)Target Nodes. A list of node names. The named nodes will be run to but their outputs will not be fetched.
repeated string target = 4;- Parameters:
value- The bytes of the target to add.- Returns:
- This builder for chaining.
-
hasOptions
public boolean hasOptions()Options for the run call. **Currently ignored.**
.tensorflow.RunOptions options = 5;- Specified by:
hasOptionsin interfaceSessionServiceOuterClass.SessionRunRequestOrBuilder- Returns:
- Whether the options field is set.
-
getOptions
Options for the run call. **Currently ignored.**
.tensorflow.RunOptions options = 5;- Specified by:
getOptionsin interfaceSessionServiceOuterClass.SessionRunRequestOrBuilder- Returns:
- The options.
-
setOptions
Options for the run call. **Currently ignored.**
.tensorflow.RunOptions options = 5; -
setOptions
public SessionServiceOuterClass.SessionRunRequest.Builder setOptions(RunOptions.Builder builderForValue)Options for the run call. **Currently ignored.**
.tensorflow.RunOptions options = 5; -
mergeOptions
Options for the run call. **Currently ignored.**
.tensorflow.RunOptions options = 5; -
clearOptions
Options for the run call. **Currently ignored.**
.tensorflow.RunOptions options = 5; -
getOptionsBuilder
Options for the run call. **Currently ignored.**
.tensorflow.RunOptions options = 5; -
getOptionsOrBuilder
Options for the run call. **Currently ignored.**
.tensorflow.RunOptions options = 5;- Specified by:
getOptionsOrBuilderin interfaceSessionServiceOuterClass.SessionRunRequestOrBuilder
-
setUnknownFields
public final SessionServiceOuterClass.SessionRunRequest.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<SessionServiceOuterClass.SessionRunRequest.Builder>
-
mergeUnknownFields
public final SessionServiceOuterClass.SessionRunRequest.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<SessionServiceOuterClass.SessionRunRequest.Builder>
-