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/eager_service.proto
package tensorflow.eager;
public final class EagerServiceOuterClass {
private EagerServiceOuterClass() {}
public static void registerAllExtensions(
org.nd4j.shade.protobuf.ExtensionRegistryLite registry) {
}
public static void registerAllExtensions(
org.nd4j.shade.protobuf.ExtensionRegistry registry) {
registerAllExtensions(
(org.nd4j.shade.protobuf.ExtensionRegistryLite) registry);
}
public interface RemoteTensorHandleOrBuilder extends
// @@protoc_insertion_point(interface_extends:tensorflow.eager.RemoteTensorHandle)
org.nd4j.shade.protobuf.MessageOrBuilder {
/**
*
* The ID of the operation that produced this tensor.
*
*
* int64 op_id = 1;
* @return The opId.
*/
long getOpId();
/**
*
* The index into the outputs of the operation that produced this tensor.
*
*
* int32 output_num = 2;
* @return The outputNum.
*/
int getOutputNum();
}
/**
* Protobuf type {@code tensorflow.eager.RemoteTensorHandle}
*/
public static final class RemoteTensorHandle extends
org.nd4j.shade.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:tensorflow.eager.RemoteTensorHandle)
RemoteTensorHandleOrBuilder {
private static final long serialVersionUID = 0L;
// Use RemoteTensorHandle.newBuilder() to construct.
private RemoteTensorHandle(org.nd4j.shade.protobuf.GeneratedMessageV3.Builder builder) {
super(builder);
}
private RemoteTensorHandle() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new RemoteTensorHandle();
}
@java.lang.Override
public final org.nd4j.shade.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private RemoteTensorHandle(
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();
}
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 8: {
opId_ = input.readInt64();
break;
}
case 16: {
outputNum_ = input.readInt32();
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 {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final org.nd4j.shade.protobuf.Descriptors.Descriptor
getDescriptor() {
return tensorflow.eager.EagerServiceOuterClass.internal_static_tensorflow_eager_RemoteTensorHandle_descriptor;
}
@java.lang.Override
protected org.nd4j.shade.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tensorflow.eager.EagerServiceOuterClass.internal_static_tensorflow_eager_RemoteTensorHandle_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tensorflow.eager.EagerServiceOuterClass.RemoteTensorHandle.class, tensorflow.eager.EagerServiceOuterClass.RemoteTensorHandle.Builder.class);
}
public static final int OP_ID_FIELD_NUMBER = 1;
private long opId_;
/**
*
* The ID of the operation that produced this tensor.
*
*
* int64 op_id = 1;
* @return The opId.
*/
@java.lang.Override
public long getOpId() {
return opId_;
}
public static final int OUTPUT_NUM_FIELD_NUMBER = 2;
private int outputNum_;
/**
*
* The index into the outputs of the operation that produced this tensor.
*
*
* int32 output_num = 2;
* @return The outputNum.
*/
@java.lang.Override
public int getOutputNum() {
return outputNum_;
}
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 {
if (opId_ != 0L) {
output.writeInt64(1, opId_);
}
if (outputNum_ != 0) {
output.writeInt32(2, outputNum_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (opId_ != 0L) {
size += org.nd4j.shade.protobuf.CodedOutputStream
.computeInt64Size(1, opId_);
}
if (outputNum_ != 0) {
size += org.nd4j.shade.protobuf.CodedOutputStream
.computeInt32Size(2, outputNum_);
}
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 tensorflow.eager.EagerServiceOuterClass.RemoteTensorHandle)) {
return super.equals(obj);
}
tensorflow.eager.EagerServiceOuterClass.RemoteTensorHandle other = (tensorflow.eager.EagerServiceOuterClass.RemoteTensorHandle) obj;
if (getOpId()
!= other.getOpId()) return false;
if (getOutputNum()
!= other.getOutputNum()) 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();
hash = (37 * hash) + OP_ID_FIELD_NUMBER;
hash = (53 * hash) + org.nd4j.shade.protobuf.Internal.hashLong(
getOpId());
hash = (37 * hash) + OUTPUT_NUM_FIELD_NUMBER;
hash = (53 * hash) + getOutputNum();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static tensorflow.eager.EagerServiceOuterClass.RemoteTensorHandle parseFrom(
java.nio.ByteBuffer data)
throws org.nd4j.shade.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tensorflow.eager.EagerServiceOuterClass.RemoteTensorHandle parseFrom(
java.nio.ByteBuffer data,
org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.nd4j.shade.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tensorflow.eager.EagerServiceOuterClass.RemoteTensorHandle parseFrom(
org.nd4j.shade.protobuf.ByteString data)
throws org.nd4j.shade.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tensorflow.eager.EagerServiceOuterClass.RemoteTensorHandle 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 tensorflow.eager.EagerServiceOuterClass.RemoteTensorHandle parseFrom(byte[] data)
throws org.nd4j.shade.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tensorflow.eager.EagerServiceOuterClass.RemoteTensorHandle parseFrom(
byte[] data,
org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.nd4j.shade.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tensorflow.eager.EagerServiceOuterClass.RemoteTensorHandle parseFrom(java.io.InputStream input)
throws java.io.IOException {
return org.nd4j.shade.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tensorflow.eager.EagerServiceOuterClass.RemoteTensorHandle 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 tensorflow.eager.EagerServiceOuterClass.RemoteTensorHandle parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return org.nd4j.shade.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static tensorflow.eager.EagerServiceOuterClass.RemoteTensorHandle 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 tensorflow.eager.EagerServiceOuterClass.RemoteTensorHandle parseFrom(
org.nd4j.shade.protobuf.CodedInputStream input)
throws java.io.IOException {
return org.nd4j.shade.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tensorflow.eager.EagerServiceOuterClass.RemoteTensorHandle 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(tensorflow.eager.EagerServiceOuterClass.RemoteTensorHandle 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.eager.RemoteTensorHandle}
*/
public static final class Builder extends
org.nd4j.shade.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:tensorflow.eager.RemoteTensorHandle)
tensorflow.eager.EagerServiceOuterClass.RemoteTensorHandleOrBuilder {
public static final org.nd4j.shade.protobuf.Descriptors.Descriptor
getDescriptor() {
return tensorflow.eager.EagerServiceOuterClass.internal_static_tensorflow_eager_RemoteTensorHandle_descriptor;
}
@java.lang.Override
protected org.nd4j.shade.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tensorflow.eager.EagerServiceOuterClass.internal_static_tensorflow_eager_RemoteTensorHandle_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tensorflow.eager.EagerServiceOuterClass.RemoteTensorHandle.class, tensorflow.eager.EagerServiceOuterClass.RemoteTensorHandle.Builder.class);
}
// Construct using tensorflow.eager.EagerServiceOuterClass.RemoteTensorHandle.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) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
opId_ = 0L;
outputNum_ = 0;
return this;
}
@java.lang.Override
public org.nd4j.shade.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return tensorflow.eager.EagerServiceOuterClass.internal_static_tensorflow_eager_RemoteTensorHandle_descriptor;
}
@java.lang.Override
public tensorflow.eager.EagerServiceOuterClass.RemoteTensorHandle getDefaultInstanceForType() {
return tensorflow.eager.EagerServiceOuterClass.RemoteTensorHandle.getDefaultInstance();
}
@java.lang.Override
public tensorflow.eager.EagerServiceOuterClass.RemoteTensorHandle build() {
tensorflow.eager.EagerServiceOuterClass.RemoteTensorHandle result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public tensorflow.eager.EagerServiceOuterClass.RemoteTensorHandle buildPartial() {
tensorflow.eager.EagerServiceOuterClass.RemoteTensorHandle result = new tensorflow.eager.EagerServiceOuterClass.RemoteTensorHandle(this);
result.opId_ = opId_;
result.outputNum_ = outputNum_;
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 tensorflow.eager.EagerServiceOuterClass.RemoteTensorHandle) {
return mergeFrom((tensorflow.eager.EagerServiceOuterClass.RemoteTensorHandle)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(tensorflow.eager.EagerServiceOuterClass.RemoteTensorHandle other) {
if (other == tensorflow.eager.EagerServiceOuterClass.RemoteTensorHandle.getDefaultInstance()) return this;
if (other.getOpId() != 0L) {
setOpId(other.getOpId());
}
if (other.getOutputNum() != 0) {
setOutputNum(other.getOutputNum());
}
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 {
tensorflow.eager.EagerServiceOuterClass.RemoteTensorHandle parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (org.nd4j.shade.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (tensorflow.eager.EagerServiceOuterClass.RemoteTensorHandle) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private long opId_ ;
/**
*
* The ID of the operation that produced this tensor.
*
*
* int64 op_id = 1;
* @return The opId.
*/
@java.lang.Override
public long getOpId() {
return opId_;
}
/**
*
* The ID of the operation that produced this tensor.
*
*
* int64 op_id = 1;
* @param value The opId to set.
* @return This builder for chaining.
*/
public Builder setOpId(long value) {
opId_ = value;
onChanged();
return this;
}
/**
*
* The ID of the operation that produced this tensor.
*
*
* int64 op_id = 1;
* @return This builder for chaining.
*/
public Builder clearOpId() {
opId_ = 0L;
onChanged();
return this;
}
private int outputNum_ ;
/**
*
* The index into the outputs of the operation that produced this tensor.
*
*
* int32 output_num = 2;
* @return The outputNum.
*/
@java.lang.Override
public int getOutputNum() {
return outputNum_;
}
/**
*
* The index into the outputs of the operation that produced this tensor.
*
*
* int32 output_num = 2;
* @param value The outputNum to set.
* @return This builder for chaining.
*/
public Builder setOutputNum(int value) {
outputNum_ = value;
onChanged();
return this;
}
/**
*
* The index into the outputs of the operation that produced this tensor.
*
*
* int32 output_num = 2;
* @return This builder for chaining.
*/
public Builder clearOutputNum() {
outputNum_ = 0;
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.eager.RemoteTensorHandle)
}
// @@protoc_insertion_point(class_scope:tensorflow.eager.RemoteTensorHandle)
private static final tensorflow.eager.EagerServiceOuterClass.RemoteTensorHandle DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new tensorflow.eager.EagerServiceOuterClass.RemoteTensorHandle();
}
public static tensorflow.eager.EagerServiceOuterClass.RemoteTensorHandle getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final org.nd4j.shade.protobuf.Parser
PARSER = new org.nd4j.shade.protobuf.AbstractParser() {
@java.lang.Override
public RemoteTensorHandle parsePartialFrom(
org.nd4j.shade.protobuf.CodedInputStream input,
org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.nd4j.shade.protobuf.InvalidProtocolBufferException {
return new RemoteTensorHandle(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 tensorflow.eager.EagerServiceOuterClass.RemoteTensorHandle getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface OperationOrBuilder extends
// @@protoc_insertion_point(interface_extends:tensorflow.eager.Operation)
org.nd4j.shade.protobuf.MessageOrBuilder {
/**
*
* A unique identifier for the operation. Set by the client so that the client
* can uniquely identify the outputs of the scheduled operation.
* In the initial implementation, sending duplicate IDs has undefined
* behaviour, but additional constraints may be placed upon this in the
* future.
*
*
* int64 id = 1;
* @return The id.
*/
long getId();
/**
* string name = 2;
* @return The name.
*/
java.lang.String getName();
/**
* string name = 2;
* @return The bytes for name.
*/
org.nd4j.shade.protobuf.ByteString
getNameBytes();
/**
* repeated .tensorflow.eager.RemoteTensorHandle inputs = 3;
*/
java.util.List
getInputsList();
/**
* repeated .tensorflow.eager.RemoteTensorHandle inputs = 3;
*/
tensorflow.eager.EagerServiceOuterClass.RemoteTensorHandle getInputs(int index);
/**
* repeated .tensorflow.eager.RemoteTensorHandle inputs = 3;
*/
int getInputsCount();
/**
* repeated .tensorflow.eager.RemoteTensorHandle inputs = 3;
*/
java.util.List
getInputsOrBuilderList();
/**
* repeated .tensorflow.eager.RemoteTensorHandle inputs = 3;
*/
tensorflow.eager.EagerServiceOuterClass.RemoteTensorHandleOrBuilder getInputsOrBuilder(
int index);
/**
*
* Control Operation IDs that will be respected when ops are re-ordered by
* async execution. If async execution (+ op re-ordering) is not enabled, this
* should have no effect.
*
*
* repeated int64 control_op_ids = 4;
* @return A list containing the controlOpIds.
*/
java.util.List getControlOpIdsList();
/**
*
* Control Operation IDs that will be respected when ops are re-ordered by
* async execution. If async execution (+ op re-ordering) is not enabled, this
* should have no effect.
*
*
* repeated int64 control_op_ids = 4;
* @return The count of controlOpIds.
*/
int getControlOpIdsCount();
/**
*
* Control Operation IDs that will be respected when ops are re-ordered by
* async execution. If async execution (+ op re-ordering) is not enabled, this
* should have no effect.
*
*
* repeated int64 control_op_ids = 4;
* @param index The index of the element to return.
* @return The controlOpIds at the given index.
*/
long getControlOpIds(int index);
/**
* map<string, .tensorflow.AttrValue> attrs = 5;
*/
int getAttrsCount();
/**
* map<string, .tensorflow.AttrValue> attrs = 5;
*/
boolean containsAttrs(
java.lang.String key);
/**
* Use {@link #getAttrsMap()} instead.
*/
@java.lang.Deprecated
java.util.Map
getAttrs();
/**
* map<string, .tensorflow.AttrValue> attrs = 5;
*/
java.util.Map
getAttrsMap();
/**
* map<string, .tensorflow.AttrValue> attrs = 5;
*/
org.tensorflow.framework.AttrValue getAttrsOrDefault(
java.lang.String key,
org.tensorflow.framework.AttrValue defaultValue);
/**
* map<string, .tensorflow.AttrValue> attrs = 5;
*/
org.tensorflow.framework.AttrValue getAttrsOrThrow(
java.lang.String key);
/**
* string device = 6;
* @return The device.
*/
java.lang.String getDevice();
/**
* string device = 6;
* @return The bytes for device.
*/
org.nd4j.shade.protobuf.ByteString
getDeviceBytes();
}
/**
*
* A proto representation of an eager operation.
*
*
* Protobuf type {@code tensorflow.eager.Operation}
*/
public static final class Operation extends
org.nd4j.shade.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:tensorflow.eager.Operation)
OperationOrBuilder {
private static final long serialVersionUID = 0L;
// Use Operation.newBuilder() to construct.
private Operation(org.nd4j.shade.protobuf.GeneratedMessageV3.Builder builder) {
super(builder);
}
private Operation() {
name_ = "";
inputs_ = java.util.Collections.emptyList();
controlOpIds_ = emptyLongList();
device_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Operation();
}
@java.lang.Override
public final org.nd4j.shade.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Operation(
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 8: {
id_ = input.readInt64();
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
name_ = s;
break;
}
case 26: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
inputs_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
inputs_.add(
input.readMessage(tensorflow.eager.EagerServiceOuterClass.RemoteTensorHandle.parser(), extensionRegistry));
break;
}
case 32: {
if (!((mutable_bitField0_ & 0x00000002) != 0)) {
controlOpIds_ = newLongList();
mutable_bitField0_ |= 0x00000002;
}
controlOpIds_.addLong(input.readInt64());
break;
}
case 34: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
if (!((mutable_bitField0_ & 0x00000002) != 0) && input.getBytesUntilLimit() > 0) {
controlOpIds_ = newLongList();
mutable_bitField0_ |= 0x00000002;
}
while (input.getBytesUntilLimit() > 0) {
controlOpIds_.addLong(input.readInt64());
}
input.popLimit(limit);
break;
}
case 42: {
if (!((mutable_bitField0_ & 0x00000004) != 0)) {
attrs_ = org.nd4j.shade.protobuf.MapField.newMapField(
AttrsDefaultEntryHolder.defaultEntry);
mutable_bitField0_ |= 0x00000004;
}
org.nd4j.shade.protobuf.MapEntry
attrs__ = input.readMessage(
AttrsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
attrs_.getMutableMap().put(
attrs__.getKey(), attrs__.getValue());
break;
}
case 50: {
java.lang.String s = input.readStringRequireUtf8();
device_ = s;
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)) {
inputs_ = java.util.Collections.unmodifiableList(inputs_);
}
if (((mutable_bitField0_ & 0x00000002) != 0)) {
controlOpIds_.makeImmutable(); // C
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final org.nd4j.shade.protobuf.Descriptors.Descriptor
getDescriptor() {
return tensorflow.eager.EagerServiceOuterClass.internal_static_tensorflow_eager_Operation_descriptor;
}
@SuppressWarnings({"rawtypes"})
@java.lang.Override
protected org.nd4j.shade.protobuf.MapField internalGetMapField(
int number) {
switch (number) {
case 5:
return internalGetAttrs();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@java.lang.Override
protected org.nd4j.shade.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tensorflow.eager.EagerServiceOuterClass.internal_static_tensorflow_eager_Operation_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tensorflow.eager.EagerServiceOuterClass.Operation.class, tensorflow.eager.EagerServiceOuterClass.Operation.Builder.class);
}
public static final int ID_FIELD_NUMBER = 1;
private long id_;
/**
*
* A unique identifier for the operation. Set by the client so that the client
* can uniquely identify the outputs of the scheduled operation.
* In the initial implementation, sending duplicate IDs has undefined
* behaviour, but additional constraints may be placed upon this in the
* future.
*
*
* int64 id = 1;
* @return The id.
*/
@java.lang.Override
public long getId() {
return id_;
}
public static final int NAME_FIELD_NUMBER = 2;
private volatile java.lang.Object name_;
/**
* string name = 2;
* @return The name.
*/
@java.lang.Override
public java.lang.String getName() {
java.lang.Object ref = name_;
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();
name_ = s;
return s;
}
}
/**
* string name = 2;
* @return The bytes for name.
*/
@java.lang.Override
public org.nd4j.shade.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
org.nd4j.shade.protobuf.ByteString b =
org.nd4j.shade.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (org.nd4j.shade.protobuf.ByteString) ref;
}
}
public static final int INPUTS_FIELD_NUMBER = 3;
private java.util.List inputs_;
/**
* repeated .tensorflow.eager.RemoteTensorHandle inputs = 3;
*/
@java.lang.Override
public java.util.List getInputsList() {
return inputs_;
}
/**
* repeated .tensorflow.eager.RemoteTensorHandle inputs = 3;
*/
@java.lang.Override
public java.util.List
getInputsOrBuilderList() {
return inputs_;
}
/**
* repeated .tensorflow.eager.RemoteTensorHandle inputs = 3;
*/
@java.lang.Override
public int getInputsCount() {
return inputs_.size();
}
/**
* repeated .tensorflow.eager.RemoteTensorHandle inputs = 3;
*/
@java.lang.Override
public tensorflow.eager.EagerServiceOuterClass.RemoteTensorHandle getInputs(int index) {
return inputs_.get(index);
}
/**
* repeated .tensorflow.eager.RemoteTensorHandle inputs = 3;
*/
@java.lang.Override
public tensorflow.eager.EagerServiceOuterClass.RemoteTensorHandleOrBuilder getInputsOrBuilder(
int index) {
return inputs_.get(index);
}
public static final int CONTROL_OP_IDS_FIELD_NUMBER = 4;
private org.nd4j.shade.protobuf.Internal.LongList controlOpIds_;
/**
*
* Control Operation IDs that will be respected when ops are re-ordered by
* async execution. If async execution (+ op re-ordering) is not enabled, this
* should have no effect.
*
*
* repeated int64 control_op_ids = 4;
* @return A list containing the controlOpIds.
*/
@java.lang.Override
public java.util.List
getControlOpIdsList() {
return controlOpIds_;
}
/**
*
* Control Operation IDs that will be respected when ops are re-ordered by
* async execution. If async execution (+ op re-ordering) is not enabled, this
* should have no effect.
*
*
* repeated int64 control_op_ids = 4;
* @return The count of controlOpIds.
*/
public int getControlOpIdsCount() {
return controlOpIds_.size();
}
/**
*
* Control Operation IDs that will be respected when ops are re-ordered by
* async execution. If async execution (+ op re-ordering) is not enabled, this
* should have no effect.
*
*
* repeated int64 control_op_ids = 4;
* @param index The index of the element to return.
* @return The controlOpIds at the given index.
*/
public long getControlOpIds(int index) {
return controlOpIds_.getLong(index);
}
private int controlOpIdsMemoizedSerializedSize = -1;
public static final int ATTRS_FIELD_NUMBER = 5;
private static final class AttrsDefaultEntryHolder {
static final org.nd4j.shade.protobuf.MapEntry<
java.lang.String, org.tensorflow.framework.AttrValue> defaultEntry =
org.nd4j.shade.protobuf.MapEntry
.newDefaultInstance(
tensorflow.eager.EagerServiceOuterClass.internal_static_tensorflow_eager_Operation_AttrsEntry_descriptor,
org.nd4j.shade.protobuf.WireFormat.FieldType.STRING,
"",
org.nd4j.shade.protobuf.WireFormat.FieldType.MESSAGE,
org.tensorflow.framework.AttrValue.getDefaultInstance());
}
private org.nd4j.shade.protobuf.MapField<
java.lang.String, org.tensorflow.framework.AttrValue> attrs_;
private org.nd4j.shade.protobuf.MapField
internalGetAttrs() {
if (attrs_ == null) {
return org.nd4j.shade.protobuf.MapField.emptyMapField(
AttrsDefaultEntryHolder.defaultEntry);
}
return attrs_;
}
public int getAttrsCount() {
return internalGetAttrs().getMap().size();
}
/**
* map<string, .tensorflow.AttrValue> attrs = 5;
*/
@java.lang.Override
public boolean containsAttrs(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
return internalGetAttrs().getMap().containsKey(key);
}
/**
* Use {@link #getAttrsMap()} instead.
*/
@java.lang.Override
@java.lang.Deprecated
public java.util.Map getAttrs() {
return getAttrsMap();
}
/**
* map<string, .tensorflow.AttrValue> attrs = 5;
*/
@java.lang.Override
public java.util.Map getAttrsMap() {
return internalGetAttrs().getMap();
}
/**
* map<string, .tensorflow.AttrValue> attrs = 5;
*/
@java.lang.Override
public org.tensorflow.framework.AttrValue getAttrsOrDefault(
java.lang.String key,
org.tensorflow.framework.AttrValue defaultValue) {
if (key == null) { throw new java.lang.NullPointerException(); }
java.util.Map map =
internalGetAttrs().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
* map<string, .tensorflow.AttrValue> attrs = 5;
*/
@java.lang.Override
public org.tensorflow.framework.AttrValue getAttrsOrThrow(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
java.util.Map map =
internalGetAttrs().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public static final int DEVICE_FIELD_NUMBER = 6;
private volatile java.lang.Object device_;
/**
* string device = 6;
* @return The device.
*/
@java.lang.Override
public java.lang.String getDevice() {
java.lang.Object ref = device_;
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();
device_ = s;
return s;
}
}
/**
* string device = 6;
* @return The bytes for device.
*/
@java.lang.Override
public org.nd4j.shade.protobuf.ByteString
getDeviceBytes() {
java.lang.Object ref = device_;
if (ref instanceof java.lang.String) {
org.nd4j.shade.protobuf.ByteString b =
org.nd4j.shade.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
device_ = b;
return b;
} else {
return (org.nd4j.shade.protobuf.ByteString) ref;
}
}
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 {
getSerializedSize();
if (id_ != 0L) {
output.writeInt64(1, id_);
}
if (!getNameBytes().isEmpty()) {
org.nd4j.shade.protobuf.GeneratedMessageV3.writeString(output, 2, name_);
}
for (int i = 0; i < inputs_.size(); i++) {
output.writeMessage(3, inputs_.get(i));
}
if (getControlOpIdsList().size() > 0) {
output.writeUInt32NoTag(34);
output.writeUInt32NoTag(controlOpIdsMemoizedSerializedSize);
}
for (int i = 0; i < controlOpIds_.size(); i++) {
output.writeInt64NoTag(controlOpIds_.getLong(i));
}
org.nd4j.shade.protobuf.GeneratedMessageV3
.serializeStringMapTo(
output,
internalGetAttrs(),
AttrsDefaultEntryHolder.defaultEntry,
5);
if (!getDeviceBytes().isEmpty()) {
org.nd4j.shade.protobuf.GeneratedMessageV3.writeString(output, 6, device_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (id_ != 0L) {
size += org.nd4j.shade.protobuf.CodedOutputStream
.computeInt64Size(1, id_);
}
if (!getNameBytes().isEmpty()) {
size += org.nd4j.shade.protobuf.GeneratedMessageV3.computeStringSize(2, name_);
}
for (int i = 0; i < inputs_.size(); i++) {
size += org.nd4j.shade.protobuf.CodedOutputStream
.computeMessageSize(3, inputs_.get(i));
}
{
int dataSize = 0;
for (int i = 0; i < controlOpIds_.size(); i++) {
dataSize += org.nd4j.shade.protobuf.CodedOutputStream
.computeInt64SizeNoTag(controlOpIds_.getLong(i));
}
size += dataSize;
if (!getControlOpIdsList().isEmpty()) {
size += 1;
size += org.nd4j.shade.protobuf.CodedOutputStream
.computeInt32SizeNoTag(dataSize);
}
controlOpIdsMemoizedSerializedSize = dataSize;
}
for (java.util.Map.Entry entry
: internalGetAttrs().getMap().entrySet()) {
org.nd4j.shade.protobuf.MapEntry
attrs__ = AttrsDefaultEntryHolder.defaultEntry.newBuilderForType()
.setKey(entry.getKey())
.setValue(entry.getValue())
.build();
size += org.nd4j.shade.protobuf.CodedOutputStream
.computeMessageSize(5, attrs__);
}
if (!getDeviceBytes().isEmpty()) {
size += org.nd4j.shade.protobuf.GeneratedMessageV3.computeStringSize(6, device_);
}
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 tensorflow.eager.EagerServiceOuterClass.Operation)) {
return super.equals(obj);
}
tensorflow.eager.EagerServiceOuterClass.Operation other = (tensorflow.eager.EagerServiceOuterClass.Operation) obj;
if (getId()
!= other.getId()) return false;
if (!getName()
.equals(other.getName())) return false;
if (!getInputsList()
.equals(other.getInputsList())) return false;
if (!getControlOpIdsList()
.equals(other.getControlOpIdsList())) return false;
if (!internalGetAttrs().equals(
other.internalGetAttrs())) return false;
if (!getDevice()
.equals(other.getDevice())) 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();
hash = (37 * hash) + ID_FIELD_NUMBER;
hash = (53 * hash) + org.nd4j.shade.protobuf.Internal.hashLong(
getId());
hash = (37 * hash) + NAME_FIELD_NUMBER;
hash = (53 * hash) + getName().hashCode();
if (getInputsCount() > 0) {
hash = (37 * hash) + INPUTS_FIELD_NUMBER;
hash = (53 * hash) + getInputsList().hashCode();
}
if (getControlOpIdsCount() > 0) {
hash = (37 * hash) + CONTROL_OP_IDS_FIELD_NUMBER;
hash = (53 * hash) + getControlOpIdsList().hashCode();
}
if (!internalGetAttrs().getMap().isEmpty()) {
hash = (37 * hash) + ATTRS_FIELD_NUMBER;
hash = (53 * hash) + internalGetAttrs().hashCode();
}
hash = (37 * hash) + DEVICE_FIELD_NUMBER;
hash = (53 * hash) + getDevice().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static tensorflow.eager.EagerServiceOuterClass.Operation parseFrom(
java.nio.ByteBuffer data)
throws org.nd4j.shade.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tensorflow.eager.EagerServiceOuterClass.Operation parseFrom(
java.nio.ByteBuffer data,
org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.nd4j.shade.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tensorflow.eager.EagerServiceOuterClass.Operation parseFrom(
org.nd4j.shade.protobuf.ByteString data)
throws org.nd4j.shade.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tensorflow.eager.EagerServiceOuterClass.Operation 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 tensorflow.eager.EagerServiceOuterClass.Operation parseFrom(byte[] data)
throws org.nd4j.shade.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tensorflow.eager.EagerServiceOuterClass.Operation parseFrom(
byte[] data,
org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.nd4j.shade.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tensorflow.eager.EagerServiceOuterClass.Operation parseFrom(java.io.InputStream input)
throws java.io.IOException {
return org.nd4j.shade.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tensorflow.eager.EagerServiceOuterClass.Operation 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 tensorflow.eager.EagerServiceOuterClass.Operation parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return org.nd4j.shade.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static tensorflow.eager.EagerServiceOuterClass.Operation 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 tensorflow.eager.EagerServiceOuterClass.Operation parseFrom(
org.nd4j.shade.protobuf.CodedInputStream input)
throws java.io.IOException {
return org.nd4j.shade.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tensorflow.eager.EagerServiceOuterClass.Operation 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(tensorflow.eager.EagerServiceOuterClass.Operation 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;
}
/**
*
* A proto representation of an eager operation.
*
*
* Protobuf type {@code tensorflow.eager.Operation}
*/
public static final class Builder extends
org.nd4j.shade.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:tensorflow.eager.Operation)
tensorflow.eager.EagerServiceOuterClass.OperationOrBuilder {
public static final org.nd4j.shade.protobuf.Descriptors.Descriptor
getDescriptor() {
return tensorflow.eager.EagerServiceOuterClass.internal_static_tensorflow_eager_Operation_descriptor;
}
@SuppressWarnings({"rawtypes"})
protected org.nd4j.shade.protobuf.MapField internalGetMapField(
int number) {
switch (number) {
case 5:
return internalGetAttrs();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@SuppressWarnings({"rawtypes"})
protected org.nd4j.shade.protobuf.MapField internalGetMutableMapField(
int number) {
switch (number) {
case 5:
return internalGetMutableAttrs();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@java.lang.Override
protected org.nd4j.shade.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tensorflow.eager.EagerServiceOuterClass.internal_static_tensorflow_eager_Operation_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tensorflow.eager.EagerServiceOuterClass.Operation.class, tensorflow.eager.EagerServiceOuterClass.Operation.Builder.class);
}
// Construct using tensorflow.eager.EagerServiceOuterClass.Operation.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) {
getInputsFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
id_ = 0L;
name_ = "";
if (inputsBuilder_ == null) {
inputs_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
inputsBuilder_.clear();
}
controlOpIds_ = emptyLongList();
bitField0_ = (bitField0_ & ~0x00000002);
internalGetMutableAttrs().clear();
device_ = "";
return this;
}
@java.lang.Override
public org.nd4j.shade.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return tensorflow.eager.EagerServiceOuterClass.internal_static_tensorflow_eager_Operation_descriptor;
}
@java.lang.Override
public tensorflow.eager.EagerServiceOuterClass.Operation getDefaultInstanceForType() {
return tensorflow.eager.EagerServiceOuterClass.Operation.getDefaultInstance();
}
@java.lang.Override
public tensorflow.eager.EagerServiceOuterClass.Operation build() {
tensorflow.eager.EagerServiceOuterClass.Operation result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public tensorflow.eager.EagerServiceOuterClass.Operation buildPartial() {
tensorflow.eager.EagerServiceOuterClass.Operation result = new tensorflow.eager.EagerServiceOuterClass.Operation(this);
int from_bitField0_ = bitField0_;
result.id_ = id_;
result.name_ = name_;
if (inputsBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
inputs_ = java.util.Collections.unmodifiableList(inputs_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.inputs_ = inputs_;
} else {
result.inputs_ = inputsBuilder_.build();
}
if (((bitField0_ & 0x00000002) != 0)) {
controlOpIds_.makeImmutable();
bitField0_ = (bitField0_ & ~0x00000002);
}
result.controlOpIds_ = controlOpIds_;
result.attrs_ = internalGetAttrs();
result.attrs_.makeImmutable();
result.device_ = device_;
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 tensorflow.eager.EagerServiceOuterClass.Operation) {
return mergeFrom((tensorflow.eager.EagerServiceOuterClass.Operation)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(tensorflow.eager.EagerServiceOuterClass.Operation other) {
if (other == tensorflow.eager.EagerServiceOuterClass.Operation.getDefaultInstance()) return this;
if (other.getId() != 0L) {
setId(other.getId());
}
if (!other.getName().isEmpty()) {
name_ = other.name_;
onChanged();
}
if (inputsBuilder_ == null) {
if (!other.inputs_.isEmpty()) {
if (inputs_.isEmpty()) {
inputs_ = other.inputs_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureInputsIsMutable();
inputs_.addAll(other.inputs_);
}
onChanged();
}
} else {
if (!other.inputs_.isEmpty()) {
if (inputsBuilder_.isEmpty()) {
inputsBuilder_.dispose();
inputsBuilder_ = null;
inputs_ = other.inputs_;
bitField0_ = (bitField0_ & ~0x00000001);
inputsBuilder_ =
org.nd4j.shade.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getInputsFieldBuilder() : null;
} else {
inputsBuilder_.addAllMessages(other.inputs_);
}
}
}
if (!other.controlOpIds_.isEmpty()) {
if (controlOpIds_.isEmpty()) {
controlOpIds_ = other.controlOpIds_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureControlOpIdsIsMutable();
controlOpIds_.addAll(other.controlOpIds_);
}
onChanged();
}
internalGetMutableAttrs().mergeFrom(
other.internalGetAttrs());
if (!other.getDevice().isEmpty()) {
device_ = other.device_;
onChanged();
}
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 {
tensorflow.eager.EagerServiceOuterClass.Operation parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (org.nd4j.shade.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (tensorflow.eager.EagerServiceOuterClass.Operation) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private long id_ ;
/**
*
* A unique identifier for the operation. Set by the client so that the client
* can uniquely identify the outputs of the scheduled operation.
* In the initial implementation, sending duplicate IDs has undefined
* behaviour, but additional constraints may be placed upon this in the
* future.
*
*
* int64 id = 1;
* @return The id.
*/
@java.lang.Override
public long getId() {
return id_;
}
/**
*
* A unique identifier for the operation. Set by the client so that the client
* can uniquely identify the outputs of the scheduled operation.
* In the initial implementation, sending duplicate IDs has undefined
* behaviour, but additional constraints may be placed upon this in the
* future.
*
*
* int64 id = 1;
* @param value The id to set.
* @return This builder for chaining.
*/
public Builder setId(long value) {
id_ = value;
onChanged();
return this;
}
/**
*
* A unique identifier for the operation. Set by the client so that the client
* can uniquely identify the outputs of the scheduled operation.
* In the initial implementation, sending duplicate IDs has undefined
* behaviour, but additional constraints may be placed upon this in the
* future.
*
*
* int64 id = 1;
* @return This builder for chaining.
*/
public Builder clearId() {
id_ = 0L;
onChanged();
return this;
}
private java.lang.Object name_ = "";
/**
* string name = 2;
* @return The name.
*/
public java.lang.String getName() {
java.lang.Object ref = name_;
if (!(ref instanceof java.lang.String)) {
org.nd4j.shade.protobuf.ByteString bs =
(org.nd4j.shade.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
name_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string name = 2;
* @return The bytes for name.
*/
public org.nd4j.shade.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof String) {
org.nd4j.shade.protobuf.ByteString b =
org.nd4j.shade.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (org.nd4j.shade.protobuf.ByteString) ref;
}
}
/**
* string name = 2;
* @param value The name to set.
* @return This builder for chaining.
*/
public Builder setName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
name_ = value;
onChanged();
return this;
}
/**
* string name = 2;
* @return This builder for chaining.
*/
public Builder clearName() {
name_ = getDefaultInstance().getName();
onChanged();
return this;
}
/**
* string name = 2;
* @param value The bytes for name to set.
* @return This builder for chaining.
*/
public Builder setNameBytes(
org.nd4j.shade.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
name_ = value;
onChanged();
return this;
}
private java.util.List inputs_ =
java.util.Collections.emptyList();
private void ensureInputsIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
inputs_ = new java.util.ArrayList(inputs_);
bitField0_ |= 0x00000001;
}
}
private org.nd4j.shade.protobuf.RepeatedFieldBuilderV3<
tensorflow.eager.EagerServiceOuterClass.RemoteTensorHandle, tensorflow.eager.EagerServiceOuterClass.RemoteTensorHandle.Builder, tensorflow.eager.EagerServiceOuterClass.RemoteTensorHandleOrBuilder> inputsBuilder_;
/**
* repeated .tensorflow.eager.RemoteTensorHandle inputs = 3;
*/
public java.util.List getInputsList() {
if (inputsBuilder_ == null) {
return java.util.Collections.unmodifiableList(inputs_);
} else {
return inputsBuilder_.getMessageList();
}
}
/**
* repeated .tensorflow.eager.RemoteTensorHandle inputs = 3;
*/
public int getInputsCount() {
if (inputsBuilder_ == null) {
return inputs_.size();
} else {
return inputsBuilder_.getCount();
}
}
/**
* repeated .tensorflow.eager.RemoteTensorHandle inputs = 3;
*/
public tensorflow.eager.EagerServiceOuterClass.RemoteTensorHandle getInputs(int index) {
if (inputsBuilder_ == null) {
return inputs_.get(index);
} else {
return inputsBuilder_.getMessage(index);
}
}
/**
* repeated .tensorflow.eager.RemoteTensorHandle inputs = 3;
*/
public Builder setInputs(
int index, tensorflow.eager.EagerServiceOuterClass.RemoteTensorHandle value) {
if (inputsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureInputsIsMutable();
inputs_.set(index, value);
onChanged();
} else {
inputsBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .tensorflow.eager.RemoteTensorHandle inputs = 3;
*/
public Builder setInputs(
int index, tensorflow.eager.EagerServiceOuterClass.RemoteTensorHandle.Builder builderForValue) {
if (inputsBuilder_ == null) {
ensureInputsIsMutable();
inputs_.set(index, builderForValue.build());
onChanged();
} else {
inputsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .tensorflow.eager.RemoteTensorHandle inputs = 3;
*/
public Builder addInputs(tensorflow.eager.EagerServiceOuterClass.RemoteTensorHandle value) {
if (inputsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureInputsIsMutable();
inputs_.add(value);
onChanged();
} else {
inputsBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .tensorflow.eager.RemoteTensorHandle inputs = 3;
*/
public Builder addInputs(
int index, tensorflow.eager.EagerServiceOuterClass.RemoteTensorHandle value) {
if (inputsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureInputsIsMutable();
inputs_.add(index, value);
onChanged();
} else {
inputsBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .tensorflow.eager.RemoteTensorHandle inputs = 3;
*/
public Builder addInputs(
tensorflow.eager.EagerServiceOuterClass.RemoteTensorHandle.Builder builderForValue) {
if (inputsBuilder_ == null) {
ensureInputsIsMutable();
inputs_.add(builderForValue.build());
onChanged();
} else {
inputsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .tensorflow.eager.RemoteTensorHandle inputs = 3;
*/
public Builder addInputs(
int index, tensorflow.eager.EagerServiceOuterClass.RemoteTensorHandle.Builder builderForValue) {
if (inputsBuilder_ == null) {
ensureInputsIsMutable();
inputs_.add(index, builderForValue.build());
onChanged();
} else {
inputsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .tensorflow.eager.RemoteTensorHandle inputs = 3;
*/
public Builder addAllInputs(
java.lang.Iterable values) {
if (inputsBuilder_ == null) {
ensureInputsIsMutable();
org.nd4j.shade.protobuf.AbstractMessageLite.Builder.addAll(
values, inputs_);
onChanged();
} else {
inputsBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .tensorflow.eager.RemoteTensorHandle inputs = 3;
*/
public Builder clearInputs() {
if (inputsBuilder_ == null) {
inputs_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
inputsBuilder_.clear();
}
return this;
}
/**
* repeated .tensorflow.eager.RemoteTensorHandle inputs = 3;
*/
public Builder removeInputs(int index) {
if (inputsBuilder_ == null) {
ensureInputsIsMutable();
inputs_.remove(index);
onChanged();
} else {
inputsBuilder_.remove(index);
}
return this;
}
/**
* repeated .tensorflow.eager.RemoteTensorHandle inputs = 3;
*/
public tensorflow.eager.EagerServiceOuterClass.RemoteTensorHandle.Builder getInputsBuilder(
int index) {
return getInputsFieldBuilder().getBuilder(index);
}
/**
* repeated .tensorflow.eager.RemoteTensorHandle inputs = 3;
*/
public tensorflow.eager.EagerServiceOuterClass.RemoteTensorHandleOrBuilder getInputsOrBuilder(
int index) {
if (inputsBuilder_ == null) {
return inputs_.get(index); } else {
return inputsBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .tensorflow.eager.RemoteTensorHandle inputs = 3;
*/
public java.util.List
getInputsOrBuilderList() {
if (inputsBuilder_ != null) {
return inputsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(inputs_);
}
}
/**
* repeated .tensorflow.eager.RemoteTensorHandle inputs = 3;
*/
public tensorflow.eager.EagerServiceOuterClass.RemoteTensorHandle.Builder addInputsBuilder() {
return getInputsFieldBuilder().addBuilder(
tensorflow.eager.EagerServiceOuterClass.RemoteTensorHandle.getDefaultInstance());
}
/**
* repeated .tensorflow.eager.RemoteTensorHandle inputs = 3;
*/
public tensorflow.eager.EagerServiceOuterClass.RemoteTensorHandle.Builder addInputsBuilder(
int index) {
return getInputsFieldBuilder().addBuilder(
index, tensorflow.eager.EagerServiceOuterClass.RemoteTensorHandle.getDefaultInstance());
}
/**
* repeated .tensorflow.eager.RemoteTensorHandle inputs = 3;
*/
public java.util.List
getInputsBuilderList() {
return getInputsFieldBuilder().getBuilderList();
}
private org.nd4j.shade.protobuf.RepeatedFieldBuilderV3<
tensorflow.eager.EagerServiceOuterClass.RemoteTensorHandle, tensorflow.eager.EagerServiceOuterClass.RemoteTensorHandle.Builder, tensorflow.eager.EagerServiceOuterClass.RemoteTensorHandleOrBuilder>
getInputsFieldBuilder() {
if (inputsBuilder_ == null) {
inputsBuilder_ = new org.nd4j.shade.protobuf.RepeatedFieldBuilderV3<
tensorflow.eager.EagerServiceOuterClass.RemoteTensorHandle, tensorflow.eager.EagerServiceOuterClass.RemoteTensorHandle.Builder, tensorflow.eager.EagerServiceOuterClass.RemoteTensorHandleOrBuilder>(
inputs_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
inputs_ = null;
}
return inputsBuilder_;
}
private org.nd4j.shade.protobuf.Internal.LongList controlOpIds_ = emptyLongList();
private void ensureControlOpIdsIsMutable() {
if (!((bitField0_ & 0x00000002) != 0)) {
controlOpIds_ = mutableCopy(controlOpIds_);
bitField0_ |= 0x00000002;
}
}
/**
*
* Control Operation IDs that will be respected when ops are re-ordered by
* async execution. If async execution (+ op re-ordering) is not enabled, this
* should have no effect.
*
*
* repeated int64 control_op_ids = 4;
* @return A list containing the controlOpIds.
*/
public java.util.List
getControlOpIdsList() {
return ((bitField0_ & 0x00000002) != 0) ?
java.util.Collections.unmodifiableList(controlOpIds_) : controlOpIds_;
}
/**
*
* Control Operation IDs that will be respected when ops are re-ordered by
* async execution. If async execution (+ op re-ordering) is not enabled, this
* should have no effect.
*
*
* repeated int64 control_op_ids = 4;
* @return The count of controlOpIds.
*/
public int getControlOpIdsCount() {
return controlOpIds_.size();
}
/**
*
* Control Operation IDs that will be respected when ops are re-ordered by
* async execution. If async execution (+ op re-ordering) is not enabled, this
* should have no effect.
*
*
* repeated int64 control_op_ids = 4;
* @param index The index of the element to return.
* @return The controlOpIds at the given index.
*/
public long getControlOpIds(int index) {
return controlOpIds_.getLong(index);
}
/**
*
* Control Operation IDs that will be respected when ops are re-ordered by
* async execution. If async execution (+ op re-ordering) is not enabled, this
* should have no effect.
*
*
* repeated int64 control_op_ids = 4;
* @param index The index to set the value at.
* @param value The controlOpIds to set.
* @return This builder for chaining.
*/
public Builder setControlOpIds(
int index, long value) {
ensureControlOpIdsIsMutable();
controlOpIds_.setLong(index, value);
onChanged();
return this;
}
/**
*
* Control Operation IDs that will be respected when ops are re-ordered by
* async execution. If async execution (+ op re-ordering) is not enabled, this
* should have no effect.
*
*
* repeated int64 control_op_ids = 4;
* @param value The controlOpIds to add.
* @return This builder for chaining.
*/
public Builder addControlOpIds(long value) {
ensureControlOpIdsIsMutable();
controlOpIds_.addLong(value);
onChanged();
return this;
}
/**
*
* Control Operation IDs that will be respected when ops are re-ordered by
* async execution. If async execution (+ op re-ordering) is not enabled, this
* should have no effect.
*
*
* repeated int64 control_op_ids = 4;
* @param values The controlOpIds to add.
* @return This builder for chaining.
*/
public Builder addAllControlOpIds(
java.lang.Iterable values) {
ensureControlOpIdsIsMutable();
org.nd4j.shade.protobuf.AbstractMessageLite.Builder.addAll(
values, controlOpIds_);
onChanged();
return this;
}
/**
*
* Control Operation IDs that will be respected when ops are re-ordered by
* async execution. If async execution (+ op re-ordering) is not enabled, this
* should have no effect.
*
*
* repeated int64 control_op_ids = 4;
* @return This builder for chaining.
*/
public Builder clearControlOpIds() {
controlOpIds_ = emptyLongList();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
private org.nd4j.shade.protobuf.MapField<
java.lang.String, org.tensorflow.framework.AttrValue> attrs_;
private org.nd4j.shade.protobuf.MapField
internalGetAttrs() {
if (attrs_ == null) {
return org.nd4j.shade.protobuf.MapField.emptyMapField(
AttrsDefaultEntryHolder.defaultEntry);
}
return attrs_;
}
private org.nd4j.shade.protobuf.MapField
internalGetMutableAttrs() {
onChanged();;
if (attrs_ == null) {
attrs_ = org.nd4j.shade.protobuf.MapField.newMapField(
AttrsDefaultEntryHolder.defaultEntry);
}
if (!attrs_.isMutable()) {
attrs_ = attrs_.copy();
}
return attrs_;
}
public int getAttrsCount() {
return internalGetAttrs().getMap().size();
}
/**
* map<string, .tensorflow.AttrValue> attrs = 5;
*/
@java.lang.Override
public boolean containsAttrs(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
return internalGetAttrs().getMap().containsKey(key);
}
/**
* Use {@link #getAttrsMap()} instead.
*/
@java.lang.Override
@java.lang.Deprecated
public java.util.Map getAttrs() {
return getAttrsMap();
}
/**
* map<string, .tensorflow.AttrValue> attrs = 5;
*/
@java.lang.Override
public java.util.Map getAttrsMap() {
return internalGetAttrs().getMap();
}
/**
* map<string, .tensorflow.AttrValue> attrs = 5;
*/
@java.lang.Override
public org.tensorflow.framework.AttrValue getAttrsOrDefault(
java.lang.String key,
org.tensorflow.framework.AttrValue defaultValue) {
if (key == null) { throw new java.lang.NullPointerException(); }
java.util.Map map =
internalGetAttrs().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
* map<string, .tensorflow.AttrValue> attrs = 5;
*/
@java.lang.Override
public org.tensorflow.framework.AttrValue getAttrsOrThrow(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
java.util.Map map =
internalGetAttrs().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public Builder clearAttrs() {
internalGetMutableAttrs().getMutableMap()
.clear();
return this;
}
/**
* map<string, .tensorflow.AttrValue> attrs = 5;
*/
public Builder removeAttrs(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
internalGetMutableAttrs().getMutableMap()
.remove(key);
return this;
}
/**
* Use alternate mutation accessors instead.
*/
@java.lang.Deprecated
public java.util.Map
getMutableAttrs() {
return internalGetMutableAttrs().getMutableMap();
}
/**
* map<string, .tensorflow.AttrValue> attrs = 5;
*/
public Builder putAttrs(
java.lang.String key,
org.tensorflow.framework.AttrValue value) {
if (key == null) { throw new java.lang.NullPointerException(); }
if (value == null) { throw new java.lang.NullPointerException(); }
internalGetMutableAttrs().getMutableMap()
.put(key, value);
return this;
}
/**
* map<string, .tensorflow.AttrValue> attrs = 5;
*/
public Builder putAllAttrs(
java.util.Map values) {
internalGetMutableAttrs().getMutableMap()
.putAll(values);
return this;
}
private java.lang.Object device_ = "";
/**
* string device = 6;
* @return The device.
*/
public java.lang.String getDevice() {
java.lang.Object ref = device_;
if (!(ref instanceof java.lang.String)) {
org.nd4j.shade.protobuf.ByteString bs =
(org.nd4j.shade.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
device_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string device = 6;
* @return The bytes for device.
*/
public org.nd4j.shade.protobuf.ByteString
getDeviceBytes() {
java.lang.Object ref = device_;
if (ref instanceof String) {
org.nd4j.shade.protobuf.ByteString b =
org.nd4j.shade.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
device_ = b;
return b;
} else {
return (org.nd4j.shade.protobuf.ByteString) ref;
}
}
/**
* string device = 6;
* @param value The device to set.
* @return This builder for chaining.
*/
public Builder setDevice(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
device_ = value;
onChanged();
return this;
}
/**
* string device = 6;
* @return This builder for chaining.
*/
public Builder clearDevice() {
device_ = getDefaultInstance().getDevice();
onChanged();
return this;
}
/**
* string device = 6;
* @param value The bytes for device to set.
* @return This builder for chaining.
*/
public Builder setDeviceBytes(
org.nd4j.shade.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
device_ = value;
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.eager.Operation)
}
// @@protoc_insertion_point(class_scope:tensorflow.eager.Operation)
private static final tensorflow.eager.EagerServiceOuterClass.Operation DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new tensorflow.eager.EagerServiceOuterClass.Operation();
}
public static tensorflow.eager.EagerServiceOuterClass.Operation getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final org.nd4j.shade.protobuf.Parser
PARSER = new org.nd4j.shade.protobuf.AbstractParser() {
@java.lang.Override
public Operation parsePartialFrom(
org.nd4j.shade.protobuf.CodedInputStream input,
org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.nd4j.shade.protobuf.InvalidProtocolBufferException {
return new Operation(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 tensorflow.eager.EagerServiceOuterClass.Operation getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface QueueItemOrBuilder extends
// @@protoc_insertion_point(interface_extends:tensorflow.eager.QueueItem)
org.nd4j.shade.protobuf.MessageOrBuilder {
/**
* .tensorflow.eager.RemoteTensorHandle handle_to_decref = 1;
* @return Whether the handleToDecref field is set.
*/
boolean hasHandleToDecref();
/**
* .tensorflow.eager.RemoteTensorHandle handle_to_decref = 1;
* @return The handleToDecref.
*/
tensorflow.eager.EagerServiceOuterClass.RemoteTensorHandle getHandleToDecref();
/**
* .tensorflow.eager.RemoteTensorHandle handle_to_decref = 1;
*/
tensorflow.eager.EagerServiceOuterClass.RemoteTensorHandleOrBuilder getHandleToDecrefOrBuilder();
/**
* .tensorflow.eager.Operation operation = 2;
* @return Whether the operation field is set.
*/
boolean hasOperation();
/**
* .tensorflow.eager.Operation operation = 2;
* @return The operation.
*/
tensorflow.eager.EagerServiceOuterClass.Operation getOperation();
/**
* .tensorflow.eager.Operation operation = 2;
*/
tensorflow.eager.EagerServiceOuterClass.OperationOrBuilder getOperationOrBuilder();
public tensorflow.eager.EagerServiceOuterClass.QueueItem.ItemCase getItemCase();
}
/**
* Protobuf type {@code tensorflow.eager.QueueItem}
*/
public static final class QueueItem extends
org.nd4j.shade.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:tensorflow.eager.QueueItem)
QueueItemOrBuilder {
private static final long serialVersionUID = 0L;
// Use QueueItem.newBuilder() to construct.
private QueueItem(org.nd4j.shade.protobuf.GeneratedMessageV3.Builder builder) {
super(builder);
}
private QueueItem() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new QueueItem();
}
@java.lang.Override
public final org.nd4j.shade.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private QueueItem(
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();
}
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: {
tensorflow.eager.EagerServiceOuterClass.RemoteTensorHandle.Builder subBuilder = null;
if (itemCase_ == 1) {
subBuilder = ((tensorflow.eager.EagerServiceOuterClass.RemoteTensorHandle) item_).toBuilder();
}
item_ =
input.readMessage(tensorflow.eager.EagerServiceOuterClass.RemoteTensorHandle.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((tensorflow.eager.EagerServiceOuterClass.RemoteTensorHandle) item_);
item_ = subBuilder.buildPartial();
}
itemCase_ = 1;
break;
}
case 18: {
tensorflow.eager.EagerServiceOuterClass.Operation.Builder subBuilder = null;
if (itemCase_ == 2) {
subBuilder = ((tensorflow.eager.EagerServiceOuterClass.Operation) item_).toBuilder();
}
item_ =
input.readMessage(tensorflow.eager.EagerServiceOuterClass.Operation.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((tensorflow.eager.EagerServiceOuterClass.Operation) item_);
item_ = subBuilder.buildPartial();
}
itemCase_ = 2;
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 {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final org.nd4j.shade.protobuf.Descriptors.Descriptor
getDescriptor() {
return tensorflow.eager.EagerServiceOuterClass.internal_static_tensorflow_eager_QueueItem_descriptor;
}
@java.lang.Override
protected org.nd4j.shade.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tensorflow.eager.EagerServiceOuterClass.internal_static_tensorflow_eager_QueueItem_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tensorflow.eager.EagerServiceOuterClass.QueueItem.class, tensorflow.eager.EagerServiceOuterClass.QueueItem.Builder.class);
}
private int itemCase_ = 0;
private java.lang.Object item_;
public enum ItemCase
implements org.nd4j.shade.protobuf.Internal.EnumLite,
org.nd4j.shade.protobuf.AbstractMessage.InternalOneOfEnum {
HANDLE_TO_DECREF(1),
OPERATION(2),
ITEM_NOT_SET(0);
private final int value;
private ItemCase(int value) {
this.value = value;
}
/**
* @param value The number of the enum to look for.
* @return The enum associated with the given number.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static ItemCase valueOf(int value) {
return forNumber(value);
}
public static ItemCase forNumber(int value) {
switch (value) {
case 1: return HANDLE_TO_DECREF;
case 2: return OPERATION;
case 0: return ITEM_NOT_SET;
default: return null;
}
}
public int getNumber() {
return this.value;
}
};
public ItemCase
getItemCase() {
return ItemCase.forNumber(
itemCase_);
}
public static final int HANDLE_TO_DECREF_FIELD_NUMBER = 1;
/**
* .tensorflow.eager.RemoteTensorHandle handle_to_decref = 1;
* @return Whether the handleToDecref field is set.
*/
@java.lang.Override
public boolean hasHandleToDecref() {
return itemCase_ == 1;
}
/**
* .tensorflow.eager.RemoteTensorHandle handle_to_decref = 1;
* @return The handleToDecref.
*/
@java.lang.Override
public tensorflow.eager.EagerServiceOuterClass.RemoteTensorHandle getHandleToDecref() {
if (itemCase_ == 1) {
return (tensorflow.eager.EagerServiceOuterClass.RemoteTensorHandle) item_;
}
return tensorflow.eager.EagerServiceOuterClass.RemoteTensorHandle.getDefaultInstance();
}
/**
* .tensorflow.eager.RemoteTensorHandle handle_to_decref = 1;
*/
@java.lang.Override
public tensorflow.eager.EagerServiceOuterClass.RemoteTensorHandleOrBuilder getHandleToDecrefOrBuilder() {
if (itemCase_ == 1) {
return (tensorflow.eager.EagerServiceOuterClass.RemoteTensorHandle) item_;
}
return tensorflow.eager.EagerServiceOuterClass.RemoteTensorHandle.getDefaultInstance();
}
public static final int OPERATION_FIELD_NUMBER = 2;
/**
* .tensorflow.eager.Operation operation = 2;
* @return Whether the operation field is set.
*/
@java.lang.Override
public boolean hasOperation() {
return itemCase_ == 2;
}
/**
* .tensorflow.eager.Operation operation = 2;
* @return The operation.
*/
@java.lang.Override
public tensorflow.eager.EagerServiceOuterClass.Operation getOperation() {
if (itemCase_ == 2) {
return (tensorflow.eager.EagerServiceOuterClass.Operation) item_;
}
return tensorflow.eager.EagerServiceOuterClass.Operation.getDefaultInstance();
}
/**
* .tensorflow.eager.Operation operation = 2;
*/
@java.lang.Override
public tensorflow.eager.EagerServiceOuterClass.OperationOrBuilder getOperationOrBuilder() {
if (itemCase_ == 2) {
return (tensorflow.eager.EagerServiceOuterClass.Operation) item_;
}
return tensorflow.eager.EagerServiceOuterClass.Operation.getDefaultInstance();
}
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 {
if (itemCase_ == 1) {
output.writeMessage(1, (tensorflow.eager.EagerServiceOuterClass.RemoteTensorHandle) item_);
}
if (itemCase_ == 2) {
output.writeMessage(2, (tensorflow.eager.EagerServiceOuterClass.Operation) item_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (itemCase_ == 1) {
size += org.nd4j.shade.protobuf.CodedOutputStream
.computeMessageSize(1, (tensorflow.eager.EagerServiceOuterClass.RemoteTensorHandle) item_);
}
if (itemCase_ == 2) {
size += org.nd4j.shade.protobuf.CodedOutputStream
.computeMessageSize(2, (tensorflow.eager.EagerServiceOuterClass.Operation) item_);
}
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 tensorflow.eager.EagerServiceOuterClass.QueueItem)) {
return super.equals(obj);
}
tensorflow.eager.EagerServiceOuterClass.QueueItem other = (tensorflow.eager.EagerServiceOuterClass.QueueItem) obj;
if (!getItemCase().equals(other.getItemCase())) return false;
switch (itemCase_) {
case 1:
if (!getHandleToDecref()
.equals(other.getHandleToDecref())) return false;
break;
case 2:
if (!getOperation()
.equals(other.getOperation())) return false;
break;
case 0:
default:
}
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();
switch (itemCase_) {
case 1:
hash = (37 * hash) + HANDLE_TO_DECREF_FIELD_NUMBER;
hash = (53 * hash) + getHandleToDecref().hashCode();
break;
case 2:
hash = (37 * hash) + OPERATION_FIELD_NUMBER;
hash = (53 * hash) + getOperation().hashCode();
break;
case 0:
default:
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static tensorflow.eager.EagerServiceOuterClass.QueueItem parseFrom(
java.nio.ByteBuffer data)
throws org.nd4j.shade.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tensorflow.eager.EagerServiceOuterClass.QueueItem parseFrom(
java.nio.ByteBuffer data,
org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.nd4j.shade.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tensorflow.eager.EagerServiceOuterClass.QueueItem parseFrom(
org.nd4j.shade.protobuf.ByteString data)
throws org.nd4j.shade.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tensorflow.eager.EagerServiceOuterClass.QueueItem 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 tensorflow.eager.EagerServiceOuterClass.QueueItem parseFrom(byte[] data)
throws org.nd4j.shade.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tensorflow.eager.EagerServiceOuterClass.QueueItem parseFrom(
byte[] data,
org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.nd4j.shade.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tensorflow.eager.EagerServiceOuterClass.QueueItem parseFrom(java.io.InputStream input)
throws java.io.IOException {
return org.nd4j.shade.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tensorflow.eager.EagerServiceOuterClass.QueueItem 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 tensorflow.eager.EagerServiceOuterClass.QueueItem parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return org.nd4j.shade.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static tensorflow.eager.EagerServiceOuterClass.QueueItem 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 tensorflow.eager.EagerServiceOuterClass.QueueItem parseFrom(
org.nd4j.shade.protobuf.CodedInputStream input)
throws java.io.IOException {
return org.nd4j.shade.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tensorflow.eager.EagerServiceOuterClass.QueueItem 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(tensorflow.eager.EagerServiceOuterClass.QueueItem 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.eager.QueueItem}
*/
public static final class Builder extends
org.nd4j.shade.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:tensorflow.eager.QueueItem)
tensorflow.eager.EagerServiceOuterClass.QueueItemOrBuilder {
public static final org.nd4j.shade.protobuf.Descriptors.Descriptor
getDescriptor() {
return tensorflow.eager.EagerServiceOuterClass.internal_static_tensorflow_eager_QueueItem_descriptor;
}
@java.lang.Override
protected org.nd4j.shade.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tensorflow.eager.EagerServiceOuterClass.internal_static_tensorflow_eager_QueueItem_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tensorflow.eager.EagerServiceOuterClass.QueueItem.class, tensorflow.eager.EagerServiceOuterClass.QueueItem.Builder.class);
}
// Construct using tensorflow.eager.EagerServiceOuterClass.QueueItem.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) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
itemCase_ = 0;
item_ = null;
return this;
}
@java.lang.Override
public org.nd4j.shade.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return tensorflow.eager.EagerServiceOuterClass.internal_static_tensorflow_eager_QueueItem_descriptor;
}
@java.lang.Override
public tensorflow.eager.EagerServiceOuterClass.QueueItem getDefaultInstanceForType() {
return tensorflow.eager.EagerServiceOuterClass.QueueItem.getDefaultInstance();
}
@java.lang.Override
public tensorflow.eager.EagerServiceOuterClass.QueueItem build() {
tensorflow.eager.EagerServiceOuterClass.QueueItem result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public tensorflow.eager.EagerServiceOuterClass.QueueItem buildPartial() {
tensorflow.eager.EagerServiceOuterClass.QueueItem result = new tensorflow.eager.EagerServiceOuterClass.QueueItem(this);
if (itemCase_ == 1) {
if (handleToDecrefBuilder_ == null) {
result.item_ = item_;
} else {
result.item_ = handleToDecrefBuilder_.build();
}
}
if (itemCase_ == 2) {
if (operationBuilder_ == null) {
result.item_ = item_;
} else {
result.item_ = operationBuilder_.build();
}
}
result.itemCase_ = itemCase_;
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 tensorflow.eager.EagerServiceOuterClass.QueueItem) {
return mergeFrom((tensorflow.eager.EagerServiceOuterClass.QueueItem)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(tensorflow.eager.EagerServiceOuterClass.QueueItem other) {
if (other == tensorflow.eager.EagerServiceOuterClass.QueueItem.getDefaultInstance()) return this;
switch (other.getItemCase()) {
case HANDLE_TO_DECREF: {
mergeHandleToDecref(other.getHandleToDecref());
break;
}
case OPERATION: {
mergeOperation(other.getOperation());
break;
}
case ITEM_NOT_SET: {
break;
}
}
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 {
tensorflow.eager.EagerServiceOuterClass.QueueItem parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (org.nd4j.shade.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (tensorflow.eager.EagerServiceOuterClass.QueueItem) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int itemCase_ = 0;
private java.lang.Object item_;
public ItemCase
getItemCase() {
return ItemCase.forNumber(
itemCase_);
}
public Builder clearItem() {
itemCase_ = 0;
item_ = null;
onChanged();
return this;
}
private org.nd4j.shade.protobuf.SingleFieldBuilderV3<
tensorflow.eager.EagerServiceOuterClass.RemoteTensorHandle, tensorflow.eager.EagerServiceOuterClass.RemoteTensorHandle.Builder, tensorflow.eager.EagerServiceOuterClass.RemoteTensorHandleOrBuilder> handleToDecrefBuilder_;
/**
* .tensorflow.eager.RemoteTensorHandle handle_to_decref = 1;
* @return Whether the handleToDecref field is set.
*/
@java.lang.Override
public boolean hasHandleToDecref() {
return itemCase_ == 1;
}
/**
* .tensorflow.eager.RemoteTensorHandle handle_to_decref = 1;
* @return The handleToDecref.
*/
@java.lang.Override
public tensorflow.eager.EagerServiceOuterClass.RemoteTensorHandle getHandleToDecref() {
if (handleToDecrefBuilder_ == null) {
if (itemCase_ == 1) {
return (tensorflow.eager.EagerServiceOuterClass.RemoteTensorHandle) item_;
}
return tensorflow.eager.EagerServiceOuterClass.RemoteTensorHandle.getDefaultInstance();
} else {
if (itemCase_ == 1) {
return handleToDecrefBuilder_.getMessage();
}
return tensorflow.eager.EagerServiceOuterClass.RemoteTensorHandle.getDefaultInstance();
}
}
/**
* .tensorflow.eager.RemoteTensorHandle handle_to_decref = 1;
*/
public Builder setHandleToDecref(tensorflow.eager.EagerServiceOuterClass.RemoteTensorHandle value) {
if (handleToDecrefBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
item_ = value;
onChanged();
} else {
handleToDecrefBuilder_.setMessage(value);
}
itemCase_ = 1;
return this;
}
/**
* .tensorflow.eager.RemoteTensorHandle handle_to_decref = 1;
*/
public Builder setHandleToDecref(
tensorflow.eager.EagerServiceOuterClass.RemoteTensorHandle.Builder builderForValue) {
if (handleToDecrefBuilder_ == null) {
item_ = builderForValue.build();
onChanged();
} else {
handleToDecrefBuilder_.setMessage(builderForValue.build());
}
itemCase_ = 1;
return this;
}
/**
* .tensorflow.eager.RemoteTensorHandle handle_to_decref = 1;
*/
public Builder mergeHandleToDecref(tensorflow.eager.EagerServiceOuterClass.RemoteTensorHandle value) {
if (handleToDecrefBuilder_ == null) {
if (itemCase_ == 1 &&
item_ != tensorflow.eager.EagerServiceOuterClass.RemoteTensorHandle.getDefaultInstance()) {
item_ = tensorflow.eager.EagerServiceOuterClass.RemoteTensorHandle.newBuilder((tensorflow.eager.EagerServiceOuterClass.RemoteTensorHandle) item_)
.mergeFrom(value).buildPartial();
} else {
item_ = value;
}
onChanged();
} else {
if (itemCase_ == 1) {
handleToDecrefBuilder_.mergeFrom(value);
}
handleToDecrefBuilder_.setMessage(value);
}
itemCase_ = 1;
return this;
}
/**
* .tensorflow.eager.RemoteTensorHandle handle_to_decref = 1;
*/
public Builder clearHandleToDecref() {
if (handleToDecrefBuilder_ == null) {
if (itemCase_ == 1) {
itemCase_ = 0;
item_ = null;
onChanged();
}
} else {
if (itemCase_ == 1) {
itemCase_ = 0;
item_ = null;
}
handleToDecrefBuilder_.clear();
}
return this;
}
/**
* .tensorflow.eager.RemoteTensorHandle handle_to_decref = 1;
*/
public tensorflow.eager.EagerServiceOuterClass.RemoteTensorHandle.Builder getHandleToDecrefBuilder() {
return getHandleToDecrefFieldBuilder().getBuilder();
}
/**
* .tensorflow.eager.RemoteTensorHandle handle_to_decref = 1;
*/
@java.lang.Override
public tensorflow.eager.EagerServiceOuterClass.RemoteTensorHandleOrBuilder getHandleToDecrefOrBuilder() {
if ((itemCase_ == 1) && (handleToDecrefBuilder_ != null)) {
return handleToDecrefBuilder_.getMessageOrBuilder();
} else {
if (itemCase_ == 1) {
return (tensorflow.eager.EagerServiceOuterClass.RemoteTensorHandle) item_;
}
return tensorflow.eager.EagerServiceOuterClass.RemoteTensorHandle.getDefaultInstance();
}
}
/**
* .tensorflow.eager.RemoteTensorHandle handle_to_decref = 1;
*/
private org.nd4j.shade.protobuf.SingleFieldBuilderV3<
tensorflow.eager.EagerServiceOuterClass.RemoteTensorHandle, tensorflow.eager.EagerServiceOuterClass.RemoteTensorHandle.Builder, tensorflow.eager.EagerServiceOuterClass.RemoteTensorHandleOrBuilder>
getHandleToDecrefFieldBuilder() {
if (handleToDecrefBuilder_ == null) {
if (!(itemCase_ == 1)) {
item_ = tensorflow.eager.EagerServiceOuterClass.RemoteTensorHandle.getDefaultInstance();
}
handleToDecrefBuilder_ = new org.nd4j.shade.protobuf.SingleFieldBuilderV3<
tensorflow.eager.EagerServiceOuterClass.RemoteTensorHandle, tensorflow.eager.EagerServiceOuterClass.RemoteTensorHandle.Builder, tensorflow.eager.EagerServiceOuterClass.RemoteTensorHandleOrBuilder>(
(tensorflow.eager.EagerServiceOuterClass.RemoteTensorHandle) item_,
getParentForChildren(),
isClean());
item_ = null;
}
itemCase_ = 1;
onChanged();;
return handleToDecrefBuilder_;
}
private org.nd4j.shade.protobuf.SingleFieldBuilderV3<
tensorflow.eager.EagerServiceOuterClass.Operation, tensorflow.eager.EagerServiceOuterClass.Operation.Builder, tensorflow.eager.EagerServiceOuterClass.OperationOrBuilder> operationBuilder_;
/**
* .tensorflow.eager.Operation operation = 2;
* @return Whether the operation field is set.
*/
@java.lang.Override
public boolean hasOperation() {
return itemCase_ == 2;
}
/**
* .tensorflow.eager.Operation operation = 2;
* @return The operation.
*/
@java.lang.Override
public tensorflow.eager.EagerServiceOuterClass.Operation getOperation() {
if (operationBuilder_ == null) {
if (itemCase_ == 2) {
return (tensorflow.eager.EagerServiceOuterClass.Operation) item_;
}
return tensorflow.eager.EagerServiceOuterClass.Operation.getDefaultInstance();
} else {
if (itemCase_ == 2) {
return operationBuilder_.getMessage();
}
return tensorflow.eager.EagerServiceOuterClass.Operation.getDefaultInstance();
}
}
/**
* .tensorflow.eager.Operation operation = 2;
*/
public Builder setOperation(tensorflow.eager.EagerServiceOuterClass.Operation value) {
if (operationBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
item_ = value;
onChanged();
} else {
operationBuilder_.setMessage(value);
}
itemCase_ = 2;
return this;
}
/**
* .tensorflow.eager.Operation operation = 2;
*/
public Builder setOperation(
tensorflow.eager.EagerServiceOuterClass.Operation.Builder builderForValue) {
if (operationBuilder_ == null) {
item_ = builderForValue.build();
onChanged();
} else {
operationBuilder_.setMessage(builderForValue.build());
}
itemCase_ = 2;
return this;
}
/**
* .tensorflow.eager.Operation operation = 2;
*/
public Builder mergeOperation(tensorflow.eager.EagerServiceOuterClass.Operation value) {
if (operationBuilder_ == null) {
if (itemCase_ == 2 &&
item_ != tensorflow.eager.EagerServiceOuterClass.Operation.getDefaultInstance()) {
item_ = tensorflow.eager.EagerServiceOuterClass.Operation.newBuilder((tensorflow.eager.EagerServiceOuterClass.Operation) item_)
.mergeFrom(value).buildPartial();
} else {
item_ = value;
}
onChanged();
} else {
if (itemCase_ == 2) {
operationBuilder_.mergeFrom(value);
}
operationBuilder_.setMessage(value);
}
itemCase_ = 2;
return this;
}
/**
* .tensorflow.eager.Operation operation = 2;
*/
public Builder clearOperation() {
if (operationBuilder_ == null) {
if (itemCase_ == 2) {
itemCase_ = 0;
item_ = null;
onChanged();
}
} else {
if (itemCase_ == 2) {
itemCase_ = 0;
item_ = null;
}
operationBuilder_.clear();
}
return this;
}
/**
* .tensorflow.eager.Operation operation = 2;
*/
public tensorflow.eager.EagerServiceOuterClass.Operation.Builder getOperationBuilder() {
return getOperationFieldBuilder().getBuilder();
}
/**
* .tensorflow.eager.Operation operation = 2;
*/
@java.lang.Override
public tensorflow.eager.EagerServiceOuterClass.OperationOrBuilder getOperationOrBuilder() {
if ((itemCase_ == 2) && (operationBuilder_ != null)) {
return operationBuilder_.getMessageOrBuilder();
} else {
if (itemCase_ == 2) {
return (tensorflow.eager.EagerServiceOuterClass.Operation) item_;
}
return tensorflow.eager.EagerServiceOuterClass.Operation.getDefaultInstance();
}
}
/**
* .tensorflow.eager.Operation operation = 2;
*/
private org.nd4j.shade.protobuf.SingleFieldBuilderV3<
tensorflow.eager.EagerServiceOuterClass.Operation, tensorflow.eager.EagerServiceOuterClass.Operation.Builder, tensorflow.eager.EagerServiceOuterClass.OperationOrBuilder>
getOperationFieldBuilder() {
if (operationBuilder_ == null) {
if (!(itemCase_ == 2)) {
item_ = tensorflow.eager.EagerServiceOuterClass.Operation.getDefaultInstance();
}
operationBuilder_ = new org.nd4j.shade.protobuf.SingleFieldBuilderV3<
tensorflow.eager.EagerServiceOuterClass.Operation, tensorflow.eager.EagerServiceOuterClass.Operation.Builder, tensorflow.eager.EagerServiceOuterClass.OperationOrBuilder>(
(tensorflow.eager.EagerServiceOuterClass.Operation) item_,
getParentForChildren(),
isClean());
item_ = null;
}
itemCase_ = 2;
onChanged();;
return operationBuilder_;
}
@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.eager.QueueItem)
}
// @@protoc_insertion_point(class_scope:tensorflow.eager.QueueItem)
private static final tensorflow.eager.EagerServiceOuterClass.QueueItem DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new tensorflow.eager.EagerServiceOuterClass.QueueItem();
}
public static tensorflow.eager.EagerServiceOuterClass.QueueItem getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final org.nd4j.shade.protobuf.Parser
PARSER = new org.nd4j.shade.protobuf.AbstractParser() {
@java.lang.Override
public QueueItem parsePartialFrom(
org.nd4j.shade.protobuf.CodedInputStream input,
org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.nd4j.shade.protobuf.InvalidProtocolBufferException {
return new QueueItem(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 tensorflow.eager.EagerServiceOuterClass.QueueItem getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface CreateContextRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:tensorflow.eager.CreateContextRequest)
org.nd4j.shade.protobuf.MessageOrBuilder {
/**
*
* Identifies the full cluster, and this particular worker's position within.
*
*
* .tensorflow.ServerDef server_def = 1;
* @return Whether the serverDef field is set.
*/
boolean hasServerDef();
/**
*
* Identifies the full cluster, and this particular worker's position within.
*
* Number of seconds to keep the context alive. If more than keep_alive_secs
* has passed since a particular context has been communicated with, it will
* be garbage collected.
*
*
* int64 keep_alive_secs = 3;
* @return The keepAliveSecs.
*/
long getKeepAliveSecs();
/**
*
* This is the version for all the ops that will be enqueued by the client.
*
*
* .tensorflow.VersionDef version_def = 4;
* @return Whether the versionDef field is set.
*/
boolean hasVersionDef();
/**
*
* This is the version for all the ops that will be enqueued by the client.
*
* Identifies the full cluster, and this particular worker's position within.
*
*
* .tensorflow.ServerDef server_def = 1;
*/
@java.lang.Override
public org.tensorflow.distruntime.ServerDefOrBuilder getServerDefOrBuilder() {
return getServerDef();
}
public static final int ASYNC_FIELD_NUMBER = 2;
private boolean async_;
/**
*
* Whether the ops on the worker should be executed synchronously or
* asynchronously. By default, ops are executed synchronously.
*
*
* bool async = 2;
* @return The async.
*/
@java.lang.Override
public boolean getAsync() {
return async_;
}
public static final int KEEP_ALIVE_SECS_FIELD_NUMBER = 3;
private long keepAliveSecs_;
/**
*
* Number of seconds to keep the context alive. If more than keep_alive_secs
* has passed since a particular context has been communicated with, it will
* be garbage collected.
*
*
* int64 keep_alive_secs = 3;
* @return The keepAliveSecs.
*/
@java.lang.Override
public long getKeepAliveSecs() {
return keepAliveSecs_;
}
public static final int VERSION_DEF_FIELD_NUMBER = 4;
private org.tensorflow.framework.VersionDef versionDef_;
/**
*
* This is the version for all the ops that will be enqueued by the client.
*
*
* .tensorflow.VersionDef version_def = 4;
* @return Whether the versionDef field is set.
*/
@java.lang.Override
public boolean hasVersionDef() {
return versionDef_ != null;
}
/**
*
* This is the version for all the ops that will be enqueued by the client.
*
* Whether the ops on the worker should be executed synchronously or
* asynchronously. By default, ops are executed synchronously.
*
*
* bool async = 2;
* @param value The async to set.
* @return This builder for chaining.
*/
public Builder setAsync(boolean value) {
async_ = value;
onChanged();
return this;
}
/**
*
* Whether the ops on the worker should be executed synchronously or
* asynchronously. By default, ops are executed synchronously.
*
*
* bool async = 2;
* @return This builder for chaining.
*/
public Builder clearAsync() {
async_ = false;
onChanged();
return this;
}
private long keepAliveSecs_ ;
/**
*
* Number of seconds to keep the context alive. If more than keep_alive_secs
* has passed since a particular context has been communicated with, it will
* be garbage collected.
*
*
* int64 keep_alive_secs = 3;
* @return The keepAliveSecs.
*/
@java.lang.Override
public long getKeepAliveSecs() {
return keepAliveSecs_;
}
/**
*
* Number of seconds to keep the context alive. If more than keep_alive_secs
* has passed since a particular context has been communicated with, it will
* be garbage collected.
*
*
* int64 keep_alive_secs = 3;
* @param value The keepAliveSecs to set.
* @return This builder for chaining.
*/
public Builder setKeepAliveSecs(long value) {
keepAliveSecs_ = value;
onChanged();
return this;
}
/**
*
* Number of seconds to keep the context alive. If more than keep_alive_secs
* has passed since a particular context has been communicated with, it will
* be garbage collected.
*
* This is the version for all the ops that will be enqueued by the client.
*
*
* .tensorflow.VersionDef version_def = 4;
*/
private org.nd4j.shade.protobuf.SingleFieldBuilderV3<
org.tensorflow.framework.VersionDef, org.tensorflow.framework.VersionDef.Builder, org.tensorflow.framework.VersionDefOrBuilder>
getVersionDefFieldBuilder() {
if (versionDefBuilder_ == null) {
versionDefBuilder_ = new org.nd4j.shade.protobuf.SingleFieldBuilderV3<
org.tensorflow.framework.VersionDef, org.tensorflow.framework.VersionDef.Builder, org.tensorflow.framework.VersionDefOrBuilder>(
getVersionDef(),
getParentForChildren(),
isClean());
versionDef_ = null;
}
return versionDefBuilder_;
}
@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.eager.CreateContextRequest)
}
// @@protoc_insertion_point(class_scope:tensorflow.eager.CreateContextRequest)
private static final tensorflow.eager.EagerServiceOuterClass.CreateContextRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new tensorflow.eager.EagerServiceOuterClass.CreateContextRequest();
}
public static tensorflow.eager.EagerServiceOuterClass.CreateContextRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final org.nd4j.shade.protobuf.Parser
PARSER = new org.nd4j.shade.protobuf.AbstractParser() {
@java.lang.Override
public CreateContextRequest parsePartialFrom(
org.nd4j.shade.protobuf.CodedInputStream input,
org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.nd4j.shade.protobuf.InvalidProtocolBufferException {
return new CreateContextRequest(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 tensorflow.eager.EagerServiceOuterClass.CreateContextRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface CreateContextResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:tensorflow.eager.CreateContextResponse)
org.nd4j.shade.protobuf.MessageOrBuilder {
/**
*
* The ID of the created context. This is usually a randomly generated number,
* that will be used to identify the context in future requests to the
* service. Contexts are not persisted through server restarts.
*
*
* fixed64 context_id = 1;
* @return The contextId.
*/
long getContextId();
/**
*
* List of devices that are locally accessible to the worker.
*
* List of devices that are locally accessible to the worker.
*
*
* repeated .tensorflow.DeviceAttributes device_attributes = 2;
*/
org.tensorflow.framework.DeviceAttributesOrBuilder getDeviceAttributesOrBuilder(
int index);
}
/**
* Protobuf type {@code tensorflow.eager.CreateContextResponse}
*/
public static final class CreateContextResponse extends
org.nd4j.shade.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:tensorflow.eager.CreateContextResponse)
CreateContextResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use CreateContextResponse.newBuilder() to construct.
private CreateContextResponse(org.nd4j.shade.protobuf.GeneratedMessageV3.Builder builder) {
super(builder);
}
private CreateContextResponse() {
deviceAttributes_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new CreateContextResponse();
}
@java.lang.Override
public final org.nd4j.shade.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private CreateContextResponse(
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 9: {
contextId_ = input.readFixed64();
break;
}
case 18: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
deviceAttributes_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
deviceAttributes_.add(
input.readMessage(org.tensorflow.framework.DeviceAttributes.parser(), extensionRegistry));
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)) {
deviceAttributes_ = java.util.Collections.unmodifiableList(deviceAttributes_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final org.nd4j.shade.protobuf.Descriptors.Descriptor
getDescriptor() {
return tensorflow.eager.EagerServiceOuterClass.internal_static_tensorflow_eager_CreateContextResponse_descriptor;
}
@java.lang.Override
protected org.nd4j.shade.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tensorflow.eager.EagerServiceOuterClass.internal_static_tensorflow_eager_CreateContextResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tensorflow.eager.EagerServiceOuterClass.CreateContextResponse.class, tensorflow.eager.EagerServiceOuterClass.CreateContextResponse.Builder.class);
}
public static final int CONTEXT_ID_FIELD_NUMBER = 1;
private long contextId_;
/**
*
* The ID of the created context. This is usually a randomly generated number,
* that will be used to identify the context in future requests to the
* service. Contexts are not persisted through server restarts.
*
*
* fixed64 context_id = 1;
* @return The contextId.
*/
@java.lang.Override
public long getContextId() {
return contextId_;
}
public static final int DEVICE_ATTRIBUTES_FIELD_NUMBER = 2;
private java.util.List deviceAttributes_;
/**
*
* List of devices that are locally accessible to the worker.
*
* List of devices that are locally accessible to the worker.
*
*
* repeated .tensorflow.DeviceAttributes device_attributes = 2;
*/
@java.lang.Override
public org.tensorflow.framework.DeviceAttributesOrBuilder getDeviceAttributesOrBuilder(
int index) {
return deviceAttributes_.get(index);
}
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 {
if (contextId_ != 0L) {
output.writeFixed64(1, contextId_);
}
for (int i = 0; i < deviceAttributes_.size(); i++) {
output.writeMessage(2, deviceAttributes_.get(i));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (contextId_ != 0L) {
size += org.nd4j.shade.protobuf.CodedOutputStream
.computeFixed64Size(1, contextId_);
}
for (int i = 0; i < deviceAttributes_.size(); i++) {
size += org.nd4j.shade.protobuf.CodedOutputStream
.computeMessageSize(2, deviceAttributes_.get(i));
}
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 tensorflow.eager.EagerServiceOuterClass.CreateContextResponse)) {
return super.equals(obj);
}
tensorflow.eager.EagerServiceOuterClass.CreateContextResponse other = (tensorflow.eager.EagerServiceOuterClass.CreateContextResponse) obj;
if (getContextId()
!= other.getContextId()) return false;
if (!getDeviceAttributesList()
.equals(other.getDeviceAttributesList())) 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();
hash = (37 * hash) + CONTEXT_ID_FIELD_NUMBER;
hash = (53 * hash) + org.nd4j.shade.protobuf.Internal.hashLong(
getContextId());
if (getDeviceAttributesCount() > 0) {
hash = (37 * hash) + DEVICE_ATTRIBUTES_FIELD_NUMBER;
hash = (53 * hash) + getDeviceAttributesList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static tensorflow.eager.EagerServiceOuterClass.CreateContextResponse parseFrom(
java.nio.ByteBuffer data)
throws org.nd4j.shade.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tensorflow.eager.EagerServiceOuterClass.CreateContextResponse parseFrom(
java.nio.ByteBuffer data,
org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.nd4j.shade.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tensorflow.eager.EagerServiceOuterClass.CreateContextResponse parseFrom(
org.nd4j.shade.protobuf.ByteString data)
throws org.nd4j.shade.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tensorflow.eager.EagerServiceOuterClass.CreateContextResponse 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 tensorflow.eager.EagerServiceOuterClass.CreateContextResponse parseFrom(byte[] data)
throws org.nd4j.shade.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tensorflow.eager.EagerServiceOuterClass.CreateContextResponse parseFrom(
byte[] data,
org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.nd4j.shade.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tensorflow.eager.EagerServiceOuterClass.CreateContextResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return org.nd4j.shade.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tensorflow.eager.EagerServiceOuterClass.CreateContextResponse 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 tensorflow.eager.EagerServiceOuterClass.CreateContextResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return org.nd4j.shade.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static tensorflow.eager.EagerServiceOuterClass.CreateContextResponse 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 tensorflow.eager.EagerServiceOuterClass.CreateContextResponse parseFrom(
org.nd4j.shade.protobuf.CodedInputStream input)
throws java.io.IOException {
return org.nd4j.shade.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tensorflow.eager.EagerServiceOuterClass.CreateContextResponse 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(tensorflow.eager.EagerServiceOuterClass.CreateContextResponse 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.eager.CreateContextResponse}
*/
public static final class Builder extends
org.nd4j.shade.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:tensorflow.eager.CreateContextResponse)
tensorflow.eager.EagerServiceOuterClass.CreateContextResponseOrBuilder {
public static final org.nd4j.shade.protobuf.Descriptors.Descriptor
getDescriptor() {
return tensorflow.eager.EagerServiceOuterClass.internal_static_tensorflow_eager_CreateContextResponse_descriptor;
}
@java.lang.Override
protected org.nd4j.shade.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tensorflow.eager.EagerServiceOuterClass.internal_static_tensorflow_eager_CreateContextResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tensorflow.eager.EagerServiceOuterClass.CreateContextResponse.class, tensorflow.eager.EagerServiceOuterClass.CreateContextResponse.Builder.class);
}
// Construct using tensorflow.eager.EagerServiceOuterClass.CreateContextResponse.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) {
getDeviceAttributesFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
contextId_ = 0L;
if (deviceAttributesBuilder_ == null) {
deviceAttributes_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
deviceAttributesBuilder_.clear();
}
return this;
}
@java.lang.Override
public org.nd4j.shade.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return tensorflow.eager.EagerServiceOuterClass.internal_static_tensorflow_eager_CreateContextResponse_descriptor;
}
@java.lang.Override
public tensorflow.eager.EagerServiceOuterClass.CreateContextResponse getDefaultInstanceForType() {
return tensorflow.eager.EagerServiceOuterClass.CreateContextResponse.getDefaultInstance();
}
@java.lang.Override
public tensorflow.eager.EagerServiceOuterClass.CreateContextResponse build() {
tensorflow.eager.EagerServiceOuterClass.CreateContextResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public tensorflow.eager.EagerServiceOuterClass.CreateContextResponse buildPartial() {
tensorflow.eager.EagerServiceOuterClass.CreateContextResponse result = new tensorflow.eager.EagerServiceOuterClass.CreateContextResponse(this);
int from_bitField0_ = bitField0_;
result.contextId_ = contextId_;
if (deviceAttributesBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
deviceAttributes_ = java.util.Collections.unmodifiableList(deviceAttributes_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.deviceAttributes_ = deviceAttributes_;
} else {
result.deviceAttributes_ = deviceAttributesBuilder_.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 tensorflow.eager.EagerServiceOuterClass.CreateContextResponse) {
return mergeFrom((tensorflow.eager.EagerServiceOuterClass.CreateContextResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(tensorflow.eager.EagerServiceOuterClass.CreateContextResponse other) {
if (other == tensorflow.eager.EagerServiceOuterClass.CreateContextResponse.getDefaultInstance()) return this;
if (other.getContextId() != 0L) {
setContextId(other.getContextId());
}
if (deviceAttributesBuilder_ == null) {
if (!other.deviceAttributes_.isEmpty()) {
if (deviceAttributes_.isEmpty()) {
deviceAttributes_ = other.deviceAttributes_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureDeviceAttributesIsMutable();
deviceAttributes_.addAll(other.deviceAttributes_);
}
onChanged();
}
} else {
if (!other.deviceAttributes_.isEmpty()) {
if (deviceAttributesBuilder_.isEmpty()) {
deviceAttributesBuilder_.dispose();
deviceAttributesBuilder_ = null;
deviceAttributes_ = other.deviceAttributes_;
bitField0_ = (bitField0_ & ~0x00000001);
deviceAttributesBuilder_ =
org.nd4j.shade.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getDeviceAttributesFieldBuilder() : null;
} else {
deviceAttributesBuilder_.addAllMessages(other.deviceAttributes_);
}
}
}
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 {
tensorflow.eager.EagerServiceOuterClass.CreateContextResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (org.nd4j.shade.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (tensorflow.eager.EagerServiceOuterClass.CreateContextResponse) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private long contextId_ ;
/**
*
* The ID of the created context. This is usually a randomly generated number,
* that will be used to identify the context in future requests to the
* service. Contexts are not persisted through server restarts.
*
*
* fixed64 context_id = 1;
* @return The contextId.
*/
@java.lang.Override
public long getContextId() {
return contextId_;
}
/**
*
* The ID of the created context. This is usually a randomly generated number,
* that will be used to identify the context in future requests to the
* service. Contexts are not persisted through server restarts.
*
*
* fixed64 context_id = 1;
* @param value The contextId to set.
* @return This builder for chaining.
*/
public Builder setContextId(long value) {
contextId_ = value;
onChanged();
return this;
}
/**
*
* The ID of the created context. This is usually a randomly generated number,
* that will be used to identify the context in future requests to the
* service. Contexts are not persisted through server restarts.
*
* List of devices that are locally accessible to the worker.
*
*
* repeated .tensorflow.DeviceAttributes device_attributes = 2;
*/
public java.util.List
getDeviceAttributesBuilderList() {
return getDeviceAttributesFieldBuilder().getBuilderList();
}
private org.nd4j.shade.protobuf.RepeatedFieldBuilderV3<
org.tensorflow.framework.DeviceAttributes, org.tensorflow.framework.DeviceAttributes.Builder, org.tensorflow.framework.DeviceAttributesOrBuilder>
getDeviceAttributesFieldBuilder() {
if (deviceAttributesBuilder_ == null) {
deviceAttributesBuilder_ = new org.nd4j.shade.protobuf.RepeatedFieldBuilderV3<
org.tensorflow.framework.DeviceAttributes, org.tensorflow.framework.DeviceAttributes.Builder, org.tensorflow.framework.DeviceAttributesOrBuilder>(
deviceAttributes_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
deviceAttributes_ = null;
}
return deviceAttributesBuilder_;
}
@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.eager.CreateContextResponse)
}
// @@protoc_insertion_point(class_scope:tensorflow.eager.CreateContextResponse)
private static final tensorflow.eager.EagerServiceOuterClass.CreateContextResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new tensorflow.eager.EagerServiceOuterClass.CreateContextResponse();
}
public static tensorflow.eager.EagerServiceOuterClass.CreateContextResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final org.nd4j.shade.protobuf.Parser
PARSER = new org.nd4j.shade.protobuf.AbstractParser() {
@java.lang.Override
public CreateContextResponse parsePartialFrom(
org.nd4j.shade.protobuf.CodedInputStream input,
org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.nd4j.shade.protobuf.InvalidProtocolBufferException {
return new CreateContextResponse(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 tensorflow.eager.EagerServiceOuterClass.CreateContextResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface EnqueueRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:tensorflow.eager.EnqueueRequest)
org.nd4j.shade.protobuf.MessageOrBuilder {
/**
* fixed64 context_id = 1;
* @return The contextId.
*/
long getContextId();
/**
* repeated .tensorflow.eager.QueueItem queue = 3;
*/
java.util.List
getQueueList();
/**
* repeated .tensorflow.eager.QueueItem queue = 3;
*/
tensorflow.eager.EagerServiceOuterClass.QueueItem getQueue(int index);
/**
* repeated .tensorflow.eager.QueueItem queue = 3;
*/
int getQueueCount();
/**
* repeated .tensorflow.eager.QueueItem queue = 3;
*/
java.util.List
getQueueOrBuilderList();
/**
* repeated .tensorflow.eager.QueueItem queue = 3;
*/
tensorflow.eager.EagerServiceOuterClass.QueueItemOrBuilder getQueueOrBuilder(
int index);
}
/**
* Protobuf type {@code tensorflow.eager.EnqueueRequest}
*/
public static final class EnqueueRequest extends
org.nd4j.shade.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:tensorflow.eager.EnqueueRequest)
EnqueueRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use EnqueueRequest.newBuilder() to construct.
private EnqueueRequest(org.nd4j.shade.protobuf.GeneratedMessageV3.Builder builder) {
super(builder);
}
private EnqueueRequest() {
queue_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new EnqueueRequest();
}
@java.lang.Override
public final org.nd4j.shade.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private EnqueueRequest(
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 9: {
contextId_ = input.readFixed64();
break;
}
case 26: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
queue_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
queue_.add(
input.readMessage(tensorflow.eager.EagerServiceOuterClass.QueueItem.parser(), extensionRegistry));
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)) {
queue_ = java.util.Collections.unmodifiableList(queue_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final org.nd4j.shade.protobuf.Descriptors.Descriptor
getDescriptor() {
return tensorflow.eager.EagerServiceOuterClass.internal_static_tensorflow_eager_EnqueueRequest_descriptor;
}
@java.lang.Override
protected org.nd4j.shade.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tensorflow.eager.EagerServiceOuterClass.internal_static_tensorflow_eager_EnqueueRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tensorflow.eager.EagerServiceOuterClass.EnqueueRequest.class, tensorflow.eager.EagerServiceOuterClass.EnqueueRequest.Builder.class);
}
public static final int CONTEXT_ID_FIELD_NUMBER = 1;
private long contextId_;
/**
* fixed64 context_id = 1;
* @return The contextId.
*/
@java.lang.Override
public long getContextId() {
return contextId_;
}
public static final int QUEUE_FIELD_NUMBER = 3;
private java.util.List queue_;
/**
* repeated .tensorflow.eager.QueueItem queue = 3;
*/
@java.lang.Override
public java.util.List getQueueList() {
return queue_;
}
/**
* repeated .tensorflow.eager.QueueItem queue = 3;
*/
@java.lang.Override
public java.util.List
getQueueOrBuilderList() {
return queue_;
}
/**
* repeated .tensorflow.eager.QueueItem queue = 3;
*/
@java.lang.Override
public int getQueueCount() {
return queue_.size();
}
/**
* repeated .tensorflow.eager.QueueItem queue = 3;
*/
@java.lang.Override
public tensorflow.eager.EagerServiceOuterClass.QueueItem getQueue(int index) {
return queue_.get(index);
}
/**
* repeated .tensorflow.eager.QueueItem queue = 3;
*/
@java.lang.Override
public tensorflow.eager.EagerServiceOuterClass.QueueItemOrBuilder getQueueOrBuilder(
int index) {
return queue_.get(index);
}
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 {
if (contextId_ != 0L) {
output.writeFixed64(1, contextId_);
}
for (int i = 0; i < queue_.size(); i++) {
output.writeMessage(3, queue_.get(i));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (contextId_ != 0L) {
size += org.nd4j.shade.protobuf.CodedOutputStream
.computeFixed64Size(1, contextId_);
}
for (int i = 0; i < queue_.size(); i++) {
size += org.nd4j.shade.protobuf.CodedOutputStream
.computeMessageSize(3, queue_.get(i));
}
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 tensorflow.eager.EagerServiceOuterClass.EnqueueRequest)) {
return super.equals(obj);
}
tensorflow.eager.EagerServiceOuterClass.EnqueueRequest other = (tensorflow.eager.EagerServiceOuterClass.EnqueueRequest) obj;
if (getContextId()
!= other.getContextId()) return false;
if (!getQueueList()
.equals(other.getQueueList())) 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();
hash = (37 * hash) + CONTEXT_ID_FIELD_NUMBER;
hash = (53 * hash) + org.nd4j.shade.protobuf.Internal.hashLong(
getContextId());
if (getQueueCount() > 0) {
hash = (37 * hash) + QUEUE_FIELD_NUMBER;
hash = (53 * hash) + getQueueList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static tensorflow.eager.EagerServiceOuterClass.EnqueueRequest parseFrom(
java.nio.ByteBuffer data)
throws org.nd4j.shade.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tensorflow.eager.EagerServiceOuterClass.EnqueueRequest parseFrom(
java.nio.ByteBuffer data,
org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.nd4j.shade.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tensorflow.eager.EagerServiceOuterClass.EnqueueRequest parseFrom(
org.nd4j.shade.protobuf.ByteString data)
throws org.nd4j.shade.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tensorflow.eager.EagerServiceOuterClass.EnqueueRequest 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 tensorflow.eager.EagerServiceOuterClass.EnqueueRequest parseFrom(byte[] data)
throws org.nd4j.shade.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tensorflow.eager.EagerServiceOuterClass.EnqueueRequest parseFrom(
byte[] data,
org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.nd4j.shade.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tensorflow.eager.EagerServiceOuterClass.EnqueueRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return org.nd4j.shade.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tensorflow.eager.EagerServiceOuterClass.EnqueueRequest 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 tensorflow.eager.EagerServiceOuterClass.EnqueueRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return org.nd4j.shade.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static tensorflow.eager.EagerServiceOuterClass.EnqueueRequest 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 tensorflow.eager.EagerServiceOuterClass.EnqueueRequest parseFrom(
org.nd4j.shade.protobuf.CodedInputStream input)
throws java.io.IOException {
return org.nd4j.shade.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tensorflow.eager.EagerServiceOuterClass.EnqueueRequest 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(tensorflow.eager.EagerServiceOuterClass.EnqueueRequest 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.eager.EnqueueRequest}
*/
public static final class Builder extends
org.nd4j.shade.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:tensorflow.eager.EnqueueRequest)
tensorflow.eager.EagerServiceOuterClass.EnqueueRequestOrBuilder {
public static final org.nd4j.shade.protobuf.Descriptors.Descriptor
getDescriptor() {
return tensorflow.eager.EagerServiceOuterClass.internal_static_tensorflow_eager_EnqueueRequest_descriptor;
}
@java.lang.Override
protected org.nd4j.shade.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tensorflow.eager.EagerServiceOuterClass.internal_static_tensorflow_eager_EnqueueRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tensorflow.eager.EagerServiceOuterClass.EnqueueRequest.class, tensorflow.eager.EagerServiceOuterClass.EnqueueRequest.Builder.class);
}
// Construct using tensorflow.eager.EagerServiceOuterClass.EnqueueRequest.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) {
getQueueFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
contextId_ = 0L;
if (queueBuilder_ == null) {
queue_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
queueBuilder_.clear();
}
return this;
}
@java.lang.Override
public org.nd4j.shade.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return tensorflow.eager.EagerServiceOuterClass.internal_static_tensorflow_eager_EnqueueRequest_descriptor;
}
@java.lang.Override
public tensorflow.eager.EagerServiceOuterClass.EnqueueRequest getDefaultInstanceForType() {
return tensorflow.eager.EagerServiceOuterClass.EnqueueRequest.getDefaultInstance();
}
@java.lang.Override
public tensorflow.eager.EagerServiceOuterClass.EnqueueRequest build() {
tensorflow.eager.EagerServiceOuterClass.EnqueueRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public tensorflow.eager.EagerServiceOuterClass.EnqueueRequest buildPartial() {
tensorflow.eager.EagerServiceOuterClass.EnqueueRequest result = new tensorflow.eager.EagerServiceOuterClass.EnqueueRequest(this);
int from_bitField0_ = bitField0_;
result.contextId_ = contextId_;
if (queueBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
queue_ = java.util.Collections.unmodifiableList(queue_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.queue_ = queue_;
} else {
result.queue_ = queueBuilder_.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 tensorflow.eager.EagerServiceOuterClass.EnqueueRequest) {
return mergeFrom((tensorflow.eager.EagerServiceOuterClass.EnqueueRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(tensorflow.eager.EagerServiceOuterClass.EnqueueRequest other) {
if (other == tensorflow.eager.EagerServiceOuterClass.EnqueueRequest.getDefaultInstance()) return this;
if (other.getContextId() != 0L) {
setContextId(other.getContextId());
}
if (queueBuilder_ == null) {
if (!other.queue_.isEmpty()) {
if (queue_.isEmpty()) {
queue_ = other.queue_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureQueueIsMutable();
queue_.addAll(other.queue_);
}
onChanged();
}
} else {
if (!other.queue_.isEmpty()) {
if (queueBuilder_.isEmpty()) {
queueBuilder_.dispose();
queueBuilder_ = null;
queue_ = other.queue_;
bitField0_ = (bitField0_ & ~0x00000001);
queueBuilder_ =
org.nd4j.shade.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getQueueFieldBuilder() : null;
} else {
queueBuilder_.addAllMessages(other.queue_);
}
}
}
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 {
tensorflow.eager.EagerServiceOuterClass.EnqueueRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (org.nd4j.shade.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (tensorflow.eager.EagerServiceOuterClass.EnqueueRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private long contextId_ ;
/**
* fixed64 context_id = 1;
* @return The contextId.
*/
@java.lang.Override
public long getContextId() {
return contextId_;
}
/**
* fixed64 context_id = 1;
* @param value The contextId to set.
* @return This builder for chaining.
*/
public Builder setContextId(long value) {
contextId_ = value;
onChanged();
return this;
}
/**
* fixed64 context_id = 1;
* @return This builder for chaining.
*/
public Builder clearContextId() {
contextId_ = 0L;
onChanged();
return this;
}
private java.util.List queue_ =
java.util.Collections.emptyList();
private void ensureQueueIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
queue_ = new java.util.ArrayList(queue_);
bitField0_ |= 0x00000001;
}
}
private org.nd4j.shade.protobuf.RepeatedFieldBuilderV3<
tensorflow.eager.EagerServiceOuterClass.QueueItem, tensorflow.eager.EagerServiceOuterClass.QueueItem.Builder, tensorflow.eager.EagerServiceOuterClass.QueueItemOrBuilder> queueBuilder_;
/**
* repeated .tensorflow.eager.QueueItem queue = 3;
*/
public java.util.List getQueueList() {
if (queueBuilder_ == null) {
return java.util.Collections.unmodifiableList(queue_);
} else {
return queueBuilder_.getMessageList();
}
}
/**
* repeated .tensorflow.eager.QueueItem queue = 3;
*/
public int getQueueCount() {
if (queueBuilder_ == null) {
return queue_.size();
} else {
return queueBuilder_.getCount();
}
}
/**
* repeated .tensorflow.eager.QueueItem queue = 3;
*/
public tensorflow.eager.EagerServiceOuterClass.QueueItem getQueue(int index) {
if (queueBuilder_ == null) {
return queue_.get(index);
} else {
return queueBuilder_.getMessage(index);
}
}
/**
* repeated .tensorflow.eager.QueueItem queue = 3;
*/
public Builder setQueue(
int index, tensorflow.eager.EagerServiceOuterClass.QueueItem value) {
if (queueBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureQueueIsMutable();
queue_.set(index, value);
onChanged();
} else {
queueBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .tensorflow.eager.QueueItem queue = 3;
*/
public Builder setQueue(
int index, tensorflow.eager.EagerServiceOuterClass.QueueItem.Builder builderForValue) {
if (queueBuilder_ == null) {
ensureQueueIsMutable();
queue_.set(index, builderForValue.build());
onChanged();
} else {
queueBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .tensorflow.eager.QueueItem queue = 3;
*/
public Builder addQueue(tensorflow.eager.EagerServiceOuterClass.QueueItem value) {
if (queueBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureQueueIsMutable();
queue_.add(value);
onChanged();
} else {
queueBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .tensorflow.eager.QueueItem queue = 3;
*/
public Builder addQueue(
int index, tensorflow.eager.EagerServiceOuterClass.QueueItem value) {
if (queueBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureQueueIsMutable();
queue_.add(index, value);
onChanged();
} else {
queueBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .tensorflow.eager.QueueItem queue = 3;
*/
public Builder addQueue(
tensorflow.eager.EagerServiceOuterClass.QueueItem.Builder builderForValue) {
if (queueBuilder_ == null) {
ensureQueueIsMutable();
queue_.add(builderForValue.build());
onChanged();
} else {
queueBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .tensorflow.eager.QueueItem queue = 3;
*/
public Builder addQueue(
int index, tensorflow.eager.EagerServiceOuterClass.QueueItem.Builder builderForValue) {
if (queueBuilder_ == null) {
ensureQueueIsMutable();
queue_.add(index, builderForValue.build());
onChanged();
} else {
queueBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .tensorflow.eager.QueueItem queue = 3;
*/
public Builder addAllQueue(
java.lang.Iterable values) {
if (queueBuilder_ == null) {
ensureQueueIsMutable();
org.nd4j.shade.protobuf.AbstractMessageLite.Builder.addAll(
values, queue_);
onChanged();
} else {
queueBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .tensorflow.eager.QueueItem queue = 3;
*/
public Builder clearQueue() {
if (queueBuilder_ == null) {
queue_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
queueBuilder_.clear();
}
return this;
}
/**
* repeated .tensorflow.eager.QueueItem queue = 3;
*/
public Builder removeQueue(int index) {
if (queueBuilder_ == null) {
ensureQueueIsMutable();
queue_.remove(index);
onChanged();
} else {
queueBuilder_.remove(index);
}
return this;
}
/**
* repeated .tensorflow.eager.QueueItem queue = 3;
*/
public tensorflow.eager.EagerServiceOuterClass.QueueItem.Builder getQueueBuilder(
int index) {
return getQueueFieldBuilder().getBuilder(index);
}
/**
* repeated .tensorflow.eager.QueueItem queue = 3;
*/
public tensorflow.eager.EagerServiceOuterClass.QueueItemOrBuilder getQueueOrBuilder(
int index) {
if (queueBuilder_ == null) {
return queue_.get(index); } else {
return queueBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .tensorflow.eager.QueueItem queue = 3;
*/
public java.util.List
getQueueOrBuilderList() {
if (queueBuilder_ != null) {
return queueBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(queue_);
}
}
/**
* repeated .tensorflow.eager.QueueItem queue = 3;
*/
public tensorflow.eager.EagerServiceOuterClass.QueueItem.Builder addQueueBuilder() {
return getQueueFieldBuilder().addBuilder(
tensorflow.eager.EagerServiceOuterClass.QueueItem.getDefaultInstance());
}
/**
* repeated .tensorflow.eager.QueueItem queue = 3;
*/
public tensorflow.eager.EagerServiceOuterClass.QueueItem.Builder addQueueBuilder(
int index) {
return getQueueFieldBuilder().addBuilder(
index, tensorflow.eager.EagerServiceOuterClass.QueueItem.getDefaultInstance());
}
/**
* repeated .tensorflow.eager.QueueItem queue = 3;
*/
public java.util.List
getQueueBuilderList() {
return getQueueFieldBuilder().getBuilderList();
}
private org.nd4j.shade.protobuf.RepeatedFieldBuilderV3<
tensorflow.eager.EagerServiceOuterClass.QueueItem, tensorflow.eager.EagerServiceOuterClass.QueueItem.Builder, tensorflow.eager.EagerServiceOuterClass.QueueItemOrBuilder>
getQueueFieldBuilder() {
if (queueBuilder_ == null) {
queueBuilder_ = new org.nd4j.shade.protobuf.RepeatedFieldBuilderV3<
tensorflow.eager.EagerServiceOuterClass.QueueItem, tensorflow.eager.EagerServiceOuterClass.QueueItem.Builder, tensorflow.eager.EagerServiceOuterClass.QueueItemOrBuilder>(
queue_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
queue_ = null;
}
return queueBuilder_;
}
@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.eager.EnqueueRequest)
}
// @@protoc_insertion_point(class_scope:tensorflow.eager.EnqueueRequest)
private static final tensorflow.eager.EagerServiceOuterClass.EnqueueRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new tensorflow.eager.EagerServiceOuterClass.EnqueueRequest();
}
public static tensorflow.eager.EagerServiceOuterClass.EnqueueRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final org.nd4j.shade.protobuf.Parser
PARSER = new org.nd4j.shade.protobuf.AbstractParser() {
@java.lang.Override
public EnqueueRequest parsePartialFrom(
org.nd4j.shade.protobuf.CodedInputStream input,
org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.nd4j.shade.protobuf.InvalidProtocolBufferException {
return new EnqueueRequest(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 tensorflow.eager.EagerServiceOuterClass.EnqueueRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface EnqueueResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:tensorflow.eager.EnqueueResponse)
org.nd4j.shade.protobuf.MessageOrBuilder {
}
/**
* Protobuf type {@code tensorflow.eager.EnqueueResponse}
*/
public static final class EnqueueResponse extends
org.nd4j.shade.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:tensorflow.eager.EnqueueResponse)
EnqueueResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use EnqueueResponse.newBuilder() to construct.
private EnqueueResponse(org.nd4j.shade.protobuf.GeneratedMessageV3.Builder builder) {
super(builder);
}
private EnqueueResponse() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new EnqueueResponse();
}
@java.lang.Override
public final org.nd4j.shade.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private EnqueueResponse(
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();
}
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;
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 {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final org.nd4j.shade.protobuf.Descriptors.Descriptor
getDescriptor() {
return tensorflow.eager.EagerServiceOuterClass.internal_static_tensorflow_eager_EnqueueResponse_descriptor;
}
@java.lang.Override
protected org.nd4j.shade.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tensorflow.eager.EagerServiceOuterClass.internal_static_tensorflow_eager_EnqueueResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tensorflow.eager.EagerServiceOuterClass.EnqueueResponse.class, tensorflow.eager.EagerServiceOuterClass.EnqueueResponse.Builder.class);
}
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 {
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
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 tensorflow.eager.EagerServiceOuterClass.EnqueueResponse)) {
return super.equals(obj);
}
tensorflow.eager.EagerServiceOuterClass.EnqueueResponse other = (tensorflow.eager.EagerServiceOuterClass.EnqueueResponse) obj;
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();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static tensorflow.eager.EagerServiceOuterClass.EnqueueResponse parseFrom(
java.nio.ByteBuffer data)
throws org.nd4j.shade.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tensorflow.eager.EagerServiceOuterClass.EnqueueResponse parseFrom(
java.nio.ByteBuffer data,
org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.nd4j.shade.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tensorflow.eager.EagerServiceOuterClass.EnqueueResponse parseFrom(
org.nd4j.shade.protobuf.ByteString data)
throws org.nd4j.shade.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tensorflow.eager.EagerServiceOuterClass.EnqueueResponse 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 tensorflow.eager.EagerServiceOuterClass.EnqueueResponse parseFrom(byte[] data)
throws org.nd4j.shade.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tensorflow.eager.EagerServiceOuterClass.EnqueueResponse parseFrom(
byte[] data,
org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.nd4j.shade.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tensorflow.eager.EagerServiceOuterClass.EnqueueResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return org.nd4j.shade.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tensorflow.eager.EagerServiceOuterClass.EnqueueResponse 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 tensorflow.eager.EagerServiceOuterClass.EnqueueResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return org.nd4j.shade.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static tensorflow.eager.EagerServiceOuterClass.EnqueueResponse 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 tensorflow.eager.EagerServiceOuterClass.EnqueueResponse parseFrom(
org.nd4j.shade.protobuf.CodedInputStream input)
throws java.io.IOException {
return org.nd4j.shade.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tensorflow.eager.EagerServiceOuterClass.EnqueueResponse 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(tensorflow.eager.EagerServiceOuterClass.EnqueueResponse 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.eager.EnqueueResponse}
*/
public static final class Builder extends
org.nd4j.shade.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:tensorflow.eager.EnqueueResponse)
tensorflow.eager.EagerServiceOuterClass.EnqueueResponseOrBuilder {
public static final org.nd4j.shade.protobuf.Descriptors.Descriptor
getDescriptor() {
return tensorflow.eager.EagerServiceOuterClass.internal_static_tensorflow_eager_EnqueueResponse_descriptor;
}
@java.lang.Override
protected org.nd4j.shade.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tensorflow.eager.EagerServiceOuterClass.internal_static_tensorflow_eager_EnqueueResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tensorflow.eager.EagerServiceOuterClass.EnqueueResponse.class, tensorflow.eager.EagerServiceOuterClass.EnqueueResponse.Builder.class);
}
// Construct using tensorflow.eager.EagerServiceOuterClass.EnqueueResponse.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) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
return this;
}
@java.lang.Override
public org.nd4j.shade.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return tensorflow.eager.EagerServiceOuterClass.internal_static_tensorflow_eager_EnqueueResponse_descriptor;
}
@java.lang.Override
public tensorflow.eager.EagerServiceOuterClass.EnqueueResponse getDefaultInstanceForType() {
return tensorflow.eager.EagerServiceOuterClass.EnqueueResponse.getDefaultInstance();
}
@java.lang.Override
public tensorflow.eager.EagerServiceOuterClass.EnqueueResponse build() {
tensorflow.eager.EagerServiceOuterClass.EnqueueResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public tensorflow.eager.EagerServiceOuterClass.EnqueueResponse buildPartial() {
tensorflow.eager.EagerServiceOuterClass.EnqueueResponse result = new tensorflow.eager.EagerServiceOuterClass.EnqueueResponse(this);
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 tensorflow.eager.EagerServiceOuterClass.EnqueueResponse) {
return mergeFrom((tensorflow.eager.EagerServiceOuterClass.EnqueueResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(tensorflow.eager.EagerServiceOuterClass.EnqueueResponse other) {
if (other == tensorflow.eager.EagerServiceOuterClass.EnqueueResponse.getDefaultInstance()) return this;
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 {
tensorflow.eager.EagerServiceOuterClass.EnqueueResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (org.nd4j.shade.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (tensorflow.eager.EagerServiceOuterClass.EnqueueResponse) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
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.eager.EnqueueResponse)
}
// @@protoc_insertion_point(class_scope:tensorflow.eager.EnqueueResponse)
private static final tensorflow.eager.EagerServiceOuterClass.EnqueueResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new tensorflow.eager.EagerServiceOuterClass.EnqueueResponse();
}
public static tensorflow.eager.EagerServiceOuterClass.EnqueueResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final org.nd4j.shade.protobuf.Parser
PARSER = new org.nd4j.shade.protobuf.AbstractParser() {
@java.lang.Override
public EnqueueResponse parsePartialFrom(
org.nd4j.shade.protobuf.CodedInputStream input,
org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.nd4j.shade.protobuf.InvalidProtocolBufferException {
return new EnqueueResponse(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 tensorflow.eager.EagerServiceOuterClass.EnqueueResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface WaitQueueDoneRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:tensorflow.eager.WaitQueueDoneRequest)
org.nd4j.shade.protobuf.MessageOrBuilder {
/**
* fixed64 context_id = 1;
* @return The contextId.
*/
long getContextId();
/**
*
* Ids to wait on. If empty, wait on everything currently pending.
*
*
* repeated int64 op_id = 2;
* @return A list containing the opId.
*/
java.util.List getOpIdList();
/**
*
* Ids to wait on. If empty, wait on everything currently pending.
*
*
* repeated int64 op_id = 2;
* @return The count of opId.
*/
int getOpIdCount();
/**
*
* Ids to wait on. If empty, wait on everything currently pending.
*
*
* repeated int64 op_id = 2;
* @param index The index of the element to return.
* @return The opId at the given index.
*/
long getOpId(int index);
}
/**
* Protobuf type {@code tensorflow.eager.WaitQueueDoneRequest}
*/
public static final class WaitQueueDoneRequest extends
org.nd4j.shade.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:tensorflow.eager.WaitQueueDoneRequest)
WaitQueueDoneRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use WaitQueueDoneRequest.newBuilder() to construct.
private WaitQueueDoneRequest(org.nd4j.shade.protobuf.GeneratedMessageV3.Builder builder) {
super(builder);
}
private WaitQueueDoneRequest() {
opId_ = emptyLongList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new WaitQueueDoneRequest();
}
@java.lang.Override
public final org.nd4j.shade.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private WaitQueueDoneRequest(
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 9: {
contextId_ = input.readFixed64();
break;
}
case 16: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
opId_ = newLongList();
mutable_bitField0_ |= 0x00000001;
}
opId_.addLong(input.readInt64());
break;
}
case 18: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
if (!((mutable_bitField0_ & 0x00000001) != 0) && input.getBytesUntilLimit() > 0) {
opId_ = newLongList();
mutable_bitField0_ |= 0x00000001;
}
while (input.getBytesUntilLimit() > 0) {
opId_.addLong(input.readInt64());
}
input.popLimit(limit);
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)) {
opId_.makeImmutable(); // C
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final org.nd4j.shade.protobuf.Descriptors.Descriptor
getDescriptor() {
return tensorflow.eager.EagerServiceOuterClass.internal_static_tensorflow_eager_WaitQueueDoneRequest_descriptor;
}
@java.lang.Override
protected org.nd4j.shade.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tensorflow.eager.EagerServiceOuterClass.internal_static_tensorflow_eager_WaitQueueDoneRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tensorflow.eager.EagerServiceOuterClass.WaitQueueDoneRequest.class, tensorflow.eager.EagerServiceOuterClass.WaitQueueDoneRequest.Builder.class);
}
public static final int CONTEXT_ID_FIELD_NUMBER = 1;
private long contextId_;
/**
* fixed64 context_id = 1;
* @return The contextId.
*/
@java.lang.Override
public long getContextId() {
return contextId_;
}
public static final int OP_ID_FIELD_NUMBER = 2;
private org.nd4j.shade.protobuf.Internal.LongList opId_;
/**
*
* Ids to wait on. If empty, wait on everything currently pending.
*
*
* repeated int64 op_id = 2;
* @return A list containing the opId.
*/
@java.lang.Override
public java.util.List
getOpIdList() {
return opId_;
}
/**
*
* Ids to wait on. If empty, wait on everything currently pending.
*
*
* repeated int64 op_id = 2;
* @return The count of opId.
*/
public int getOpIdCount() {
return opId_.size();
}
/**
*
* Ids to wait on. If empty, wait on everything currently pending.
*
*
* repeated int64 op_id = 2;
* @param index The index of the element to return.
* @return The opId at the given index.
*/
public long getOpId(int index) {
return opId_.getLong(index);
}
private int opIdMemoizedSerializedSize = -1;
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 {
getSerializedSize();
if (contextId_ != 0L) {
output.writeFixed64(1, contextId_);
}
if (getOpIdList().size() > 0) {
output.writeUInt32NoTag(18);
output.writeUInt32NoTag(opIdMemoizedSerializedSize);
}
for (int i = 0; i < opId_.size(); i++) {
output.writeInt64NoTag(opId_.getLong(i));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (contextId_ != 0L) {
size += org.nd4j.shade.protobuf.CodedOutputStream
.computeFixed64Size(1, contextId_);
}
{
int dataSize = 0;
for (int i = 0; i < opId_.size(); i++) {
dataSize += org.nd4j.shade.protobuf.CodedOutputStream
.computeInt64SizeNoTag(opId_.getLong(i));
}
size += dataSize;
if (!getOpIdList().isEmpty()) {
size += 1;
size += org.nd4j.shade.protobuf.CodedOutputStream
.computeInt32SizeNoTag(dataSize);
}
opIdMemoizedSerializedSize = dataSize;
}
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 tensorflow.eager.EagerServiceOuterClass.WaitQueueDoneRequest)) {
return super.equals(obj);
}
tensorflow.eager.EagerServiceOuterClass.WaitQueueDoneRequest other = (tensorflow.eager.EagerServiceOuterClass.WaitQueueDoneRequest) obj;
if (getContextId()
!= other.getContextId()) return false;
if (!getOpIdList()
.equals(other.getOpIdList())) 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();
hash = (37 * hash) + CONTEXT_ID_FIELD_NUMBER;
hash = (53 * hash) + org.nd4j.shade.protobuf.Internal.hashLong(
getContextId());
if (getOpIdCount() > 0) {
hash = (37 * hash) + OP_ID_FIELD_NUMBER;
hash = (53 * hash) + getOpIdList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static tensorflow.eager.EagerServiceOuterClass.WaitQueueDoneRequest parseFrom(
java.nio.ByteBuffer data)
throws org.nd4j.shade.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tensorflow.eager.EagerServiceOuterClass.WaitQueueDoneRequest parseFrom(
java.nio.ByteBuffer data,
org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.nd4j.shade.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tensorflow.eager.EagerServiceOuterClass.WaitQueueDoneRequest parseFrom(
org.nd4j.shade.protobuf.ByteString data)
throws org.nd4j.shade.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tensorflow.eager.EagerServiceOuterClass.WaitQueueDoneRequest 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 tensorflow.eager.EagerServiceOuterClass.WaitQueueDoneRequest parseFrom(byte[] data)
throws org.nd4j.shade.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tensorflow.eager.EagerServiceOuterClass.WaitQueueDoneRequest parseFrom(
byte[] data,
org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.nd4j.shade.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tensorflow.eager.EagerServiceOuterClass.WaitQueueDoneRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return org.nd4j.shade.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tensorflow.eager.EagerServiceOuterClass.WaitQueueDoneRequest 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 tensorflow.eager.EagerServiceOuterClass.WaitQueueDoneRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return org.nd4j.shade.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static tensorflow.eager.EagerServiceOuterClass.WaitQueueDoneRequest 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 tensorflow.eager.EagerServiceOuterClass.WaitQueueDoneRequest parseFrom(
org.nd4j.shade.protobuf.CodedInputStream input)
throws java.io.IOException {
return org.nd4j.shade.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tensorflow.eager.EagerServiceOuterClass.WaitQueueDoneRequest 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(tensorflow.eager.EagerServiceOuterClass.WaitQueueDoneRequest 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.eager.WaitQueueDoneRequest}
*/
public static final class Builder extends
org.nd4j.shade.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:tensorflow.eager.WaitQueueDoneRequest)
tensorflow.eager.EagerServiceOuterClass.WaitQueueDoneRequestOrBuilder {
public static final org.nd4j.shade.protobuf.Descriptors.Descriptor
getDescriptor() {
return tensorflow.eager.EagerServiceOuterClass.internal_static_tensorflow_eager_WaitQueueDoneRequest_descriptor;
}
@java.lang.Override
protected org.nd4j.shade.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tensorflow.eager.EagerServiceOuterClass.internal_static_tensorflow_eager_WaitQueueDoneRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tensorflow.eager.EagerServiceOuterClass.WaitQueueDoneRequest.class, tensorflow.eager.EagerServiceOuterClass.WaitQueueDoneRequest.Builder.class);
}
// Construct using tensorflow.eager.EagerServiceOuterClass.WaitQueueDoneRequest.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) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
contextId_ = 0L;
opId_ = emptyLongList();
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
@java.lang.Override
public org.nd4j.shade.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return tensorflow.eager.EagerServiceOuterClass.internal_static_tensorflow_eager_WaitQueueDoneRequest_descriptor;
}
@java.lang.Override
public tensorflow.eager.EagerServiceOuterClass.WaitQueueDoneRequest getDefaultInstanceForType() {
return tensorflow.eager.EagerServiceOuterClass.WaitQueueDoneRequest.getDefaultInstance();
}
@java.lang.Override
public tensorflow.eager.EagerServiceOuterClass.WaitQueueDoneRequest build() {
tensorflow.eager.EagerServiceOuterClass.WaitQueueDoneRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public tensorflow.eager.EagerServiceOuterClass.WaitQueueDoneRequest buildPartial() {
tensorflow.eager.EagerServiceOuterClass.WaitQueueDoneRequest result = new tensorflow.eager.EagerServiceOuterClass.WaitQueueDoneRequest(this);
int from_bitField0_ = bitField0_;
result.contextId_ = contextId_;
if (((bitField0_ & 0x00000001) != 0)) {
opId_.makeImmutable();
bitField0_ = (bitField0_ & ~0x00000001);
}
result.opId_ = opId_;
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 tensorflow.eager.EagerServiceOuterClass.WaitQueueDoneRequest) {
return mergeFrom((tensorflow.eager.EagerServiceOuterClass.WaitQueueDoneRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(tensorflow.eager.EagerServiceOuterClass.WaitQueueDoneRequest other) {
if (other == tensorflow.eager.EagerServiceOuterClass.WaitQueueDoneRequest.getDefaultInstance()) return this;
if (other.getContextId() != 0L) {
setContextId(other.getContextId());
}
if (!other.opId_.isEmpty()) {
if (opId_.isEmpty()) {
opId_ = other.opId_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureOpIdIsMutable();
opId_.addAll(other.opId_);
}
onChanged();
}
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 {
tensorflow.eager.EagerServiceOuterClass.WaitQueueDoneRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (org.nd4j.shade.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (tensorflow.eager.EagerServiceOuterClass.WaitQueueDoneRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private long contextId_ ;
/**
* fixed64 context_id = 1;
* @return The contextId.
*/
@java.lang.Override
public long getContextId() {
return contextId_;
}
/**
* fixed64 context_id = 1;
* @param value The contextId to set.
* @return This builder for chaining.
*/
public Builder setContextId(long value) {
contextId_ = value;
onChanged();
return this;
}
/**
* fixed64 context_id = 1;
* @return This builder for chaining.
*/
public Builder clearContextId() {
contextId_ = 0L;
onChanged();
return this;
}
private org.nd4j.shade.protobuf.Internal.LongList opId_ = emptyLongList();
private void ensureOpIdIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
opId_ = mutableCopy(opId_);
bitField0_ |= 0x00000001;
}
}
/**
*
* Ids to wait on. If empty, wait on everything currently pending.
*
*
* repeated int64 op_id = 2;
* @return A list containing the opId.
*/
public java.util.List
getOpIdList() {
return ((bitField0_ & 0x00000001) != 0) ?
java.util.Collections.unmodifiableList(opId_) : opId_;
}
/**
*
* Ids to wait on. If empty, wait on everything currently pending.
*
*
* repeated int64 op_id = 2;
* @return The count of opId.
*/
public int getOpIdCount() {
return opId_.size();
}
/**
*
* Ids to wait on. If empty, wait on everything currently pending.
*
*
* repeated int64 op_id = 2;
* @param index The index of the element to return.
* @return The opId at the given index.
*/
public long getOpId(int index) {
return opId_.getLong(index);
}
/**
*
* Ids to wait on. If empty, wait on everything currently pending.
*
*
* repeated int64 op_id = 2;
* @param index The index to set the value at.
* @param value The opId to set.
* @return This builder for chaining.
*/
public Builder setOpId(
int index, long value) {
ensureOpIdIsMutable();
opId_.setLong(index, value);
onChanged();
return this;
}
/**
*
* Ids to wait on. If empty, wait on everything currently pending.
*
*
* repeated int64 op_id = 2;
* @param value The opId to add.
* @return This builder for chaining.
*/
public Builder addOpId(long value) {
ensureOpIdIsMutable();
opId_.addLong(value);
onChanged();
return this;
}
/**
*
* Ids to wait on. If empty, wait on everything currently pending.
*
*
* repeated int64 op_id = 2;
* @param values The opId to add.
* @return This builder for chaining.
*/
public Builder addAllOpId(
java.lang.Iterable values) {
ensureOpIdIsMutable();
org.nd4j.shade.protobuf.AbstractMessageLite.Builder.addAll(
values, opId_);
onChanged();
return this;
}
/**
*
* Ids to wait on. If empty, wait on everything currently pending.
*
*
* repeated int64 op_id = 2;
* @return This builder for chaining.
*/
public Builder clearOpId() {
opId_ = emptyLongList();
bitField0_ = (bitField0_ & ~0x00000001);
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.eager.WaitQueueDoneRequest)
}
// @@protoc_insertion_point(class_scope:tensorflow.eager.WaitQueueDoneRequest)
private static final tensorflow.eager.EagerServiceOuterClass.WaitQueueDoneRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new tensorflow.eager.EagerServiceOuterClass.WaitQueueDoneRequest();
}
public static tensorflow.eager.EagerServiceOuterClass.WaitQueueDoneRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final org.nd4j.shade.protobuf.Parser
PARSER = new org.nd4j.shade.protobuf.AbstractParser() {
@java.lang.Override
public WaitQueueDoneRequest parsePartialFrom(
org.nd4j.shade.protobuf.CodedInputStream input,
org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.nd4j.shade.protobuf.InvalidProtocolBufferException {
return new WaitQueueDoneRequest(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 tensorflow.eager.EagerServiceOuterClass.WaitQueueDoneRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface WaitQueueDoneResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:tensorflow.eager.WaitQueueDoneResponse)
org.nd4j.shade.protobuf.MessageOrBuilder {
}
/**
*
* TODO(nareshmodi): Consider adding NodeExecStats here to be able to
* propagate some stats.
*
*
* Protobuf type {@code tensorflow.eager.WaitQueueDoneResponse}
*/
public static final class WaitQueueDoneResponse extends
org.nd4j.shade.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:tensorflow.eager.WaitQueueDoneResponse)
WaitQueueDoneResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use WaitQueueDoneResponse.newBuilder() to construct.
private WaitQueueDoneResponse(org.nd4j.shade.protobuf.GeneratedMessageV3.Builder builder) {
super(builder);
}
private WaitQueueDoneResponse() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new WaitQueueDoneResponse();
}
@java.lang.Override
public final org.nd4j.shade.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private WaitQueueDoneResponse(
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();
}
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;
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 {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final org.nd4j.shade.protobuf.Descriptors.Descriptor
getDescriptor() {
return tensorflow.eager.EagerServiceOuterClass.internal_static_tensorflow_eager_WaitQueueDoneResponse_descriptor;
}
@java.lang.Override
protected org.nd4j.shade.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tensorflow.eager.EagerServiceOuterClass.internal_static_tensorflow_eager_WaitQueueDoneResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tensorflow.eager.EagerServiceOuterClass.WaitQueueDoneResponse.class, tensorflow.eager.EagerServiceOuterClass.WaitQueueDoneResponse.Builder.class);
}
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 {
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
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 tensorflow.eager.EagerServiceOuterClass.WaitQueueDoneResponse)) {
return super.equals(obj);
}
tensorflow.eager.EagerServiceOuterClass.WaitQueueDoneResponse other = (tensorflow.eager.EagerServiceOuterClass.WaitQueueDoneResponse) obj;
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();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static tensorflow.eager.EagerServiceOuterClass.WaitQueueDoneResponse parseFrom(
java.nio.ByteBuffer data)
throws org.nd4j.shade.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tensorflow.eager.EagerServiceOuterClass.WaitQueueDoneResponse parseFrom(
java.nio.ByteBuffer data,
org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.nd4j.shade.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tensorflow.eager.EagerServiceOuterClass.WaitQueueDoneResponse parseFrom(
org.nd4j.shade.protobuf.ByteString data)
throws org.nd4j.shade.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tensorflow.eager.EagerServiceOuterClass.WaitQueueDoneResponse 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 tensorflow.eager.EagerServiceOuterClass.WaitQueueDoneResponse parseFrom(byte[] data)
throws org.nd4j.shade.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tensorflow.eager.EagerServiceOuterClass.WaitQueueDoneResponse parseFrom(
byte[] data,
org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.nd4j.shade.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tensorflow.eager.EagerServiceOuterClass.WaitQueueDoneResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return org.nd4j.shade.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tensorflow.eager.EagerServiceOuterClass.WaitQueueDoneResponse 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 tensorflow.eager.EagerServiceOuterClass.WaitQueueDoneResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return org.nd4j.shade.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static tensorflow.eager.EagerServiceOuterClass.WaitQueueDoneResponse 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 tensorflow.eager.EagerServiceOuterClass.WaitQueueDoneResponse parseFrom(
org.nd4j.shade.protobuf.CodedInputStream input)
throws java.io.IOException {
return org.nd4j.shade.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tensorflow.eager.EagerServiceOuterClass.WaitQueueDoneResponse 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(tensorflow.eager.EagerServiceOuterClass.WaitQueueDoneResponse 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;
}
/**
*
* TODO(nareshmodi): Consider adding NodeExecStats here to be able to
* propagate some stats.
*
*
* Protobuf type {@code tensorflow.eager.WaitQueueDoneResponse}
*/
public static final class Builder extends
org.nd4j.shade.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:tensorflow.eager.WaitQueueDoneResponse)
tensorflow.eager.EagerServiceOuterClass.WaitQueueDoneResponseOrBuilder {
public static final org.nd4j.shade.protobuf.Descriptors.Descriptor
getDescriptor() {
return tensorflow.eager.EagerServiceOuterClass.internal_static_tensorflow_eager_WaitQueueDoneResponse_descriptor;
}
@java.lang.Override
protected org.nd4j.shade.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tensorflow.eager.EagerServiceOuterClass.internal_static_tensorflow_eager_WaitQueueDoneResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tensorflow.eager.EagerServiceOuterClass.WaitQueueDoneResponse.class, tensorflow.eager.EagerServiceOuterClass.WaitQueueDoneResponse.Builder.class);
}
// Construct using tensorflow.eager.EagerServiceOuterClass.WaitQueueDoneResponse.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) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
return this;
}
@java.lang.Override
public org.nd4j.shade.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return tensorflow.eager.EagerServiceOuterClass.internal_static_tensorflow_eager_WaitQueueDoneResponse_descriptor;
}
@java.lang.Override
public tensorflow.eager.EagerServiceOuterClass.WaitQueueDoneResponse getDefaultInstanceForType() {
return tensorflow.eager.EagerServiceOuterClass.WaitQueueDoneResponse.getDefaultInstance();
}
@java.lang.Override
public tensorflow.eager.EagerServiceOuterClass.WaitQueueDoneResponse build() {
tensorflow.eager.EagerServiceOuterClass.WaitQueueDoneResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public tensorflow.eager.EagerServiceOuterClass.WaitQueueDoneResponse buildPartial() {
tensorflow.eager.EagerServiceOuterClass.WaitQueueDoneResponse result = new tensorflow.eager.EagerServiceOuterClass.WaitQueueDoneResponse(this);
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 tensorflow.eager.EagerServiceOuterClass.WaitQueueDoneResponse) {
return mergeFrom((tensorflow.eager.EagerServiceOuterClass.WaitQueueDoneResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(tensorflow.eager.EagerServiceOuterClass.WaitQueueDoneResponse other) {
if (other == tensorflow.eager.EagerServiceOuterClass.WaitQueueDoneResponse.getDefaultInstance()) return this;
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 {
tensorflow.eager.EagerServiceOuterClass.WaitQueueDoneResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (org.nd4j.shade.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (tensorflow.eager.EagerServiceOuterClass.WaitQueueDoneResponse) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
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.eager.WaitQueueDoneResponse)
}
// @@protoc_insertion_point(class_scope:tensorflow.eager.WaitQueueDoneResponse)
private static final tensorflow.eager.EagerServiceOuterClass.WaitQueueDoneResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new tensorflow.eager.EagerServiceOuterClass.WaitQueueDoneResponse();
}
public static tensorflow.eager.EagerServiceOuterClass.WaitQueueDoneResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final org.nd4j.shade.protobuf.Parser
PARSER = new org.nd4j.shade.protobuf.AbstractParser() {
@java.lang.Override
public WaitQueueDoneResponse parsePartialFrom(
org.nd4j.shade.protobuf.CodedInputStream input,
org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.nd4j.shade.protobuf.InvalidProtocolBufferException {
return new WaitQueueDoneResponse(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 tensorflow.eager.EagerServiceOuterClass.WaitQueueDoneResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface KeepAliveRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:tensorflow.eager.KeepAliveRequest)
org.nd4j.shade.protobuf.MessageOrBuilder {
/**
* fixed64 context_id = 1;
* @return The contextId.
*/
long getContextId();
}
/**
* Protobuf type {@code tensorflow.eager.KeepAliveRequest}
*/
public static final class KeepAliveRequest extends
org.nd4j.shade.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:tensorflow.eager.KeepAliveRequest)
KeepAliveRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use KeepAliveRequest.newBuilder() to construct.
private KeepAliveRequest(org.nd4j.shade.protobuf.GeneratedMessageV3.Builder builder) {
super(builder);
}
private KeepAliveRequest() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new KeepAliveRequest();
}
@java.lang.Override
public final org.nd4j.shade.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private KeepAliveRequest(
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();
}
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 9: {
contextId_ = input.readFixed64();
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 {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final org.nd4j.shade.protobuf.Descriptors.Descriptor
getDescriptor() {
return tensorflow.eager.EagerServiceOuterClass.internal_static_tensorflow_eager_KeepAliveRequest_descriptor;
}
@java.lang.Override
protected org.nd4j.shade.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tensorflow.eager.EagerServiceOuterClass.internal_static_tensorflow_eager_KeepAliveRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tensorflow.eager.EagerServiceOuterClass.KeepAliveRequest.class, tensorflow.eager.EagerServiceOuterClass.KeepAliveRequest.Builder.class);
}
public static final int CONTEXT_ID_FIELD_NUMBER = 1;
private long contextId_;
/**
* fixed64 context_id = 1;
* @return The contextId.
*/
@java.lang.Override
public long getContextId() {
return contextId_;
}
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 {
if (contextId_ != 0L) {
output.writeFixed64(1, contextId_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (contextId_ != 0L) {
size += org.nd4j.shade.protobuf.CodedOutputStream
.computeFixed64Size(1, contextId_);
}
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 tensorflow.eager.EagerServiceOuterClass.KeepAliveRequest)) {
return super.equals(obj);
}
tensorflow.eager.EagerServiceOuterClass.KeepAliveRequest other = (tensorflow.eager.EagerServiceOuterClass.KeepAliveRequest) obj;
if (getContextId()
!= other.getContextId()) 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();
hash = (37 * hash) + CONTEXT_ID_FIELD_NUMBER;
hash = (53 * hash) + org.nd4j.shade.protobuf.Internal.hashLong(
getContextId());
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static tensorflow.eager.EagerServiceOuterClass.KeepAliveRequest parseFrom(
java.nio.ByteBuffer data)
throws org.nd4j.shade.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tensorflow.eager.EagerServiceOuterClass.KeepAliveRequest parseFrom(
java.nio.ByteBuffer data,
org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.nd4j.shade.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tensorflow.eager.EagerServiceOuterClass.KeepAliveRequest parseFrom(
org.nd4j.shade.protobuf.ByteString data)
throws org.nd4j.shade.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tensorflow.eager.EagerServiceOuterClass.KeepAliveRequest 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 tensorflow.eager.EagerServiceOuterClass.KeepAliveRequest parseFrom(byte[] data)
throws org.nd4j.shade.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tensorflow.eager.EagerServiceOuterClass.KeepAliveRequest parseFrom(
byte[] data,
org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.nd4j.shade.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tensorflow.eager.EagerServiceOuterClass.KeepAliveRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return org.nd4j.shade.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tensorflow.eager.EagerServiceOuterClass.KeepAliveRequest 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 tensorflow.eager.EagerServiceOuterClass.KeepAliveRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return org.nd4j.shade.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static tensorflow.eager.EagerServiceOuterClass.KeepAliveRequest 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 tensorflow.eager.EagerServiceOuterClass.KeepAliveRequest parseFrom(
org.nd4j.shade.protobuf.CodedInputStream input)
throws java.io.IOException {
return org.nd4j.shade.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tensorflow.eager.EagerServiceOuterClass.KeepAliveRequest 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(tensorflow.eager.EagerServiceOuterClass.KeepAliveRequest 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.eager.KeepAliveRequest}
*/
public static final class Builder extends
org.nd4j.shade.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:tensorflow.eager.KeepAliveRequest)
tensorflow.eager.EagerServiceOuterClass.KeepAliveRequestOrBuilder {
public static final org.nd4j.shade.protobuf.Descriptors.Descriptor
getDescriptor() {
return tensorflow.eager.EagerServiceOuterClass.internal_static_tensorflow_eager_KeepAliveRequest_descriptor;
}
@java.lang.Override
protected org.nd4j.shade.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tensorflow.eager.EagerServiceOuterClass.internal_static_tensorflow_eager_KeepAliveRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tensorflow.eager.EagerServiceOuterClass.KeepAliveRequest.class, tensorflow.eager.EagerServiceOuterClass.KeepAliveRequest.Builder.class);
}
// Construct using tensorflow.eager.EagerServiceOuterClass.KeepAliveRequest.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) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
contextId_ = 0L;
return this;
}
@java.lang.Override
public org.nd4j.shade.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return tensorflow.eager.EagerServiceOuterClass.internal_static_tensorflow_eager_KeepAliveRequest_descriptor;
}
@java.lang.Override
public tensorflow.eager.EagerServiceOuterClass.KeepAliveRequest getDefaultInstanceForType() {
return tensorflow.eager.EagerServiceOuterClass.KeepAliveRequest.getDefaultInstance();
}
@java.lang.Override
public tensorflow.eager.EagerServiceOuterClass.KeepAliveRequest build() {
tensorflow.eager.EagerServiceOuterClass.KeepAliveRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public tensorflow.eager.EagerServiceOuterClass.KeepAliveRequest buildPartial() {
tensorflow.eager.EagerServiceOuterClass.KeepAliveRequest result = new tensorflow.eager.EagerServiceOuterClass.KeepAliveRequest(this);
result.contextId_ = contextId_;
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 tensorflow.eager.EagerServiceOuterClass.KeepAliveRequest) {
return mergeFrom((tensorflow.eager.EagerServiceOuterClass.KeepAliveRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(tensorflow.eager.EagerServiceOuterClass.KeepAliveRequest other) {
if (other == tensorflow.eager.EagerServiceOuterClass.KeepAliveRequest.getDefaultInstance()) return this;
if (other.getContextId() != 0L) {
setContextId(other.getContextId());
}
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 {
tensorflow.eager.EagerServiceOuterClass.KeepAliveRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (org.nd4j.shade.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (tensorflow.eager.EagerServiceOuterClass.KeepAliveRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private long contextId_ ;
/**
* fixed64 context_id = 1;
* @return The contextId.
*/
@java.lang.Override
public long getContextId() {
return contextId_;
}
/**
* fixed64 context_id = 1;
* @param value The contextId to set.
* @return This builder for chaining.
*/
public Builder setContextId(long value) {
contextId_ = value;
onChanged();
return this;
}
/**
* fixed64 context_id = 1;
* @return This builder for chaining.
*/
public Builder clearContextId() {
contextId_ = 0L;
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.eager.KeepAliveRequest)
}
// @@protoc_insertion_point(class_scope:tensorflow.eager.KeepAliveRequest)
private static final tensorflow.eager.EagerServiceOuterClass.KeepAliveRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new tensorflow.eager.EagerServiceOuterClass.KeepAliveRequest();
}
public static tensorflow.eager.EagerServiceOuterClass.KeepAliveRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final org.nd4j.shade.protobuf.Parser
PARSER = new org.nd4j.shade.protobuf.AbstractParser() {
@java.lang.Override
public KeepAliveRequest parsePartialFrom(
org.nd4j.shade.protobuf.CodedInputStream input,
org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.nd4j.shade.protobuf.InvalidProtocolBufferException {
return new KeepAliveRequest(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 tensorflow.eager.EagerServiceOuterClass.KeepAliveRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface KeepAliveResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:tensorflow.eager.KeepAliveResponse)
org.nd4j.shade.protobuf.MessageOrBuilder {
}
/**
* Protobuf type {@code tensorflow.eager.KeepAliveResponse}
*/
public static final class KeepAliveResponse extends
org.nd4j.shade.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:tensorflow.eager.KeepAliveResponse)
KeepAliveResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use KeepAliveResponse.newBuilder() to construct.
private KeepAliveResponse(org.nd4j.shade.protobuf.GeneratedMessageV3.Builder builder) {
super(builder);
}
private KeepAliveResponse() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new KeepAliveResponse();
}
@java.lang.Override
public final org.nd4j.shade.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private KeepAliveResponse(
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();
}
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;
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 {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final org.nd4j.shade.protobuf.Descriptors.Descriptor
getDescriptor() {
return tensorflow.eager.EagerServiceOuterClass.internal_static_tensorflow_eager_KeepAliveResponse_descriptor;
}
@java.lang.Override
protected org.nd4j.shade.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tensorflow.eager.EagerServiceOuterClass.internal_static_tensorflow_eager_KeepAliveResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tensorflow.eager.EagerServiceOuterClass.KeepAliveResponse.class, tensorflow.eager.EagerServiceOuterClass.KeepAliveResponse.Builder.class);
}
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 {
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
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 tensorflow.eager.EagerServiceOuterClass.KeepAliveResponse)) {
return super.equals(obj);
}
tensorflow.eager.EagerServiceOuterClass.KeepAliveResponse other = (tensorflow.eager.EagerServiceOuterClass.KeepAliveResponse) obj;
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();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static tensorflow.eager.EagerServiceOuterClass.KeepAliveResponse parseFrom(
java.nio.ByteBuffer data)
throws org.nd4j.shade.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tensorflow.eager.EagerServiceOuterClass.KeepAliveResponse parseFrom(
java.nio.ByteBuffer data,
org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.nd4j.shade.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tensorflow.eager.EagerServiceOuterClass.KeepAliveResponse parseFrom(
org.nd4j.shade.protobuf.ByteString data)
throws org.nd4j.shade.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tensorflow.eager.EagerServiceOuterClass.KeepAliveResponse 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 tensorflow.eager.EagerServiceOuterClass.KeepAliveResponse parseFrom(byte[] data)
throws org.nd4j.shade.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tensorflow.eager.EagerServiceOuterClass.KeepAliveResponse parseFrom(
byte[] data,
org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.nd4j.shade.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tensorflow.eager.EagerServiceOuterClass.KeepAliveResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return org.nd4j.shade.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tensorflow.eager.EagerServiceOuterClass.KeepAliveResponse 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 tensorflow.eager.EagerServiceOuterClass.KeepAliveResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return org.nd4j.shade.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static tensorflow.eager.EagerServiceOuterClass.KeepAliveResponse 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 tensorflow.eager.EagerServiceOuterClass.KeepAliveResponse parseFrom(
org.nd4j.shade.protobuf.CodedInputStream input)
throws java.io.IOException {
return org.nd4j.shade.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tensorflow.eager.EagerServiceOuterClass.KeepAliveResponse 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(tensorflow.eager.EagerServiceOuterClass.KeepAliveResponse 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.eager.KeepAliveResponse}
*/
public static final class Builder extends
org.nd4j.shade.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:tensorflow.eager.KeepAliveResponse)
tensorflow.eager.EagerServiceOuterClass.KeepAliveResponseOrBuilder {
public static final org.nd4j.shade.protobuf.Descriptors.Descriptor
getDescriptor() {
return tensorflow.eager.EagerServiceOuterClass.internal_static_tensorflow_eager_KeepAliveResponse_descriptor;
}
@java.lang.Override
protected org.nd4j.shade.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tensorflow.eager.EagerServiceOuterClass.internal_static_tensorflow_eager_KeepAliveResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tensorflow.eager.EagerServiceOuterClass.KeepAliveResponse.class, tensorflow.eager.EagerServiceOuterClass.KeepAliveResponse.Builder.class);
}
// Construct using tensorflow.eager.EagerServiceOuterClass.KeepAliveResponse.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) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
return this;
}
@java.lang.Override
public org.nd4j.shade.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return tensorflow.eager.EagerServiceOuterClass.internal_static_tensorflow_eager_KeepAliveResponse_descriptor;
}
@java.lang.Override
public tensorflow.eager.EagerServiceOuterClass.KeepAliveResponse getDefaultInstanceForType() {
return tensorflow.eager.EagerServiceOuterClass.KeepAliveResponse.getDefaultInstance();
}
@java.lang.Override
public tensorflow.eager.EagerServiceOuterClass.KeepAliveResponse build() {
tensorflow.eager.EagerServiceOuterClass.KeepAliveResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public tensorflow.eager.EagerServiceOuterClass.KeepAliveResponse buildPartial() {
tensorflow.eager.EagerServiceOuterClass.KeepAliveResponse result = new tensorflow.eager.EagerServiceOuterClass.KeepAliveResponse(this);
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 tensorflow.eager.EagerServiceOuterClass.KeepAliveResponse) {
return mergeFrom((tensorflow.eager.EagerServiceOuterClass.KeepAliveResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(tensorflow.eager.EagerServiceOuterClass.KeepAliveResponse other) {
if (other == tensorflow.eager.EagerServiceOuterClass.KeepAliveResponse.getDefaultInstance()) return this;
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 {
tensorflow.eager.EagerServiceOuterClass.KeepAliveResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (org.nd4j.shade.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (tensorflow.eager.EagerServiceOuterClass.KeepAliveResponse) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
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.eager.KeepAliveResponse)
}
// @@protoc_insertion_point(class_scope:tensorflow.eager.KeepAliveResponse)
private static final tensorflow.eager.EagerServiceOuterClass.KeepAliveResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new tensorflow.eager.EagerServiceOuterClass.KeepAliveResponse();
}
public static tensorflow.eager.EagerServiceOuterClass.KeepAliveResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final org.nd4j.shade.protobuf.Parser
PARSER = new org.nd4j.shade.protobuf.AbstractParser() {
@java.lang.Override
public KeepAliveResponse parsePartialFrom(
org.nd4j.shade.protobuf.CodedInputStream input,
org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.nd4j.shade.protobuf.InvalidProtocolBufferException {
return new KeepAliveResponse(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 tensorflow.eager.EagerServiceOuterClass.KeepAliveResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface CloseContextRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:tensorflow.eager.CloseContextRequest)
org.nd4j.shade.protobuf.MessageOrBuilder {
/**
* fixed64 context_id = 1;
* @return The contextId.
*/
long getContextId();
}
/**
* Protobuf type {@code tensorflow.eager.CloseContextRequest}
*/
public static final class CloseContextRequest extends
org.nd4j.shade.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:tensorflow.eager.CloseContextRequest)
CloseContextRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use CloseContextRequest.newBuilder() to construct.
private CloseContextRequest(org.nd4j.shade.protobuf.GeneratedMessageV3.Builder builder) {
super(builder);
}
private CloseContextRequest() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new CloseContextRequest();
}
@java.lang.Override
public final org.nd4j.shade.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private CloseContextRequest(
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();
}
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 9: {
contextId_ = input.readFixed64();
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 {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final org.nd4j.shade.protobuf.Descriptors.Descriptor
getDescriptor() {
return tensorflow.eager.EagerServiceOuterClass.internal_static_tensorflow_eager_CloseContextRequest_descriptor;
}
@java.lang.Override
protected org.nd4j.shade.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tensorflow.eager.EagerServiceOuterClass.internal_static_tensorflow_eager_CloseContextRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tensorflow.eager.EagerServiceOuterClass.CloseContextRequest.class, tensorflow.eager.EagerServiceOuterClass.CloseContextRequest.Builder.class);
}
public static final int CONTEXT_ID_FIELD_NUMBER = 1;
private long contextId_;
/**
* fixed64 context_id = 1;
* @return The contextId.
*/
@java.lang.Override
public long getContextId() {
return contextId_;
}
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 {
if (contextId_ != 0L) {
output.writeFixed64(1, contextId_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (contextId_ != 0L) {
size += org.nd4j.shade.protobuf.CodedOutputStream
.computeFixed64Size(1, contextId_);
}
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 tensorflow.eager.EagerServiceOuterClass.CloseContextRequest)) {
return super.equals(obj);
}
tensorflow.eager.EagerServiceOuterClass.CloseContextRequest other = (tensorflow.eager.EagerServiceOuterClass.CloseContextRequest) obj;
if (getContextId()
!= other.getContextId()) 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();
hash = (37 * hash) + CONTEXT_ID_FIELD_NUMBER;
hash = (53 * hash) + org.nd4j.shade.protobuf.Internal.hashLong(
getContextId());
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static tensorflow.eager.EagerServiceOuterClass.CloseContextRequest parseFrom(
java.nio.ByteBuffer data)
throws org.nd4j.shade.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tensorflow.eager.EagerServiceOuterClass.CloseContextRequest parseFrom(
java.nio.ByteBuffer data,
org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.nd4j.shade.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tensorflow.eager.EagerServiceOuterClass.CloseContextRequest parseFrom(
org.nd4j.shade.protobuf.ByteString data)
throws org.nd4j.shade.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tensorflow.eager.EagerServiceOuterClass.CloseContextRequest 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 tensorflow.eager.EagerServiceOuterClass.CloseContextRequest parseFrom(byte[] data)
throws org.nd4j.shade.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tensorflow.eager.EagerServiceOuterClass.CloseContextRequest parseFrom(
byte[] data,
org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.nd4j.shade.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tensorflow.eager.EagerServiceOuterClass.CloseContextRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return org.nd4j.shade.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tensorflow.eager.EagerServiceOuterClass.CloseContextRequest 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 tensorflow.eager.EagerServiceOuterClass.CloseContextRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return org.nd4j.shade.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static tensorflow.eager.EagerServiceOuterClass.CloseContextRequest 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 tensorflow.eager.EagerServiceOuterClass.CloseContextRequest parseFrom(
org.nd4j.shade.protobuf.CodedInputStream input)
throws java.io.IOException {
return org.nd4j.shade.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tensorflow.eager.EagerServiceOuterClass.CloseContextRequest 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(tensorflow.eager.EagerServiceOuterClass.CloseContextRequest 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.eager.CloseContextRequest}
*/
public static final class Builder extends
org.nd4j.shade.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:tensorflow.eager.CloseContextRequest)
tensorflow.eager.EagerServiceOuterClass.CloseContextRequestOrBuilder {
public static final org.nd4j.shade.protobuf.Descriptors.Descriptor
getDescriptor() {
return tensorflow.eager.EagerServiceOuterClass.internal_static_tensorflow_eager_CloseContextRequest_descriptor;
}
@java.lang.Override
protected org.nd4j.shade.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tensorflow.eager.EagerServiceOuterClass.internal_static_tensorflow_eager_CloseContextRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tensorflow.eager.EagerServiceOuterClass.CloseContextRequest.class, tensorflow.eager.EagerServiceOuterClass.CloseContextRequest.Builder.class);
}
// Construct using tensorflow.eager.EagerServiceOuterClass.CloseContextRequest.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) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
contextId_ = 0L;
return this;
}
@java.lang.Override
public org.nd4j.shade.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return tensorflow.eager.EagerServiceOuterClass.internal_static_tensorflow_eager_CloseContextRequest_descriptor;
}
@java.lang.Override
public tensorflow.eager.EagerServiceOuterClass.CloseContextRequest getDefaultInstanceForType() {
return tensorflow.eager.EagerServiceOuterClass.CloseContextRequest.getDefaultInstance();
}
@java.lang.Override
public tensorflow.eager.EagerServiceOuterClass.CloseContextRequest build() {
tensorflow.eager.EagerServiceOuterClass.CloseContextRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public tensorflow.eager.EagerServiceOuterClass.CloseContextRequest buildPartial() {
tensorflow.eager.EagerServiceOuterClass.CloseContextRequest result = new tensorflow.eager.EagerServiceOuterClass.CloseContextRequest(this);
result.contextId_ = contextId_;
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 tensorflow.eager.EagerServiceOuterClass.CloseContextRequest) {
return mergeFrom((tensorflow.eager.EagerServiceOuterClass.CloseContextRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(tensorflow.eager.EagerServiceOuterClass.CloseContextRequest other) {
if (other == tensorflow.eager.EagerServiceOuterClass.CloseContextRequest.getDefaultInstance()) return this;
if (other.getContextId() != 0L) {
setContextId(other.getContextId());
}
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 {
tensorflow.eager.EagerServiceOuterClass.CloseContextRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (org.nd4j.shade.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (tensorflow.eager.EagerServiceOuterClass.CloseContextRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private long contextId_ ;
/**
* fixed64 context_id = 1;
* @return The contextId.
*/
@java.lang.Override
public long getContextId() {
return contextId_;
}
/**
* fixed64 context_id = 1;
* @param value The contextId to set.
* @return This builder for chaining.
*/
public Builder setContextId(long value) {
contextId_ = value;
onChanged();
return this;
}
/**
* fixed64 context_id = 1;
* @return This builder for chaining.
*/
public Builder clearContextId() {
contextId_ = 0L;
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.eager.CloseContextRequest)
}
// @@protoc_insertion_point(class_scope:tensorflow.eager.CloseContextRequest)
private static final tensorflow.eager.EagerServiceOuterClass.CloseContextRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new tensorflow.eager.EagerServiceOuterClass.CloseContextRequest();
}
public static tensorflow.eager.EagerServiceOuterClass.CloseContextRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final org.nd4j.shade.protobuf.Parser
PARSER = new org.nd4j.shade.protobuf.AbstractParser() {
@java.lang.Override
public CloseContextRequest parsePartialFrom(
org.nd4j.shade.protobuf.CodedInputStream input,
org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.nd4j.shade.protobuf.InvalidProtocolBufferException {
return new CloseContextRequest(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 tensorflow.eager.EagerServiceOuterClass.CloseContextRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface CloseContextResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:tensorflow.eager.CloseContextResponse)
org.nd4j.shade.protobuf.MessageOrBuilder {
}
/**
* Protobuf type {@code tensorflow.eager.CloseContextResponse}
*/
public static final class CloseContextResponse extends
org.nd4j.shade.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:tensorflow.eager.CloseContextResponse)
CloseContextResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use CloseContextResponse.newBuilder() to construct.
private CloseContextResponse(org.nd4j.shade.protobuf.GeneratedMessageV3.Builder builder) {
super(builder);
}
private CloseContextResponse() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new CloseContextResponse();
}
@java.lang.Override
public final org.nd4j.shade.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private CloseContextResponse(
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();
}
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;
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 {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final org.nd4j.shade.protobuf.Descriptors.Descriptor
getDescriptor() {
return tensorflow.eager.EagerServiceOuterClass.internal_static_tensorflow_eager_CloseContextResponse_descriptor;
}
@java.lang.Override
protected org.nd4j.shade.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tensorflow.eager.EagerServiceOuterClass.internal_static_tensorflow_eager_CloseContextResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tensorflow.eager.EagerServiceOuterClass.CloseContextResponse.class, tensorflow.eager.EagerServiceOuterClass.CloseContextResponse.Builder.class);
}
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 {
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
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 tensorflow.eager.EagerServiceOuterClass.CloseContextResponse)) {
return super.equals(obj);
}
tensorflow.eager.EagerServiceOuterClass.CloseContextResponse other = (tensorflow.eager.EagerServiceOuterClass.CloseContextResponse) obj;
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();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static tensorflow.eager.EagerServiceOuterClass.CloseContextResponse parseFrom(
java.nio.ByteBuffer data)
throws org.nd4j.shade.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tensorflow.eager.EagerServiceOuterClass.CloseContextResponse parseFrom(
java.nio.ByteBuffer data,
org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.nd4j.shade.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tensorflow.eager.EagerServiceOuterClass.CloseContextResponse parseFrom(
org.nd4j.shade.protobuf.ByteString data)
throws org.nd4j.shade.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tensorflow.eager.EagerServiceOuterClass.CloseContextResponse 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 tensorflow.eager.EagerServiceOuterClass.CloseContextResponse parseFrom(byte[] data)
throws org.nd4j.shade.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tensorflow.eager.EagerServiceOuterClass.CloseContextResponse parseFrom(
byte[] data,
org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.nd4j.shade.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tensorflow.eager.EagerServiceOuterClass.CloseContextResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return org.nd4j.shade.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tensorflow.eager.EagerServiceOuterClass.CloseContextResponse 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 tensorflow.eager.EagerServiceOuterClass.CloseContextResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return org.nd4j.shade.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static tensorflow.eager.EagerServiceOuterClass.CloseContextResponse 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 tensorflow.eager.EagerServiceOuterClass.CloseContextResponse parseFrom(
org.nd4j.shade.protobuf.CodedInputStream input)
throws java.io.IOException {
return org.nd4j.shade.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tensorflow.eager.EagerServiceOuterClass.CloseContextResponse 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(tensorflow.eager.EagerServiceOuterClass.CloseContextResponse 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.eager.CloseContextResponse}
*/
public static final class Builder extends
org.nd4j.shade.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:tensorflow.eager.CloseContextResponse)
tensorflow.eager.EagerServiceOuterClass.CloseContextResponseOrBuilder {
public static final org.nd4j.shade.protobuf.Descriptors.Descriptor
getDescriptor() {
return tensorflow.eager.EagerServiceOuterClass.internal_static_tensorflow_eager_CloseContextResponse_descriptor;
}
@java.lang.Override
protected org.nd4j.shade.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tensorflow.eager.EagerServiceOuterClass.internal_static_tensorflow_eager_CloseContextResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tensorflow.eager.EagerServiceOuterClass.CloseContextResponse.class, tensorflow.eager.EagerServiceOuterClass.CloseContextResponse.Builder.class);
}
// Construct using tensorflow.eager.EagerServiceOuterClass.CloseContextResponse.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) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
return this;
}
@java.lang.Override
public org.nd4j.shade.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return tensorflow.eager.EagerServiceOuterClass.internal_static_tensorflow_eager_CloseContextResponse_descriptor;
}
@java.lang.Override
public tensorflow.eager.EagerServiceOuterClass.CloseContextResponse getDefaultInstanceForType() {
return tensorflow.eager.EagerServiceOuterClass.CloseContextResponse.getDefaultInstance();
}
@java.lang.Override
public tensorflow.eager.EagerServiceOuterClass.CloseContextResponse build() {
tensorflow.eager.EagerServiceOuterClass.CloseContextResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public tensorflow.eager.EagerServiceOuterClass.CloseContextResponse buildPartial() {
tensorflow.eager.EagerServiceOuterClass.CloseContextResponse result = new tensorflow.eager.EagerServiceOuterClass.CloseContextResponse(this);
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 tensorflow.eager.EagerServiceOuterClass.CloseContextResponse) {
return mergeFrom((tensorflow.eager.EagerServiceOuterClass.CloseContextResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(tensorflow.eager.EagerServiceOuterClass.CloseContextResponse other) {
if (other == tensorflow.eager.EagerServiceOuterClass.CloseContextResponse.getDefaultInstance()) return this;
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 {
tensorflow.eager.EagerServiceOuterClass.CloseContextResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (org.nd4j.shade.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (tensorflow.eager.EagerServiceOuterClass.CloseContextResponse) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
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.eager.CloseContextResponse)
}
// @@protoc_insertion_point(class_scope:tensorflow.eager.CloseContextResponse)
private static final tensorflow.eager.EagerServiceOuterClass.CloseContextResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new tensorflow.eager.EagerServiceOuterClass.CloseContextResponse();
}
public static tensorflow.eager.EagerServiceOuterClass.CloseContextResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final org.nd4j.shade.protobuf.Parser
PARSER = new org.nd4j.shade.protobuf.AbstractParser() {
@java.lang.Override
public CloseContextResponse parsePartialFrom(
org.nd4j.shade.protobuf.CodedInputStream input,
org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.nd4j.shade.protobuf.InvalidProtocolBufferException {
return new CloseContextResponse(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 tensorflow.eager.EagerServiceOuterClass.CloseContextResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface RegisterFunctionRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:tensorflow.eager.RegisterFunctionRequest)
org.nd4j.shade.protobuf.MessageOrBuilder {
/**
* fixed64 context_id = 1;
* @return The contextId.
*/
long getContextId();
/**
* .tensorflow.FunctionDef function_def = 2;
* @return Whether the functionDef field is set.
*/
boolean hasFunctionDef();
/**
* .tensorflow.FunctionDef function_def = 2;
* @return The functionDef.
*/
org.tensorflow.framework.FunctionDef getFunctionDef();
/**
* .tensorflow.FunctionDef function_def = 2;
*/
org.tensorflow.framework.FunctionDefOrBuilder getFunctionDefOrBuilder();
}
/**
* Protobuf type {@code tensorflow.eager.RegisterFunctionRequest}
*/
public static final class RegisterFunctionRequest extends
org.nd4j.shade.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:tensorflow.eager.RegisterFunctionRequest)
RegisterFunctionRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use RegisterFunctionRequest.newBuilder() to construct.
private RegisterFunctionRequest(org.nd4j.shade.protobuf.GeneratedMessageV3.Builder builder) {
super(builder);
}
private RegisterFunctionRequest() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new RegisterFunctionRequest();
}
@java.lang.Override
public final org.nd4j.shade.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private RegisterFunctionRequest(
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();
}
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 9: {
contextId_ = input.readFixed64();
break;
}
case 18: {
org.tensorflow.framework.FunctionDef.Builder subBuilder = null;
if (functionDef_ != null) {
subBuilder = functionDef_.toBuilder();
}
functionDef_ = input.readMessage(org.tensorflow.framework.FunctionDef.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(functionDef_);
functionDef_ = 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 {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final org.nd4j.shade.protobuf.Descriptors.Descriptor
getDescriptor() {
return tensorflow.eager.EagerServiceOuterClass.internal_static_tensorflow_eager_RegisterFunctionRequest_descriptor;
}
@java.lang.Override
protected org.nd4j.shade.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tensorflow.eager.EagerServiceOuterClass.internal_static_tensorflow_eager_RegisterFunctionRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tensorflow.eager.EagerServiceOuterClass.RegisterFunctionRequest.class, tensorflow.eager.EagerServiceOuterClass.RegisterFunctionRequest.Builder.class);
}
public static final int CONTEXT_ID_FIELD_NUMBER = 1;
private long contextId_;
/**
* fixed64 context_id = 1;
* @return The contextId.
*/
@java.lang.Override
public long getContextId() {
return contextId_;
}
public static final int FUNCTION_DEF_FIELD_NUMBER = 2;
private org.tensorflow.framework.FunctionDef functionDef_;
/**
* .tensorflow.FunctionDef function_def = 2;
* @return Whether the functionDef field is set.
*/
@java.lang.Override
public boolean hasFunctionDef() {
return functionDef_ != null;
}
/**
* .tensorflow.FunctionDef function_def = 2;
* @return The functionDef.
*/
@java.lang.Override
public org.tensorflow.framework.FunctionDef getFunctionDef() {
return functionDef_ == null ? org.tensorflow.framework.FunctionDef.getDefaultInstance() : functionDef_;
}
/**
* .tensorflow.FunctionDef function_def = 2;
*/
@java.lang.Override
public org.tensorflow.framework.FunctionDefOrBuilder getFunctionDefOrBuilder() {
return getFunctionDef();
}
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 {
if (contextId_ != 0L) {
output.writeFixed64(1, contextId_);
}
if (functionDef_ != null) {
output.writeMessage(2, getFunctionDef());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (contextId_ != 0L) {
size += org.nd4j.shade.protobuf.CodedOutputStream
.computeFixed64Size(1, contextId_);
}
if (functionDef_ != null) {
size += org.nd4j.shade.protobuf.CodedOutputStream
.computeMessageSize(2, getFunctionDef());
}
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 tensorflow.eager.EagerServiceOuterClass.RegisterFunctionRequest)) {
return super.equals(obj);
}
tensorflow.eager.EagerServiceOuterClass.RegisterFunctionRequest other = (tensorflow.eager.EagerServiceOuterClass.RegisterFunctionRequest) obj;
if (getContextId()
!= other.getContextId()) return false;
if (hasFunctionDef() != other.hasFunctionDef()) return false;
if (hasFunctionDef()) {
if (!getFunctionDef()
.equals(other.getFunctionDef())) 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();
hash = (37 * hash) + CONTEXT_ID_FIELD_NUMBER;
hash = (53 * hash) + org.nd4j.shade.protobuf.Internal.hashLong(
getContextId());
if (hasFunctionDef()) {
hash = (37 * hash) + FUNCTION_DEF_FIELD_NUMBER;
hash = (53 * hash) + getFunctionDef().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static tensorflow.eager.EagerServiceOuterClass.RegisterFunctionRequest parseFrom(
java.nio.ByteBuffer data)
throws org.nd4j.shade.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tensorflow.eager.EagerServiceOuterClass.RegisterFunctionRequest parseFrom(
java.nio.ByteBuffer data,
org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.nd4j.shade.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tensorflow.eager.EagerServiceOuterClass.RegisterFunctionRequest parseFrom(
org.nd4j.shade.protobuf.ByteString data)
throws org.nd4j.shade.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tensorflow.eager.EagerServiceOuterClass.RegisterFunctionRequest 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 tensorflow.eager.EagerServiceOuterClass.RegisterFunctionRequest parseFrom(byte[] data)
throws org.nd4j.shade.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tensorflow.eager.EagerServiceOuterClass.RegisterFunctionRequest parseFrom(
byte[] data,
org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.nd4j.shade.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tensorflow.eager.EagerServiceOuterClass.RegisterFunctionRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return org.nd4j.shade.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tensorflow.eager.EagerServiceOuterClass.RegisterFunctionRequest 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 tensorflow.eager.EagerServiceOuterClass.RegisterFunctionRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return org.nd4j.shade.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static tensorflow.eager.EagerServiceOuterClass.RegisterFunctionRequest 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 tensorflow.eager.EagerServiceOuterClass.RegisterFunctionRequest parseFrom(
org.nd4j.shade.protobuf.CodedInputStream input)
throws java.io.IOException {
return org.nd4j.shade.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tensorflow.eager.EagerServiceOuterClass.RegisterFunctionRequest 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(tensorflow.eager.EagerServiceOuterClass.RegisterFunctionRequest 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.eager.RegisterFunctionRequest}
*/
public static final class Builder extends
org.nd4j.shade.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:tensorflow.eager.RegisterFunctionRequest)
tensorflow.eager.EagerServiceOuterClass.RegisterFunctionRequestOrBuilder {
public static final org.nd4j.shade.protobuf.Descriptors.Descriptor
getDescriptor() {
return tensorflow.eager.EagerServiceOuterClass.internal_static_tensorflow_eager_RegisterFunctionRequest_descriptor;
}
@java.lang.Override
protected org.nd4j.shade.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tensorflow.eager.EagerServiceOuterClass.internal_static_tensorflow_eager_RegisterFunctionRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tensorflow.eager.EagerServiceOuterClass.RegisterFunctionRequest.class, tensorflow.eager.EagerServiceOuterClass.RegisterFunctionRequest.Builder.class);
}
// Construct using tensorflow.eager.EagerServiceOuterClass.RegisterFunctionRequest.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) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
contextId_ = 0L;
if (functionDefBuilder_ == null) {
functionDef_ = null;
} else {
functionDef_ = null;
functionDefBuilder_ = null;
}
return this;
}
@java.lang.Override
public org.nd4j.shade.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return tensorflow.eager.EagerServiceOuterClass.internal_static_tensorflow_eager_RegisterFunctionRequest_descriptor;
}
@java.lang.Override
public tensorflow.eager.EagerServiceOuterClass.RegisterFunctionRequest getDefaultInstanceForType() {
return tensorflow.eager.EagerServiceOuterClass.RegisterFunctionRequest.getDefaultInstance();
}
@java.lang.Override
public tensorflow.eager.EagerServiceOuterClass.RegisterFunctionRequest build() {
tensorflow.eager.EagerServiceOuterClass.RegisterFunctionRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public tensorflow.eager.EagerServiceOuterClass.RegisterFunctionRequest buildPartial() {
tensorflow.eager.EagerServiceOuterClass.RegisterFunctionRequest result = new tensorflow.eager.EagerServiceOuterClass.RegisterFunctionRequest(this);
result.contextId_ = contextId_;
if (functionDefBuilder_ == null) {
result.functionDef_ = functionDef_;
} else {
result.functionDef_ = functionDefBuilder_.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 tensorflow.eager.EagerServiceOuterClass.RegisterFunctionRequest) {
return mergeFrom((tensorflow.eager.EagerServiceOuterClass.RegisterFunctionRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(tensorflow.eager.EagerServiceOuterClass.RegisterFunctionRequest other) {
if (other == tensorflow.eager.EagerServiceOuterClass.RegisterFunctionRequest.getDefaultInstance()) return this;
if (other.getContextId() != 0L) {
setContextId(other.getContextId());
}
if (other.hasFunctionDef()) {
mergeFunctionDef(other.getFunctionDef());
}
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 {
tensorflow.eager.EagerServiceOuterClass.RegisterFunctionRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (org.nd4j.shade.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (tensorflow.eager.EagerServiceOuterClass.RegisterFunctionRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private long contextId_ ;
/**
* fixed64 context_id = 1;
* @return The contextId.
*/
@java.lang.Override
public long getContextId() {
return contextId_;
}
/**
* fixed64 context_id = 1;
* @param value The contextId to set.
* @return This builder for chaining.
*/
public Builder setContextId(long value) {
contextId_ = value;
onChanged();
return this;
}
/**
* fixed64 context_id = 1;
* @return This builder for chaining.
*/
public Builder clearContextId() {
contextId_ = 0L;
onChanged();
return this;
}
private org.tensorflow.framework.FunctionDef functionDef_;
private org.nd4j.shade.protobuf.SingleFieldBuilderV3<
org.tensorflow.framework.FunctionDef, org.tensorflow.framework.FunctionDef.Builder, org.tensorflow.framework.FunctionDefOrBuilder> functionDefBuilder_;
/**
* .tensorflow.FunctionDef function_def = 2;
* @return Whether the functionDef field is set.
*/
public boolean hasFunctionDef() {
return functionDefBuilder_ != null || functionDef_ != null;
}
/**
* .tensorflow.FunctionDef function_def = 2;
* @return The functionDef.
*/
public org.tensorflow.framework.FunctionDef getFunctionDef() {
if (functionDefBuilder_ == null) {
return functionDef_ == null ? org.tensorflow.framework.FunctionDef.getDefaultInstance() : functionDef_;
} else {
return functionDefBuilder_.getMessage();
}
}
/**
* .tensorflow.FunctionDef function_def = 2;
*/
public Builder setFunctionDef(org.tensorflow.framework.FunctionDef value) {
if (functionDefBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
functionDef_ = value;
onChanged();
} else {
functionDefBuilder_.setMessage(value);
}
return this;
}
/**
* .tensorflow.FunctionDef function_def = 2;
*/
public Builder setFunctionDef(
org.tensorflow.framework.FunctionDef.Builder builderForValue) {
if (functionDefBuilder_ == null) {
functionDef_ = builderForValue.build();
onChanged();
} else {
functionDefBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .tensorflow.FunctionDef function_def = 2;
*/
public Builder mergeFunctionDef(org.tensorflow.framework.FunctionDef value) {
if (functionDefBuilder_ == null) {
if (functionDef_ != null) {
functionDef_ =
org.tensorflow.framework.FunctionDef.newBuilder(functionDef_).mergeFrom(value).buildPartial();
} else {
functionDef_ = value;
}
onChanged();
} else {
functionDefBuilder_.mergeFrom(value);
}
return this;
}
/**
* .tensorflow.FunctionDef function_def = 2;
*/
public Builder clearFunctionDef() {
if (functionDefBuilder_ == null) {
functionDef_ = null;
onChanged();
} else {
functionDef_ = null;
functionDefBuilder_ = null;
}
return this;
}
/**
* .tensorflow.FunctionDef function_def = 2;
*/
public org.tensorflow.framework.FunctionDef.Builder getFunctionDefBuilder() {
onChanged();
return getFunctionDefFieldBuilder().getBuilder();
}
/**
* .tensorflow.FunctionDef function_def = 2;
*/
public org.tensorflow.framework.FunctionDefOrBuilder getFunctionDefOrBuilder() {
if (functionDefBuilder_ != null) {
return functionDefBuilder_.getMessageOrBuilder();
} else {
return functionDef_ == null ?
org.tensorflow.framework.FunctionDef.getDefaultInstance() : functionDef_;
}
}
/**
* .tensorflow.FunctionDef function_def = 2;
*/
private org.nd4j.shade.protobuf.SingleFieldBuilderV3<
org.tensorflow.framework.FunctionDef, org.tensorflow.framework.FunctionDef.Builder, org.tensorflow.framework.FunctionDefOrBuilder>
getFunctionDefFieldBuilder() {
if (functionDefBuilder_ == null) {
functionDefBuilder_ = new org.nd4j.shade.protobuf.SingleFieldBuilderV3<
org.tensorflow.framework.FunctionDef, org.tensorflow.framework.FunctionDef.Builder, org.tensorflow.framework.FunctionDefOrBuilder>(
getFunctionDef(),
getParentForChildren(),
isClean());
functionDef_ = null;
}
return functionDefBuilder_;
}
@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.eager.RegisterFunctionRequest)
}
// @@protoc_insertion_point(class_scope:tensorflow.eager.RegisterFunctionRequest)
private static final tensorflow.eager.EagerServiceOuterClass.RegisterFunctionRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new tensorflow.eager.EagerServiceOuterClass.RegisterFunctionRequest();
}
public static tensorflow.eager.EagerServiceOuterClass.RegisterFunctionRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final org.nd4j.shade.protobuf.Parser
PARSER = new org.nd4j.shade.protobuf.AbstractParser() {
@java.lang.Override
public RegisterFunctionRequest parsePartialFrom(
org.nd4j.shade.protobuf.CodedInputStream input,
org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.nd4j.shade.protobuf.InvalidProtocolBufferException {
return new RegisterFunctionRequest(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 tensorflow.eager.EagerServiceOuterClass.RegisterFunctionRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface RegisterFunctionResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:tensorflow.eager.RegisterFunctionResponse)
org.nd4j.shade.protobuf.MessageOrBuilder {
}
/**
* Protobuf type {@code tensorflow.eager.RegisterFunctionResponse}
*/
public static final class RegisterFunctionResponse extends
org.nd4j.shade.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:tensorflow.eager.RegisterFunctionResponse)
RegisterFunctionResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use RegisterFunctionResponse.newBuilder() to construct.
private RegisterFunctionResponse(org.nd4j.shade.protobuf.GeneratedMessageV3.Builder builder) {
super(builder);
}
private RegisterFunctionResponse() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new RegisterFunctionResponse();
}
@java.lang.Override
public final org.nd4j.shade.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private RegisterFunctionResponse(
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();
}
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;
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 {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final org.nd4j.shade.protobuf.Descriptors.Descriptor
getDescriptor() {
return tensorflow.eager.EagerServiceOuterClass.internal_static_tensorflow_eager_RegisterFunctionResponse_descriptor;
}
@java.lang.Override
protected org.nd4j.shade.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tensorflow.eager.EagerServiceOuterClass.internal_static_tensorflow_eager_RegisterFunctionResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tensorflow.eager.EagerServiceOuterClass.RegisterFunctionResponse.class, tensorflow.eager.EagerServiceOuterClass.RegisterFunctionResponse.Builder.class);
}
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 {
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
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 tensorflow.eager.EagerServiceOuterClass.RegisterFunctionResponse)) {
return super.equals(obj);
}
tensorflow.eager.EagerServiceOuterClass.RegisterFunctionResponse other = (tensorflow.eager.EagerServiceOuterClass.RegisterFunctionResponse) obj;
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();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static tensorflow.eager.EagerServiceOuterClass.RegisterFunctionResponse parseFrom(
java.nio.ByteBuffer data)
throws org.nd4j.shade.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tensorflow.eager.EagerServiceOuterClass.RegisterFunctionResponse parseFrom(
java.nio.ByteBuffer data,
org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.nd4j.shade.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tensorflow.eager.EagerServiceOuterClass.RegisterFunctionResponse parseFrom(
org.nd4j.shade.protobuf.ByteString data)
throws org.nd4j.shade.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tensorflow.eager.EagerServiceOuterClass.RegisterFunctionResponse 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 tensorflow.eager.EagerServiceOuterClass.RegisterFunctionResponse parseFrom(byte[] data)
throws org.nd4j.shade.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tensorflow.eager.EagerServiceOuterClass.RegisterFunctionResponse parseFrom(
byte[] data,
org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.nd4j.shade.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tensorflow.eager.EagerServiceOuterClass.RegisterFunctionResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return org.nd4j.shade.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tensorflow.eager.EagerServiceOuterClass.RegisterFunctionResponse 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 tensorflow.eager.EagerServiceOuterClass.RegisterFunctionResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return org.nd4j.shade.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static tensorflow.eager.EagerServiceOuterClass.RegisterFunctionResponse 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 tensorflow.eager.EagerServiceOuterClass.RegisterFunctionResponse parseFrom(
org.nd4j.shade.protobuf.CodedInputStream input)
throws java.io.IOException {
return org.nd4j.shade.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tensorflow.eager.EagerServiceOuterClass.RegisterFunctionResponse 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(tensorflow.eager.EagerServiceOuterClass.RegisterFunctionResponse 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.eager.RegisterFunctionResponse}
*/
public static final class Builder extends
org.nd4j.shade.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:tensorflow.eager.RegisterFunctionResponse)
tensorflow.eager.EagerServiceOuterClass.RegisterFunctionResponseOrBuilder {
public static final org.nd4j.shade.protobuf.Descriptors.Descriptor
getDescriptor() {
return tensorflow.eager.EagerServiceOuterClass.internal_static_tensorflow_eager_RegisterFunctionResponse_descriptor;
}
@java.lang.Override
protected org.nd4j.shade.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tensorflow.eager.EagerServiceOuterClass.internal_static_tensorflow_eager_RegisterFunctionResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tensorflow.eager.EagerServiceOuterClass.RegisterFunctionResponse.class, tensorflow.eager.EagerServiceOuterClass.RegisterFunctionResponse.Builder.class);
}
// Construct using tensorflow.eager.EagerServiceOuterClass.RegisterFunctionResponse.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) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
return this;
}
@java.lang.Override
public org.nd4j.shade.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return tensorflow.eager.EagerServiceOuterClass.internal_static_tensorflow_eager_RegisterFunctionResponse_descriptor;
}
@java.lang.Override
public tensorflow.eager.EagerServiceOuterClass.RegisterFunctionResponse getDefaultInstanceForType() {
return tensorflow.eager.EagerServiceOuterClass.RegisterFunctionResponse.getDefaultInstance();
}
@java.lang.Override
public tensorflow.eager.EagerServiceOuterClass.RegisterFunctionResponse build() {
tensorflow.eager.EagerServiceOuterClass.RegisterFunctionResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public tensorflow.eager.EagerServiceOuterClass.RegisterFunctionResponse buildPartial() {
tensorflow.eager.EagerServiceOuterClass.RegisterFunctionResponse result = new tensorflow.eager.EagerServiceOuterClass.RegisterFunctionResponse(this);
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 tensorflow.eager.EagerServiceOuterClass.RegisterFunctionResponse) {
return mergeFrom((tensorflow.eager.EagerServiceOuterClass.RegisterFunctionResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(tensorflow.eager.EagerServiceOuterClass.RegisterFunctionResponse other) {
if (other == tensorflow.eager.EagerServiceOuterClass.RegisterFunctionResponse.getDefaultInstance()) return this;
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 {
tensorflow.eager.EagerServiceOuterClass.RegisterFunctionResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (org.nd4j.shade.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (tensorflow.eager.EagerServiceOuterClass.RegisterFunctionResponse) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
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.eager.RegisterFunctionResponse)
}
// @@protoc_insertion_point(class_scope:tensorflow.eager.RegisterFunctionResponse)
private static final tensorflow.eager.EagerServiceOuterClass.RegisterFunctionResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new tensorflow.eager.EagerServiceOuterClass.RegisterFunctionResponse();
}
public static tensorflow.eager.EagerServiceOuterClass.RegisterFunctionResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final org.nd4j.shade.protobuf.Parser
PARSER = new org.nd4j.shade.protobuf.AbstractParser() {
@java.lang.Override
public RegisterFunctionResponse parsePartialFrom(
org.nd4j.shade.protobuf.CodedInputStream input,
org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.nd4j.shade.protobuf.InvalidProtocolBufferException {
return new RegisterFunctionResponse(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 tensorflow.eager.EagerServiceOuterClass.RegisterFunctionResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private static final org.nd4j.shade.protobuf.Descriptors.Descriptor
internal_static_tensorflow_eager_RemoteTensorHandle_descriptor;
private static final
org.nd4j.shade.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_tensorflow_eager_RemoteTensorHandle_fieldAccessorTable;
private static final org.nd4j.shade.protobuf.Descriptors.Descriptor
internal_static_tensorflow_eager_Operation_descriptor;
private static final
org.nd4j.shade.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_tensorflow_eager_Operation_fieldAccessorTable;
private static final org.nd4j.shade.protobuf.Descriptors.Descriptor
internal_static_tensorflow_eager_Operation_AttrsEntry_descriptor;
private static final
org.nd4j.shade.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_tensorflow_eager_Operation_AttrsEntry_fieldAccessorTable;
private static final org.nd4j.shade.protobuf.Descriptors.Descriptor
internal_static_tensorflow_eager_QueueItem_descriptor;
private static final
org.nd4j.shade.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_tensorflow_eager_QueueItem_fieldAccessorTable;
private static final org.nd4j.shade.protobuf.Descriptors.Descriptor
internal_static_tensorflow_eager_CreateContextRequest_descriptor;
private static final
org.nd4j.shade.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_tensorflow_eager_CreateContextRequest_fieldAccessorTable;
private static final org.nd4j.shade.protobuf.Descriptors.Descriptor
internal_static_tensorflow_eager_CreateContextResponse_descriptor;
private static final
org.nd4j.shade.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_tensorflow_eager_CreateContextResponse_fieldAccessorTable;
private static final org.nd4j.shade.protobuf.Descriptors.Descriptor
internal_static_tensorflow_eager_EnqueueRequest_descriptor;
private static final
org.nd4j.shade.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_tensorflow_eager_EnqueueRequest_fieldAccessorTable;
private static final org.nd4j.shade.protobuf.Descriptors.Descriptor
internal_static_tensorflow_eager_EnqueueResponse_descriptor;
private static final
org.nd4j.shade.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_tensorflow_eager_EnqueueResponse_fieldAccessorTable;
private static final org.nd4j.shade.protobuf.Descriptors.Descriptor
internal_static_tensorflow_eager_WaitQueueDoneRequest_descriptor;
private static final
org.nd4j.shade.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_tensorflow_eager_WaitQueueDoneRequest_fieldAccessorTable;
private static final org.nd4j.shade.protobuf.Descriptors.Descriptor
internal_static_tensorflow_eager_WaitQueueDoneResponse_descriptor;
private static final
org.nd4j.shade.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_tensorflow_eager_WaitQueueDoneResponse_fieldAccessorTable;
private static final org.nd4j.shade.protobuf.Descriptors.Descriptor
internal_static_tensorflow_eager_KeepAliveRequest_descriptor;
private static final
org.nd4j.shade.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_tensorflow_eager_KeepAliveRequest_fieldAccessorTable;
private static final org.nd4j.shade.protobuf.Descriptors.Descriptor
internal_static_tensorflow_eager_KeepAliveResponse_descriptor;
private static final
org.nd4j.shade.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_tensorflow_eager_KeepAliveResponse_fieldAccessorTable;
private static final org.nd4j.shade.protobuf.Descriptors.Descriptor
internal_static_tensorflow_eager_CloseContextRequest_descriptor;
private static final
org.nd4j.shade.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_tensorflow_eager_CloseContextRequest_fieldAccessorTable;
private static final org.nd4j.shade.protobuf.Descriptors.Descriptor
internal_static_tensorflow_eager_CloseContextResponse_descriptor;
private static final
org.nd4j.shade.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_tensorflow_eager_CloseContextResponse_fieldAccessorTable;
private static final org.nd4j.shade.protobuf.Descriptors.Descriptor
internal_static_tensorflow_eager_RegisterFunctionRequest_descriptor;
private static final
org.nd4j.shade.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_tensorflow_eager_RegisterFunctionRequest_fieldAccessorTable;
private static final org.nd4j.shade.protobuf.Descriptors.Descriptor
internal_static_tensorflow_eager_RegisterFunctionResponse_descriptor;
private static final
org.nd4j.shade.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_tensorflow_eager_RegisterFunctionResponse_fieldAccessorTable;
public static org.nd4j.shade.protobuf.Descriptors.FileDescriptor
getDescriptor() {
return descriptor;
}
private static org.nd4j.shade.protobuf.Descriptors.FileDescriptor
descriptor;
static {
java.lang.String[] descriptorData = {
"\n,tensorflow/core/protobuf/eager_service" +
".proto\022\020tensorflow.eager\032*tensorflow/cor" +
"e/framework/attr_value.proto\0321tensorflow" +
"/core/framework/device_attributes.proto\032" +
"(tensorflow/core/framework/function.prot" +
"o\032(tensorflow/core/framework/versions.pr" +
"oto\0320tensorflow/core/protobuf/tensorflow" +
"_server.proto\"7\n\022RemoteTensorHandle\022\r\n\005o" +
"p_id\030\001 \001(\003\022\022\n\noutput_num\030\002 \001(\005\"\377\001\n\tOpera" +
"tion\022\n\n\002id\030\001 \001(\003\022\014\n\004name\030\002 \001(\t\0224\n\006inputs" +
"\030\003 \003(\0132$.tensorflow.eager.RemoteTensorHa" +
"ndle\022\026\n\016control_op_ids\030\004 \003(\003\0225\n\005attrs\030\005 " +
"\003(\0132&.tensorflow.eager.Operation.AttrsEn" +
"try\022\016\n\006device\030\006 \001(\t\032C\n\nAttrsEntry\022\013\n\003key" +
"\030\001 \001(\t\022$\n\005value\030\002 \001(\0132\025.tensorflow.AttrV" +
"alue:\0028\001\"\207\001\n\tQueueItem\022@\n\020handle_to_decr" +
"ef\030\001 \001(\0132$.tensorflow.eager.RemoteTensor" +
"HandleH\000\0220\n\toperation\030\002 \001(\0132\033.tensorflow" +
".eager.OperationH\000B\006\n\004item\"\226\001\n\024CreateCon" +
"textRequest\022)\n\nserver_def\030\001 \001(\0132\025.tensor" +
"flow.ServerDef\022\r\n\005async\030\002 \001(\010\022\027\n\017keep_al" +
"ive_secs\030\003 \001(\003\022+\n\013version_def\030\004 \001(\0132\026.te" +
"nsorflow.VersionDef\"d\n\025CreateContextResp" +
"onse\022\022\n\ncontext_id\030\001 \001(\006\0227\n\021device_attri" +
"butes\030\002 \003(\0132\034.tensorflow.DeviceAttribute" +
"s\"P\n\016EnqueueRequest\022\022\n\ncontext_id\030\001 \001(\006\022" +
"*\n\005queue\030\003 \003(\0132\033.tensorflow.eager.QueueI" +
"tem\"\021\n\017EnqueueResponse\"9\n\024WaitQueueDoneR" +
"equest\022\022\n\ncontext_id\030\001 \001(\006\022\r\n\005op_id\030\002 \003(" +
"\003\"\027\n\025WaitQueueDoneResponse\"&\n\020KeepAliveR" +
"equest\022\022\n\ncontext_id\030\001 \001(\006\"\023\n\021KeepAliveR" +
"esponse\")\n\023CloseContextRequest\022\022\n\ncontex" +
"t_id\030\001 \001(\006\"\026\n\024CloseContextResponse\"\\\n\027Re" +
"gisterFunctionRequest\022\022\n\ncontext_id\030\001 \001(" +
"\006\022-\n\014function_def\030\002 \001(\0132\027.tensorflow.Fun" +
"ctionDef\"\032\n\030RegisterFunctionResponse2\302\004\n" +
"\014EagerService\022`\n\rCreateContext\022&.tensorf" +
"low.eager.CreateContextRequest\032\'.tensorf" +
"low.eager.CreateContextResponse\022N\n\007Enque" +
"ue\022 .tensorflow.eager.EnqueueRequest\032!.t" +
"ensorflow.eager.EnqueueResponse\022`\n\rWaitQ" +
"ueueDone\022&.tensorflow.eager.WaitQueueDon" +
"eRequest\032\'.tensorflow.eager.WaitQueueDon" +
"eResponse\022T\n\tKeepAlive\022\".tensorflow.eage" +
"r.KeepAliveRequest\032#.tensorflow.eager.Ke" +
"epAliveResponse\022]\n\014CloseContext\022%.tensor" +
"flow.eager.CloseContextRequest\032&.tensorf" +
"low.eager.CloseContextResponse\022i\n\020Regist" +
"erFunction\022).tensorflow.eager.RegisterFu" +
"nctionRequest\032*.tensorflow.eager.Registe" +
"rFunctionResponseb\006proto3"
};
descriptor = org.nd4j.shade.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new org.nd4j.shade.protobuf.Descriptors.FileDescriptor[] {
org.tensorflow.framework.AttrValueProtos.getDescriptor(),
org.tensorflow.framework.DeviceAttributesProtos.getDescriptor(),
org.tensorflow.framework.FunctionProtos.getDescriptor(),
org.tensorflow.framework.VersionsProtos.getDescriptor(),
org.tensorflow.distruntime.ServerProtos.getDescriptor(),
});
internal_static_tensorflow_eager_RemoteTensorHandle_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_tensorflow_eager_RemoteTensorHandle_fieldAccessorTable = new
org.nd4j.shade.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_tensorflow_eager_RemoteTensorHandle_descriptor,
new java.lang.String[] { "OpId", "OutputNum", });
internal_static_tensorflow_eager_Operation_descriptor =
getDescriptor().getMessageTypes().get(1);
internal_static_tensorflow_eager_Operation_fieldAccessorTable = new
org.nd4j.shade.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_tensorflow_eager_Operation_descriptor,
new java.lang.String[] { "Id", "Name", "Inputs", "ControlOpIds", "Attrs", "Device", });
internal_static_tensorflow_eager_Operation_AttrsEntry_descriptor =
internal_static_tensorflow_eager_Operation_descriptor.getNestedTypes().get(0);
internal_static_tensorflow_eager_Operation_AttrsEntry_fieldAccessorTable = new
org.nd4j.shade.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_tensorflow_eager_Operation_AttrsEntry_descriptor,
new java.lang.String[] { "Key", "Value", });
internal_static_tensorflow_eager_QueueItem_descriptor =
getDescriptor().getMessageTypes().get(2);
internal_static_tensorflow_eager_QueueItem_fieldAccessorTable = new
org.nd4j.shade.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_tensorflow_eager_QueueItem_descriptor,
new java.lang.String[] { "HandleToDecref", "Operation", "Item", });
internal_static_tensorflow_eager_CreateContextRequest_descriptor =
getDescriptor().getMessageTypes().get(3);
internal_static_tensorflow_eager_CreateContextRequest_fieldAccessorTable = new
org.nd4j.shade.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_tensorflow_eager_CreateContextRequest_descriptor,
new java.lang.String[] { "ServerDef", "Async", "KeepAliveSecs", "VersionDef", });
internal_static_tensorflow_eager_CreateContextResponse_descriptor =
getDescriptor().getMessageTypes().get(4);
internal_static_tensorflow_eager_CreateContextResponse_fieldAccessorTable = new
org.nd4j.shade.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_tensorflow_eager_CreateContextResponse_descriptor,
new java.lang.String[] { "ContextId", "DeviceAttributes", });
internal_static_tensorflow_eager_EnqueueRequest_descriptor =
getDescriptor().getMessageTypes().get(5);
internal_static_tensorflow_eager_EnqueueRequest_fieldAccessorTable = new
org.nd4j.shade.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_tensorflow_eager_EnqueueRequest_descriptor,
new java.lang.String[] { "ContextId", "Queue", });
internal_static_tensorflow_eager_EnqueueResponse_descriptor =
getDescriptor().getMessageTypes().get(6);
internal_static_tensorflow_eager_EnqueueResponse_fieldAccessorTable = new
org.nd4j.shade.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_tensorflow_eager_EnqueueResponse_descriptor,
new java.lang.String[] { });
internal_static_tensorflow_eager_WaitQueueDoneRequest_descriptor =
getDescriptor().getMessageTypes().get(7);
internal_static_tensorflow_eager_WaitQueueDoneRequest_fieldAccessorTable = new
org.nd4j.shade.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_tensorflow_eager_WaitQueueDoneRequest_descriptor,
new java.lang.String[] { "ContextId", "OpId", });
internal_static_tensorflow_eager_WaitQueueDoneResponse_descriptor =
getDescriptor().getMessageTypes().get(8);
internal_static_tensorflow_eager_WaitQueueDoneResponse_fieldAccessorTable = new
org.nd4j.shade.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_tensorflow_eager_WaitQueueDoneResponse_descriptor,
new java.lang.String[] { });
internal_static_tensorflow_eager_KeepAliveRequest_descriptor =
getDescriptor().getMessageTypes().get(9);
internal_static_tensorflow_eager_KeepAliveRequest_fieldAccessorTable = new
org.nd4j.shade.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_tensorflow_eager_KeepAliveRequest_descriptor,
new java.lang.String[] { "ContextId", });
internal_static_tensorflow_eager_KeepAliveResponse_descriptor =
getDescriptor().getMessageTypes().get(10);
internal_static_tensorflow_eager_KeepAliveResponse_fieldAccessorTable = new
org.nd4j.shade.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_tensorflow_eager_KeepAliveResponse_descriptor,
new java.lang.String[] { });
internal_static_tensorflow_eager_CloseContextRequest_descriptor =
getDescriptor().getMessageTypes().get(11);
internal_static_tensorflow_eager_CloseContextRequest_fieldAccessorTable = new
org.nd4j.shade.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_tensorflow_eager_CloseContextRequest_descriptor,
new java.lang.String[] { "ContextId", });
internal_static_tensorflow_eager_CloseContextResponse_descriptor =
getDescriptor().getMessageTypes().get(12);
internal_static_tensorflow_eager_CloseContextResponse_fieldAccessorTable = new
org.nd4j.shade.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_tensorflow_eager_CloseContextResponse_descriptor,
new java.lang.String[] { });
internal_static_tensorflow_eager_RegisterFunctionRequest_descriptor =
getDescriptor().getMessageTypes().get(13);
internal_static_tensorflow_eager_RegisterFunctionRequest_fieldAccessorTable = new
org.nd4j.shade.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_tensorflow_eager_RegisterFunctionRequest_descriptor,
new java.lang.String[] { "ContextId", "FunctionDef", });
internal_static_tensorflow_eager_RegisterFunctionResponse_descriptor =
getDescriptor().getMessageTypes().get(14);
internal_static_tensorflow_eager_RegisterFunctionResponse_fieldAccessorTable = new
org.nd4j.shade.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_tensorflow_eager_RegisterFunctionResponse_descriptor,
new java.lang.String[] { });
org.tensorflow.framework.AttrValueProtos.getDescriptor();
org.tensorflow.framework.DeviceAttributesProtos.getDescriptor();
org.tensorflow.framework.FunctionProtos.getDescriptor();
org.tensorflow.framework.VersionsProtos.getDescriptor();
org.tensorflow.distruntime.ServerProtos.getDescriptor();
}
// @@protoc_insertion_point(outer_class_scope)
}