Package org.platanios.tensorflow.proto
Class RunGraphRequest.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderType>
-
- com.google.protobuf.GeneratedMessageV3.Builder<RunGraphRequest.Builder>
-
- org.platanios.tensorflow.proto.RunGraphRequest.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
,RunGraphRequestOrBuilder
- Enclosing class:
- RunGraphRequest
public static final class RunGraphRequest.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<RunGraphRequest.Builder> implements RunGraphRequestOrBuilder
Protobuf typeorg.platanios.tensorflow.proto.RunGraphRequest
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description RunGraphRequest.Builder
addAllRecvKey(java.lang.Iterable<java.lang.String> values)
repeated string recv_key = 4;
RunGraphRequest.Builder
addAllSend(java.lang.Iterable<? extends NamedTensorProto> values)
Runs the graph.RunGraphRequest.Builder
addRecvKey(java.lang.String value)
repeated string recv_key = 4;
RunGraphRequest.Builder
addRecvKeyBytes(com.google.protobuf.ByteString value)
repeated string recv_key = 4;
RunGraphRequest.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
RunGraphRequest.Builder
addSend(int index, NamedTensorProto value)
Runs the graph.RunGraphRequest.Builder
addSend(int index, NamedTensorProto.Builder builderForValue)
Runs the graph.RunGraphRequest.Builder
addSend(NamedTensorProto value)
Runs the graph.RunGraphRequest.Builder
addSend(NamedTensorProto.Builder builderForValue)
Runs the graph.NamedTensorProto.Builder
addSendBuilder()
Runs the graph.NamedTensorProto.Builder
addSendBuilder(int index)
Runs the graph.RunGraphRequest
build()
RunGraphRequest
buildPartial()
RunGraphRequest.Builder
clear()
RunGraphRequest.Builder
clearCreateWorkerSessionCalled()
Set to true if `CreateWorkerSession` was called for `session_handle`.RunGraphRequest.Builder
clearExecOpts()
Options for this step.RunGraphRequest.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
RunGraphRequest.Builder
clearGraphHandle()
REQUIRED: graph_handle must be returned by a RegisterGraph call to the same WorkerService.RunGraphRequest.Builder
clearIsLastPartialRun()
True if this is the last partial run request in a sequence of requests.RunGraphRequest.Builder
clearIsPartial()
True if the RunGraphRequest is a partial run request.RunGraphRequest.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
RunGraphRequest.Builder
clearRecvKey()
repeated string recv_key = 4;
RunGraphRequest.Builder
clearRequestId()
Unique identifier for this request.RunGraphRequest.Builder
clearSend()
Runs the graph.RunGraphRequest.Builder
clearSessionHandle()
session_handle is the master-generated unique id for this session.RunGraphRequest.Builder
clearStepId()
A unique ID to distinguish different runs of the same graph.RunGraphRequest.Builder
clearStoreErrorsInResponseBody()
If true then some errors, e.g., execution errors that have long error messages, may return an OK RunGraphResponse with the actual error saved in the status_code/status_error_message fields of the response body.RunGraphRequest.Builder
clone()
boolean
getCreateWorkerSessionCalled()
Set to true if `CreateWorkerSession` was called for `session_handle`.RunGraphRequest
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
ExecutorOpts
getExecOpts()
Options for this step.ExecutorOpts.Builder
getExecOptsBuilder()
Options for this step.ExecutorOptsOrBuilder
getExecOptsOrBuilder()
Options for this step.java.lang.String
getGraphHandle()
REQUIRED: graph_handle must be returned by a RegisterGraph call to the same WorkerService.com.google.protobuf.ByteString
getGraphHandleBytes()
REQUIRED: graph_handle must be returned by a RegisterGraph call to the same WorkerService.boolean
getIsLastPartialRun()
True if this is the last partial run request in a sequence of requests.boolean
getIsPartial()
True if the RunGraphRequest is a partial run request.java.lang.String
getRecvKey(int index)
repeated string recv_key = 4;
com.google.protobuf.ByteString
getRecvKeyBytes(int index)
repeated string recv_key = 4;
int
getRecvKeyCount()
repeated string recv_key = 4;
com.google.protobuf.ProtocolStringList
getRecvKeyList()
repeated string recv_key = 4;
long
getRequestId()
Unique identifier for this request.NamedTensorProto
getSend(int index)
Runs the graph.NamedTensorProto.Builder
getSendBuilder(int index)
Runs the graph.java.util.List<NamedTensorProto.Builder>
getSendBuilderList()
Runs the graph.int
getSendCount()
Runs the graph.java.util.List<NamedTensorProto>
getSendList()
Runs the graph.NamedTensorProtoOrBuilder
getSendOrBuilder(int index)
Runs the graph.java.util.List<? extends NamedTensorProtoOrBuilder>
getSendOrBuilderList()
Runs the graph.java.lang.String
getSessionHandle()
session_handle is the master-generated unique id for this session.com.google.protobuf.ByteString
getSessionHandleBytes()
session_handle is the master-generated unique id for this session.long
getStepId()
A unique ID to distinguish different runs of the same graph.boolean
getStoreErrorsInResponseBody()
If true then some errors, e.g., execution errors that have long error messages, may return an OK RunGraphResponse with the actual error saved in the status_code/status_error_message fields of the response body.boolean
hasExecOpts()
Options for this step.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
RunGraphRequest.Builder
mergeExecOpts(ExecutorOpts value)
Options for this step.RunGraphRequest.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
RunGraphRequest.Builder
mergeFrom(com.google.protobuf.Message other)
RunGraphRequest.Builder
mergeFrom(RunGraphRequest other)
RunGraphRequest.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
RunGraphRequest.Builder
removeSend(int index)
Runs the graph.RunGraphRequest.Builder
setCreateWorkerSessionCalled(boolean value)
Set to true if `CreateWorkerSession` was called for `session_handle`.RunGraphRequest.Builder
setExecOpts(ExecutorOpts value)
Options for this step.RunGraphRequest.Builder
setExecOpts(ExecutorOpts.Builder builderForValue)
Options for this step.RunGraphRequest.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
RunGraphRequest.Builder
setGraphHandle(java.lang.String value)
REQUIRED: graph_handle must be returned by a RegisterGraph call to the same WorkerService.RunGraphRequest.Builder
setGraphHandleBytes(com.google.protobuf.ByteString value)
REQUIRED: graph_handle must be returned by a RegisterGraph call to the same WorkerService.RunGraphRequest.Builder
setIsLastPartialRun(boolean value)
True if this is the last partial run request in a sequence of requests.RunGraphRequest.Builder
setIsPartial(boolean value)
True if the RunGraphRequest is a partial run request.RunGraphRequest.Builder
setRecvKey(int index, java.lang.String value)
repeated string recv_key = 4;
RunGraphRequest.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
RunGraphRequest.Builder
setRequestId(long value)
Unique identifier for this request.RunGraphRequest.Builder
setSend(int index, NamedTensorProto value)
Runs the graph.RunGraphRequest.Builder
setSend(int index, NamedTensorProto.Builder builderForValue)
Runs the graph.RunGraphRequest.Builder
setSessionHandle(java.lang.String value)
session_handle is the master-generated unique id for this session.RunGraphRequest.Builder
setSessionHandleBytes(com.google.protobuf.ByteString value)
session_handle is the master-generated unique id for this session.RunGraphRequest.Builder
setStepId(long value)
A unique ID to distinguish different runs of the same graph.RunGraphRequest.Builder
setStoreErrorsInResponseBody(boolean value)
If true then some errors, e.g., execution errors that have long error messages, may return an OK RunGraphResponse with the actual error saved in the status_code/status_error_message fields of the response body.RunGraphRequest.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
-
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:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<RunGraphRequest.Builder>
-
clear
public RunGraphRequest.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<RunGraphRequest.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<RunGraphRequest.Builder>
-
getDefaultInstanceForType
public RunGraphRequest getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public RunGraphRequest build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public RunGraphRequest buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public RunGraphRequest.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<RunGraphRequest.Builder>
-
setField
public RunGraphRequest.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<RunGraphRequest.Builder>
-
clearField
public RunGraphRequest.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<RunGraphRequest.Builder>
-
clearOneof
public RunGraphRequest.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<RunGraphRequest.Builder>
-
setRepeatedField
public RunGraphRequest.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<RunGraphRequest.Builder>
-
addRepeatedField
public RunGraphRequest.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<RunGraphRequest.Builder>
-
mergeFrom
public RunGraphRequest.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<RunGraphRequest.Builder>
-
mergeFrom
public RunGraphRequest.Builder mergeFrom(RunGraphRequest other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<RunGraphRequest.Builder>
-
mergeFrom
public RunGraphRequest.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<RunGraphRequest.Builder>
- Throws:
java.io.IOException
-
getSessionHandle
public java.lang.String getSessionHandle()
session_handle is the master-generated unique id for this session. If session_handle is non-empty, it must be the same as used when registering the graph. If it is empty, a single global namespace is used to search for the graph_handle.
string session_handle = 8;
- Specified by:
getSessionHandle
in interfaceRunGraphRequestOrBuilder
- Returns:
- The sessionHandle.
-
getSessionHandleBytes
public com.google.protobuf.ByteString getSessionHandleBytes()
session_handle is the master-generated unique id for this session. If session_handle is non-empty, it must be the same as used when registering the graph. If it is empty, a single global namespace is used to search for the graph_handle.
string session_handle = 8;
- Specified by:
getSessionHandleBytes
in interfaceRunGraphRequestOrBuilder
- Returns:
- The bytes for sessionHandle.
-
setSessionHandle
public RunGraphRequest.Builder setSessionHandle(java.lang.String value)
session_handle is the master-generated unique id for this session. If session_handle is non-empty, it must be the same as used when registering the graph. If it is empty, a single global namespace is used to search for the graph_handle.
string session_handle = 8;
- Parameters:
value
- The sessionHandle to set.- Returns:
- This builder for chaining.
-
clearSessionHandle
public RunGraphRequest.Builder clearSessionHandle()
session_handle is the master-generated unique id for this session. If session_handle is non-empty, it must be the same as used when registering the graph. If it is empty, a single global namespace is used to search for the graph_handle.
string session_handle = 8;
- Returns:
- This builder for chaining.
-
setSessionHandleBytes
public RunGraphRequest.Builder setSessionHandleBytes(com.google.protobuf.ByteString value)
session_handle is the master-generated unique id for this session. If session_handle is non-empty, it must be the same as used when registering the graph. If it is empty, a single global namespace is used to search for the graph_handle.
string session_handle = 8;
- Parameters:
value
- The bytes for sessionHandle to set.- Returns:
- This builder for chaining.
-
getCreateWorkerSessionCalled
public boolean getCreateWorkerSessionCalled()
Set to true if `CreateWorkerSession` was called for `session_handle`.
bool create_worker_session_called = 10;
- Specified by:
getCreateWorkerSessionCalled
in interfaceRunGraphRequestOrBuilder
- Returns:
- The createWorkerSessionCalled.
-
setCreateWorkerSessionCalled
public RunGraphRequest.Builder setCreateWorkerSessionCalled(boolean value)
Set to true if `CreateWorkerSession` was called for `session_handle`.
bool create_worker_session_called = 10;
- Parameters:
value
- The createWorkerSessionCalled to set.- Returns:
- This builder for chaining.
-
clearCreateWorkerSessionCalled
public RunGraphRequest.Builder clearCreateWorkerSessionCalled()
Set to true if `CreateWorkerSession` was called for `session_handle`.
bool create_worker_session_called = 10;
- Returns:
- This builder for chaining.
-
getGraphHandle
public java.lang.String getGraphHandle()
REQUIRED: graph_handle must be returned by a RegisterGraph call to the same WorkerService.
string graph_handle = 1;
- Specified by:
getGraphHandle
in interfaceRunGraphRequestOrBuilder
- Returns:
- The graphHandle.
-
getGraphHandleBytes
public com.google.protobuf.ByteString getGraphHandleBytes()
REQUIRED: graph_handle must be returned by a RegisterGraph call to the same WorkerService.
string graph_handle = 1;
- Specified by:
getGraphHandleBytes
in interfaceRunGraphRequestOrBuilder
- Returns:
- The bytes for graphHandle.
-
setGraphHandle
public RunGraphRequest.Builder setGraphHandle(java.lang.String value)
REQUIRED: graph_handle must be returned by a RegisterGraph call to the same WorkerService.
string graph_handle = 1;
- Parameters:
value
- The graphHandle to set.- Returns:
- This builder for chaining.
-
clearGraphHandle
public RunGraphRequest.Builder clearGraphHandle()
REQUIRED: graph_handle must be returned by a RegisterGraph call to the same WorkerService.
string graph_handle = 1;
- Returns:
- This builder for chaining.
-
setGraphHandleBytes
public RunGraphRequest.Builder setGraphHandleBytes(com.google.protobuf.ByteString value)
REQUIRED: graph_handle must be returned by a RegisterGraph call to the same WorkerService.
string graph_handle = 1;
- Parameters:
value
- The bytes for graphHandle to set.- Returns:
- This builder for chaining.
-
getStepId
public long getStepId()
A unique ID to distinguish different runs of the same graph. The master generates a global unique `step_id` to distinguish different runs of the graph computation. Subgraphs communicate (e.g., send/recv ops) with each other using `step_id` to distinguish tensors generated by different runs.
int64 step_id = 2;
- Specified by:
getStepId
in interfaceRunGraphRequestOrBuilder
- Returns:
- The stepId.
-
setStepId
public RunGraphRequest.Builder setStepId(long value)
A unique ID to distinguish different runs of the same graph. The master generates a global unique `step_id` to distinguish different runs of the graph computation. Subgraphs communicate (e.g., send/recv ops) with each other using `step_id` to distinguish tensors generated by different runs.
int64 step_id = 2;
- Parameters:
value
- The stepId to set.- Returns:
- This builder for chaining.
-
clearStepId
public RunGraphRequest.Builder clearStepId()
A unique ID to distinguish different runs of the same graph. The master generates a global unique `step_id` to distinguish different runs of the graph computation. Subgraphs communicate (e.g., send/recv ops) with each other using `step_id` to distinguish tensors generated by different runs.
int64 step_id = 2;
- Returns:
- This builder for chaining.
-
hasExecOpts
public boolean hasExecOpts()
Options for this step.
.org.platanios.tensorflow.proto.ExecutorOpts exec_opts = 5;
- Specified by:
hasExecOpts
in interfaceRunGraphRequestOrBuilder
- Returns:
- Whether the execOpts field is set.
-
getExecOpts
public ExecutorOpts getExecOpts()
Options for this step.
.org.platanios.tensorflow.proto.ExecutorOpts exec_opts = 5;
- Specified by:
getExecOpts
in interfaceRunGraphRequestOrBuilder
- Returns:
- The execOpts.
-
setExecOpts
public RunGraphRequest.Builder setExecOpts(ExecutorOpts value)
Options for this step.
.org.platanios.tensorflow.proto.ExecutorOpts exec_opts = 5;
-
setExecOpts
public RunGraphRequest.Builder setExecOpts(ExecutorOpts.Builder builderForValue)
Options for this step.
.org.platanios.tensorflow.proto.ExecutorOpts exec_opts = 5;
-
mergeExecOpts
public RunGraphRequest.Builder mergeExecOpts(ExecutorOpts value)
Options for this step.
.org.platanios.tensorflow.proto.ExecutorOpts exec_opts = 5;
-
clearExecOpts
public RunGraphRequest.Builder clearExecOpts()
Options for this step.
.org.platanios.tensorflow.proto.ExecutorOpts exec_opts = 5;
-
getExecOptsBuilder
public ExecutorOpts.Builder getExecOptsBuilder()
Options for this step.
.org.platanios.tensorflow.proto.ExecutorOpts exec_opts = 5;
-
getExecOptsOrBuilder
public ExecutorOptsOrBuilder getExecOptsOrBuilder()
Options for this step.
.org.platanios.tensorflow.proto.ExecutorOpts exec_opts = 5;
- Specified by:
getExecOptsOrBuilder
in interfaceRunGraphRequestOrBuilder
-
getSendList
public java.util.List<NamedTensorProto> getSendList()
Runs the graph. Sends the tensors in "send" into the graph before the run and fetches the keys into `RunGraphResponse.recv` after the run.
repeated .org.platanios.tensorflow.proto.NamedTensorProto send = 3;
- Specified by:
getSendList
in interfaceRunGraphRequestOrBuilder
-
getSendCount
public int getSendCount()
Runs the graph. Sends the tensors in "send" into the graph before the run and fetches the keys into `RunGraphResponse.recv` after the run.
repeated .org.platanios.tensorflow.proto.NamedTensorProto send = 3;
- Specified by:
getSendCount
in interfaceRunGraphRequestOrBuilder
-
getSend
public NamedTensorProto getSend(int index)
Runs the graph. Sends the tensors in "send" into the graph before the run and fetches the keys into `RunGraphResponse.recv` after the run.
repeated .org.platanios.tensorflow.proto.NamedTensorProto send = 3;
- Specified by:
getSend
in interfaceRunGraphRequestOrBuilder
-
setSend
public RunGraphRequest.Builder setSend(int index, NamedTensorProto value)
Runs the graph. Sends the tensors in "send" into the graph before the run and fetches the keys into `RunGraphResponse.recv` after the run.
repeated .org.platanios.tensorflow.proto.NamedTensorProto send = 3;
-
setSend
public RunGraphRequest.Builder setSend(int index, NamedTensorProto.Builder builderForValue)
Runs the graph. Sends the tensors in "send" into the graph before the run and fetches the keys into `RunGraphResponse.recv` after the run.
repeated .org.platanios.tensorflow.proto.NamedTensorProto send = 3;
-
addSend
public RunGraphRequest.Builder addSend(NamedTensorProto value)
Runs the graph. Sends the tensors in "send" into the graph before the run and fetches the keys into `RunGraphResponse.recv` after the run.
repeated .org.platanios.tensorflow.proto.NamedTensorProto send = 3;
-
addSend
public RunGraphRequest.Builder addSend(int index, NamedTensorProto value)
Runs the graph. Sends the tensors in "send" into the graph before the run and fetches the keys into `RunGraphResponse.recv` after the run.
repeated .org.platanios.tensorflow.proto.NamedTensorProto send = 3;
-
addSend
public RunGraphRequest.Builder addSend(NamedTensorProto.Builder builderForValue)
Runs the graph. Sends the tensors in "send" into the graph before the run and fetches the keys into `RunGraphResponse.recv` after the run.
repeated .org.platanios.tensorflow.proto.NamedTensorProto send = 3;
-
addSend
public RunGraphRequest.Builder addSend(int index, NamedTensorProto.Builder builderForValue)
Runs the graph. Sends the tensors in "send" into the graph before the run and fetches the keys into `RunGraphResponse.recv` after the run.
repeated .org.platanios.tensorflow.proto.NamedTensorProto send = 3;
-
addAllSend
public RunGraphRequest.Builder addAllSend(java.lang.Iterable<? extends NamedTensorProto> values)
Runs the graph. Sends the tensors in "send" into the graph before the run and fetches the keys into `RunGraphResponse.recv` after the run.
repeated .org.platanios.tensorflow.proto.NamedTensorProto send = 3;
-
clearSend
public RunGraphRequest.Builder clearSend()
Runs the graph. Sends the tensors in "send" into the graph before the run and fetches the keys into `RunGraphResponse.recv` after the run.
repeated .org.platanios.tensorflow.proto.NamedTensorProto send = 3;
-
removeSend
public RunGraphRequest.Builder removeSend(int index)
Runs the graph. Sends the tensors in "send" into the graph before the run and fetches the keys into `RunGraphResponse.recv` after the run.
repeated .org.platanios.tensorflow.proto.NamedTensorProto send = 3;
-
getSendBuilder
public NamedTensorProto.Builder getSendBuilder(int index)
Runs the graph. Sends the tensors in "send" into the graph before the run and fetches the keys into `RunGraphResponse.recv` after the run.
repeated .org.platanios.tensorflow.proto.NamedTensorProto send = 3;
-
getSendOrBuilder
public NamedTensorProtoOrBuilder getSendOrBuilder(int index)
Runs the graph. Sends the tensors in "send" into the graph before the run and fetches the keys into `RunGraphResponse.recv` after the run.
repeated .org.platanios.tensorflow.proto.NamedTensorProto send = 3;
- Specified by:
getSendOrBuilder
in interfaceRunGraphRequestOrBuilder
-
getSendOrBuilderList
public java.util.List<? extends NamedTensorProtoOrBuilder> getSendOrBuilderList()
Runs the graph. Sends the tensors in "send" into the graph before the run and fetches the keys into `RunGraphResponse.recv` after the run.
repeated .org.platanios.tensorflow.proto.NamedTensorProto send = 3;
- Specified by:
getSendOrBuilderList
in interfaceRunGraphRequestOrBuilder
-
addSendBuilder
public NamedTensorProto.Builder addSendBuilder()
Runs the graph. Sends the tensors in "send" into the graph before the run and fetches the keys into `RunGraphResponse.recv` after the run.
repeated .org.platanios.tensorflow.proto.NamedTensorProto send = 3;
-
addSendBuilder
public NamedTensorProto.Builder addSendBuilder(int index)
Runs the graph. Sends the tensors in "send" into the graph before the run and fetches the keys into `RunGraphResponse.recv` after the run.
repeated .org.platanios.tensorflow.proto.NamedTensorProto send = 3;
-
getSendBuilderList
public java.util.List<NamedTensorProto.Builder> getSendBuilderList()
Runs the graph. Sends the tensors in "send" into the graph before the run and fetches the keys into `RunGraphResponse.recv` after the run.
repeated .org.platanios.tensorflow.proto.NamedTensorProto send = 3;
-
getRecvKeyList
public com.google.protobuf.ProtocolStringList getRecvKeyList()
repeated string recv_key = 4;
- Specified by:
getRecvKeyList
in interfaceRunGraphRequestOrBuilder
- Returns:
- A list containing the recvKey.
-
getRecvKeyCount
public int getRecvKeyCount()
repeated string recv_key = 4;
- Specified by:
getRecvKeyCount
in interfaceRunGraphRequestOrBuilder
- Returns:
- The count of recvKey.
-
getRecvKey
public java.lang.String getRecvKey(int index)
repeated string recv_key = 4;
- Specified by:
getRecvKey
in interfaceRunGraphRequestOrBuilder
- Parameters:
index
- The index of the element to return.- Returns:
- The recvKey at the given index.
-
getRecvKeyBytes
public com.google.protobuf.ByteString getRecvKeyBytes(int index)
repeated string recv_key = 4;
- Specified by:
getRecvKeyBytes
in interfaceRunGraphRequestOrBuilder
- Parameters:
index
- The index of the value to return.- Returns:
- The bytes of the recvKey at the given index.
-
setRecvKey
public RunGraphRequest.Builder setRecvKey(int index, java.lang.String value)
repeated string recv_key = 4;
- Parameters:
index
- The index to set the value at.value
- The recvKey to set.- Returns:
- This builder for chaining.
-
addRecvKey
public RunGraphRequest.Builder addRecvKey(java.lang.String value)
repeated string recv_key = 4;
- Parameters:
value
- The recvKey to add.- Returns:
- This builder for chaining.
-
addAllRecvKey
public RunGraphRequest.Builder addAllRecvKey(java.lang.Iterable<java.lang.String> values)
repeated string recv_key = 4;
- Parameters:
values
- The recvKey to add.- Returns:
- This builder for chaining.
-
clearRecvKey
public RunGraphRequest.Builder clearRecvKey()
repeated string recv_key = 4;
- Returns:
- This builder for chaining.
-
addRecvKeyBytes
public RunGraphRequest.Builder addRecvKeyBytes(com.google.protobuf.ByteString value)
repeated string recv_key = 4;
- Parameters:
value
- The bytes of the recvKey to add.- Returns:
- This builder for chaining.
-
getIsPartial
public boolean getIsPartial()
True if the RunGraphRequest is a partial run request.
bool is_partial = 6;
- Specified by:
getIsPartial
in interfaceRunGraphRequestOrBuilder
- Returns:
- The isPartial.
-
setIsPartial
public RunGraphRequest.Builder setIsPartial(boolean value)
True if the RunGraphRequest is a partial run request.
bool is_partial = 6;
- Parameters:
value
- The isPartial to set.- Returns:
- This builder for chaining.
-
clearIsPartial
public RunGraphRequest.Builder clearIsPartial()
True if the RunGraphRequest is a partial run request.
bool is_partial = 6;
- Returns:
- This builder for chaining.
-
getIsLastPartialRun
public boolean getIsLastPartialRun()
True if this is the last partial run request in a sequence of requests.
bool is_last_partial_run = 7;
- Specified by:
getIsLastPartialRun
in interfaceRunGraphRequestOrBuilder
- Returns:
- The isLastPartialRun.
-
setIsLastPartialRun
public RunGraphRequest.Builder setIsLastPartialRun(boolean value)
True if this is the last partial run request in a sequence of requests.
bool is_last_partial_run = 7;
- Parameters:
value
- The isLastPartialRun to set.- Returns:
- This builder for chaining.
-
clearIsLastPartialRun
public RunGraphRequest.Builder clearIsLastPartialRun()
True if this is the last partial run request in a sequence of requests.
bool is_last_partial_run = 7;
- Returns:
- This builder for chaining.
-
getStoreErrorsInResponseBody
public boolean getStoreErrorsInResponseBody()
If true then some errors, e.g., execution errors that have long error messages, may return an OK RunGraphResponse with the actual error saved in the status_code/status_error_message fields of the response body. This is a workaround since the RPC subsystem may truncate long metadata messages.
bool store_errors_in_response_body = 9;
- Specified by:
getStoreErrorsInResponseBody
in interfaceRunGraphRequestOrBuilder
- Returns:
- The storeErrorsInResponseBody.
-
setStoreErrorsInResponseBody
public RunGraphRequest.Builder setStoreErrorsInResponseBody(boolean value)
If true then some errors, e.g., execution errors that have long error messages, may return an OK RunGraphResponse with the actual error saved in the status_code/status_error_message fields of the response body. This is a workaround since the RPC subsystem may truncate long metadata messages.
bool store_errors_in_response_body = 9;
- Parameters:
value
- The storeErrorsInResponseBody to set.- Returns:
- This builder for chaining.
-
clearStoreErrorsInResponseBody
public RunGraphRequest.Builder clearStoreErrorsInResponseBody()
If true then some errors, e.g., execution errors that have long error messages, may return an OK RunGraphResponse with the actual error saved in the status_code/status_error_message fields of the response body. This is a workaround since the RPC subsystem may truncate long metadata messages.
bool store_errors_in_response_body = 9;
- Returns:
- This builder for chaining.
-
getRequestId
public long getRequestId()
Unique identifier for this request. Every RunGraphRequest must have a unique request_id, and retried RunGraphRequests must have the same request_id. If request_id is zero, retry detection is disabled. Retried RunGraphRequests are problematic because they may issue a RecvTensor that will have no corresponding sender and will wait forever. Workers use request_ids to reject retried RunGraph requests instead of waiting forever.
int64 request_id = 11;
- Specified by:
getRequestId
in interfaceRunGraphRequestOrBuilder
- Returns:
- The requestId.
-
setRequestId
public RunGraphRequest.Builder setRequestId(long value)
Unique identifier for this request. Every RunGraphRequest must have a unique request_id, and retried RunGraphRequests must have the same request_id. If request_id is zero, retry detection is disabled. Retried RunGraphRequests are problematic because they may issue a RecvTensor that will have no corresponding sender and will wait forever. Workers use request_ids to reject retried RunGraph requests instead of waiting forever.
int64 request_id = 11;
- Parameters:
value
- The requestId to set.- Returns:
- This builder for chaining.
-
clearRequestId
public RunGraphRequest.Builder clearRequestId()
Unique identifier for this request. Every RunGraphRequest must have a unique request_id, and retried RunGraphRequests must have the same request_id. If request_id is zero, retry detection is disabled. Retried RunGraphRequests are problematic because they may issue a RecvTensor that will have no corresponding sender and will wait forever. Workers use request_ids to reject retried RunGraph requests instead of waiting forever.
int64 request_id = 11;
- Returns:
- This builder for chaining.
-
setUnknownFields
public final RunGraphRequest.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<RunGraphRequest.Builder>
-
mergeUnknownFields
public final RunGraphRequest.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<RunGraphRequest.Builder>
-
-