Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: tensorflow/core/protobuf/worker.proto
package org.tensorflow.distruntime;
/**
* Protobuf type {@code tensorflow.RunGraphRequest}
*/
public final class RunGraphRequest extends
org.nd4j.shade.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:tensorflow.RunGraphRequest)
RunGraphRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use RunGraphRequest.newBuilder() to construct.
private RunGraphRequest(org.nd4j.shade.protobuf.GeneratedMessageV3.Builder builder) {
super(builder);
}
private RunGraphRequest() {
sessionHandle_ = "";
graphHandle_ = "";
send_ = java.util.Collections.emptyList();
recvKey_ = org.nd4j.shade.protobuf.LazyStringArrayList.EMPTY;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new RunGraphRequest();
}
@java.lang.Override
public final org.nd4j.shade.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private RunGraphRequest(
org.nd4j.shade.protobuf.CodedInputStream input,
org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.nd4j.shade.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
org.nd4j.shade.protobuf.UnknownFieldSet.Builder unknownFields =
org.nd4j.shade.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
java.lang.String s = input.readStringRequireUtf8();
graphHandle_ = s;
break;
}
case 16: {
stepId_ = input.readInt64();
break;
}
case 26: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
send_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
send_.add(
input.readMessage(org.tensorflow.framework.NamedTensorProto.parser(), extensionRegistry));
break;
}
case 34: {
java.lang.String s = input.readStringRequireUtf8();
if (!((mutable_bitField0_ & 0x00000002) != 0)) {
recvKey_ = new org.nd4j.shade.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000002;
}
recvKey_.add(s);
break;
}
case 42: {
org.tensorflow.distruntime.ExecutorOpts.Builder subBuilder = null;
if (execOpts_ != null) {
subBuilder = execOpts_.toBuilder();
}
execOpts_ = input.readMessage(org.tensorflow.distruntime.ExecutorOpts.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(execOpts_);
execOpts_ = subBuilder.buildPartial();
}
break;
}
case 48: {
isPartial_ = input.readBool();
break;
}
case 56: {
isLastPartialRun_ = input.readBool();
break;
}
case 66: {
java.lang.String s = input.readStringRequireUtf8();
sessionHandle_ = s;
break;
}
case 72: {
storeErrorsInResponseBody_ = input.readBool();
break;
}
case 80: {
createWorkerSessionCalled_ = input.readBool();
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (org.nd4j.shade.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new org.nd4j.shade.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) != 0)) {
send_ = java.util.Collections.unmodifiableList(send_);
}
if (((mutable_bitField0_ & 0x00000002) != 0)) {
recvKey_ = recvKey_.getUnmodifiableView();
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final org.nd4j.shade.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.tensorflow.distruntime.WorkerProtos.internal_static_tensorflow_RunGraphRequest_descriptor;
}
@java.lang.Override
protected org.nd4j.shade.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tensorflow.distruntime.WorkerProtos.internal_static_tensorflow_RunGraphRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tensorflow.distruntime.RunGraphRequest.class, org.tensorflow.distruntime.RunGraphRequest.Builder.class);
}
public static final int SESSION_HANDLE_FIELD_NUMBER = 8;
private volatile java.lang.Object sessionHandle_;
/**
*
* 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.
*
* 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;
*/
public org.nd4j.shade.protobuf.ByteString
getSessionHandleBytes() {
java.lang.Object ref = sessionHandle_;
if (ref instanceof java.lang.String) {
org.nd4j.shade.protobuf.ByteString b =
org.nd4j.shade.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
sessionHandle_ = b;
return b;
} else {
return (org.nd4j.shade.protobuf.ByteString) ref;
}
}
public static final int CREATE_WORKER_SESSION_CALLED_FIELD_NUMBER = 10;
private boolean createWorkerSessionCalled_;
/**
*
* Set to true if `CreateWorkerSession` was called for `session_handle`.
*
*
* bool create_worker_session_called = 10;
*/
public boolean getCreateWorkerSessionCalled() {
return createWorkerSessionCalled_;
}
public static final int GRAPH_HANDLE_FIELD_NUMBER = 1;
private volatile java.lang.Object graphHandle_;
/**
*
* REQUIRED: graph_handle must be returned by a RegisterGraph call
* to the same WorkerService.
*
* REQUIRED: graph_handle must be returned by a RegisterGraph call
* to the same WorkerService.
*
*
* string graph_handle = 1;
*/
public org.nd4j.shade.protobuf.ByteString
getGraphHandleBytes() {
java.lang.Object ref = graphHandle_;
if (ref instanceof java.lang.String) {
org.nd4j.shade.protobuf.ByteString b =
org.nd4j.shade.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
graphHandle_ = b;
return b;
} else {
return (org.nd4j.shade.protobuf.ByteString) ref;
}
}
public static final int STEP_ID_FIELD_NUMBER = 2;
private long stepId_;
/**
*
* 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;
*/
public long getStepId() {
return stepId_;
}
public static final int EXEC_OPTS_FIELD_NUMBER = 5;
private org.tensorflow.distruntime.ExecutorOpts execOpts_;
/**
*
* 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 .tensorflow.NamedTensorProto send = 3;
*/
public org.tensorflow.framework.NamedTensorProtoOrBuilder getSendOrBuilder(
int index) {
return send_.get(index);
}
public static final int RECV_KEY_FIELD_NUMBER = 4;
private org.nd4j.shade.protobuf.LazyStringList recvKey_;
/**
* repeated string recv_key = 4;
*/
public org.nd4j.shade.protobuf.ProtocolStringList
getRecvKeyList() {
return recvKey_;
}
/**
* repeated string recv_key = 4;
*/
public int getRecvKeyCount() {
return recvKey_.size();
}
/**
* repeated string recv_key = 4;
*/
public java.lang.String getRecvKey(int index) {
return recvKey_.get(index);
}
/**
* repeated string recv_key = 4;
*/
public org.nd4j.shade.protobuf.ByteString
getRecvKeyBytes(int index) {
return recvKey_.getByteString(index);
}
public static final int IS_PARTIAL_FIELD_NUMBER = 6;
private boolean isPartial_;
/**
*
* True if the RunGraphRequest is a partial run request.
*
*
* bool is_partial = 6;
*/
public boolean getIsPartial() {
return isPartial_;
}
public static final int IS_LAST_PARTIAL_RUN_FIELD_NUMBER = 7;
private boolean isLastPartialRun_;
/**
*
* True if this is the last partial run request in a sequence of requests.
*
*
* bool is_last_partial_run = 7;
*/
public boolean getIsLastPartialRun() {
return isLastPartialRun_;
}
public static final int STORE_ERRORS_IN_RESPONSE_BODY_FIELD_NUMBER = 9;
private boolean storeErrorsInResponseBody_;
/**
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* REQUIRED: graph_handle must be returned by a RegisterGraph call
* to the same WorkerService.
*
*
* string graph_handle = 1;
*/
public Builder setGraphHandleBytes(
org.nd4j.shade.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
graphHandle_ = value;
onChanged();
return this;
}
private long stepId_ ;
/**
*
* 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;
*/
public long getStepId() {
return stepId_;
}
/**
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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;
*/
public Builder clearStoreErrorsInResponseBody() {
storeErrorsInResponseBody_ = false;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final org.nd4j.shade.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final org.nd4j.shade.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:tensorflow.RunGraphRequest)
}
// @@protoc_insertion_point(class_scope:tensorflow.RunGraphRequest)
private static final org.tensorflow.distruntime.RunGraphRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.tensorflow.distruntime.RunGraphRequest();
}
public static org.tensorflow.distruntime.RunGraphRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final org.nd4j.shade.protobuf.Parser
PARSER = new org.nd4j.shade.protobuf.AbstractParser() {
@java.lang.Override
public RunGraphRequest parsePartialFrom(
org.nd4j.shade.protobuf.CodedInputStream input,
org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.nd4j.shade.protobuf.InvalidProtocolBufferException {
return new RunGraphRequest(input, extensionRegistry);
}
};
public static org.nd4j.shade.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public org.nd4j.shade.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public org.tensorflow.distruntime.RunGraphRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}