Please wait. This can take some minutes ...
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.
org.tensorflow.distruntime.RunCallableResponse Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: tensorflow/core/protobuf/master.proto
package org.tensorflow.distruntime;
/**
* Protobuf type {@code tensorflow.RunCallableResponse}
*/
public final class RunCallableResponse extends
org.nd4j.shade.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:tensorflow.RunCallableResponse)
RunCallableResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use RunCallableResponse.newBuilder() to construct.
private RunCallableResponse(org.nd4j.shade.protobuf.GeneratedMessageV3.Builder builder) {
super(builder);
}
private RunCallableResponse() {
fetch_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new RunCallableResponse();
}
@java.lang.Override
public final org.nd4j.shade.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private RunCallableResponse(
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: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
fetch_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
fetch_.add(
input.readMessage(org.tensorflow.framework.TensorProto.parser(), extensionRegistry));
break;
}
case 18: {
org.tensorflow.framework.RunMetadata.Builder subBuilder = null;
if (metadata_ != null) {
subBuilder = metadata_.toBuilder();
}
metadata_ = input.readMessage(org.tensorflow.framework.RunMetadata.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(metadata_);
metadata_ = subBuilder.buildPartial();
}
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)) {
fetch_ = java.util.Collections.unmodifiableList(fetch_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final org.nd4j.shade.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.tensorflow.distruntime.DistributedRuntimeProtos.internal_static_tensorflow_RunCallableResponse_descriptor;
}
@java.lang.Override
protected org.nd4j.shade.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tensorflow.distruntime.DistributedRuntimeProtos.internal_static_tensorflow_RunCallableResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tensorflow.distruntime.RunCallableResponse.class, org.tensorflow.distruntime.RunCallableResponse.Builder.class);
}
public static final int FETCH_FIELD_NUMBER = 1;
private java.util.List fetch_;
/**
*
* Values of the tensors returned by the callable, in the order defined in the
* CallableOptions.fetch field passed to MakeCallable.
*
*
* repeated .tensorflow.TensorProto fetch = 1;
*/
@java.lang.Override
public java.util.List getFetchList() {
return fetch_;
}
/**
*
* Values of the tensors returned by the callable, in the order defined in the
* CallableOptions.fetch field passed to MakeCallable.
*
*
* repeated .tensorflow.TensorProto fetch = 1;
*/
@java.lang.Override
public java.util.List
getFetchOrBuilderList() {
return fetch_;
}
/**
*
* Values of the tensors returned by the callable, in the order defined in the
* CallableOptions.fetch field passed to MakeCallable.
*
*
* repeated .tensorflow.TensorProto fetch = 1;
*/
@java.lang.Override
public int getFetchCount() {
return fetch_.size();
}
/**
*
* Values of the tensors returned by the callable, in the order defined in the
* CallableOptions.fetch field passed to MakeCallable.
*
*
* repeated .tensorflow.TensorProto fetch = 1;
*/
@java.lang.Override
public org.tensorflow.framework.TensorProto getFetch(int index) {
return fetch_.get(index);
}
/**
*
* Values of the tensors returned by the callable, in the order defined in the
* CallableOptions.fetch field passed to MakeCallable.
*
*
* repeated .tensorflow.TensorProto fetch = 1;
*/
@java.lang.Override
public org.tensorflow.framework.TensorProtoOrBuilder getFetchOrBuilder(
int index) {
return fetch_.get(index);
}
public static final int METADATA_FIELD_NUMBER = 2;
private org.tensorflow.framework.RunMetadata metadata_;
/**
*
* Returned metadata if requested in the options.
*
*
* .tensorflow.RunMetadata metadata = 2;
* @return Whether the metadata field is set.
*/
@java.lang.Override
public boolean hasMetadata() {
return metadata_ != null;
}
/**
*
* Returned metadata if requested in the options.
*
*
* .tensorflow.RunMetadata metadata = 2;
* @return The metadata.
*/
@java.lang.Override
public org.tensorflow.framework.RunMetadata getMetadata() {
return metadata_ == null ? org.tensorflow.framework.RunMetadata.getDefaultInstance() : metadata_;
}
/**
*
* Returned metadata if requested in the options.
*
*
* .tensorflow.RunMetadata metadata = 2;
*/
@java.lang.Override
public org.tensorflow.framework.RunMetadataOrBuilder getMetadataOrBuilder() {
return getMetadata();
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(org.nd4j.shade.protobuf.CodedOutputStream output)
throws java.io.IOException {
for (int i = 0; i < fetch_.size(); i++) {
output.writeMessage(1, fetch_.get(i));
}
if (metadata_ != null) {
output.writeMessage(2, getMetadata());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < fetch_.size(); i++) {
size += org.nd4j.shade.protobuf.CodedOutputStream
.computeMessageSize(1, fetch_.get(i));
}
if (metadata_ != null) {
size += org.nd4j.shade.protobuf.CodedOutputStream
.computeMessageSize(2, getMetadata());
}
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.RunCallableResponse)) {
return super.equals(obj);
}
org.tensorflow.distruntime.RunCallableResponse other = (org.tensorflow.distruntime.RunCallableResponse) obj;
if (!getFetchList()
.equals(other.getFetchList())) return false;
if (hasMetadata() != other.hasMetadata()) return false;
if (hasMetadata()) {
if (!getMetadata()
.equals(other.getMetadata())) return false;
}
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (getFetchCount() > 0) {
hash = (37 * hash) + FETCH_FIELD_NUMBER;
hash = (53 * hash) + getFetchList().hashCode();
}
if (hasMetadata()) {
hash = (37 * hash) + METADATA_FIELD_NUMBER;
hash = (53 * hash) + getMetadata().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.tensorflow.distruntime.RunCallableResponse parseFrom(
java.nio.ByteBuffer data)
throws org.nd4j.shade.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tensorflow.distruntime.RunCallableResponse 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.RunCallableResponse parseFrom(
org.nd4j.shade.protobuf.ByteString data)
throws org.nd4j.shade.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tensorflow.distruntime.RunCallableResponse 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.RunCallableResponse parseFrom(byte[] data)
throws org.nd4j.shade.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tensorflow.distruntime.RunCallableResponse 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.RunCallableResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return org.nd4j.shade.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tensorflow.distruntime.RunCallableResponse 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.RunCallableResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return org.nd4j.shade.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.tensorflow.distruntime.RunCallableResponse 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.RunCallableResponse 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.RunCallableResponse 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);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(org.tensorflow.distruntime.RunCallableResponse prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
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.RunCallableResponse}
*/
public static final class Builder extends
org.nd4j.shade.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:tensorflow.RunCallableResponse)
org.tensorflow.distruntime.RunCallableResponseOrBuilder {
public static final org.nd4j.shade.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.tensorflow.distruntime.DistributedRuntimeProtos.internal_static_tensorflow_RunCallableResponse_descriptor;
}
@java.lang.Override
protected org.nd4j.shade.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tensorflow.distruntime.DistributedRuntimeProtos.internal_static_tensorflow_RunCallableResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tensorflow.distruntime.RunCallableResponse.class, org.tensorflow.distruntime.RunCallableResponse.Builder.class);
}
// Construct using org.tensorflow.distruntime.RunCallableResponse.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) {
getFetchFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (fetchBuilder_ == null) {
fetch_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
fetchBuilder_.clear();
}
if (metadataBuilder_ == null) {
metadata_ = null;
} else {
metadata_ = null;
metadataBuilder_ = null;
}
return this;
}
@java.lang.Override
public org.nd4j.shade.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.tensorflow.distruntime.DistributedRuntimeProtos.internal_static_tensorflow_RunCallableResponse_descriptor;
}
@java.lang.Override
public org.tensorflow.distruntime.RunCallableResponse getDefaultInstanceForType() {
return org.tensorflow.distruntime.RunCallableResponse.getDefaultInstance();
}
@java.lang.Override
public org.tensorflow.distruntime.RunCallableResponse build() {
org.tensorflow.distruntime.RunCallableResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.tensorflow.distruntime.RunCallableResponse buildPartial() {
org.tensorflow.distruntime.RunCallableResponse result = new org.tensorflow.distruntime.RunCallableResponse(this);
int from_bitField0_ = bitField0_;
if (fetchBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
fetch_ = java.util.Collections.unmodifiableList(fetch_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.fetch_ = fetch_;
} else {
result.fetch_ = fetchBuilder_.build();
}
if (metadataBuilder_ == null) {
result.metadata_ = metadata_;
} else {
result.metadata_ = metadataBuilder_.build();
}
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
org.nd4j.shade.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(org.nd4j.shade.protobuf.Message other) {
if (other instanceof org.tensorflow.distruntime.RunCallableResponse) {
return mergeFrom((org.tensorflow.distruntime.RunCallableResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.tensorflow.distruntime.RunCallableResponse other) {
if (other == org.tensorflow.distruntime.RunCallableResponse.getDefaultInstance()) return this;
if (fetchBuilder_ == null) {
if (!other.fetch_.isEmpty()) {
if (fetch_.isEmpty()) {
fetch_ = other.fetch_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureFetchIsMutable();
fetch_.addAll(other.fetch_);
}
onChanged();
}
} else {
if (!other.fetch_.isEmpty()) {
if (fetchBuilder_.isEmpty()) {
fetchBuilder_.dispose();
fetchBuilder_ = null;
fetch_ = other.fetch_;
bitField0_ = (bitField0_ & ~0x00000001);
fetchBuilder_ =
org.nd4j.shade.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getFetchFieldBuilder() : null;
} else {
fetchBuilder_.addAllMessages(other.fetch_);
}
}
}
if (other.hasMetadata()) {
mergeMetadata(other.getMetadata());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
org.nd4j.shade.protobuf.CodedInputStream input,
org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.tensorflow.distruntime.RunCallableResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (org.nd4j.shade.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.tensorflow.distruntime.RunCallableResponse) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.util.List fetch_ =
java.util.Collections.emptyList();
private void ensureFetchIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
fetch_ = new java.util.ArrayList(fetch_);
bitField0_ |= 0x00000001;
}
}
private org.nd4j.shade.protobuf.RepeatedFieldBuilderV3<
org.tensorflow.framework.TensorProto, org.tensorflow.framework.TensorProto.Builder, org.tensorflow.framework.TensorProtoOrBuilder> fetchBuilder_;
/**
*
* Values of the tensors returned by the callable, in the order defined in the
* CallableOptions.fetch field passed to MakeCallable.
*
*
* repeated .tensorflow.TensorProto fetch = 1;
*/
public java.util.List getFetchList() {
if (fetchBuilder_ == null) {
return java.util.Collections.unmodifiableList(fetch_);
} else {
return fetchBuilder_.getMessageList();
}
}
/**
*
* Values of the tensors returned by the callable, in the order defined in the
* CallableOptions.fetch field passed to MakeCallable.
*
*
* repeated .tensorflow.TensorProto fetch = 1;
*/
public int getFetchCount() {
if (fetchBuilder_ == null) {
return fetch_.size();
} else {
return fetchBuilder_.getCount();
}
}
/**
*
* Values of the tensors returned by the callable, in the order defined in the
* CallableOptions.fetch field passed to MakeCallable.
*
*
* repeated .tensorflow.TensorProto fetch = 1;
*/
public org.tensorflow.framework.TensorProto getFetch(int index) {
if (fetchBuilder_ == null) {
return fetch_.get(index);
} else {
return fetchBuilder_.getMessage(index);
}
}
/**
*
* Values of the tensors returned by the callable, in the order defined in the
* CallableOptions.fetch field passed to MakeCallable.
*
*
* repeated .tensorflow.TensorProto fetch = 1;
*/
public Builder setFetch(
int index, org.tensorflow.framework.TensorProto value) {
if (fetchBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureFetchIsMutable();
fetch_.set(index, value);
onChanged();
} else {
fetchBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* Values of the tensors returned by the callable, in the order defined in the
* CallableOptions.fetch field passed to MakeCallable.
*
*
* repeated .tensorflow.TensorProto fetch = 1;
*/
public Builder setFetch(
int index, org.tensorflow.framework.TensorProto.Builder builderForValue) {
if (fetchBuilder_ == null) {
ensureFetchIsMutable();
fetch_.set(index, builderForValue.build());
onChanged();
} else {
fetchBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Values of the tensors returned by the callable, in the order defined in the
* CallableOptions.fetch field passed to MakeCallable.
*
*
* repeated .tensorflow.TensorProto fetch = 1;
*/
public Builder addFetch(org.tensorflow.framework.TensorProto value) {
if (fetchBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureFetchIsMutable();
fetch_.add(value);
onChanged();
} else {
fetchBuilder_.addMessage(value);
}
return this;
}
/**
*
* Values of the tensors returned by the callable, in the order defined in the
* CallableOptions.fetch field passed to MakeCallable.
*
*
* repeated .tensorflow.TensorProto fetch = 1;
*/
public Builder addFetch(
int index, org.tensorflow.framework.TensorProto value) {
if (fetchBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureFetchIsMutable();
fetch_.add(index, value);
onChanged();
} else {
fetchBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* Values of the tensors returned by the callable, in the order defined in the
* CallableOptions.fetch field passed to MakeCallable.
*
*
* repeated .tensorflow.TensorProto fetch = 1;
*/
public Builder addFetch(
org.tensorflow.framework.TensorProto.Builder builderForValue) {
if (fetchBuilder_ == null) {
ensureFetchIsMutable();
fetch_.add(builderForValue.build());
onChanged();
} else {
fetchBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* Values of the tensors returned by the callable, in the order defined in the
* CallableOptions.fetch field passed to MakeCallable.
*
*
* repeated .tensorflow.TensorProto fetch = 1;
*/
public Builder addFetch(
int index, org.tensorflow.framework.TensorProto.Builder builderForValue) {
if (fetchBuilder_ == null) {
ensureFetchIsMutable();
fetch_.add(index, builderForValue.build());
onChanged();
} else {
fetchBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Values of the tensors returned by the callable, in the order defined in the
* CallableOptions.fetch field passed to MakeCallable.
*
*
* repeated .tensorflow.TensorProto fetch = 1;
*/
public Builder addAllFetch(
java.lang.Iterable values) {
if (fetchBuilder_ == null) {
ensureFetchIsMutable();
org.nd4j.shade.protobuf.AbstractMessageLite.Builder.addAll(
values, fetch_);
onChanged();
} else {
fetchBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* Values of the tensors returned by the callable, in the order defined in the
* CallableOptions.fetch field passed to MakeCallable.
*
*
* repeated .tensorflow.TensorProto fetch = 1;
*/
public Builder clearFetch() {
if (fetchBuilder_ == null) {
fetch_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
fetchBuilder_.clear();
}
return this;
}
/**
*
* Values of the tensors returned by the callable, in the order defined in the
* CallableOptions.fetch field passed to MakeCallable.
*
*
* repeated .tensorflow.TensorProto fetch = 1;
*/
public Builder removeFetch(int index) {
if (fetchBuilder_ == null) {
ensureFetchIsMutable();
fetch_.remove(index);
onChanged();
} else {
fetchBuilder_.remove(index);
}
return this;
}
/**
*
* Values of the tensors returned by the callable, in the order defined in the
* CallableOptions.fetch field passed to MakeCallable.
*
*
* repeated .tensorflow.TensorProto fetch = 1;
*/
public org.tensorflow.framework.TensorProto.Builder getFetchBuilder(
int index) {
return getFetchFieldBuilder().getBuilder(index);
}
/**
*
* Values of the tensors returned by the callable, in the order defined in the
* CallableOptions.fetch field passed to MakeCallable.
*
*
* repeated .tensorflow.TensorProto fetch = 1;
*/
public org.tensorflow.framework.TensorProtoOrBuilder getFetchOrBuilder(
int index) {
if (fetchBuilder_ == null) {
return fetch_.get(index); } else {
return fetchBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* Values of the tensors returned by the callable, in the order defined in the
* CallableOptions.fetch field passed to MakeCallable.
*
*
* repeated .tensorflow.TensorProto fetch = 1;
*/
public java.util.List
getFetchOrBuilderList() {
if (fetchBuilder_ != null) {
return fetchBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(fetch_);
}
}
/**
*
* Values of the tensors returned by the callable, in the order defined in the
* CallableOptions.fetch field passed to MakeCallable.
*
*
* repeated .tensorflow.TensorProto fetch = 1;
*/
public org.tensorflow.framework.TensorProto.Builder addFetchBuilder() {
return getFetchFieldBuilder().addBuilder(
org.tensorflow.framework.TensorProto.getDefaultInstance());
}
/**
*
* Values of the tensors returned by the callable, in the order defined in the
* CallableOptions.fetch field passed to MakeCallable.
*
*
* repeated .tensorflow.TensorProto fetch = 1;
*/
public org.tensorflow.framework.TensorProto.Builder addFetchBuilder(
int index) {
return getFetchFieldBuilder().addBuilder(
index, org.tensorflow.framework.TensorProto.getDefaultInstance());
}
/**
*
* Values of the tensors returned by the callable, in the order defined in the
* CallableOptions.fetch field passed to MakeCallable.
*
*
* repeated .tensorflow.TensorProto fetch = 1;
*/
public java.util.List
getFetchBuilderList() {
return getFetchFieldBuilder().getBuilderList();
}
private org.nd4j.shade.protobuf.RepeatedFieldBuilderV3<
org.tensorflow.framework.TensorProto, org.tensorflow.framework.TensorProto.Builder, org.tensorflow.framework.TensorProtoOrBuilder>
getFetchFieldBuilder() {
if (fetchBuilder_ == null) {
fetchBuilder_ = new org.nd4j.shade.protobuf.RepeatedFieldBuilderV3<
org.tensorflow.framework.TensorProto, org.tensorflow.framework.TensorProto.Builder, org.tensorflow.framework.TensorProtoOrBuilder>(
fetch_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
fetch_ = null;
}
return fetchBuilder_;
}
private org.tensorflow.framework.RunMetadata metadata_;
private org.nd4j.shade.protobuf.SingleFieldBuilderV3<
org.tensorflow.framework.RunMetadata, org.tensorflow.framework.RunMetadata.Builder, org.tensorflow.framework.RunMetadataOrBuilder> metadataBuilder_;
/**
*
* Returned metadata if requested in the options.
*
*
* .tensorflow.RunMetadata metadata = 2;
* @return Whether the metadata field is set.
*/
public boolean hasMetadata() {
return metadataBuilder_ != null || metadata_ != null;
}
/**
*
* Returned metadata if requested in the options.
*
*
* .tensorflow.RunMetadata metadata = 2;
* @return The metadata.
*/
public org.tensorflow.framework.RunMetadata getMetadata() {
if (metadataBuilder_ == null) {
return metadata_ == null ? org.tensorflow.framework.RunMetadata.getDefaultInstance() : metadata_;
} else {
return metadataBuilder_.getMessage();
}
}
/**
*
* Returned metadata if requested in the options.
*
*
* .tensorflow.RunMetadata metadata = 2;
*/
public Builder setMetadata(org.tensorflow.framework.RunMetadata value) {
if (metadataBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
metadata_ = value;
onChanged();
} else {
metadataBuilder_.setMessage(value);
}
return this;
}
/**
*
* Returned metadata if requested in the options.
*
*
* .tensorflow.RunMetadata metadata = 2;
*/
public Builder setMetadata(
org.tensorflow.framework.RunMetadata.Builder builderForValue) {
if (metadataBuilder_ == null) {
metadata_ = builderForValue.build();
onChanged();
} else {
metadataBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Returned metadata if requested in the options.
*
*
* .tensorflow.RunMetadata metadata = 2;
*/
public Builder mergeMetadata(org.tensorflow.framework.RunMetadata value) {
if (metadataBuilder_ == null) {
if (metadata_ != null) {
metadata_ =
org.tensorflow.framework.RunMetadata.newBuilder(metadata_).mergeFrom(value).buildPartial();
} else {
metadata_ = value;
}
onChanged();
} else {
metadataBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Returned metadata if requested in the options.
*
*
* .tensorflow.RunMetadata metadata = 2;
*/
public Builder clearMetadata() {
if (metadataBuilder_ == null) {
metadata_ = null;
onChanged();
} else {
metadata_ = null;
metadataBuilder_ = null;
}
return this;
}
/**
*
* Returned metadata if requested in the options.
*
*
* .tensorflow.RunMetadata metadata = 2;
*/
public org.tensorflow.framework.RunMetadata.Builder getMetadataBuilder() {
onChanged();
return getMetadataFieldBuilder().getBuilder();
}
/**
*
* Returned metadata if requested in the options.
*
*
* .tensorflow.RunMetadata metadata = 2;
*/
public org.tensorflow.framework.RunMetadataOrBuilder getMetadataOrBuilder() {
if (metadataBuilder_ != null) {
return metadataBuilder_.getMessageOrBuilder();
} else {
return metadata_ == null ?
org.tensorflow.framework.RunMetadata.getDefaultInstance() : metadata_;
}
}
/**
*
* Returned metadata if requested in the options.
*
*
* .tensorflow.RunMetadata metadata = 2;
*/
private org.nd4j.shade.protobuf.SingleFieldBuilderV3<
org.tensorflow.framework.RunMetadata, org.tensorflow.framework.RunMetadata.Builder, org.tensorflow.framework.RunMetadataOrBuilder>
getMetadataFieldBuilder() {
if (metadataBuilder_ == null) {
metadataBuilder_ = new org.nd4j.shade.protobuf.SingleFieldBuilderV3<
org.tensorflow.framework.RunMetadata, org.tensorflow.framework.RunMetadata.Builder, org.tensorflow.framework.RunMetadataOrBuilder>(
getMetadata(),
getParentForChildren(),
isClean());
metadata_ = null;
}
return metadataBuilder_;
}
@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.RunCallableResponse)
}
// @@protoc_insertion_point(class_scope:tensorflow.RunCallableResponse)
private static final org.tensorflow.distruntime.RunCallableResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.tensorflow.distruntime.RunCallableResponse();
}
public static org.tensorflow.distruntime.RunCallableResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final org.nd4j.shade.protobuf.Parser
PARSER = new org.nd4j.shade.protobuf.AbstractParser() {
@java.lang.Override
public RunCallableResponse parsePartialFrom(
org.nd4j.shade.protobuf.CodedInputStream input,
org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.nd4j.shade.protobuf.InvalidProtocolBufferException {
return new RunCallableResponse(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.RunCallableResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}