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.
* A list of tensors corresponding to those requested by
* `RunGraphRequest.recv_key`.
*
*
* repeated .tensorflow.NamedTensorProto recv = 1;
*/
public org.tensorflow.framework.NamedTensorProtoOrBuilder getRecvOrBuilder(
int index) {
return recv_.get(index);
}
public static final int STEP_STATS_FIELD_NUMBER = 2;
private org.tensorflow.framework.StepStats stepStats_;
/**
*
* If the request asked for execution stats, the cost graph, or the partition
* graphs, these are returned here.
* TODO(suharshs): Package these in a RunMetadata instead.
*
* If the request asked for execution stats, the cost graph, or the partition
* graphs, these are returned here.
* TODO(suharshs): Package these in a RunMetadata instead.
*
* If the request asked for execution stats, the cost graph, or the partition
* graphs, these are returned here.
* TODO(suharshs): Package these in a RunMetadata instead.
*
*
* .tensorflow.StepStats step_stats = 2;
*/
public org.tensorflow.framework.StepStatsOrBuilder getStepStatsOrBuilder() {
return getStepStats();
}
public static final int COST_GRAPH_FIELD_NUMBER = 3;
private org.tensorflow.framework.CostGraphDef costGraph_;
/**
* .tensorflow.CostGraphDef cost_graph = 3;
*/
public boolean hasCostGraph() {
return costGraph_ != null;
}
/**
* .tensorflow.CostGraphDef cost_graph = 3;
*/
public org.tensorflow.framework.CostGraphDef getCostGraph() {
return costGraph_ == null ? org.tensorflow.framework.CostGraphDef.getDefaultInstance() : costGraph_;
}
/**
* .tensorflow.CostGraphDef cost_graph = 3;
*/
public org.tensorflow.framework.CostGraphDefOrBuilder getCostGraphOrBuilder() {
return getCostGraph();
}
public static final int PARTITION_GRAPH_FIELD_NUMBER = 4;
private java.util.List partitionGraph_;
/**
* repeated .tensorflow.GraphDef partition_graph = 4;
*/
public java.util.List getPartitionGraphList() {
return partitionGraph_;
}
/**
* repeated .tensorflow.GraphDef partition_graph = 4;
*/
public java.util.List
getPartitionGraphOrBuilderList() {
return partitionGraph_;
}
/**
* repeated .tensorflow.GraphDef partition_graph = 4;
*/
public int getPartitionGraphCount() {
return partitionGraph_.size();
}
/**
* repeated .tensorflow.GraphDef partition_graph = 4;
*/
public org.tensorflow.framework.GraphDef getPartitionGraph(int index) {
return partitionGraph_.get(index);
}
/**
* repeated .tensorflow.GraphDef partition_graph = 4;
*/
public org.tensorflow.framework.GraphDefOrBuilder getPartitionGraphOrBuilder(
int index) {
return partitionGraph_.get(index);
}
public static final int STATUS_CODE_FIELD_NUMBER = 5;
private int statusCode_;
/**
*
* If store_errors_in_response_body is true in the request, then
* optionally the server may return an OK status for the RPC and
* fill the true status into the fields below, to allow for messages
* that are too long to fit in metadata.
*
*
* .tensorflow.error.Code status_code = 5;
*/
public int getStatusCodeValue() {
return statusCode_;
}
/**
*
* If store_errors_in_response_body is true in the request, then
* optionally the server may return an OK status for the RPC and
* fill the true status into the fields below, to allow for messages
* that are too long to fit in metadata.
*
*
* .tensorflow.error.Code status_code = 5;
*/
public org.tensorflow.framework.Code getStatusCode() {
org.tensorflow.framework.Code result = org.tensorflow.framework.Code.valueOf(statusCode_);
return result == null ? org.tensorflow.framework.Code.UNRECOGNIZED : result;
}
public static final int STATUS_ERROR_MESSAGE_FIELD_NUMBER = 6;
private volatile java.lang.Object statusErrorMessage_;
/**
* string status_error_message = 6;
*/
public java.lang.String getStatusErrorMessage() {
java.lang.Object ref = statusErrorMessage_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
org.nd4j.shade.protobuf.ByteString bs =
(org.nd4j.shade.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
statusErrorMessage_ = s;
return s;
}
}
/**
* string status_error_message = 6;
*/
public org.nd4j.shade.protobuf.ByteString
getStatusErrorMessageBytes() {
java.lang.Object ref = statusErrorMessage_;
if (ref instanceof java.lang.String) {
org.nd4j.shade.protobuf.ByteString b =
org.nd4j.shade.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
statusErrorMessage_ = b;
return b;
} else {
return (org.nd4j.shade.protobuf.ByteString) ref;
}
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(org.nd4j.shade.protobuf.CodedOutputStream output)
throws java.io.IOException {
for (int i = 0; i < recv_.size(); i++) {
output.writeMessage(1, recv_.get(i));
}
if (stepStats_ != null) {
output.writeMessage(2, getStepStats());
}
if (costGraph_ != null) {
output.writeMessage(3, getCostGraph());
}
for (int i = 0; i < partitionGraph_.size(); i++) {
output.writeMessage(4, partitionGraph_.get(i));
}
if (statusCode_ != org.tensorflow.framework.Code.OK.getNumber()) {
output.writeEnum(5, statusCode_);
}
if (!getStatusErrorMessageBytes().isEmpty()) {
org.nd4j.shade.protobuf.GeneratedMessageV3.writeString(output, 6, statusErrorMessage_);
}
unknownFields.writeTo(output);
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < recv_.size(); i++) {
size += org.nd4j.shade.protobuf.CodedOutputStream
.computeMessageSize(1, recv_.get(i));
}
if (stepStats_ != null) {
size += org.nd4j.shade.protobuf.CodedOutputStream
.computeMessageSize(2, getStepStats());
}
if (costGraph_ != null) {
size += org.nd4j.shade.protobuf.CodedOutputStream
.computeMessageSize(3, getCostGraph());
}
for (int i = 0; i < partitionGraph_.size(); i++) {
size += org.nd4j.shade.protobuf.CodedOutputStream
.computeMessageSize(4, partitionGraph_.get(i));
}
if (statusCode_ != org.tensorflow.framework.Code.OK.getNumber()) {
size += org.nd4j.shade.protobuf.CodedOutputStream
.computeEnumSize(5, statusCode_);
}
if (!getStatusErrorMessageBytes().isEmpty()) {
size += org.nd4j.shade.protobuf.GeneratedMessageV3.computeStringSize(6, statusErrorMessage_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.tensorflow.distruntime.RunGraphResponse)) {
return super.equals(obj);
}
org.tensorflow.distruntime.RunGraphResponse other = (org.tensorflow.distruntime.RunGraphResponse) obj;
boolean result = true;
result = result && getRecvList()
.equals(other.getRecvList());
result = result && (hasStepStats() == other.hasStepStats());
if (hasStepStats()) {
result = result && getStepStats()
.equals(other.getStepStats());
}
result = result && (hasCostGraph() == other.hasCostGraph());
if (hasCostGraph()) {
result = result && getCostGraph()
.equals(other.getCostGraph());
}
result = result && getPartitionGraphList()
.equals(other.getPartitionGraphList());
result = result && statusCode_ == other.statusCode_;
result = result && getStatusErrorMessage()
.equals(other.getStatusErrorMessage());
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (getRecvCount() > 0) {
hash = (37 * hash) + RECV_FIELD_NUMBER;
hash = (53 * hash) + getRecvList().hashCode();
}
if (hasStepStats()) {
hash = (37 * hash) + STEP_STATS_FIELD_NUMBER;
hash = (53 * hash) + getStepStats().hashCode();
}
if (hasCostGraph()) {
hash = (37 * hash) + COST_GRAPH_FIELD_NUMBER;
hash = (53 * hash) + getCostGraph().hashCode();
}
if (getPartitionGraphCount() > 0) {
hash = (37 * hash) + PARTITION_GRAPH_FIELD_NUMBER;
hash = (53 * hash) + getPartitionGraphList().hashCode();
}
hash = (37 * hash) + STATUS_CODE_FIELD_NUMBER;
hash = (53 * hash) + statusCode_;
hash = (37 * hash) + STATUS_ERROR_MESSAGE_FIELD_NUMBER;
hash = (53 * hash) + getStatusErrorMessage().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.tensorflow.distruntime.RunGraphResponse parseFrom(
java.nio.ByteBuffer data)
throws org.nd4j.shade.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tensorflow.distruntime.RunGraphResponse parseFrom(
java.nio.ByteBuffer data,
org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.nd4j.shade.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tensorflow.distruntime.RunGraphResponse parseFrom(
org.nd4j.shade.protobuf.ByteString data)
throws org.nd4j.shade.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tensorflow.distruntime.RunGraphResponse parseFrom(
org.nd4j.shade.protobuf.ByteString data,
org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.nd4j.shade.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tensorflow.distruntime.RunGraphResponse parseFrom(byte[] data)
throws org.nd4j.shade.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tensorflow.distruntime.RunGraphResponse parseFrom(
byte[] data,
org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.nd4j.shade.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tensorflow.distruntime.RunGraphResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return org.nd4j.shade.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tensorflow.distruntime.RunGraphResponse parseFrom(
java.io.InputStream input,
org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return org.nd4j.shade.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static org.tensorflow.distruntime.RunGraphResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return org.nd4j.shade.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.tensorflow.distruntime.RunGraphResponse parseDelimitedFrom(
java.io.InputStream input,
org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return org.nd4j.shade.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static org.tensorflow.distruntime.RunGraphResponse parseFrom(
org.nd4j.shade.protobuf.CodedInputStream input)
throws java.io.IOException {
return org.nd4j.shade.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tensorflow.distruntime.RunGraphResponse parseFrom(
org.nd4j.shade.protobuf.CodedInputStream input,
org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return org.nd4j.shade.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(org.tensorflow.distruntime.RunGraphResponse prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
org.nd4j.shade.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code tensorflow.RunGraphResponse}
*/
public static final class Builder extends
org.nd4j.shade.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:tensorflow.RunGraphResponse)
org.tensorflow.distruntime.RunGraphResponseOrBuilder {
public static final org.nd4j.shade.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.tensorflow.distruntime.WorkerProtos.internal_static_tensorflow_RunGraphResponse_descriptor;
}
protected org.nd4j.shade.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tensorflow.distruntime.WorkerProtos.internal_static_tensorflow_RunGraphResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tensorflow.distruntime.RunGraphResponse.class, org.tensorflow.distruntime.RunGraphResponse.Builder.class);
}
// Construct using org.tensorflow.distruntime.RunGraphResponse.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
org.nd4j.shade.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (org.nd4j.shade.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getRecvFieldBuilder();
getPartitionGraphFieldBuilder();
}
}
public Builder clear() {
super.clear();
if (recvBuilder_ == null) {
recv_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
recvBuilder_.clear();
}
if (stepStatsBuilder_ == null) {
stepStats_ = null;
} else {
stepStats_ = null;
stepStatsBuilder_ = null;
}
if (costGraphBuilder_ == null) {
costGraph_ = null;
} else {
costGraph_ = null;
costGraphBuilder_ = null;
}
if (partitionGraphBuilder_ == null) {
partitionGraph_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000008);
} else {
partitionGraphBuilder_.clear();
}
statusCode_ = 0;
statusErrorMessage_ = "";
return this;
}
public org.nd4j.shade.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.tensorflow.distruntime.WorkerProtos.internal_static_tensorflow_RunGraphResponse_descriptor;
}
public org.tensorflow.distruntime.RunGraphResponse getDefaultInstanceForType() {
return org.tensorflow.distruntime.RunGraphResponse.getDefaultInstance();
}
public org.tensorflow.distruntime.RunGraphResponse build() {
org.tensorflow.distruntime.RunGraphResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.tensorflow.distruntime.RunGraphResponse buildPartial() {
org.tensorflow.distruntime.RunGraphResponse result = new org.tensorflow.distruntime.RunGraphResponse(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (recvBuilder_ == null) {
if (((bitField0_ & 0x00000001) == 0x00000001)) {
recv_ = java.util.Collections.unmodifiableList(recv_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.recv_ = recv_;
} else {
result.recv_ = recvBuilder_.build();
}
if (stepStatsBuilder_ == null) {
result.stepStats_ = stepStats_;
} else {
result.stepStats_ = stepStatsBuilder_.build();
}
if (costGraphBuilder_ == null) {
result.costGraph_ = costGraph_;
} else {
result.costGraph_ = costGraphBuilder_.build();
}
if (partitionGraphBuilder_ == null) {
if (((bitField0_ & 0x00000008) == 0x00000008)) {
partitionGraph_ = java.util.Collections.unmodifiableList(partitionGraph_);
bitField0_ = (bitField0_ & ~0x00000008);
}
result.partitionGraph_ = partitionGraph_;
} else {
result.partitionGraph_ = partitionGraphBuilder_.build();
}
result.statusCode_ = statusCode_;
result.statusErrorMessage_ = statusErrorMessage_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
org.nd4j.shade.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(org.nd4j.shade.protobuf.Message other) {
if (other instanceof org.tensorflow.distruntime.RunGraphResponse) {
return mergeFrom((org.tensorflow.distruntime.RunGraphResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.tensorflow.distruntime.RunGraphResponse other) {
if (other == org.tensorflow.distruntime.RunGraphResponse.getDefaultInstance()) return this;
if (recvBuilder_ == null) {
if (!other.recv_.isEmpty()) {
if (recv_.isEmpty()) {
recv_ = other.recv_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureRecvIsMutable();
recv_.addAll(other.recv_);
}
onChanged();
}
} else {
if (!other.recv_.isEmpty()) {
if (recvBuilder_.isEmpty()) {
recvBuilder_.dispose();
recvBuilder_ = null;
recv_ = other.recv_;
bitField0_ = (bitField0_ & ~0x00000001);
recvBuilder_ =
org.nd4j.shade.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getRecvFieldBuilder() : null;
} else {
recvBuilder_.addAllMessages(other.recv_);
}
}
}
if (other.hasStepStats()) {
mergeStepStats(other.getStepStats());
}
if (other.hasCostGraph()) {
mergeCostGraph(other.getCostGraph());
}
if (partitionGraphBuilder_ == null) {
if (!other.partitionGraph_.isEmpty()) {
if (partitionGraph_.isEmpty()) {
partitionGraph_ = other.partitionGraph_;
bitField0_ = (bitField0_ & ~0x00000008);
} else {
ensurePartitionGraphIsMutable();
partitionGraph_.addAll(other.partitionGraph_);
}
onChanged();
}
} else {
if (!other.partitionGraph_.isEmpty()) {
if (partitionGraphBuilder_.isEmpty()) {
partitionGraphBuilder_.dispose();
partitionGraphBuilder_ = null;
partitionGraph_ = other.partitionGraph_;
bitField0_ = (bitField0_ & ~0x00000008);
partitionGraphBuilder_ =
org.nd4j.shade.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getPartitionGraphFieldBuilder() : null;
} else {
partitionGraphBuilder_.addAllMessages(other.partitionGraph_);
}
}
}
if (other.statusCode_ != 0) {
setStatusCodeValue(other.getStatusCodeValue());
}
if (!other.getStatusErrorMessage().isEmpty()) {
statusErrorMessage_ = other.statusErrorMessage_;
onChanged();
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
org.nd4j.shade.protobuf.CodedInputStream input,
org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.tensorflow.distruntime.RunGraphResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (org.nd4j.shade.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.tensorflow.distruntime.RunGraphResponse) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.util.List recv_ =
java.util.Collections.emptyList();
private void ensureRecvIsMutable() {
if (!((bitField0_ & 0x00000001) == 0x00000001)) {
recv_ = new java.util.ArrayList(recv_);
bitField0_ |= 0x00000001;
}
}
private org.nd4j.shade.protobuf.RepeatedFieldBuilderV3<
org.tensorflow.framework.NamedTensorProto, org.tensorflow.framework.NamedTensorProto.Builder, org.tensorflow.framework.NamedTensorProtoOrBuilder> recvBuilder_;
/**
*
* A list of tensors corresponding to those requested by
* `RunGraphRequest.recv_key`.
*
* If the request asked for execution stats, the cost graph, or the partition
* graphs, these are returned here.
* TODO(suharshs): Package these in a RunMetadata instead.
*
* If the request asked for execution stats, the cost graph, or the partition
* graphs, these are returned here.
* TODO(suharshs): Package these in a RunMetadata instead.
*
* If the request asked for execution stats, the cost graph, or the partition
* graphs, these are returned here.
* TODO(suharshs): Package these in a RunMetadata instead.
*
*
* .tensorflow.StepStats step_stats = 2;
*/
public Builder setStepStats(org.tensorflow.framework.StepStats value) {
if (stepStatsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
stepStats_ = value;
onChanged();
} else {
stepStatsBuilder_.setMessage(value);
}
return this;
}
/**
*
* If the request asked for execution stats, the cost graph, or the partition
* graphs, these are returned here.
* TODO(suharshs): Package these in a RunMetadata instead.
*
* If the request asked for execution stats, the cost graph, or the partition
* graphs, these are returned here.
* TODO(suharshs): Package these in a RunMetadata instead.
*
* If the request asked for execution stats, the cost graph, or the partition
* graphs, these are returned here.
* TODO(suharshs): Package these in a RunMetadata instead.
*
* If the request asked for execution stats, the cost graph, or the partition
* graphs, these are returned here.
* TODO(suharshs): Package these in a RunMetadata instead.
*
* If the request asked for execution stats, the cost graph, or the partition
* graphs, these are returned here.
* TODO(suharshs): Package these in a RunMetadata instead.
*
* If the request asked for execution stats, the cost graph, or the partition
* graphs, these are returned here.
* TODO(suharshs): Package these in a RunMetadata instead.
*
* If store_errors_in_response_body is true in the request, then
* optionally the server may return an OK status for the RPC and
* fill the true status into the fields below, to allow for messages
* that are too long to fit in metadata.
*
*
* .tensorflow.error.Code status_code = 5;
*/
public int getStatusCodeValue() {
return statusCode_;
}
/**
*
* If store_errors_in_response_body is true in the request, then
* optionally the server may return an OK status for the RPC and
* fill the true status into the fields below, to allow for messages
* that are too long to fit in metadata.
*
* If store_errors_in_response_body is true in the request, then
* optionally the server may return an OK status for the RPC and
* fill the true status into the fields below, to allow for messages
* that are too long to fit in metadata.
*
*
* .tensorflow.error.Code status_code = 5;
*/
public org.tensorflow.framework.Code getStatusCode() {
org.tensorflow.framework.Code result = org.tensorflow.framework.Code.valueOf(statusCode_);
return result == null ? org.tensorflow.framework.Code.UNRECOGNIZED : result;
}
/**
*
* If store_errors_in_response_body is true in the request, then
* optionally the server may return an OK status for the RPC and
* fill the true status into the fields below, to allow for messages
* that are too long to fit in metadata.
*
*
* .tensorflow.error.Code status_code = 5;
*/
public Builder setStatusCode(org.tensorflow.framework.Code value) {
if (value == null) {
throw new NullPointerException();
}
statusCode_ = value.getNumber();
onChanged();
return this;
}
/**
*
* If store_errors_in_response_body is true in the request, then
* optionally the server may return an OK status for the RPC and
* fill the true status into the fields below, to allow for messages
* that are too long to fit in metadata.
*
*
* .tensorflow.error.Code status_code = 5;
*/
public Builder clearStatusCode() {
statusCode_ = 0;
onChanged();
return this;
}
private java.lang.Object statusErrorMessage_ = "";
/**
* string status_error_message = 6;
*/
public java.lang.String getStatusErrorMessage() {
java.lang.Object ref = statusErrorMessage_;
if (!(ref instanceof java.lang.String)) {
org.nd4j.shade.protobuf.ByteString bs =
(org.nd4j.shade.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
statusErrorMessage_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string status_error_message = 6;
*/
public org.nd4j.shade.protobuf.ByteString
getStatusErrorMessageBytes() {
java.lang.Object ref = statusErrorMessage_;
if (ref instanceof String) {
org.nd4j.shade.protobuf.ByteString b =
org.nd4j.shade.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
statusErrorMessage_ = b;
return b;
} else {
return (org.nd4j.shade.protobuf.ByteString) ref;
}
}
/**
* string status_error_message = 6;
*/
public Builder setStatusErrorMessage(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
statusErrorMessage_ = value;
onChanged();
return this;
}
/**
* string status_error_message = 6;
*/
public Builder clearStatusErrorMessage() {
statusErrorMessage_ = getDefaultInstance().getStatusErrorMessage();
onChanged();
return this;
}
/**
* string status_error_message = 6;
*/
public Builder setStatusErrorMessageBytes(
org.nd4j.shade.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
statusErrorMessage_ = value;
onChanged();
return this;
}
public final Builder setUnknownFields(
final org.nd4j.shade.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFieldsProto3(unknownFields);
}
public final Builder mergeUnknownFields(
final org.nd4j.shade.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:tensorflow.RunGraphResponse)
}
// @@protoc_insertion_point(class_scope:tensorflow.RunGraphResponse)
private static final org.tensorflow.distruntime.RunGraphResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.tensorflow.distruntime.RunGraphResponse();
}
public static org.tensorflow.distruntime.RunGraphResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final org.nd4j.shade.protobuf.Parser
PARSER = new org.nd4j.shade.protobuf.AbstractParser() {
public RunGraphResponse parsePartialFrom(
org.nd4j.shade.protobuf.CodedInputStream input,
org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.nd4j.shade.protobuf.InvalidProtocolBufferException {
return new RunGraphResponse(input, extensionRegistry);
}
};
public static org.nd4j.shade.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public org.nd4j.shade.protobuf.Parser getParserForType() {
return PARSER;
}
public org.tensorflow.distruntime.RunGraphResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}