All Downloads are FREE. Search and download functionalities are using the official Maven repository.

tensorflow.eager.EagerServiceOuterClass Maven / Gradle / Ivy

There is a newer version: 1.0.0-M2.1
Show newest version
// 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; */ long getOpId(); /** *
     * The index into the outputs of the operation that produced this tensor.
     * 
* * int32 output_num = 2; */ 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() { opId_ = 0L; outputNum_ = 0; } @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(); } 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; default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 8: { opId_ = input.readInt64(); break; } case 16: { outputNum_ = input.readInt32(); 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; } 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; */ 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; */ public int getOutputNum() { return outputNum_; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(org.nd4j.shade.protobuf.CodedOutputStream output) throws java.io.IOException { if (opId_ != 0L) { output.writeInt64(1, opId_); } if (outputNum_ != 0) { output.writeInt32(2, outputNum_); } unknownFields.writeTo(output); } 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; boolean result = true; result = result && (getOpId() == other.getOpId()); result = result && (getOutputNum() == other.getOutputNum()); result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); 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); } 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); } 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; } 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) { } } public Builder clear() { super.clear(); opId_ = 0L; outputNum_ = 0; return this; } public org.nd4j.shade.protobuf.Descriptors.Descriptor getDescriptorForType() { return tensorflow.eager.EagerServiceOuterClass.internal_static_tensorflow_eager_RemoteTensorHandle_descriptor; } public tensorflow.eager.EagerServiceOuterClass.RemoteTensorHandle getDefaultInstanceForType() { return tensorflow.eager.EagerServiceOuterClass.RemoteTensorHandle.getDefaultInstance(); } public tensorflow.eager.EagerServiceOuterClass.RemoteTensorHandle build() { tensorflow.eager.EagerServiceOuterClass.RemoteTensorHandle result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } 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; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( org.nd4j.shade.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(org.nd4j.shade.protobuf.Message other) { if (other instanceof 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; } public final boolean isInitialized() { return true; } public Builder mergeFrom( org.nd4j.shade.protobuf.CodedInputStream input, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { 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; */ public long getOpId() { return opId_; } /** *
       * The ID of the operation that produced this tensor.
       * 
* * int64 op_id = 1; */ public Builder setOpId(long value) { opId_ = value; onChanged(); return this; } /** *
       * The ID of the operation that produced this tensor.
       * 
* * int64 op_id = 1; */ 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; */ public int getOutputNum() { return outputNum_; } /** *
       * The index into the outputs of the operation that produced this tensor.
       * 
* * int32 output_num = 2; */ 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; */ public Builder clearOutputNum() { outputNum_ = 0; onChanged(); return this; } public final Builder setUnknownFields( final org.nd4j.shade.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final org.nd4j.shade.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:tensorflow.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() { 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; } 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; */ long getId(); /** * string name = 2; */ java.lang.String getName(); /** * string name = 2; */ 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; */ 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; */ 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; */ 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; */ java.lang.String getDevice(); /** * string device = 6; */ 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() { id_ = 0L; name_ = ""; inputs_ = java.util.Collections.emptyList(); controlOpIds_ = java.util.Collections.emptyList(); device_ = ""; } @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; default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { 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_ & 0x00000004) == 0x00000004)) { inputs_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000004; } inputs_.add( input.readMessage(tensorflow.eager.EagerServiceOuterClass.RemoteTensorHandle.parser(), extensionRegistry)); break; } case 32: { if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) { controlOpIds_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000008; } controlOpIds_.add(input.readInt64()); break; } case 34: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); if (!((mutable_bitField0_ & 0x00000008) == 0x00000008) && input.getBytesUntilLimit() > 0) { controlOpIds_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000008; } while (input.getBytesUntilLimit() > 0) { controlOpIds_.add(input.readInt64()); } input.popLimit(limit); break; } case 42: { if (!((mutable_bitField0_ & 0x00000010) == 0x00000010)) { attrs_ = org.nd4j.shade.protobuf.MapField.newMapField( AttrsDefaultEntryHolder.defaultEntry); mutable_bitField0_ |= 0x00000010; } 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; } } } } 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_ & 0x00000004) == 0x00000004)) { inputs_ = java.util.Collections.unmodifiableList(inputs_); } if (((mutable_bitField0_ & 0x00000008) == 0x00000008)) { controlOpIds_ = java.util.Collections.unmodifiableList(controlOpIds_); } 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"}) protected org.nd4j.shade.protobuf.MapField internalGetMapField( int number) { switch (number) { case 5: return internalGetAttrs(); default: throw new RuntimeException( "Invalid map field number: " + number); } } 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); } private int bitField0_; 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; */ public long getId() { return id_; } public static final int NAME_FIELD_NUMBER = 2; private volatile java.lang.Object name_; /** * string name = 2; */ 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; */ 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; */ public java.util.List getInputsList() { return inputs_; } /** * repeated .tensorflow.eager.RemoteTensorHandle inputs = 3; */ public java.util.List getInputsOrBuilderList() { return inputs_; } /** * repeated .tensorflow.eager.RemoteTensorHandle inputs = 3; */ public int getInputsCount() { return inputs_.size(); } /** * repeated .tensorflow.eager.RemoteTensorHandle inputs = 3; */ public tensorflow.eager.EagerServiceOuterClass.RemoteTensorHandle getInputs(int index) { return inputs_.get(index); } /** * repeated .tensorflow.eager.RemoteTensorHandle inputs = 3; */ public tensorflow.eager.EagerServiceOuterClass.RemoteTensorHandleOrBuilder getInputsOrBuilder( int index) { return inputs_.get(index); } public static final int CONTROL_OP_IDS_FIELD_NUMBER = 4; private java.util.List 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; */ 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; */ 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; */ public long getControlOpIds(int index) { return controlOpIds_.get(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; */ 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.Deprecated public java.util.Map getAttrs() { return getAttrsMap(); } /** * map<string, .tensorflow.AttrValue> attrs = 5; */ public java.util.Map getAttrsMap() { return internalGetAttrs().getMap(); } /** * map<string, .tensorflow.AttrValue> attrs = 5; */ 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; */ 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; */ 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; */ 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; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(org.nd4j.shade.protobuf.CodedOutputStream output) throws java.io.IOException { 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_.get(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); } 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_.get(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; boolean result = true; result = result && (getId() == other.getId()); result = result && getName() .equals(other.getName()); result = result && getInputsList() .equals(other.getInputsList()); result = result && getControlOpIdsList() .equals(other.getControlOpIdsList()); result = result && internalGetAttrs().equals( other.internalGetAttrs()); result = result && getDevice() .equals(other.getDevice()); result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); 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); } 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); } 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); } } 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(); } } public Builder clear() { super.clear(); id_ = 0L; name_ = ""; if (inputsBuilder_ == null) { inputs_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); } else { inputsBuilder_.clear(); } controlOpIds_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000008); internalGetMutableAttrs().clear(); device_ = ""; return this; } public org.nd4j.shade.protobuf.Descriptors.Descriptor getDescriptorForType() { return tensorflow.eager.EagerServiceOuterClass.internal_static_tensorflow_eager_Operation_descriptor; } public tensorflow.eager.EagerServiceOuterClass.Operation getDefaultInstanceForType() { return tensorflow.eager.EagerServiceOuterClass.Operation.getDefaultInstance(); } public tensorflow.eager.EagerServiceOuterClass.Operation build() { tensorflow.eager.EagerServiceOuterClass.Operation result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public tensorflow.eager.EagerServiceOuterClass.Operation buildPartial() { tensorflow.eager.EagerServiceOuterClass.Operation result = new tensorflow.eager.EagerServiceOuterClass.Operation(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; result.id_ = id_; result.name_ = name_; if (inputsBuilder_ == null) { if (((bitField0_ & 0x00000004) == 0x00000004)) { inputs_ = java.util.Collections.unmodifiableList(inputs_); bitField0_ = (bitField0_ & ~0x00000004); } result.inputs_ = inputs_; } else { result.inputs_ = inputsBuilder_.build(); } if (((bitField0_ & 0x00000008) == 0x00000008)) { controlOpIds_ = java.util.Collections.unmodifiableList(controlOpIds_); bitField0_ = (bitField0_ & ~0x00000008); } result.controlOpIds_ = controlOpIds_; result.attrs_ = internalGetAttrs(); result.attrs_.makeImmutable(); result.device_ = device_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( org.nd4j.shade.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(org.nd4j.shade.protobuf.Message other) { if (other instanceof 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_ & ~0x00000004); } else { ensureInputsIsMutable(); inputs_.addAll(other.inputs_); } onChanged(); } } else { if (!other.inputs_.isEmpty()) { if (inputsBuilder_.isEmpty()) { inputsBuilder_.dispose(); inputsBuilder_ = null; inputs_ = other.inputs_; bitField0_ = (bitField0_ & ~0x00000004); 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_ & ~0x00000008); } 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; } public final boolean isInitialized() { return true; } public Builder mergeFrom( org.nd4j.shade.protobuf.CodedInputStream input, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { 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; */ 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; */ 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; */ public Builder clearId() { id_ = 0L; onChanged(); return this; } private java.lang.Object name_ = ""; /** * string name = 2; */ 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; */ 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; */ public Builder setName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } name_ = value; onChanged(); return this; } /** * string name = 2; */ public Builder clearName() { name_ = getDefaultInstance().getName(); onChanged(); return this; } /** * string name = 2; */ 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_ & 0x00000004) == 0x00000004)) { inputs_ = new java.util.ArrayList(inputs_); bitField0_ |= 0x00000004; } } 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_ & ~0x00000004); 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_ & 0x00000004) == 0x00000004), getParentForChildren(), isClean()); inputs_ = null; } return inputsBuilder_; } private java.util.List controlOpIds_ = java.util.Collections.emptyList(); private void ensureControlOpIdsIsMutable() { if (!((bitField0_ & 0x00000008) == 0x00000008)) { controlOpIds_ = new java.util.ArrayList(controlOpIds_); bitField0_ |= 0x00000008; } } /** *
       * 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; */ public java.util.List getControlOpIdsList() { return java.util.Collections.unmodifiableList(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; */ 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; */ public long getControlOpIds(int index) { return controlOpIds_.get(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; */ public Builder setControlOpIds( int index, long value) { ensureControlOpIdsIsMutable(); controlOpIds_.set(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; */ public Builder addControlOpIds(long value) { ensureControlOpIdsIsMutable(); controlOpIds_.add(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; */ 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; */ public Builder clearControlOpIds() { controlOpIds_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000008); 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; */ 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.Deprecated public java.util.Map getAttrs() { return getAttrsMap(); } /** * map<string, .tensorflow.AttrValue> attrs = 5; */ public java.util.Map getAttrsMap() { return internalGetAttrs().getMap(); } /** * map<string, .tensorflow.AttrValue> attrs = 5; */ 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; */ 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; */ 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; */ 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; */ public Builder setDevice( java.lang.String value) { if (value == null) { throw new NullPointerException(); } device_ = value; onChanged(); return this; } /** * string device = 6; */ public Builder clearDevice() { device_ = getDefaultInstance().getDevice(); onChanged(); return this; } /** * string device = 6; */ public Builder setDeviceBytes( org.nd4j.shade.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); device_ = value; onChanged(); return this; } public final Builder setUnknownFields( final org.nd4j.shade.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final org.nd4j.shade.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:tensorflow.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() { 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; } 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; */ boolean hasHandleToDecref(); /** * .tensorflow.eager.RemoteTensorHandle handle_to_decref = 1; */ tensorflow.eager.EagerServiceOuterClass.RemoteTensorHandle getHandleToDecref(); /** * .tensorflow.eager.RemoteTensorHandle handle_to_decref = 1; */ tensorflow.eager.EagerServiceOuterClass.RemoteTensorHandleOrBuilder getHandleToDecrefOrBuilder(); /** * .tensorflow.eager.Operation operation = 2; */ boolean hasOperation(); /** * .tensorflow.eager.Operation operation = 2; */ 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 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(); } 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; default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { 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; } } } } 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; } 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 { HANDLE_TO_DECREF(1), OPERATION(2), ITEM_NOT_SET(0); private final int value; private ItemCase(int value) { this.value = value; } /** * @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; */ public boolean hasHandleToDecref() { return itemCase_ == 1; } /** * .tensorflow.eager.RemoteTensorHandle handle_to_decref = 1; */ 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; */ 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; */ public boolean hasOperation() { return itemCase_ == 2; } /** * .tensorflow.eager.Operation operation = 2; */ 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; */ 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; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(org.nd4j.shade.protobuf.CodedOutputStream output) throws java.io.IOException { 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); } 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; boolean result = true; result = result && getItemCase().equals( other.getItemCase()); if (!result) return false; switch (itemCase_) { case 1: result = result && getHandleToDecref() .equals(other.getHandleToDecref()); break; case 2: result = result && getOperation() .equals(other.getOperation()); break; case 0: default: } result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); 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); } 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); } 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; } 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) { } } public Builder clear() { super.clear(); itemCase_ = 0; item_ = null; return this; } public org.nd4j.shade.protobuf.Descriptors.Descriptor getDescriptorForType() { return tensorflow.eager.EagerServiceOuterClass.internal_static_tensorflow_eager_QueueItem_descriptor; } public tensorflow.eager.EagerServiceOuterClass.QueueItem getDefaultInstanceForType() { return tensorflow.eager.EagerServiceOuterClass.QueueItem.getDefaultInstance(); } public tensorflow.eager.EagerServiceOuterClass.QueueItem build() { tensorflow.eager.EagerServiceOuterClass.QueueItem result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } 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; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( org.nd4j.shade.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(org.nd4j.shade.protobuf.Message other) { if (other instanceof 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; } public final boolean isInitialized() { return true; } public Builder mergeFrom( org.nd4j.shade.protobuf.CodedInputStream input, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { 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; */ public boolean hasHandleToDecref() { return itemCase_ == 1; } /** * .tensorflow.eager.RemoteTensorHandle handle_to_decref = 1; */ 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; */ 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; */ public boolean hasOperation() { return itemCase_ == 2; } /** * .tensorflow.eager.Operation operation = 2; */ 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; */ 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_; } public final Builder setUnknownFields( final org.nd4j.shade.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final org.nd4j.shade.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:tensorflow.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() { 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; } 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; */ boolean hasServerDef(); /** *
     * Identifies the full cluster, and this particular worker's position within.
     * 
* * .tensorflow.ServerDef server_def = 1; */ org.tensorflow.distruntime.ServerDef getServerDef(); /** *
     * Identifies the full cluster, and this particular worker's position within.
     * 
* * .tensorflow.ServerDef server_def = 1; */ org.tensorflow.distruntime.ServerDefOrBuilder getServerDefOrBuilder(); /** *
     * Whether the ops on the worker should be executed synchronously or
     * asynchronously. By default, ops are executed synchronously.
     * 
* * bool async = 2; */ boolean getAsync(); /** *
     * 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; */ long getKeepAliveSecs(); /** *
     * This is the version for all the ops that will be enqueued by the client.
     * 
* * .tensorflow.VersionDef version_def = 4; */ boolean hasVersionDef(); /** *
     * This is the version for all the ops that will be enqueued by the client.
     * 
* * .tensorflow.VersionDef version_def = 4; */ org.tensorflow.framework.VersionDef getVersionDef(); /** *
     * This is the version for all the ops that will be enqueued by the client.
     * 
* * .tensorflow.VersionDef version_def = 4; */ org.tensorflow.framework.VersionDefOrBuilder getVersionDefOrBuilder(); } /** * Protobuf type {@code tensorflow.eager.CreateContextRequest} */ public static final class CreateContextRequest extends org.nd4j.shade.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:tensorflow.eager.CreateContextRequest) CreateContextRequestOrBuilder { private static final long serialVersionUID = 0L; // Use CreateContextRequest.newBuilder() to construct. private CreateContextRequest(org.nd4j.shade.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private CreateContextRequest() { async_ = false; keepAliveSecs_ = 0L; } @java.lang.Override public final org.nd4j.shade.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private CreateContextRequest( 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; default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { org.tensorflow.distruntime.ServerDef.Builder subBuilder = null; if (serverDef_ != null) { subBuilder = serverDef_.toBuilder(); } serverDef_ = input.readMessage(org.tensorflow.distruntime.ServerDef.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(serverDef_); serverDef_ = subBuilder.buildPartial(); } break; } case 16: { async_ = input.readBool(); break; } case 24: { keepAliveSecs_ = input.readInt64(); break; } case 34: { org.tensorflow.framework.VersionDef.Builder subBuilder = null; if (versionDef_ != null) { subBuilder = versionDef_.toBuilder(); } versionDef_ = input.readMessage(org.tensorflow.framework.VersionDef.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(versionDef_); versionDef_ = subBuilder.buildPartial(); } 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_CreateContextRequest_descriptor; } protected org.nd4j.shade.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tensorflow.eager.EagerServiceOuterClass.internal_static_tensorflow_eager_CreateContextRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( tensorflow.eager.EagerServiceOuterClass.CreateContextRequest.class, tensorflow.eager.EagerServiceOuterClass.CreateContextRequest.Builder.class); } public static final int SERVER_DEF_FIELD_NUMBER = 1; private org.tensorflow.distruntime.ServerDef serverDef_; /** *
     * Identifies the full cluster, and this particular worker's position within.
     * 
* * .tensorflow.ServerDef server_def = 1; */ public boolean hasServerDef() { return serverDef_ != null; } /** *
     * Identifies the full cluster, and this particular worker's position within.
     * 
* * .tensorflow.ServerDef server_def = 1; */ public org.tensorflow.distruntime.ServerDef getServerDef() { return serverDef_ == null ? org.tensorflow.distruntime.ServerDef.getDefaultInstance() : serverDef_; } /** *
     * Identifies the full cluster, and this particular worker's position within.
     * 
* * .tensorflow.ServerDef server_def = 1; */ 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; */ 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; */ 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; */ public boolean hasVersionDef() { return versionDef_ != null; } /** *
     * This is the version for all the ops that will be enqueued by the client.
     * 
* * .tensorflow.VersionDef version_def = 4; */ public org.tensorflow.framework.VersionDef getVersionDef() { return versionDef_ == null ? org.tensorflow.framework.VersionDef.getDefaultInstance() : versionDef_; } /** *
     * This is the version for all the ops that will be enqueued by the client.
     * 
* * .tensorflow.VersionDef version_def = 4; */ public org.tensorflow.framework.VersionDefOrBuilder getVersionDefOrBuilder() { return getVersionDef(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(org.nd4j.shade.protobuf.CodedOutputStream output) throws java.io.IOException { if (serverDef_ != null) { output.writeMessage(1, getServerDef()); } if (async_ != false) { output.writeBool(2, async_); } if (keepAliveSecs_ != 0L) { output.writeInt64(3, keepAliveSecs_); } if (versionDef_ != null) { output.writeMessage(4, getVersionDef()); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (serverDef_ != null) { size += org.nd4j.shade.protobuf.CodedOutputStream .computeMessageSize(1, getServerDef()); } if (async_ != false) { size += org.nd4j.shade.protobuf.CodedOutputStream .computeBoolSize(2, async_); } if (keepAliveSecs_ != 0L) { size += org.nd4j.shade.protobuf.CodedOutputStream .computeInt64Size(3, keepAliveSecs_); } if (versionDef_ != null) { size += org.nd4j.shade.protobuf.CodedOutputStream .computeMessageSize(4, getVersionDef()); } 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.CreateContextRequest)) { return super.equals(obj); } tensorflow.eager.EagerServiceOuterClass.CreateContextRequest other = (tensorflow.eager.EagerServiceOuterClass.CreateContextRequest) obj; boolean result = true; result = result && (hasServerDef() == other.hasServerDef()); if (hasServerDef()) { result = result && getServerDef() .equals(other.getServerDef()); } result = result && (getAsync() == other.getAsync()); result = result && (getKeepAliveSecs() == other.getKeepAliveSecs()); result = result && (hasVersionDef() == other.hasVersionDef()); if (hasVersionDef()) { result = result && getVersionDef() .equals(other.getVersionDef()); } result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasServerDef()) { hash = (37 * hash) + SERVER_DEF_FIELD_NUMBER; hash = (53 * hash) + getServerDef().hashCode(); } hash = (37 * hash) + ASYNC_FIELD_NUMBER; hash = (53 * hash) + org.nd4j.shade.protobuf.Internal.hashBoolean( getAsync()); hash = (37 * hash) + KEEP_ALIVE_SECS_FIELD_NUMBER; hash = (53 * hash) + org.nd4j.shade.protobuf.Internal.hashLong( getKeepAliveSecs()); if (hasVersionDef()) { hash = (37 * hash) + VERSION_DEF_FIELD_NUMBER; hash = (53 * hash) + getVersionDef().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static tensorflow.eager.EagerServiceOuterClass.CreateContextRequest parseFrom( java.nio.ByteBuffer data) throws org.nd4j.shade.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tensorflow.eager.EagerServiceOuterClass.CreateContextRequest 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.CreateContextRequest parseFrom( org.nd4j.shade.protobuf.ByteString data) throws org.nd4j.shade.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tensorflow.eager.EagerServiceOuterClass.CreateContextRequest 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.CreateContextRequest parseFrom(byte[] data) throws org.nd4j.shade.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tensorflow.eager.EagerServiceOuterClass.CreateContextRequest 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.CreateContextRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return org.nd4j.shade.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tensorflow.eager.EagerServiceOuterClass.CreateContextRequest 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.CreateContextRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return org.nd4j.shade.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static tensorflow.eager.EagerServiceOuterClass.CreateContextRequest 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.CreateContextRequest 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.CreateContextRequest parseFrom( org.nd4j.shade.protobuf.CodedInputStream input, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return org.nd4j.shade.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(tensorflow.eager.EagerServiceOuterClass.CreateContextRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( org.nd4j.shade.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code tensorflow.eager.CreateContextRequest} */ public static final class Builder extends org.nd4j.shade.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:tensorflow.eager.CreateContextRequest) tensorflow.eager.EagerServiceOuterClass.CreateContextRequestOrBuilder { public static final org.nd4j.shade.protobuf.Descriptors.Descriptor getDescriptor() { return tensorflow.eager.EagerServiceOuterClass.internal_static_tensorflow_eager_CreateContextRequest_descriptor; } protected org.nd4j.shade.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tensorflow.eager.EagerServiceOuterClass.internal_static_tensorflow_eager_CreateContextRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( tensorflow.eager.EagerServiceOuterClass.CreateContextRequest.class, tensorflow.eager.EagerServiceOuterClass.CreateContextRequest.Builder.class); } // Construct using tensorflow.eager.EagerServiceOuterClass.CreateContextRequest.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) { } } public Builder clear() { super.clear(); if (serverDefBuilder_ == null) { serverDef_ = null; } else { serverDef_ = null; serverDefBuilder_ = null; } async_ = false; keepAliveSecs_ = 0L; if (versionDefBuilder_ == null) { versionDef_ = null; } else { versionDef_ = null; versionDefBuilder_ = null; } return this; } public org.nd4j.shade.protobuf.Descriptors.Descriptor getDescriptorForType() { return tensorflow.eager.EagerServiceOuterClass.internal_static_tensorflow_eager_CreateContextRequest_descriptor; } public tensorflow.eager.EagerServiceOuterClass.CreateContextRequest getDefaultInstanceForType() { return tensorflow.eager.EagerServiceOuterClass.CreateContextRequest.getDefaultInstance(); } public tensorflow.eager.EagerServiceOuterClass.CreateContextRequest build() { tensorflow.eager.EagerServiceOuterClass.CreateContextRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public tensorflow.eager.EagerServiceOuterClass.CreateContextRequest buildPartial() { tensorflow.eager.EagerServiceOuterClass.CreateContextRequest result = new tensorflow.eager.EagerServiceOuterClass.CreateContextRequest(this); if (serverDefBuilder_ == null) { result.serverDef_ = serverDef_; } else { result.serverDef_ = serverDefBuilder_.build(); } result.async_ = async_; result.keepAliveSecs_ = keepAliveSecs_; if (versionDefBuilder_ == null) { result.versionDef_ = versionDef_; } else { result.versionDef_ = versionDefBuilder_.build(); } onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( org.nd4j.shade.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(org.nd4j.shade.protobuf.Message other) { if (other instanceof tensorflow.eager.EagerServiceOuterClass.CreateContextRequest) { return mergeFrom((tensorflow.eager.EagerServiceOuterClass.CreateContextRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(tensorflow.eager.EagerServiceOuterClass.CreateContextRequest other) { if (other == tensorflow.eager.EagerServiceOuterClass.CreateContextRequest.getDefaultInstance()) return this; if (other.hasServerDef()) { mergeServerDef(other.getServerDef()); } if (other.getAsync() != false) { setAsync(other.getAsync()); } if (other.getKeepAliveSecs() != 0L) { setKeepAliveSecs(other.getKeepAliveSecs()); } if (other.hasVersionDef()) { mergeVersionDef(other.getVersionDef()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( org.nd4j.shade.protobuf.CodedInputStream input, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { tensorflow.eager.EagerServiceOuterClass.CreateContextRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (org.nd4j.shade.protobuf.InvalidProtocolBufferException e) { parsedMessage = (tensorflow.eager.EagerServiceOuterClass.CreateContextRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private org.tensorflow.distruntime.ServerDef serverDef_ = null; private org.nd4j.shade.protobuf.SingleFieldBuilderV3< org.tensorflow.distruntime.ServerDef, org.tensorflow.distruntime.ServerDef.Builder, org.tensorflow.distruntime.ServerDefOrBuilder> serverDefBuilder_; /** *
       * Identifies the full cluster, and this particular worker's position within.
       * 
* * .tensorflow.ServerDef server_def = 1; */ public boolean hasServerDef() { return serverDefBuilder_ != null || serverDef_ != null; } /** *
       * Identifies the full cluster, and this particular worker's position within.
       * 
* * .tensorflow.ServerDef server_def = 1; */ public org.tensorflow.distruntime.ServerDef getServerDef() { if (serverDefBuilder_ == null) { return serverDef_ == null ? org.tensorflow.distruntime.ServerDef.getDefaultInstance() : serverDef_; } else { return serverDefBuilder_.getMessage(); } } /** *
       * Identifies the full cluster, and this particular worker's position within.
       * 
* * .tensorflow.ServerDef server_def = 1; */ public Builder setServerDef(org.tensorflow.distruntime.ServerDef value) { if (serverDefBuilder_ == null) { if (value == null) { throw new NullPointerException(); } serverDef_ = value; onChanged(); } else { serverDefBuilder_.setMessage(value); } return this; } /** *
       * Identifies the full cluster, and this particular worker's position within.
       * 
* * .tensorflow.ServerDef server_def = 1; */ public Builder setServerDef( org.tensorflow.distruntime.ServerDef.Builder builderForValue) { if (serverDefBuilder_ == null) { serverDef_ = builderForValue.build(); onChanged(); } else { serverDefBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Identifies the full cluster, and this particular worker's position within.
       * 
* * .tensorflow.ServerDef server_def = 1; */ public Builder mergeServerDef(org.tensorflow.distruntime.ServerDef value) { if (serverDefBuilder_ == null) { if (serverDef_ != null) { serverDef_ = org.tensorflow.distruntime.ServerDef.newBuilder(serverDef_).mergeFrom(value).buildPartial(); } else { serverDef_ = value; } onChanged(); } else { serverDefBuilder_.mergeFrom(value); } return this; } /** *
       * Identifies the full cluster, and this particular worker's position within.
       * 
* * .tensorflow.ServerDef server_def = 1; */ public Builder clearServerDef() { if (serverDefBuilder_ == null) { serverDef_ = null; onChanged(); } else { serverDef_ = null; serverDefBuilder_ = null; } return this; } /** *
       * Identifies the full cluster, and this particular worker's position within.
       * 
* * .tensorflow.ServerDef server_def = 1; */ public org.tensorflow.distruntime.ServerDef.Builder getServerDefBuilder() { onChanged(); return getServerDefFieldBuilder().getBuilder(); } /** *
       * Identifies the full cluster, and this particular worker's position within.
       * 
* * .tensorflow.ServerDef server_def = 1; */ public org.tensorflow.distruntime.ServerDefOrBuilder getServerDefOrBuilder() { if (serverDefBuilder_ != null) { return serverDefBuilder_.getMessageOrBuilder(); } else { return serverDef_ == null ? org.tensorflow.distruntime.ServerDef.getDefaultInstance() : serverDef_; } } /** *
       * Identifies the full cluster, and this particular worker's position within.
       * 
* * .tensorflow.ServerDef server_def = 1; */ private org.nd4j.shade.protobuf.SingleFieldBuilderV3< org.tensorflow.distruntime.ServerDef, org.tensorflow.distruntime.ServerDef.Builder, org.tensorflow.distruntime.ServerDefOrBuilder> getServerDefFieldBuilder() { if (serverDefBuilder_ == null) { serverDefBuilder_ = new org.nd4j.shade.protobuf.SingleFieldBuilderV3< org.tensorflow.distruntime.ServerDef, org.tensorflow.distruntime.ServerDef.Builder, org.tensorflow.distruntime.ServerDefOrBuilder>( getServerDef(), getParentForChildren(), isClean()); serverDef_ = null; } return serverDefBuilder_; } private boolean async_ ; /** *
       * Whether the ops on the worker should be executed synchronously or
       * asynchronously. By default, ops are executed synchronously.
       * 
* * bool async = 2; */ public boolean getAsync() { return async_; } /** *
       * Whether the ops on the worker should be executed synchronously or
       * asynchronously. By default, ops are executed synchronously.
       * 
* * bool async = 2; */ 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; */ 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; */ 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; */ 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.
       * 
* * int64 keep_alive_secs = 3; */ public Builder clearKeepAliveSecs() { keepAliveSecs_ = 0L; onChanged(); return this; } private org.tensorflow.framework.VersionDef versionDef_ = null; private org.nd4j.shade.protobuf.SingleFieldBuilderV3< org.tensorflow.framework.VersionDef, org.tensorflow.framework.VersionDef.Builder, org.tensorflow.framework.VersionDefOrBuilder> versionDefBuilder_; /** *
       * This is the version for all the ops that will be enqueued by the client.
       * 
* * .tensorflow.VersionDef version_def = 4; */ public boolean hasVersionDef() { return versionDefBuilder_ != null || versionDef_ != null; } /** *
       * This is the version for all the ops that will be enqueued by the client.
       * 
* * .tensorflow.VersionDef version_def = 4; */ public org.tensorflow.framework.VersionDef getVersionDef() { if (versionDefBuilder_ == null) { return versionDef_ == null ? org.tensorflow.framework.VersionDef.getDefaultInstance() : versionDef_; } else { return versionDefBuilder_.getMessage(); } } /** *
       * This is the version for all the ops that will be enqueued by the client.
       * 
* * .tensorflow.VersionDef version_def = 4; */ public Builder setVersionDef(org.tensorflow.framework.VersionDef value) { if (versionDefBuilder_ == null) { if (value == null) { throw new NullPointerException(); } versionDef_ = value; onChanged(); } else { versionDefBuilder_.setMessage(value); } return this; } /** *
       * This is the version for all the ops that will be enqueued by the client.
       * 
* * .tensorflow.VersionDef version_def = 4; */ public Builder setVersionDef( org.tensorflow.framework.VersionDef.Builder builderForValue) { if (versionDefBuilder_ == null) { versionDef_ = builderForValue.build(); onChanged(); } else { versionDefBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * This is the version for all the ops that will be enqueued by the client.
       * 
* * .tensorflow.VersionDef version_def = 4; */ public Builder mergeVersionDef(org.tensorflow.framework.VersionDef value) { if (versionDefBuilder_ == null) { if (versionDef_ != null) { versionDef_ = org.tensorflow.framework.VersionDef.newBuilder(versionDef_).mergeFrom(value).buildPartial(); } else { versionDef_ = value; } onChanged(); } else { versionDefBuilder_.mergeFrom(value); } return this; } /** *
       * This is the version for all the ops that will be enqueued by the client.
       * 
* * .tensorflow.VersionDef version_def = 4; */ public Builder clearVersionDef() { if (versionDefBuilder_ == null) { versionDef_ = null; onChanged(); } else { versionDef_ = null; versionDefBuilder_ = null; } return this; } /** *
       * This is the version for all the ops that will be enqueued by the client.
       * 
* * .tensorflow.VersionDef version_def = 4; */ public org.tensorflow.framework.VersionDef.Builder getVersionDefBuilder() { onChanged(); return getVersionDefFieldBuilder().getBuilder(); } /** *
       * This is the version for all the ops that will be enqueued by the client.
       * 
* * .tensorflow.VersionDef version_def = 4; */ public org.tensorflow.framework.VersionDefOrBuilder getVersionDefOrBuilder() { if (versionDefBuilder_ != null) { return versionDefBuilder_.getMessageOrBuilder(); } else { return versionDef_ == null ? org.tensorflow.framework.VersionDef.getDefaultInstance() : versionDef_; } } /** *
       * 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_; } public final Builder setUnknownFields( final org.nd4j.shade.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final org.nd4j.shade.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:tensorflow.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() { 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; } 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; */ long getContextId(); /** *
     * List of devices that are locally accessible to the worker.
     * 
* * repeated .tensorflow.DeviceAttributes device_attributes = 2; */ java.util.List getDeviceAttributesList(); /** *
     * List of devices that are locally accessible to the worker.
     * 
* * repeated .tensorflow.DeviceAttributes device_attributes = 2; */ org.tensorflow.framework.DeviceAttributes getDeviceAttributes(int index); /** *
     * List of devices that are locally accessible to the worker.
     * 
* * repeated .tensorflow.DeviceAttributes device_attributes = 2; */ int getDeviceAttributesCount(); /** *
     * List of devices that are locally accessible to the worker.
     * 
* * repeated .tensorflow.DeviceAttributes device_attributes = 2; */ java.util.List getDeviceAttributesOrBuilderList(); /** *
     * 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() { contextId_ = 0L; deviceAttributes_ = java.util.Collections.emptyList(); } @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; default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 9: { contextId_ = input.readFixed64(); break; } case 18: { if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { deviceAttributes_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000002; } deviceAttributes_.add( input.readMessage(org.tensorflow.framework.DeviceAttributes.parser(), extensionRegistry)); 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_ & 0x00000002) == 0x00000002)) { 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; } 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); } private int bitField0_; 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; */ 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.
     * 
* * repeated .tensorflow.DeviceAttributes device_attributes = 2; */ public java.util.List getDeviceAttributesList() { return deviceAttributes_; } /** *
     * List of devices that are locally accessible to the worker.
     * 
* * repeated .tensorflow.DeviceAttributes device_attributes = 2; */ public java.util.List getDeviceAttributesOrBuilderList() { return deviceAttributes_; } /** *
     * List of devices that are locally accessible to the worker.
     * 
* * repeated .tensorflow.DeviceAttributes device_attributes = 2; */ public int getDeviceAttributesCount() { return deviceAttributes_.size(); } /** *
     * List of devices that are locally accessible to the worker.
     * 
* * repeated .tensorflow.DeviceAttributes device_attributes = 2; */ public org.tensorflow.framework.DeviceAttributes getDeviceAttributes(int index) { return deviceAttributes_.get(index); } /** *
     * List of devices that are locally accessible to the worker.
     * 
* * repeated .tensorflow.DeviceAttributes device_attributes = 2; */ public org.tensorflow.framework.DeviceAttributesOrBuilder getDeviceAttributesOrBuilder( int index) { return deviceAttributes_.get(index); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(org.nd4j.shade.protobuf.CodedOutputStream output) throws java.io.IOException { if (contextId_ != 0L) { output.writeFixed64(1, contextId_); } for (int i = 0; i < deviceAttributes_.size(); i++) { output.writeMessage(2, deviceAttributes_.get(i)); } unknownFields.writeTo(output); } 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; boolean result = true; result = result && (getContextId() == other.getContextId()); result = result && getDeviceAttributesList() .equals(other.getDeviceAttributesList()); result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); 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); } 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); } 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; } 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(); } } public Builder clear() { super.clear(); contextId_ = 0L; if (deviceAttributesBuilder_ == null) { deviceAttributes_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); } else { deviceAttributesBuilder_.clear(); } return this; } public org.nd4j.shade.protobuf.Descriptors.Descriptor getDescriptorForType() { return tensorflow.eager.EagerServiceOuterClass.internal_static_tensorflow_eager_CreateContextResponse_descriptor; } public tensorflow.eager.EagerServiceOuterClass.CreateContextResponse getDefaultInstanceForType() { return tensorflow.eager.EagerServiceOuterClass.CreateContextResponse.getDefaultInstance(); } public tensorflow.eager.EagerServiceOuterClass.CreateContextResponse build() { tensorflow.eager.EagerServiceOuterClass.CreateContextResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public tensorflow.eager.EagerServiceOuterClass.CreateContextResponse buildPartial() { tensorflow.eager.EagerServiceOuterClass.CreateContextResponse result = new tensorflow.eager.EagerServiceOuterClass.CreateContextResponse(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; result.contextId_ = contextId_; if (deviceAttributesBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002)) { deviceAttributes_ = java.util.Collections.unmodifiableList(deviceAttributes_); bitField0_ = (bitField0_ & ~0x00000002); } result.deviceAttributes_ = deviceAttributes_; } else { result.deviceAttributes_ = deviceAttributesBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( org.nd4j.shade.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(org.nd4j.shade.protobuf.Message other) { if (other instanceof 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_ & ~0x00000002); } else { ensureDeviceAttributesIsMutable(); deviceAttributes_.addAll(other.deviceAttributes_); } onChanged(); } } else { if (!other.deviceAttributes_.isEmpty()) { if (deviceAttributesBuilder_.isEmpty()) { deviceAttributesBuilder_.dispose(); deviceAttributesBuilder_ = null; deviceAttributes_ = other.deviceAttributes_; bitField0_ = (bitField0_ & ~0x00000002); deviceAttributesBuilder_ = org.nd4j.shade.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getDeviceAttributesFieldBuilder() : null; } else { deviceAttributesBuilder_.addAllMessages(other.deviceAttributes_); } } } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( org.nd4j.shade.protobuf.CodedInputStream input, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { 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; */ 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; */ 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.
       * 
* * fixed64 context_id = 1; */ public Builder clearContextId() { contextId_ = 0L; onChanged(); return this; } private java.util.List deviceAttributes_ = java.util.Collections.emptyList(); private void ensureDeviceAttributesIsMutable() { if (!((bitField0_ & 0x00000002) == 0x00000002)) { deviceAttributes_ = new java.util.ArrayList(deviceAttributes_); bitField0_ |= 0x00000002; } } private org.nd4j.shade.protobuf.RepeatedFieldBuilderV3< org.tensorflow.framework.DeviceAttributes, org.tensorflow.framework.DeviceAttributes.Builder, org.tensorflow.framework.DeviceAttributesOrBuilder> deviceAttributesBuilder_; /** *
       * List of devices that are locally accessible to the worker.
       * 
* * repeated .tensorflow.DeviceAttributes device_attributes = 2; */ public java.util.List getDeviceAttributesList() { if (deviceAttributesBuilder_ == null) { return java.util.Collections.unmodifiableList(deviceAttributes_); } else { return deviceAttributesBuilder_.getMessageList(); } } /** *
       * List of devices that are locally accessible to the worker.
       * 
* * repeated .tensorflow.DeviceAttributes device_attributes = 2; */ public int getDeviceAttributesCount() { if (deviceAttributesBuilder_ == null) { return deviceAttributes_.size(); } else { return deviceAttributesBuilder_.getCount(); } } /** *
       * List of devices that are locally accessible to the worker.
       * 
* * repeated .tensorflow.DeviceAttributes device_attributes = 2; */ public org.tensorflow.framework.DeviceAttributes getDeviceAttributes(int index) { if (deviceAttributesBuilder_ == null) { return deviceAttributes_.get(index); } else { return deviceAttributesBuilder_.getMessage(index); } } /** *
       * List of devices that are locally accessible to the worker.
       * 
* * repeated .tensorflow.DeviceAttributes device_attributes = 2; */ public Builder setDeviceAttributes( int index, org.tensorflow.framework.DeviceAttributes value) { if (deviceAttributesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureDeviceAttributesIsMutable(); deviceAttributes_.set(index, value); onChanged(); } else { deviceAttributesBuilder_.setMessage(index, value); } return this; } /** *
       * List of devices that are locally accessible to the worker.
       * 
* * repeated .tensorflow.DeviceAttributes device_attributes = 2; */ public Builder setDeviceAttributes( int index, org.tensorflow.framework.DeviceAttributes.Builder builderForValue) { if (deviceAttributesBuilder_ == null) { ensureDeviceAttributesIsMutable(); deviceAttributes_.set(index, builderForValue.build()); onChanged(); } else { deviceAttributesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * List of devices that are locally accessible to the worker.
       * 
* * repeated .tensorflow.DeviceAttributes device_attributes = 2; */ public Builder addDeviceAttributes(org.tensorflow.framework.DeviceAttributes value) { if (deviceAttributesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureDeviceAttributesIsMutable(); deviceAttributes_.add(value); onChanged(); } else { deviceAttributesBuilder_.addMessage(value); } return this; } /** *
       * List of devices that are locally accessible to the worker.
       * 
* * repeated .tensorflow.DeviceAttributes device_attributes = 2; */ public Builder addDeviceAttributes( int index, org.tensorflow.framework.DeviceAttributes value) { if (deviceAttributesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureDeviceAttributesIsMutable(); deviceAttributes_.add(index, value); onChanged(); } else { deviceAttributesBuilder_.addMessage(index, value); } return this; } /** *
       * List of devices that are locally accessible to the worker.
       * 
* * repeated .tensorflow.DeviceAttributes device_attributes = 2; */ public Builder addDeviceAttributes( org.tensorflow.framework.DeviceAttributes.Builder builderForValue) { if (deviceAttributesBuilder_ == null) { ensureDeviceAttributesIsMutable(); deviceAttributes_.add(builderForValue.build()); onChanged(); } else { deviceAttributesBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * List of devices that are locally accessible to the worker.
       * 
* * repeated .tensorflow.DeviceAttributes device_attributes = 2; */ public Builder addDeviceAttributes( int index, org.tensorflow.framework.DeviceAttributes.Builder builderForValue) { if (deviceAttributesBuilder_ == null) { ensureDeviceAttributesIsMutable(); deviceAttributes_.add(index, builderForValue.build()); onChanged(); } else { deviceAttributesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * List of devices that are locally accessible to the worker.
       * 
* * repeated .tensorflow.DeviceAttributes device_attributes = 2; */ public Builder addAllDeviceAttributes( java.lang.Iterable values) { if (deviceAttributesBuilder_ == null) { ensureDeviceAttributesIsMutable(); org.nd4j.shade.protobuf.AbstractMessageLite.Builder.addAll( values, deviceAttributes_); onChanged(); } else { deviceAttributesBuilder_.addAllMessages(values); } return this; } /** *
       * List of devices that are locally accessible to the worker.
       * 
* * repeated .tensorflow.DeviceAttributes device_attributes = 2; */ public Builder clearDeviceAttributes() { if (deviceAttributesBuilder_ == null) { deviceAttributes_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { deviceAttributesBuilder_.clear(); } return this; } /** *
       * List of devices that are locally accessible to the worker.
       * 
* * repeated .tensorflow.DeviceAttributes device_attributes = 2; */ public Builder removeDeviceAttributes(int index) { if (deviceAttributesBuilder_ == null) { ensureDeviceAttributesIsMutable(); deviceAttributes_.remove(index); onChanged(); } else { deviceAttributesBuilder_.remove(index); } return this; } /** *
       * List of devices that are locally accessible to the worker.
       * 
* * repeated .tensorflow.DeviceAttributes device_attributes = 2; */ public org.tensorflow.framework.DeviceAttributes.Builder getDeviceAttributesBuilder( int index) { return getDeviceAttributesFieldBuilder().getBuilder(index); } /** *
       * List of devices that are locally accessible to the worker.
       * 
* * repeated .tensorflow.DeviceAttributes device_attributes = 2; */ public org.tensorflow.framework.DeviceAttributesOrBuilder getDeviceAttributesOrBuilder( int index) { if (deviceAttributesBuilder_ == null) { return deviceAttributes_.get(index); } else { return deviceAttributesBuilder_.getMessageOrBuilder(index); } } /** *
       * List of devices that are locally accessible to the worker.
       * 
* * repeated .tensorflow.DeviceAttributes device_attributes = 2; */ public java.util.List getDeviceAttributesOrBuilderList() { if (deviceAttributesBuilder_ != null) { return deviceAttributesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(deviceAttributes_); } } /** *
       * List of devices that are locally accessible to the worker.
       * 
* * repeated .tensorflow.DeviceAttributes device_attributes = 2; */ public org.tensorflow.framework.DeviceAttributes.Builder addDeviceAttributesBuilder() { return getDeviceAttributesFieldBuilder().addBuilder( org.tensorflow.framework.DeviceAttributes.getDefaultInstance()); } /** *
       * List of devices that are locally accessible to the worker.
       * 
* * repeated .tensorflow.DeviceAttributes device_attributes = 2; */ public org.tensorflow.framework.DeviceAttributes.Builder addDeviceAttributesBuilder( int index) { return getDeviceAttributesFieldBuilder().addBuilder( index, org.tensorflow.framework.DeviceAttributes.getDefaultInstance()); } /** *
       * 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_ & 0x00000002) == 0x00000002), getParentForChildren(), isClean()); deviceAttributes_ = null; } return deviceAttributesBuilder_; } public final Builder setUnknownFields( final org.nd4j.shade.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final org.nd4j.shade.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:tensorflow.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() { 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; } 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; */ 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() { contextId_ = 0L; queue_ = java.util.Collections.emptyList(); } @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; default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 9: { contextId_ = input.readFixed64(); break; } case 26: { if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { queue_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000002; } queue_.add( input.readMessage(tensorflow.eager.EagerServiceOuterClass.QueueItem.parser(), extensionRegistry)); 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_ & 0x00000002) == 0x00000002)) { 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; } 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); } private int bitField0_; public static final int CONTEXT_ID_FIELD_NUMBER = 1; private long contextId_; /** * fixed64 context_id = 1; */ public long getContextId() { return contextId_; } public static final int QUEUE_FIELD_NUMBER = 3; private java.util.List queue_; /** * repeated .tensorflow.eager.QueueItem queue = 3; */ public java.util.List getQueueList() { return queue_; } /** * repeated .tensorflow.eager.QueueItem queue = 3; */ public java.util.List getQueueOrBuilderList() { return queue_; } /** * repeated .tensorflow.eager.QueueItem queue = 3; */ public int getQueueCount() { return queue_.size(); } /** * repeated .tensorflow.eager.QueueItem queue = 3; */ public tensorflow.eager.EagerServiceOuterClass.QueueItem getQueue(int index) { return queue_.get(index); } /** * repeated .tensorflow.eager.QueueItem queue = 3; */ public tensorflow.eager.EagerServiceOuterClass.QueueItemOrBuilder getQueueOrBuilder( int index) { return queue_.get(index); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(org.nd4j.shade.protobuf.CodedOutputStream output) throws java.io.IOException { if (contextId_ != 0L) { output.writeFixed64(1, contextId_); } for (int i = 0; i < queue_.size(); i++) { output.writeMessage(3, queue_.get(i)); } unknownFields.writeTo(output); } 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; boolean result = true; result = result && (getContextId() == other.getContextId()); result = result && getQueueList() .equals(other.getQueueList()); result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); 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); } 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); } 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; } 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(); } } public Builder clear() { super.clear(); contextId_ = 0L; if (queueBuilder_ == null) { queue_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); } else { queueBuilder_.clear(); } return this; } public org.nd4j.shade.protobuf.Descriptors.Descriptor getDescriptorForType() { return tensorflow.eager.EagerServiceOuterClass.internal_static_tensorflow_eager_EnqueueRequest_descriptor; } public tensorflow.eager.EagerServiceOuterClass.EnqueueRequest getDefaultInstanceForType() { return tensorflow.eager.EagerServiceOuterClass.EnqueueRequest.getDefaultInstance(); } public tensorflow.eager.EagerServiceOuterClass.EnqueueRequest build() { tensorflow.eager.EagerServiceOuterClass.EnqueueRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public tensorflow.eager.EagerServiceOuterClass.EnqueueRequest buildPartial() { tensorflow.eager.EagerServiceOuterClass.EnqueueRequest result = new tensorflow.eager.EagerServiceOuterClass.EnqueueRequest(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; result.contextId_ = contextId_; if (queueBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002)) { queue_ = java.util.Collections.unmodifiableList(queue_); bitField0_ = (bitField0_ & ~0x00000002); } result.queue_ = queue_; } else { result.queue_ = queueBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( org.nd4j.shade.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(org.nd4j.shade.protobuf.Message other) { if (other instanceof 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_ & ~0x00000002); } else { ensureQueueIsMutable(); queue_.addAll(other.queue_); } onChanged(); } } else { if (!other.queue_.isEmpty()) { if (queueBuilder_.isEmpty()) { queueBuilder_.dispose(); queueBuilder_ = null; queue_ = other.queue_; bitField0_ = (bitField0_ & ~0x00000002); queueBuilder_ = org.nd4j.shade.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getQueueFieldBuilder() : null; } else { queueBuilder_.addAllMessages(other.queue_); } } } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( org.nd4j.shade.protobuf.CodedInputStream input, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { 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; */ public long getContextId() { return contextId_; } /** * fixed64 context_id = 1; */ public Builder setContextId(long value) { contextId_ = value; onChanged(); return this; } /** * fixed64 context_id = 1; */ public Builder clearContextId() { contextId_ = 0L; onChanged(); return this; } private java.util.List queue_ = java.util.Collections.emptyList(); private void ensureQueueIsMutable() { if (!((bitField0_ & 0x00000002) == 0x00000002)) { queue_ = new java.util.ArrayList(queue_); bitField0_ |= 0x00000002; } } 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_ & ~0x00000002); 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_ & 0x00000002) == 0x00000002), getParentForChildren(), isClean()); queue_ = null; } return queueBuilder_; } public final Builder setUnknownFields( final org.nd4j.shade.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final org.nd4j.shade.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:tensorflow.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() { 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; } 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 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 (!parseUnknownFieldProto3( 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; } 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; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(org.nd4j.shade.protobuf.CodedOutputStream output) throws java.io.IOException { unknownFields.writeTo(output); } 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; boolean result = true; result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); 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); } 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); } 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; } 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) { } } public Builder clear() { super.clear(); return this; } public org.nd4j.shade.protobuf.Descriptors.Descriptor getDescriptorForType() { return tensorflow.eager.EagerServiceOuterClass.internal_static_tensorflow_eager_EnqueueResponse_descriptor; } public tensorflow.eager.EagerServiceOuterClass.EnqueueResponse getDefaultInstanceForType() { return tensorflow.eager.EagerServiceOuterClass.EnqueueResponse.getDefaultInstance(); } public tensorflow.eager.EagerServiceOuterClass.EnqueueResponse build() { tensorflow.eager.EagerServiceOuterClass.EnqueueResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public tensorflow.eager.EagerServiceOuterClass.EnqueueResponse buildPartial() { tensorflow.eager.EagerServiceOuterClass.EnqueueResponse result = new tensorflow.eager.EagerServiceOuterClass.EnqueueResponse(this); onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( org.nd4j.shade.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(org.nd4j.shade.protobuf.Message other) { if (other instanceof 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; } public final boolean isInitialized() { return true; } public Builder mergeFrom( org.nd4j.shade.protobuf.CodedInputStream input, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { 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; } public final Builder setUnknownFields( final org.nd4j.shade.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final org.nd4j.shade.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:tensorflow.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() { 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; } 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; */ long getContextId(); /** *
     * Ids to wait on. If empty, wait on everything currently pending.
     * 
* * repeated int64 op_id = 2; */ java.util.List getOpIdList(); /** *
     * Ids to wait on. If empty, wait on everything currently pending.
     * 
* * repeated int64 op_id = 2; */ int getOpIdCount(); /** *
     * Ids to wait on. If empty, wait on everything currently pending.
     * 
* * repeated int64 op_id = 2; */ 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() { contextId_ = 0L; opId_ = java.util.Collections.emptyList(); } @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; default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 9: { contextId_ = input.readFixed64(); break; } case 16: { if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { opId_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000002; } opId_.add(input.readInt64()); break; } case 18: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); if (!((mutable_bitField0_ & 0x00000002) == 0x00000002) && input.getBytesUntilLimit() > 0) { opId_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000002; } while (input.getBytesUntilLimit() > 0) { opId_.add(input.readInt64()); } input.popLimit(limit); 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_ & 0x00000002) == 0x00000002)) { opId_ = java.util.Collections.unmodifiableList(opId_); } 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; } 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); } private int bitField0_; public static final int CONTEXT_ID_FIELD_NUMBER = 1; private long contextId_; /** * fixed64 context_id = 1; */ public long getContextId() { return contextId_; } public static final int OP_ID_FIELD_NUMBER = 2; private java.util.List opId_; /** *
     * Ids to wait on. If empty, wait on everything currently pending.
     * 
* * repeated int64 op_id = 2; */ public java.util.List getOpIdList() { return opId_; } /** *
     * Ids to wait on. If empty, wait on everything currently pending.
     * 
* * repeated int64 op_id = 2; */ public int getOpIdCount() { return opId_.size(); } /** *
     * Ids to wait on. If empty, wait on everything currently pending.
     * 
* * repeated int64 op_id = 2; */ public long getOpId(int index) { return opId_.get(index); } private int opIdMemoizedSerializedSize = -1; private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(org.nd4j.shade.protobuf.CodedOutputStream output) throws java.io.IOException { 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_.get(i)); } unknownFields.writeTo(output); } 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_.get(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; boolean result = true; result = result && (getContextId() == other.getContextId()); result = result && getOpIdList() .equals(other.getOpIdList()); result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); 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); } 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); } 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; } 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) { } } public Builder clear() { super.clear(); contextId_ = 0L; opId_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); return this; } public org.nd4j.shade.protobuf.Descriptors.Descriptor getDescriptorForType() { return tensorflow.eager.EagerServiceOuterClass.internal_static_tensorflow_eager_WaitQueueDoneRequest_descriptor; } public tensorflow.eager.EagerServiceOuterClass.WaitQueueDoneRequest getDefaultInstanceForType() { return tensorflow.eager.EagerServiceOuterClass.WaitQueueDoneRequest.getDefaultInstance(); } public tensorflow.eager.EagerServiceOuterClass.WaitQueueDoneRequest build() { tensorflow.eager.EagerServiceOuterClass.WaitQueueDoneRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public tensorflow.eager.EagerServiceOuterClass.WaitQueueDoneRequest buildPartial() { tensorflow.eager.EagerServiceOuterClass.WaitQueueDoneRequest result = new tensorflow.eager.EagerServiceOuterClass.WaitQueueDoneRequest(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; result.contextId_ = contextId_; if (((bitField0_ & 0x00000002) == 0x00000002)) { opId_ = java.util.Collections.unmodifiableList(opId_); bitField0_ = (bitField0_ & ~0x00000002); } result.opId_ = opId_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( org.nd4j.shade.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(org.nd4j.shade.protobuf.Message other) { if (other instanceof 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_ & ~0x00000002); } else { ensureOpIdIsMutable(); opId_.addAll(other.opId_); } onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( org.nd4j.shade.protobuf.CodedInputStream input, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { 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; */ public long getContextId() { return contextId_; } /** * fixed64 context_id = 1; */ public Builder setContextId(long value) { contextId_ = value; onChanged(); return this; } /** * fixed64 context_id = 1; */ public Builder clearContextId() { contextId_ = 0L; onChanged(); return this; } private java.util.List opId_ = java.util.Collections.emptyList(); private void ensureOpIdIsMutable() { if (!((bitField0_ & 0x00000002) == 0x00000002)) { opId_ = new java.util.ArrayList(opId_); bitField0_ |= 0x00000002; } } /** *
       * Ids to wait on. If empty, wait on everything currently pending.
       * 
* * repeated int64 op_id = 2; */ public java.util.List getOpIdList() { return java.util.Collections.unmodifiableList(opId_); } /** *
       * Ids to wait on. If empty, wait on everything currently pending.
       * 
* * repeated int64 op_id = 2; */ public int getOpIdCount() { return opId_.size(); } /** *
       * Ids to wait on. If empty, wait on everything currently pending.
       * 
* * repeated int64 op_id = 2; */ public long getOpId(int index) { return opId_.get(index); } /** *
       * Ids to wait on. If empty, wait on everything currently pending.
       * 
* * repeated int64 op_id = 2; */ public Builder setOpId( int index, long value) { ensureOpIdIsMutable(); opId_.set(index, value); onChanged(); return this; } /** *
       * Ids to wait on. If empty, wait on everything currently pending.
       * 
* * repeated int64 op_id = 2; */ public Builder addOpId(long value) { ensureOpIdIsMutable(); opId_.add(value); onChanged(); return this; } /** *
       * Ids to wait on. If empty, wait on everything currently pending.
       * 
* * repeated int64 op_id = 2; */ 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; */ public Builder clearOpId() { opId_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } public final Builder setUnknownFields( final org.nd4j.shade.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final org.nd4j.shade.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:tensorflow.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() { 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; } 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 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 (!parseUnknownFieldProto3( 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; } 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; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(org.nd4j.shade.protobuf.CodedOutputStream output) throws java.io.IOException { unknownFields.writeTo(output); } 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; boolean result = true; result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); 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); } 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); } 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; } 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) { } } public Builder clear() { super.clear(); return this; } public org.nd4j.shade.protobuf.Descriptors.Descriptor getDescriptorForType() { return tensorflow.eager.EagerServiceOuterClass.internal_static_tensorflow_eager_WaitQueueDoneResponse_descriptor; } public tensorflow.eager.EagerServiceOuterClass.WaitQueueDoneResponse getDefaultInstanceForType() { return tensorflow.eager.EagerServiceOuterClass.WaitQueueDoneResponse.getDefaultInstance(); } public tensorflow.eager.EagerServiceOuterClass.WaitQueueDoneResponse build() { tensorflow.eager.EagerServiceOuterClass.WaitQueueDoneResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public tensorflow.eager.EagerServiceOuterClass.WaitQueueDoneResponse buildPartial() { tensorflow.eager.EagerServiceOuterClass.WaitQueueDoneResponse result = new tensorflow.eager.EagerServiceOuterClass.WaitQueueDoneResponse(this); onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( org.nd4j.shade.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(org.nd4j.shade.protobuf.Message other) { if (other instanceof 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; } public final boolean isInitialized() { return true; } public Builder mergeFrom( org.nd4j.shade.protobuf.CodedInputStream input, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { 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; } public final Builder setUnknownFields( final org.nd4j.shade.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final org.nd4j.shade.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:tensorflow.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() { 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; } 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; */ 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() { contextId_ = 0L; } @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(); } 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; default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 9: { contextId_ = input.readFixed64(); 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; } 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; */ public long getContextId() { return contextId_; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(org.nd4j.shade.protobuf.CodedOutputStream output) throws java.io.IOException { if (contextId_ != 0L) { output.writeFixed64(1, contextId_); } unknownFields.writeTo(output); } 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; boolean result = true; result = result && (getContextId() == other.getContextId()); result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); 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); } 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); } 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; } 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) { } } public Builder clear() { super.clear(); contextId_ = 0L; return this; } public org.nd4j.shade.protobuf.Descriptors.Descriptor getDescriptorForType() { return tensorflow.eager.EagerServiceOuterClass.internal_static_tensorflow_eager_KeepAliveRequest_descriptor; } public tensorflow.eager.EagerServiceOuterClass.KeepAliveRequest getDefaultInstanceForType() { return tensorflow.eager.EagerServiceOuterClass.KeepAliveRequest.getDefaultInstance(); } public tensorflow.eager.EagerServiceOuterClass.KeepAliveRequest build() { tensorflow.eager.EagerServiceOuterClass.KeepAliveRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public tensorflow.eager.EagerServiceOuterClass.KeepAliveRequest buildPartial() { tensorflow.eager.EagerServiceOuterClass.KeepAliveRequest result = new tensorflow.eager.EagerServiceOuterClass.KeepAliveRequest(this); result.contextId_ = contextId_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( org.nd4j.shade.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(org.nd4j.shade.protobuf.Message other) { if (other instanceof 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; } public final boolean isInitialized() { return true; } public Builder mergeFrom( org.nd4j.shade.protobuf.CodedInputStream input, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { 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; */ public long getContextId() { return contextId_; } /** * fixed64 context_id = 1; */ public Builder setContextId(long value) { contextId_ = value; onChanged(); return this; } /** * fixed64 context_id = 1; */ public Builder clearContextId() { contextId_ = 0L; onChanged(); return this; } public final Builder setUnknownFields( final org.nd4j.shade.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final org.nd4j.shade.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:tensorflow.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() { 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; } 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 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 (!parseUnknownFieldProto3( 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; } 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; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(org.nd4j.shade.protobuf.CodedOutputStream output) throws java.io.IOException { unknownFields.writeTo(output); } 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; boolean result = true; result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); 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); } 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); } 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; } 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) { } } public Builder clear() { super.clear(); return this; } public org.nd4j.shade.protobuf.Descriptors.Descriptor getDescriptorForType() { return tensorflow.eager.EagerServiceOuterClass.internal_static_tensorflow_eager_KeepAliveResponse_descriptor; } public tensorflow.eager.EagerServiceOuterClass.KeepAliveResponse getDefaultInstanceForType() { return tensorflow.eager.EagerServiceOuterClass.KeepAliveResponse.getDefaultInstance(); } public tensorflow.eager.EagerServiceOuterClass.KeepAliveResponse build() { tensorflow.eager.EagerServiceOuterClass.KeepAliveResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public tensorflow.eager.EagerServiceOuterClass.KeepAliveResponse buildPartial() { tensorflow.eager.EagerServiceOuterClass.KeepAliveResponse result = new tensorflow.eager.EagerServiceOuterClass.KeepAliveResponse(this); onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( org.nd4j.shade.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(org.nd4j.shade.protobuf.Message other) { if (other instanceof 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; } public final boolean isInitialized() { return true; } public Builder mergeFrom( org.nd4j.shade.protobuf.CodedInputStream input, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { 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; } public final Builder setUnknownFields( final org.nd4j.shade.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final org.nd4j.shade.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:tensorflow.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() { 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; } 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; */ 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() { contextId_ = 0L; } @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(); } 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; default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 9: { contextId_ = input.readFixed64(); 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; } 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; */ public long getContextId() { return contextId_; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(org.nd4j.shade.protobuf.CodedOutputStream output) throws java.io.IOException { if (contextId_ != 0L) { output.writeFixed64(1, contextId_); } unknownFields.writeTo(output); } 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; boolean result = true; result = result && (getContextId() == other.getContextId()); result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); 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); } 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); } 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; } 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) { } } public Builder clear() { super.clear(); contextId_ = 0L; return this; } public org.nd4j.shade.protobuf.Descriptors.Descriptor getDescriptorForType() { return tensorflow.eager.EagerServiceOuterClass.internal_static_tensorflow_eager_CloseContextRequest_descriptor; } public tensorflow.eager.EagerServiceOuterClass.CloseContextRequest getDefaultInstanceForType() { return tensorflow.eager.EagerServiceOuterClass.CloseContextRequest.getDefaultInstance(); } public tensorflow.eager.EagerServiceOuterClass.CloseContextRequest build() { tensorflow.eager.EagerServiceOuterClass.CloseContextRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public tensorflow.eager.EagerServiceOuterClass.CloseContextRequest buildPartial() { tensorflow.eager.EagerServiceOuterClass.CloseContextRequest result = new tensorflow.eager.EagerServiceOuterClass.CloseContextRequest(this); result.contextId_ = contextId_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( org.nd4j.shade.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(org.nd4j.shade.protobuf.Message other) { if (other instanceof 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; } public final boolean isInitialized() { return true; } public Builder mergeFrom( org.nd4j.shade.protobuf.CodedInputStream input, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { 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; */ public long getContextId() { return contextId_; } /** * fixed64 context_id = 1; */ public Builder setContextId(long value) { contextId_ = value; onChanged(); return this; } /** * fixed64 context_id = 1; */ public Builder clearContextId() { contextId_ = 0L; onChanged(); return this; } public final Builder setUnknownFields( final org.nd4j.shade.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final org.nd4j.shade.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:tensorflow.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() { 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; } 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 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 (!parseUnknownFieldProto3( 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; } 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; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(org.nd4j.shade.protobuf.CodedOutputStream output) throws java.io.IOException { unknownFields.writeTo(output); } 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; boolean result = true; result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); 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); } 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); } 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; } 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) { } } public Builder clear() { super.clear(); return this; } public org.nd4j.shade.protobuf.Descriptors.Descriptor getDescriptorForType() { return tensorflow.eager.EagerServiceOuterClass.internal_static_tensorflow_eager_CloseContextResponse_descriptor; } public tensorflow.eager.EagerServiceOuterClass.CloseContextResponse getDefaultInstanceForType() { return tensorflow.eager.EagerServiceOuterClass.CloseContextResponse.getDefaultInstance(); } public tensorflow.eager.EagerServiceOuterClass.CloseContextResponse build() { tensorflow.eager.EagerServiceOuterClass.CloseContextResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public tensorflow.eager.EagerServiceOuterClass.CloseContextResponse buildPartial() { tensorflow.eager.EagerServiceOuterClass.CloseContextResponse result = new tensorflow.eager.EagerServiceOuterClass.CloseContextResponse(this); onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( org.nd4j.shade.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(org.nd4j.shade.protobuf.Message other) { if (other instanceof 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; } public final boolean isInitialized() { return true; } public Builder mergeFrom( org.nd4j.shade.protobuf.CodedInputStream input, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { 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; } public final Builder setUnknownFields( final org.nd4j.shade.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final org.nd4j.shade.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:tensorflow.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() { 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; } 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; */ long getContextId(); /** * .tensorflow.FunctionDef function_def = 2; */ boolean hasFunctionDef(); /** * .tensorflow.FunctionDef function_def = 2; */ 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() { contextId_ = 0L; } @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(); } 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; default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { 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; } } } } 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; } 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; */ 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; */ public boolean hasFunctionDef() { return functionDef_ != null; } /** * .tensorflow.FunctionDef function_def = 2; */ public org.tensorflow.framework.FunctionDef getFunctionDef() { return functionDef_ == null ? org.tensorflow.framework.FunctionDef.getDefaultInstance() : functionDef_; } /** * .tensorflow.FunctionDef function_def = 2; */ public org.tensorflow.framework.FunctionDefOrBuilder getFunctionDefOrBuilder() { return getFunctionDef(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(org.nd4j.shade.protobuf.CodedOutputStream output) throws java.io.IOException { if (contextId_ != 0L) { output.writeFixed64(1, contextId_); } if (functionDef_ != null) { output.writeMessage(2, getFunctionDef()); } unknownFields.writeTo(output); } 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; boolean result = true; result = result && (getContextId() == other.getContextId()); result = result && (hasFunctionDef() == other.hasFunctionDef()); if (hasFunctionDef()) { result = result && getFunctionDef() .equals(other.getFunctionDef()); } result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); 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); } 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); } 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; } 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) { } } public Builder clear() { super.clear(); contextId_ = 0L; if (functionDefBuilder_ == null) { functionDef_ = null; } else { functionDef_ = null; functionDefBuilder_ = null; } return this; } public org.nd4j.shade.protobuf.Descriptors.Descriptor getDescriptorForType() { return tensorflow.eager.EagerServiceOuterClass.internal_static_tensorflow_eager_RegisterFunctionRequest_descriptor; } public tensorflow.eager.EagerServiceOuterClass.RegisterFunctionRequest getDefaultInstanceForType() { return tensorflow.eager.EagerServiceOuterClass.RegisterFunctionRequest.getDefaultInstance(); } public tensorflow.eager.EagerServiceOuterClass.RegisterFunctionRequest build() { tensorflow.eager.EagerServiceOuterClass.RegisterFunctionRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } 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; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( org.nd4j.shade.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(org.nd4j.shade.protobuf.Message other) { if (other instanceof 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; } public final boolean isInitialized() { return true; } public Builder mergeFrom( org.nd4j.shade.protobuf.CodedInputStream input, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { 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; */ public long getContextId() { return contextId_; } /** * fixed64 context_id = 1; */ public Builder setContextId(long value) { contextId_ = value; onChanged(); return this; } /** * fixed64 context_id = 1; */ public Builder clearContextId() { contextId_ = 0L; onChanged(); return this; } private org.tensorflow.framework.FunctionDef functionDef_ = null; 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; */ public boolean hasFunctionDef() { return functionDefBuilder_ != null || functionDef_ != null; } /** * .tensorflow.FunctionDef function_def = 2; */ 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_; } public final Builder setUnknownFields( final org.nd4j.shade.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final org.nd4j.shade.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:tensorflow.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() { 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; } 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 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 (!parseUnknownFieldProto3( 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; } 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; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(org.nd4j.shade.protobuf.CodedOutputStream output) throws java.io.IOException { unknownFields.writeTo(output); } 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; boolean result = true; result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); 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); } 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); } 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; } 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) { } } public Builder clear() { super.clear(); return this; } public org.nd4j.shade.protobuf.Descriptors.Descriptor getDescriptorForType() { return tensorflow.eager.EagerServiceOuterClass.internal_static_tensorflow_eager_RegisterFunctionResponse_descriptor; } public tensorflow.eager.EagerServiceOuterClass.RegisterFunctionResponse getDefaultInstanceForType() { return tensorflow.eager.EagerServiceOuterClass.RegisterFunctionResponse.getDefaultInstance(); } public tensorflow.eager.EagerServiceOuterClass.RegisterFunctionResponse build() { tensorflow.eager.EagerServiceOuterClass.RegisterFunctionResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public tensorflow.eager.EagerServiceOuterClass.RegisterFunctionResponse buildPartial() { tensorflow.eager.EagerServiceOuterClass.RegisterFunctionResponse result = new tensorflow.eager.EagerServiceOuterClass.RegisterFunctionResponse(this); onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( org.nd4j.shade.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(org.nd4j.shade.protobuf.Message other) { if (other instanceof 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; } public final boolean isInitialized() { return true; } public Builder mergeFrom( org.nd4j.shade.protobuf.CodedInputStream input, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { 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; } public final Builder setUnknownFields( final org.nd4j.shade.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final org.nd4j.shade.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:tensorflow.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() { 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; } 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" }; org.nd4j.shade.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new org.nd4j.shade.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { public org.nd4j.shade.protobuf.ExtensionRegistry assignDescriptors( org.nd4j.shade.protobuf.Descriptors.FileDescriptor root) { descriptor = root; return null; } }; 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(), }, assigner); 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) }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy