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 typetensorflow.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, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeFrom, newUninitializedMessageException
-
-
-
-
Method Detail
-
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
public 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
public SessionServiceOuterClass.SessionRunRequest getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public SessionServiceOuterClass.SessionRunRequest build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public SessionServiceOuterClass.SessionRunRequest buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public SessionServiceOuterClass.SessionRunRequest.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
public Model.ModelSpec 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
public SessionServiceOuterClass.SessionRunRequest.Builder setModelSpec(Model.ModelSpec value)
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
public SessionServiceOuterClass.SessionRunRequest.Builder mergeModelSpec(Model.ModelSpec value)
Model Specification. If version is not specified, will use the latest (numerical) version.
.tensorflow.serving.ModelSpec model_spec = 1;
-
clearModelSpec
public SessionServiceOuterClass.SessionRunRequest.Builder clearModelSpec()
Model Specification. If version is not specified, will use the latest (numerical) version.
.tensorflow.serving.ModelSpec model_spec = 1;
-
getModelSpecBuilder
public Model.ModelSpec.Builder getModelSpecBuilder()
Model Specification. If version is not specified, will use the latest (numerical) version.
.tensorflow.serving.ModelSpec model_spec = 1;
-
getModelSpecOrBuilder
public Model.ModelSpecOrBuilder 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
public java.util.List<NamedTensorProto> 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
public NamedTensorProto getFeed(int index)
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
public SessionServiceOuterClass.SessionRunRequest.Builder addFeed(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(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
public SessionServiceOuterClass.SessionRunRequest.Builder clearFeed()
Tensors to be fed in the step. Each feed is a named tensor.
repeated .tensorflow.NamedTensorProto feed = 2;
-
removeFeed
public SessionServiceOuterClass.SessionRunRequest.Builder removeFeed(int index)
Tensors to be fed in the step. Each feed is a named tensor.
repeated .tensorflow.NamedTensorProto feed = 2;
-
getFeedBuilder
public NamedTensorProto.Builder getFeedBuilder(int index)
Tensors to be fed in the step. Each feed is a named tensor.
repeated .tensorflow.NamedTensorProto feed = 2;
-
getFeedOrBuilder
public NamedTensorProtoOrBuilder getFeedOrBuilder(int index)
Tensors to be fed in the step. Each feed is a named tensor.
repeated .tensorflow.NamedTensorProto feed = 2;- Specified by:
getFeedOrBuilderin interfaceSessionServiceOuterClass.SessionRunRequestOrBuilder
-
getFeedOrBuilderList
public java.util.List<? extends NamedTensorProtoOrBuilder> 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
public NamedTensorProto.Builder addFeedBuilder()
Tensors to be fed in the step. Each feed is a named tensor.
repeated .tensorflow.NamedTensorProto feed = 2;
-
addFeedBuilder
public NamedTensorProto.Builder addFeedBuilder(int index)
Tensors to be fed in the step. Each feed is a named tensor.
repeated .tensorflow.NamedTensorProto feed = 2;
-
getFeedBuilderList
public java.util.List<NamedTensorProto.Builder> 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
public SessionServiceOuterClass.SessionRunRequest.Builder addFetch(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:
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
public SessionServiceOuterClass.SessionRunRequest.Builder 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
public SessionServiceOuterClass.SessionRunRequest.Builder addTarget(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:
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
public SessionServiceOuterClass.SessionRunRequest.Builder 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
public RunOptions getOptions()
Options for the run call. **Currently ignored.**
.tensorflow.RunOptions options = 5;- Specified by:
getOptionsin interfaceSessionServiceOuterClass.SessionRunRequestOrBuilder- Returns:
- The options.
-
setOptions
public SessionServiceOuterClass.SessionRunRequest.Builder setOptions(RunOptions value)
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
public SessionServiceOuterClass.SessionRunRequest.Builder mergeOptions(RunOptions value)
Options for the run call. **Currently ignored.**
.tensorflow.RunOptions options = 5;
-
clearOptions
public SessionServiceOuterClass.SessionRunRequest.Builder clearOptions()
Options for the run call. **Currently ignored.**
.tensorflow.RunOptions options = 5;
-
getOptionsBuilder
public RunOptions.Builder getOptionsBuilder()
Options for the run call. **Currently ignored.**
.tensorflow.RunOptions options = 5;
-
getOptionsOrBuilder
public RunOptionsOrBuilder 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>
-
-