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

tensorflow.Gdr Maven / Gradle / Ivy

// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: tensorflow/contrib/gdr/gdr.proto

package tensorflow;

public final class Gdr {
  private Gdr() {}
  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistryLite registry) {
  }

  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistry registry) {
    registerAllExtensions(
        (com.google.protobuf.ExtensionRegistryLite) registry);
  }
  public interface RemoteMemoryRegionOrBuilder extends
      // @@protoc_insertion_point(interface_extends:tensorflow.RemoteMemoryRegion)
      com.google.protobuf.MessageOrBuilder {

    /**
     * string host = 1;
     */
    java.lang.String getHost();
    /**
     * string host = 1;
     */
    com.google.protobuf.ByteString
        getHostBytes();

    /**
     * string port = 2;
     */
    java.lang.String getPort();
    /**
     * string port = 2;
     */
    com.google.protobuf.ByteString
        getPortBytes();

    /**
     * uint64 addr = 3;
     */
    long getAddr();

    /**
     * uint32 rkey = 4;
     */
    int getRkey();

    /**
     * uint32 tensor_key = 5;
     */
    int getTensorKey();

    /**
     * uint64 checksum = 6;
     */
    long getChecksum();
  }
  /**
   * Protobuf type {@code tensorflow.RemoteMemoryRegion}
   */
  public  static final class RemoteMemoryRegion extends
      com.google.protobuf.GeneratedMessageV3 implements
      // @@protoc_insertion_point(message_implements:tensorflow.RemoteMemoryRegion)
      RemoteMemoryRegionOrBuilder {
  private static final long serialVersionUID = 0L;
    // Use RemoteMemoryRegion.newBuilder() to construct.
    private RemoteMemoryRegion(com.google.protobuf.GeneratedMessageV3.Builder builder) {
      super(builder);
    }
    private RemoteMemoryRegion() {
      host_ = "";
      port_ = "";
      addr_ = 0L;
      rkey_ = 0;
      tensorKey_ = 0;
      checksum_ = 0L;
    }

    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet
    getUnknownFields() {
      return this.unknownFields;
    }
    private RemoteMemoryRegion(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      this();
      if (extensionRegistry == null) {
        throw new java.lang.NullPointerException();
      }
      int mutable_bitField0_ = 0;
      com.google.protobuf.UnknownFieldSet.Builder unknownFields =
          com.google.protobuf.UnknownFieldSet.newBuilder();
      try {
        boolean done = false;
        while (!done) {
          int tag = input.readTag();
          switch (tag) {
            case 0:
              done = true;
              break;
            case 10: {
              java.lang.String s = input.readStringRequireUtf8();

              host_ = s;
              break;
            }
            case 18: {
              java.lang.String s = input.readStringRequireUtf8();

              port_ = s;
              break;
            }
            case 24: {

              addr_ = input.readUInt64();
              break;
            }
            case 32: {

              rkey_ = input.readUInt32();
              break;
            }
            case 40: {

              tensorKey_ = input.readUInt32();
              break;
            }
            case 48: {

              checksum_ = input.readUInt64();
              break;
            }
            default: {
              if (!parseUnknownFieldProto3(
                  input, unknownFields, extensionRegistry, tag)) {
                done = true;
              }
              break;
            }
          }
        }
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        throw e.setUnfinishedMessage(this);
      } catch (java.io.IOException e) {
        throw new com.google.protobuf.InvalidProtocolBufferException(
            e).setUnfinishedMessage(this);
      } finally {
        this.unknownFields = unknownFields.build();
        makeExtensionsImmutable();
      }
    }
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return tensorflow.Gdr.internal_static_tensorflow_RemoteMemoryRegion_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return tensorflow.Gdr.internal_static_tensorflow_RemoteMemoryRegion_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              tensorflow.Gdr.RemoteMemoryRegion.class, tensorflow.Gdr.RemoteMemoryRegion.Builder.class);
    }

    public static final int HOST_FIELD_NUMBER = 1;
    private volatile java.lang.Object host_;
    /**
     * string host = 1;
     */
    public java.lang.String getHost() {
      java.lang.Object ref = host_;
      if (ref instanceof java.lang.String) {
        return (java.lang.String) ref;
      } else {
        com.google.protobuf.ByteString bs = 
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        host_ = s;
        return s;
      }
    }
    /**
     * string host = 1;
     */
    public com.google.protobuf.ByteString
        getHostBytes() {
      java.lang.Object ref = host_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        host_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

    public static final int PORT_FIELD_NUMBER = 2;
    private volatile java.lang.Object port_;
    /**
     * string port = 2;
     */
    public java.lang.String getPort() {
      java.lang.Object ref = port_;
      if (ref instanceof java.lang.String) {
        return (java.lang.String) ref;
      } else {
        com.google.protobuf.ByteString bs = 
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        port_ = s;
        return s;
      }
    }
    /**
     * string port = 2;
     */
    public com.google.protobuf.ByteString
        getPortBytes() {
      java.lang.Object ref = port_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        port_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

    public static final int ADDR_FIELD_NUMBER = 3;
    private long addr_;
    /**
     * uint64 addr = 3;
     */
    public long getAddr() {
      return addr_;
    }

    public static final int RKEY_FIELD_NUMBER = 4;
    private int rkey_;
    /**
     * uint32 rkey = 4;
     */
    public int getRkey() {
      return rkey_;
    }

    public static final int TENSOR_KEY_FIELD_NUMBER = 5;
    private int tensorKey_;
    /**
     * uint32 tensor_key = 5;
     */
    public int getTensorKey() {
      return tensorKey_;
    }

    public static final int CHECKSUM_FIELD_NUMBER = 6;
    private long checksum_;
    /**
     * uint64 checksum = 6;
     */
    public long getChecksum() {
      return checksum_;
    }

    private byte memoizedIsInitialized = -1;
    @java.lang.Override
    public final boolean isInitialized() {
      byte isInitialized = memoizedIsInitialized;
      if (isInitialized == 1) return true;
      if (isInitialized == 0) return false;

      memoizedIsInitialized = 1;
      return true;
    }

    @java.lang.Override
    public void writeTo(com.google.protobuf.CodedOutputStream output)
                        throws java.io.IOException {
      if (!getHostBytes().isEmpty()) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 1, host_);
      }
      if (!getPortBytes().isEmpty()) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 2, port_);
      }
      if (addr_ != 0L) {
        output.writeUInt64(3, addr_);
      }
      if (rkey_ != 0) {
        output.writeUInt32(4, rkey_);
      }
      if (tensorKey_ != 0) {
        output.writeUInt32(5, tensorKey_);
      }
      if (checksum_ != 0L) {
        output.writeUInt64(6, checksum_);
      }
      unknownFields.writeTo(output);
    }

    @java.lang.Override
    public int getSerializedSize() {
      int size = memoizedSize;
      if (size != -1) return size;

      size = 0;
      if (!getHostBytes().isEmpty()) {
        size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, host_);
      }
      if (!getPortBytes().isEmpty()) {
        size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, port_);
      }
      if (addr_ != 0L) {
        size += com.google.protobuf.CodedOutputStream
          .computeUInt64Size(3, addr_);
      }
      if (rkey_ != 0) {
        size += com.google.protobuf.CodedOutputStream
          .computeUInt32Size(4, rkey_);
      }
      if (tensorKey_ != 0) {
        size += com.google.protobuf.CodedOutputStream
          .computeUInt32Size(5, tensorKey_);
      }
      if (checksum_ != 0L) {
        size += com.google.protobuf.CodedOutputStream
          .computeUInt64Size(6, checksum_);
      }
      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.Gdr.RemoteMemoryRegion)) {
        return super.equals(obj);
      }
      tensorflow.Gdr.RemoteMemoryRegion other = (tensorflow.Gdr.RemoteMemoryRegion) obj;

      boolean result = true;
      result = result && getHost()
          .equals(other.getHost());
      result = result && getPort()
          .equals(other.getPort());
      result = result && (getAddr()
          == other.getAddr());
      result = result && (getRkey()
          == other.getRkey());
      result = result && (getTensorKey()
          == other.getTensorKey());
      result = result && (getChecksum()
          == other.getChecksum());
      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) + HOST_FIELD_NUMBER;
      hash = (53 * hash) + getHost().hashCode();
      hash = (37 * hash) + PORT_FIELD_NUMBER;
      hash = (53 * hash) + getPort().hashCode();
      hash = (37 * hash) + ADDR_FIELD_NUMBER;
      hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
          getAddr());
      hash = (37 * hash) + RKEY_FIELD_NUMBER;
      hash = (53 * hash) + getRkey();
      hash = (37 * hash) + TENSOR_KEY_FIELD_NUMBER;
      hash = (53 * hash) + getTensorKey();
      hash = (37 * hash) + CHECKSUM_FIELD_NUMBER;
      hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
          getChecksum());
      hash = (29 * hash) + unknownFields.hashCode();
      memoizedHashCode = hash;
      return hash;
    }

    public static tensorflow.Gdr.RemoteMemoryRegion parseFrom(
        java.nio.ByteBuffer data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static tensorflow.Gdr.RemoteMemoryRegion parseFrom(
        java.nio.ByteBuffer data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static tensorflow.Gdr.RemoteMemoryRegion parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static tensorflow.Gdr.RemoteMemoryRegion parseFrom(
        com.google.protobuf.ByteString data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static tensorflow.Gdr.RemoteMemoryRegion parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static tensorflow.Gdr.RemoteMemoryRegion parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static tensorflow.Gdr.RemoteMemoryRegion parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static tensorflow.Gdr.RemoteMemoryRegion parseFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input, extensionRegistry);
    }
    public static tensorflow.Gdr.RemoteMemoryRegion parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseDelimitedWithIOException(PARSER, input);
    }
    public static tensorflow.Gdr.RemoteMemoryRegion parseDelimitedFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
    }
    public static tensorflow.Gdr.RemoteMemoryRegion parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static tensorflow.Gdr.RemoteMemoryRegion parseFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input, extensionRegistry);
    }

    @java.lang.Override
    public Builder newBuilderForType() { return newBuilder(); }
    public static Builder newBuilder() {
      return DEFAULT_INSTANCE.toBuilder();
    }
    public static Builder newBuilder(tensorflow.Gdr.RemoteMemoryRegion prototype) {
      return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
    }
    @java.lang.Override
    public Builder toBuilder() {
      return this == DEFAULT_INSTANCE
          ? new Builder() : new Builder().mergeFrom(this);
    }

    @java.lang.Override
    protected Builder newBuilderForType(
        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
      Builder builder = new Builder(parent);
      return builder;
    }
    /**
     * Protobuf type {@code tensorflow.RemoteMemoryRegion}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessageV3.Builder implements
        // @@protoc_insertion_point(builder_implements:tensorflow.RemoteMemoryRegion)
        tensorflow.Gdr.RemoteMemoryRegionOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return tensorflow.Gdr.internal_static_tensorflow_RemoteMemoryRegion_descriptor;
      }

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return tensorflow.Gdr.internal_static_tensorflow_RemoteMemoryRegion_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                tensorflow.Gdr.RemoteMemoryRegion.class, tensorflow.Gdr.RemoteMemoryRegion.Builder.class);
      }

      // Construct using tensorflow.Gdr.RemoteMemoryRegion.newBuilder()
      private Builder() {
        maybeForceBuilderInitialization();
      }

      private Builder(
          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
        super(parent);
        maybeForceBuilderInitialization();
      }
      private void maybeForceBuilderInitialization() {
        if (com.google.protobuf.GeneratedMessageV3
                .alwaysUseFieldBuilders) {
        }
      }
      @java.lang.Override
      public Builder clear() {
        super.clear();
        host_ = "";

        port_ = "";

        addr_ = 0L;

        rkey_ = 0;

        tensorKey_ = 0;

        checksum_ = 0L;

        return this;
      }

      @java.lang.Override
      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return tensorflow.Gdr.internal_static_tensorflow_RemoteMemoryRegion_descriptor;
      }

      @java.lang.Override
      public tensorflow.Gdr.RemoteMemoryRegion getDefaultInstanceForType() {
        return tensorflow.Gdr.RemoteMemoryRegion.getDefaultInstance();
      }

      @java.lang.Override
      public tensorflow.Gdr.RemoteMemoryRegion build() {
        tensorflow.Gdr.RemoteMemoryRegion result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      @java.lang.Override
      public tensorflow.Gdr.RemoteMemoryRegion buildPartial() {
        tensorflow.Gdr.RemoteMemoryRegion result = new tensorflow.Gdr.RemoteMemoryRegion(this);
        result.host_ = host_;
        result.port_ = port_;
        result.addr_ = addr_;
        result.rkey_ = rkey_;
        result.tensorKey_ = tensorKey_;
        result.checksum_ = checksum_;
        onBuilt();
        return result;
      }

      @java.lang.Override
      public Builder clone() {
        return (Builder) super.clone();
      }
      @java.lang.Override
      public Builder setField(
          com.google.protobuf.Descriptors.FieldDescriptor field,
          java.lang.Object value) {
        return (Builder) super.setField(field, value);
      }
      @java.lang.Override
      public Builder clearField(
          com.google.protobuf.Descriptors.FieldDescriptor field) {
        return (Builder) super.clearField(field);
      }
      @java.lang.Override
      public Builder clearOneof(
          com.google.protobuf.Descriptors.OneofDescriptor oneof) {
        return (Builder) super.clearOneof(oneof);
      }
      @java.lang.Override
      public Builder setRepeatedField(
          com.google.protobuf.Descriptors.FieldDescriptor field,
          int index, java.lang.Object value) {
        return (Builder) super.setRepeatedField(field, index, value);
      }
      @java.lang.Override
      public Builder addRepeatedField(
          com.google.protobuf.Descriptors.FieldDescriptor field,
          java.lang.Object value) {
        return (Builder) super.addRepeatedField(field, value);
      }
      @java.lang.Override
      public Builder mergeFrom(com.google.protobuf.Message other) {
        if (other instanceof tensorflow.Gdr.RemoteMemoryRegion) {
          return mergeFrom((tensorflow.Gdr.RemoteMemoryRegion)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(tensorflow.Gdr.RemoteMemoryRegion other) {
        if (other == tensorflow.Gdr.RemoteMemoryRegion.getDefaultInstance()) return this;
        if (!other.getHost().isEmpty()) {
          host_ = other.host_;
          onChanged();
        }
        if (!other.getPort().isEmpty()) {
          port_ = other.port_;
          onChanged();
        }
        if (other.getAddr() != 0L) {
          setAddr(other.getAddr());
        }
        if (other.getRkey() != 0) {
          setRkey(other.getRkey());
        }
        if (other.getTensorKey() != 0) {
          setTensorKey(other.getTensorKey());
        }
        if (other.getChecksum() != 0L) {
          setChecksum(other.getChecksum());
        }
        this.mergeUnknownFields(other.unknownFields);
        onChanged();
        return this;
      }

      @java.lang.Override
      public final boolean isInitialized() {
        return true;
      }

      @java.lang.Override
      public Builder mergeFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws java.io.IOException {
        tensorflow.Gdr.RemoteMemoryRegion parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (tensorflow.Gdr.RemoteMemoryRegion) e.getUnfinishedMessage();
          throw e.unwrapIOException();
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }

      private java.lang.Object host_ = "";
      /**
       * string host = 1;
       */
      public java.lang.String getHost() {
        java.lang.Object ref = host_;
        if (!(ref instanceof java.lang.String)) {
          com.google.protobuf.ByteString bs =
              (com.google.protobuf.ByteString) ref;
          java.lang.String s = bs.toStringUtf8();
          host_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       * string host = 1;
       */
      public com.google.protobuf.ByteString
          getHostBytes() {
        java.lang.Object ref = host_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b = 
              com.google.protobuf.ByteString.copyFromUtf8(
                  (java.lang.String) ref);
          host_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       * string host = 1;
       */
      public Builder setHost(
          java.lang.String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  
        host_ = value;
        onChanged();
        return this;
      }
      /**
       * string host = 1;
       */
      public Builder clearHost() {
        
        host_ = getDefaultInstance().getHost();
        onChanged();
        return this;
      }
      /**
       * string host = 1;
       */
      public Builder setHostBytes(
          com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
        
        host_ = value;
        onChanged();
        return this;
      }

      private java.lang.Object port_ = "";
      /**
       * string port = 2;
       */
      public java.lang.String getPort() {
        java.lang.Object ref = port_;
        if (!(ref instanceof java.lang.String)) {
          com.google.protobuf.ByteString bs =
              (com.google.protobuf.ByteString) ref;
          java.lang.String s = bs.toStringUtf8();
          port_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       * string port = 2;
       */
      public com.google.protobuf.ByteString
          getPortBytes() {
        java.lang.Object ref = port_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b = 
              com.google.protobuf.ByteString.copyFromUtf8(
                  (java.lang.String) ref);
          port_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       * string port = 2;
       */
      public Builder setPort(
          java.lang.String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  
        port_ = value;
        onChanged();
        return this;
      }
      /**
       * string port = 2;
       */
      public Builder clearPort() {
        
        port_ = getDefaultInstance().getPort();
        onChanged();
        return this;
      }
      /**
       * string port = 2;
       */
      public Builder setPortBytes(
          com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
        
        port_ = value;
        onChanged();
        return this;
      }

      private long addr_ ;
      /**
       * uint64 addr = 3;
       */
      public long getAddr() {
        return addr_;
      }
      /**
       * uint64 addr = 3;
       */
      public Builder setAddr(long value) {
        
        addr_ = value;
        onChanged();
        return this;
      }
      /**
       * uint64 addr = 3;
       */
      public Builder clearAddr() {
        
        addr_ = 0L;
        onChanged();
        return this;
      }

      private int rkey_ ;
      /**
       * uint32 rkey = 4;
       */
      public int getRkey() {
        return rkey_;
      }
      /**
       * uint32 rkey = 4;
       */
      public Builder setRkey(int value) {
        
        rkey_ = value;
        onChanged();
        return this;
      }
      /**
       * uint32 rkey = 4;
       */
      public Builder clearRkey() {
        
        rkey_ = 0;
        onChanged();
        return this;
      }

      private int tensorKey_ ;
      /**
       * uint32 tensor_key = 5;
       */
      public int getTensorKey() {
        return tensorKey_;
      }
      /**
       * uint32 tensor_key = 5;
       */
      public Builder setTensorKey(int value) {
        
        tensorKey_ = value;
        onChanged();
        return this;
      }
      /**
       * uint32 tensor_key = 5;
       */
      public Builder clearTensorKey() {
        
        tensorKey_ = 0;
        onChanged();
        return this;
      }

      private long checksum_ ;
      /**
       * uint64 checksum = 6;
       */
      public long getChecksum() {
        return checksum_;
      }
      /**
       * uint64 checksum = 6;
       */
      public Builder setChecksum(long value) {
        
        checksum_ = value;
        onChanged();
        return this;
      }
      /**
       * uint64 checksum = 6;
       */
      public Builder clearChecksum() {
        
        checksum_ = 0L;
        onChanged();
        return this;
      }
      @java.lang.Override
      public final Builder setUnknownFields(
          final com.google.protobuf.UnknownFieldSet unknownFields) {
        return super.setUnknownFieldsProto3(unknownFields);
      }

      @java.lang.Override
      public final Builder mergeUnknownFields(
          final com.google.protobuf.UnknownFieldSet unknownFields) {
        return super.mergeUnknownFields(unknownFields);
      }


      // @@protoc_insertion_point(builder_scope:tensorflow.RemoteMemoryRegion)
    }

    // @@protoc_insertion_point(class_scope:tensorflow.RemoteMemoryRegion)
    private static final tensorflow.Gdr.RemoteMemoryRegion DEFAULT_INSTANCE;
    static {
      DEFAULT_INSTANCE = new tensorflow.Gdr.RemoteMemoryRegion();
    }

    public static tensorflow.Gdr.RemoteMemoryRegion getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

    private static final com.google.protobuf.Parser
        PARSER = new com.google.protobuf.AbstractParser() {
      @java.lang.Override
      public RemoteMemoryRegion parsePartialFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return new RemoteMemoryRegion(input, extensionRegistry);
      }
    };

    public static com.google.protobuf.Parser parser() {
      return PARSER;
    }

    @java.lang.Override
    public com.google.protobuf.Parser getParserForType() {
      return PARSER;
    }

    @java.lang.Override
    public tensorflow.Gdr.RemoteMemoryRegion getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }

  }

  private static final com.google.protobuf.Descriptors.Descriptor
    internal_static_tensorflow_RemoteMemoryRegion_descriptor;
  private static final 
    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internal_static_tensorflow_RemoteMemoryRegion_fieldAccessorTable;

  public static com.google.protobuf.Descriptors.FileDescriptor
      getDescriptor() {
    return descriptor;
  }
  private static  com.google.protobuf.Descriptors.FileDescriptor
      descriptor;
  static {
    java.lang.String[] descriptorData = {
      "\n tensorflow/contrib/gdr/gdr.proto\022\ntens" +
      "orflow\"r\n\022RemoteMemoryRegion\022\014\n\004host\030\001 \001" +
      "(\t\022\014\n\004port\030\002 \001(\t\022\014\n\004addr\030\003 \001(\004\022\014\n\004rkey\030\004" +
      " \001(\r\022\022\n\ntensor_key\030\005 \001(\r\022\020\n\010checksum\030\006 \001" +
      "(\004B\003\370\001\001b\006proto3"
    };
    com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
        new com.google.protobuf.Descriptors.FileDescriptor.    InternalDescriptorAssigner() {
          public com.google.protobuf.ExtensionRegistry assignDescriptors(
              com.google.protobuf.Descriptors.FileDescriptor root) {
            descriptor = root;
            return null;
          }
        };
    com.google.protobuf.Descriptors.FileDescriptor
      .internalBuildGeneratedFileFrom(descriptorData,
        new com.google.protobuf.Descriptors.FileDescriptor[] {
        }, assigner);
    internal_static_tensorflow_RemoteMemoryRegion_descriptor =
      getDescriptor().getMessageTypes().get(0);
    internal_static_tensorflow_RemoteMemoryRegion_fieldAccessorTable = new
      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
        internal_static_tensorflow_RemoteMemoryRegion_descriptor,
        new java.lang.String[] { "Host", "Port", "Addr", "Rkey", "TensorKey", "Checksum", });
  }

  // @@protoc_insertion_point(outer_class_scope)
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy