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.
* Returned metadata if requested in the options.
*
*
* .tensorflow.RunMetadata metadata = 2;
*/
public org.tensorflow.framework.RunMetadataOrBuilder getMetadataOrBuilder() {
return getMetadata();
}
public static final int STATUS_CODE_FIELD_NUMBER = 3;
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 = 3;
*/
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 = 3;
*/
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 = 4;
private volatile java.lang.Object statusErrorMessage_;
/**
* string status_error_message = 4;
*/
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 = 4;
*/
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 < tensor_.size(); i++) {
output.writeMessage(1, tensor_.get(i));
}
if (metadata_ != null) {
output.writeMessage(2, getMetadata());
}
if (statusCode_ != org.tensorflow.framework.Code.OK.getNumber()) {
output.writeEnum(3, statusCode_);
}
if (!getStatusErrorMessageBytes().isEmpty()) {
org.nd4j.shade.protobuf.GeneratedMessageV3.writeString(output, 4, statusErrorMessage_);
}
unknownFields.writeTo(output);
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < tensor_.size(); i++) {
size += org.nd4j.shade.protobuf.CodedOutputStream
.computeMessageSize(1, tensor_.get(i));
}
if (metadata_ != null) {
size += org.nd4j.shade.protobuf.CodedOutputStream
.computeMessageSize(2, getMetadata());
}
if (statusCode_ != org.tensorflow.framework.Code.OK.getNumber()) {
size += org.nd4j.shade.protobuf.CodedOutputStream
.computeEnumSize(3, statusCode_);
}
if (!getStatusErrorMessageBytes().isEmpty()) {
size += org.nd4j.shade.protobuf.GeneratedMessageV3.computeStringSize(4, 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.RunStepResponse)) {
return super.equals(obj);
}
org.tensorflow.distruntime.RunStepResponse other = (org.tensorflow.distruntime.RunStepResponse) obj;
boolean result = true;
result = result && getTensorList()
.equals(other.getTensorList());
result = result && (hasMetadata() == other.hasMetadata());
if (hasMetadata()) {
result = result && getMetadata()
.equals(other.getMetadata());
}
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 (getTensorCount() > 0) {
hash = (37 * hash) + TENSOR_FIELD_NUMBER;
hash = (53 * hash) + getTensorList().hashCode();
}
if (hasMetadata()) {
hash = (37 * hash) + METADATA_FIELD_NUMBER;
hash = (53 * hash) + getMetadata().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.RunStepResponse parseFrom(
java.nio.ByteBuffer data)
throws org.nd4j.shade.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tensorflow.distruntime.RunStepResponse 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.RunStepResponse parseFrom(
org.nd4j.shade.protobuf.ByteString data)
throws org.nd4j.shade.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tensorflow.distruntime.RunStepResponse 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.RunStepResponse parseFrom(byte[] data)
throws org.nd4j.shade.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tensorflow.distruntime.RunStepResponse 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.RunStepResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return org.nd4j.shade.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tensorflow.distruntime.RunStepResponse 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.RunStepResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return org.nd4j.shade.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.tensorflow.distruntime.RunStepResponse 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.RunStepResponse 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.RunStepResponse 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.RunStepResponse 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.RunStepResponse}
*/
public static final class Builder extends
org.nd4j.shade.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:tensorflow.RunStepResponse)
org.tensorflow.distruntime.RunStepResponseOrBuilder {
public static final org.nd4j.shade.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.tensorflow.distruntime.DistributedRuntimeProtos.internal_static_tensorflow_RunStepResponse_descriptor;
}
protected org.nd4j.shade.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tensorflow.distruntime.DistributedRuntimeProtos.internal_static_tensorflow_RunStepResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tensorflow.distruntime.RunStepResponse.class, org.tensorflow.distruntime.RunStepResponse.Builder.class);
}
// Construct using org.tensorflow.distruntime.RunStepResponse.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) {
getTensorFieldBuilder();
}
}
public Builder clear() {
super.clear();
if (tensorBuilder_ == null) {
tensor_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
tensorBuilder_.clear();
}
if (metadataBuilder_ == null) {
metadata_ = null;
} else {
metadata_ = null;
metadataBuilder_ = null;
}
statusCode_ = 0;
statusErrorMessage_ = "";
return this;
}
public org.nd4j.shade.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.tensorflow.distruntime.DistributedRuntimeProtos.internal_static_tensorflow_RunStepResponse_descriptor;
}
public org.tensorflow.distruntime.RunStepResponse getDefaultInstanceForType() {
return org.tensorflow.distruntime.RunStepResponse.getDefaultInstance();
}
public org.tensorflow.distruntime.RunStepResponse build() {
org.tensorflow.distruntime.RunStepResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.tensorflow.distruntime.RunStepResponse buildPartial() {
org.tensorflow.distruntime.RunStepResponse result = new org.tensorflow.distruntime.RunStepResponse(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (tensorBuilder_ == null) {
if (((bitField0_ & 0x00000001) == 0x00000001)) {
tensor_ = java.util.Collections.unmodifiableList(tensor_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.tensor_ = tensor_;
} else {
result.tensor_ = tensorBuilder_.build();
}
if (metadataBuilder_ == null) {
result.metadata_ = metadata_;
} else {
result.metadata_ = metadataBuilder_.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.RunStepResponse) {
return mergeFrom((org.tensorflow.distruntime.RunStepResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.tensorflow.distruntime.RunStepResponse other) {
if (other == org.tensorflow.distruntime.RunStepResponse.getDefaultInstance()) return this;
if (tensorBuilder_ == null) {
if (!other.tensor_.isEmpty()) {
if (tensor_.isEmpty()) {
tensor_ = other.tensor_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureTensorIsMutable();
tensor_.addAll(other.tensor_);
}
onChanged();
}
} else {
if (!other.tensor_.isEmpty()) {
if (tensorBuilder_.isEmpty()) {
tensorBuilder_.dispose();
tensorBuilder_ = null;
tensor_ = other.tensor_;
bitField0_ = (bitField0_ & ~0x00000001);
tensorBuilder_ =
org.nd4j.shade.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getTensorFieldBuilder() : null;
} else {
tensorBuilder_.addAllMessages(other.tensor_);
}
}
}
if (other.hasMetadata()) {
mergeMetadata(other.getMetadata());
}
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.RunStepResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (org.nd4j.shade.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.tensorflow.distruntime.RunStepResponse) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.util.List tensor_ =
java.util.Collections.emptyList();
private void ensureTensorIsMutable() {
if (!((bitField0_ & 0x00000001) == 0x00000001)) {
tensor_ = new java.util.ArrayList(tensor_);
bitField0_ |= 0x00000001;
}
}
private org.nd4j.shade.protobuf.RepeatedFieldBuilderV3<
org.tensorflow.framework.NamedTensorProto, org.tensorflow.framework.NamedTensorProto.Builder, org.tensorflow.framework.NamedTensorProtoOrBuilder> tensorBuilder_;
/**
*
* NOTE: The order of the returned tensors may or may not match
* the fetch order specified in RunStepRequest.
*
* 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 = 3;
*/
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 = 3;
*/
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 = 3;
*/
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 = 3;
*/
public Builder clearStatusCode() {
statusCode_ = 0;
onChanged();
return this;
}
private java.lang.Object statusErrorMessage_ = "";
/**
* string status_error_message = 4;
*/
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 = 4;
*/
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 = 4;
*/
public Builder setStatusErrorMessage(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
statusErrorMessage_ = value;
onChanged();
return this;
}
/**
* string status_error_message = 4;
*/
public Builder clearStatusErrorMessage() {
statusErrorMessage_ = getDefaultInstance().getStatusErrorMessage();
onChanged();
return this;
}
/**
* string status_error_message = 4;
*/
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.RunStepResponse)
}
// @@protoc_insertion_point(class_scope:tensorflow.RunStepResponse)
private static final org.tensorflow.distruntime.RunStepResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.tensorflow.distruntime.RunStepResponse();
}
public static org.tensorflow.distruntime.RunStepResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final org.nd4j.shade.protobuf.Parser
PARSER = new org.nd4j.shade.protobuf.AbstractParser() {
public RunStepResponse parsePartialFrom(
org.nd4j.shade.protobuf.CodedInputStream input,
org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.nd4j.shade.protobuf.InvalidProtocolBufferException {
return new RunStepResponse(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.RunStepResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}