Package org.platanios.tensorflow.proto
Class RunGraphRequest
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- org.platanios.tensorflow.proto.RunGraphRequest
-
- All Implemented Interfaces:
com.google.protobuf.Message
,com.google.protobuf.MessageLite
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,java.io.Serializable
,RunGraphRequestOrBuilder
public final class RunGraphRequest extends com.google.protobuf.GeneratedMessageV3 implements RunGraphRequestOrBuilder
Protobuf typeorg.platanios.tensorflow.proto.RunGraphRequest
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
RunGraphRequest.Builder
Protobuf typeorg.platanios.tensorflow.proto.RunGraphRequest
-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
-
-
Field Summary
Fields Modifier and Type Field Description static int
CREATE_WORKER_SESSION_CALLED_FIELD_NUMBER
static int
EXEC_OPTS_FIELD_NUMBER
static int
GRAPH_HANDLE_FIELD_NUMBER
static int
IS_LAST_PARTIAL_RUN_FIELD_NUMBER
static int
IS_PARTIAL_FIELD_NUMBER
static int
RECV_KEY_FIELD_NUMBER
static int
REQUEST_ID_FIELD_NUMBER
static int
SEND_FIELD_NUMBER
static int
SESSION_HANDLE_FIELD_NUMBER
static int
STEP_ID_FIELD_NUMBER
static int
STORE_ERRORS_IN_RESPONSE_BODY_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
boolean
getCreateWorkerSessionCalled()
Set to true if `CreateWorkerSession` was called for `session_handle`.static RunGraphRequest
getDefaultInstance()
RunGraphRequest
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
ExecutorOpts
getExecOpts()
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.com.google.protobuf.Parser<RunGraphRequest>
getParserForType()
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.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.int
getSerializedSize()
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.com.google.protobuf.UnknownFieldSet
getUnknownFields()
boolean
hasExecOpts()
Options for this step.int
hashCode()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
static RunGraphRequest.Builder
newBuilder()
static RunGraphRequest.Builder
newBuilder(RunGraphRequest prototype)
RunGraphRequest.Builder
newBuilderForType()
protected RunGraphRequest.Builder
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
protected java.lang.Object
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
static RunGraphRequest
parseDelimitedFrom(java.io.InputStream input)
static RunGraphRequest
parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static RunGraphRequest
parseFrom(byte[] data)
static RunGraphRequest
parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static RunGraphRequest
parseFrom(com.google.protobuf.ByteString data)
static RunGraphRequest
parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static RunGraphRequest
parseFrom(com.google.protobuf.CodedInputStream input)
static RunGraphRequest
parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static RunGraphRequest
parseFrom(java.io.InputStream input)
static RunGraphRequest
parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static RunGraphRequest
parseFrom(java.nio.ByteBuffer data)
static RunGraphRequest
parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static com.google.protobuf.Parser<RunGraphRequest>
parser()
RunGraphRequest.Builder
toBuilder()
void
writeTo(com.google.protobuf.CodedOutputStream output)
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, makeExtensionsImmutable, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
SESSION_HANDLE_FIELD_NUMBER
public static final int SESSION_HANDLE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
CREATE_WORKER_SESSION_CALLED_FIELD_NUMBER
public static final int CREATE_WORKER_SESSION_CALLED_FIELD_NUMBER
- See Also:
- Constant Field Values
-
GRAPH_HANDLE_FIELD_NUMBER
public static final int GRAPH_HANDLE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
STEP_ID_FIELD_NUMBER
public static final int STEP_ID_FIELD_NUMBER
- See Also:
- Constant Field Values
-
EXEC_OPTS_FIELD_NUMBER
public static final int EXEC_OPTS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
SEND_FIELD_NUMBER
public static final int SEND_FIELD_NUMBER
- See Also:
- Constant Field Values
-
RECV_KEY_FIELD_NUMBER
public static final int RECV_KEY_FIELD_NUMBER
- See Also:
- Constant Field Values
-
IS_PARTIAL_FIELD_NUMBER
public static final int IS_PARTIAL_FIELD_NUMBER
- See Also:
- Constant Field Values
-
IS_LAST_PARTIAL_RUN_FIELD_NUMBER
public static final int IS_LAST_PARTIAL_RUN_FIELD_NUMBER
- See Also:
- Constant Field Values
-
STORE_ERRORS_IN_RESPONSE_BODY_FIELD_NUMBER
public static final int STORE_ERRORS_IN_RESPONSE_BODY_FIELD_NUMBER
- See Also:
- Constant Field Values
-
REQUEST_ID_FIELD_NUMBER
public static final int REQUEST_ID_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
protected java.lang.Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstance
in classcom.google.protobuf.GeneratedMessageV3
-
getUnknownFields
public final com.google.protobuf.UnknownFieldSet getUnknownFields()
- Specified by:
getUnknownFields
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getUnknownFields
in classcom.google.protobuf.GeneratedMessageV3
-
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
-
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.
-
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.
-
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.
-
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.
-
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.
-
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
-
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
-
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
-
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
-
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.
-
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.
-
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.
-
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.
-
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.
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException
- Specified by:
writeTo
in interfacecom.google.protobuf.MessageLite
- Overrides:
writeTo
in classcom.google.protobuf.GeneratedMessageV3
- Throws:
java.io.IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSize
in interfacecom.google.protobuf.MessageLite
- Overrides:
getSerializedSize
in classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(java.lang.Object obj)
- Specified by:
equals
in interfacecom.google.protobuf.Message
- Overrides:
equals
in classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCode
in interfacecom.google.protobuf.Message
- Overrides:
hashCode
in classcom.google.protobuf.AbstractMessage
-
parseFrom
public static RunGraphRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static RunGraphRequest parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static RunGraphRequest parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static RunGraphRequest parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static RunGraphRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static RunGraphRequest parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static RunGraphRequest parseFrom(java.io.InputStream input) throws java.io.IOException
- Throws:
java.io.IOException
-
parseFrom
public static RunGraphRequest parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Throws:
java.io.IOException
-
parseDelimitedFrom
public static RunGraphRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
- Throws:
java.io.IOException
-
parseDelimitedFrom
public static RunGraphRequest parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Throws:
java.io.IOException
-
parseFrom
public static RunGraphRequest parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException
- Throws:
java.io.IOException
-
parseFrom
public static RunGraphRequest parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Throws:
java.io.IOException
-
newBuilderForType
public RunGraphRequest.Builder newBuilderForType()
- Specified by:
newBuilderForType
in interfacecom.google.protobuf.Message
- Specified by:
newBuilderForType
in interfacecom.google.protobuf.MessageLite
-
newBuilder
public static RunGraphRequest.Builder newBuilder()
-
newBuilder
public static RunGraphRequest.Builder newBuilder(RunGraphRequest prototype)
-
toBuilder
public RunGraphRequest.Builder toBuilder()
- Specified by:
toBuilder
in interfacecom.google.protobuf.Message
- Specified by:
toBuilder
in interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected RunGraphRequest.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForType
in classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static RunGraphRequest getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<RunGraphRequest> parser()
-
getParserForType
public com.google.protobuf.Parser<RunGraphRequest> getParserForType()
- Specified by:
getParserForType
in interfacecom.google.protobuf.Message
- Specified by:
getParserForType
in interfacecom.google.protobuf.MessageLite
- Overrides:
getParserForType
in classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public RunGraphRequest getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
-