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;
* @return The bytes for sessionHandle.
*/
@java.lang.Override
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;
* @return The createWorkerSessionCalled.
*/
@java.lang.Override
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;
* @return The bytes for graphHandle.
*/
@java.lang.Override
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;
* @return The stepId.
*/
@java.lang.Override
public long getStepId() {
return stepId_;
}
public static final int EXEC_OPTS_FIELD_NUMBER = 5;
private org.tensorflow.distruntime.ExecutorOpts execOpts_;
/**
*
* Options for this step.
*
*
* .tensorflow.ExecutorOpts exec_opts = 5;
* @return Whether the execOpts field is set.
*/
@java.lang.Override
public boolean hasExecOpts() {
return execOpts_ != null;
}
/**
*
* 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;
*/
@java.lang.Override
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;
* @return A list containing the recvKey.
*/
public org.nd4j.shade.protobuf.ProtocolStringList
getRecvKeyList() {
return recvKey_;
}
/**
* repeated string recv_key = 4;
* @return The count of recvKey.
*/
public int getRecvKeyCount() {
return recvKey_.size();
}
/**
* repeated string recv_key = 4;
* @param index The index of the element to return.
* @return The recvKey at the given index.
*/
public java.lang.String getRecvKey(int index) {
return recvKey_.get(index);
}
/**
* repeated string recv_key = 4;
* @param index The index of the value to return.
* @return The bytes of the recvKey at the given index.
*/
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;
* @return The isPartial.
*/
@java.lang.Override
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;
* @return The isLastPartialRun.
*/
@java.lang.Override
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.
*
*
* string session_handle = 8;
* @return The bytes for sessionHandle.
*/
public org.nd4j.shade.protobuf.ByteString
getSessionHandleBytes() {
java.lang.Object ref = sessionHandle_;
if (ref instanceof 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;
}
}
/**
*
* 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;
* @param value The sessionHandle to set.
* @return This builder for chaining.
*/
public Builder setSessionHandle(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
sessionHandle_ = value;
onChanged();
return this;
}
/**
*
* 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;
* @return This builder for chaining.
*/
public Builder clearSessionHandle() {
sessionHandle_ = getDefaultInstance().getSessionHandle();
onChanged();
return this;
}
/**
*
* 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;
* @param value The bytes for sessionHandle to set.
* @return This builder for chaining.
*/
public Builder setSessionHandleBytes(
org.nd4j.shade.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
sessionHandle_ = value;
onChanged();
return this;
}
private boolean createWorkerSessionCalled_ ;
/**
*
* Set to true if `CreateWorkerSession` was called for `session_handle`.
*
* REQUIRED: graph_handle must be returned by a RegisterGraph call
* to the same WorkerService.
*
*
* string graph_handle = 1;
* @return The bytes for graphHandle.
*/
public org.nd4j.shade.protobuf.ByteString
getGraphHandleBytes() {
java.lang.Object ref = graphHandle_;
if (ref instanceof 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;
}
}
/**
*
* REQUIRED: graph_handle must be returned by a RegisterGraph call
* to the same WorkerService.
*
*
* string graph_handle = 1;
* @param value The graphHandle to set.
* @return This builder for chaining.
*/
public Builder setGraphHandle(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
graphHandle_ = value;
onChanged();
return this;
}
/**
*
* REQUIRED: graph_handle must be returned by a RegisterGraph call
* to the same WorkerService.
*
*
* string graph_handle = 1;
* @return This builder for chaining.
*/
public Builder clearGraphHandle() {
graphHandle_ = getDefaultInstance().getGraphHandle();
onChanged();
return this;
}
/**
*
* REQUIRED: graph_handle must be returned by a RegisterGraph call
* to the same WorkerService.
*
*
* string graph_handle = 1;
* @param value The bytes for graphHandle to set.
* @return This builder for chaining.
*/
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;
* @return The stepId.
*/
@java.lang.Override
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.
*
*
* int64 step_id = 2;
* @param value The stepId to set.
* @return This builder for chaining.
*/
public Builder setStepId(long value) {
stepId_ = value;
onChanged();
return this;
}
/**
*
* 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.
*
* 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 java.util.List
getSendBuilderList() {
return getSendFieldBuilder().getBuilderList();
}
private org.nd4j.shade.protobuf.RepeatedFieldBuilderV3<
org.tensorflow.framework.NamedTensorProto, org.tensorflow.framework.NamedTensorProto.Builder, org.tensorflow.framework.NamedTensorProtoOrBuilder>
getSendFieldBuilder() {
if (sendBuilder_ == null) {
sendBuilder_ = new org.nd4j.shade.protobuf.RepeatedFieldBuilderV3<
org.tensorflow.framework.NamedTensorProto, org.tensorflow.framework.NamedTensorProto.Builder, org.tensorflow.framework.NamedTensorProtoOrBuilder>(
send_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
send_ = null;
}
return sendBuilder_;
}
private org.nd4j.shade.protobuf.LazyStringList recvKey_ = org.nd4j.shade.protobuf.LazyStringArrayList.EMPTY;
private void ensureRecvKeyIsMutable() {
if (!((bitField0_ & 0x00000002) != 0)) {
recvKey_ = new org.nd4j.shade.protobuf.LazyStringArrayList(recvKey_);
bitField0_ |= 0x00000002;
}
}
/**
* repeated string recv_key = 4;
* @return A list containing the recvKey.
*/
public org.nd4j.shade.protobuf.ProtocolStringList
getRecvKeyList() {
return recvKey_.getUnmodifiableView();
}
/**
* repeated string recv_key = 4;
* @return The count of recvKey.
*/
public int getRecvKeyCount() {
return recvKey_.size();
}
/**
* repeated string recv_key = 4;
* @param index The index of the element to return.
* @return The recvKey at the given index.
*/
public java.lang.String getRecvKey(int index) {
return recvKey_.get(index);
}
/**
* repeated string recv_key = 4;
* @param index The index of the value to return.
* @return The bytes of the recvKey at the given index.
*/
public org.nd4j.shade.protobuf.ByteString
getRecvKeyBytes(int index) {
return recvKey_.getByteString(index);
}
/**
* repeated string recv_key = 4;
* @param index The index to set the value at.
* @param value The recvKey to set.
* @return This builder for chaining.
*/
public Builder setRecvKey(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureRecvKeyIsMutable();
recvKey_.set(index, value);
onChanged();
return this;
}
/**
* repeated string recv_key = 4;
* @param value The recvKey to add.
* @return This builder for chaining.
*/
public Builder addRecvKey(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureRecvKeyIsMutable();
recvKey_.add(value);
onChanged();
return this;
}
/**
* repeated string recv_key = 4;
* @param values The recvKey to add.
* @return This builder for chaining.
*/
public Builder addAllRecvKey(
java.lang.Iterable values) {
ensureRecvKeyIsMutable();
org.nd4j.shade.protobuf.AbstractMessageLite.Builder.addAll(
values, recvKey_);
onChanged();
return this;
}
/**
* repeated string recv_key = 4;
* @return This builder for chaining.
*/
public Builder clearRecvKey() {
recvKey_ = org.nd4j.shade.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
/**
* repeated string recv_key = 4;
* @param value The bytes of the recvKey to add.
* @return This builder for chaining.
*/
public Builder addRecvKeyBytes(
org.nd4j.shade.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ensureRecvKeyIsMutable();
recvKey_.add(value);
onChanged();
return this;
}
private boolean isPartial_ ;
/**
*
* True if the RunGraphRequest is a partial run request.
*
* True if this is the last partial run request in a sequence of requests.
*
*
* bool is_last_partial_run = 7;
* @param value The isLastPartialRun to set.
* @return This builder for chaining.
*/
public Builder setIsLastPartialRun(boolean value) {
isLastPartialRun_ = value;
onChanged();
return this;
}
/**
*
* True if this is the last partial run request in a sequence of requests.
*
*
* bool is_last_partial_run = 7;
* @return This builder for chaining.
*/
public Builder clearIsLastPartialRun() {
isLastPartialRun_ = false;
onChanged();
return this;
}
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.
*
* 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;
* @param value The storeErrorsInResponseBody to set.
* @return This builder for chaining.
*/
public Builder setStoreErrorsInResponseBody(boolean value) {
storeErrorsInResponseBody_ = value;
onChanged();
return this;
}
/**
*
* 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;
* @return This builder for chaining.
*/
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;
}
}