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

package tensorflow;

public final class MpiMsg {
  private MpiMsg() {}
  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 MPIRecvTensorResponseOrBuilder extends
      // @@protoc_insertion_point(interface_extends:tensorflow.MPIRecvTensorResponse)
      com.google.protobuf.MessageOrBuilder {

    /**
     * <code>.tensorflow.RecvTensorResponse response = 1;</code>
     */
    boolean hasResponse();
    /**
     * <code>.tensorflow.RecvTensorResponse response = 1;</code>
     */
    org.tensorflow.distruntime.RecvTensorResponse getResponse();
    /**
     * <code>.tensorflow.RecvTensorResponse response = 1;</code>
     */
    org.tensorflow.distruntime.RecvTensorResponseOrBuilder getResponseOrBuilder();

    /**
     * <code>bool singleSend = 2;</code>
     */
    boolean getSingleSend();

    /**
     * <code>string key = 3;</code>
     */
    java.lang.String getKey();
    /**
     * <code>string key = 3;</code>
     */
    com.google.protobuf.ByteString
        getKeyBytes();

    /**
     * <code>int64 step_id = 4;</code>
     */
    long getStepId();

    /**
     * <code>uint64 checksum = 5;</code>
     */
    long getChecksum();
  }
  /**
   * Protobuf type {@code tensorflow.MPIRecvTensorResponse}
   */
  public  static final class MPIRecvTensorResponse extends
      com.google.protobuf.GeneratedMessageV3 implements
      // @@protoc_insertion_point(message_implements:tensorflow.MPIRecvTensorResponse)
      MPIRecvTensorResponseOrBuilder {
    // Use MPIRecvTensorResponse.newBuilder() to construct.
    private MPIRecvTensorResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
      super(builder);
    }
    private MPIRecvTensorResponse() {
      singleSend_ = false;
      key_ = "";
      stepId_ = 0L;
      checksum_ = 0L;
    }

    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet
    getUnknownFields() {
      return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
    }
    private MPIRecvTensorResponse(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      this();
      int mutable_bitField0_ = 0;
      try {
        boolean done = false;
        while (!done) {
          int tag = input.readTag();
          switch (tag) {
            case 0:
              done = true;
              break;
            default: {
              if (!input.skipField(tag)) {
                done = true;
              }
              break;
            }
            case 10: {
              org.tensorflow.distruntime.RecvTensorResponse.Builder subBuilder = null;
              if (response_ != null) {
                subBuilder = response_.toBuilder();
              }
              response_ = input.readMessage(org.tensorflow.distruntime.RecvTensorResponse.parser(), extensionRegistry);
              if (subBuilder != null) {
                subBuilder.mergeFrom(response_);
                response_ = subBuilder.buildPartial();
              }

              break;
            }
            case 16: {

              singleSend_ = input.readBool();
              break;
            }
            case 26: {
              java.lang.String s = input.readStringRequireUtf8();

              key_ = s;
              break;
            }
            case 32: {

              stepId_ = input.readInt64();
              break;
            }
            case 40: {

              checksum_ = input.readUInt64();
              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 {
        makeExtensionsImmutable();
      }
    }
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return tensorflow.MpiMsg.internal_static_tensorflow_MPIRecvTensorResponse_descriptor;
    }

    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return tensorflow.MpiMsg.internal_static_tensorflow_MPIRecvTensorResponse_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              tensorflow.MpiMsg.MPIRecvTensorResponse.class, tensorflow.MpiMsg.MPIRecvTensorResponse.Builder.class);
    }

    public static final int RESPONSE_FIELD_NUMBER = 1;
    private org.tensorflow.distruntime.RecvTensorResponse response_;
    /**
     * <code>.tensorflow.RecvTensorResponse response = 1;</code>
     */
    public boolean hasResponse() {
      return response_ != null;
    }
    /**
     * <code>.tensorflow.RecvTensorResponse response = 1;</code>
     */
    public org.tensorflow.distruntime.RecvTensorResponse getResponse() {
      return response_ == null ? org.tensorflow.distruntime.RecvTensorResponse.getDefaultInstance() : response_;
    }
    /**
     * <code>.tensorflow.RecvTensorResponse response = 1;</code>
     */
    public org.tensorflow.distruntime.RecvTensorResponseOrBuilder getResponseOrBuilder() {
      return getResponse();
    }

    public static final int SINGLESEND_FIELD_NUMBER = 2;
    private boolean singleSend_;
    /**
     * <code>bool singleSend = 2;</code>
     */
    public boolean getSingleSend() {
      return singleSend_;
    }

    public static final int KEY_FIELD_NUMBER = 3;
    private volatile java.lang.Object key_;
    /**
     * <code>string key = 3;</code>
     */
    public java.lang.String getKey() {
      java.lang.Object ref = key_;
      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();
        key_ = s;
        return s;
      }
    }
    /**
     * <code>string key = 3;</code>
     */
    public com.google.protobuf.ByteString
        getKeyBytes() {
      java.lang.Object ref = key_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        key_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

    public static final int STEP_ID_FIELD_NUMBER = 4;
    private long stepId_;
    /**
     * <code>int64 step_id = 4;</code>
     */
    public long getStepId() {
      return stepId_;
    }

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

    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(com.google.protobuf.CodedOutputStream output)
                        throws java.io.IOException {
      if (response_ != null) {
        output.writeMessage(1, getResponse());
      }
      if (singleSend_ != false) {
        output.writeBool(2, singleSend_);
      }
      if (!getKeyBytes().isEmpty()) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 3, key_);
      }
      if (stepId_ != 0L) {
        output.writeInt64(4, stepId_);
      }
      if (checksum_ != 0L) {
        output.writeUInt64(5, checksum_);
      }
    }

    public int getSerializedSize() {
      int size = memoizedSize;
      if (size != -1) return size;

      size = 0;
      if (response_ != null) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(1, getResponse());
      }
      if (singleSend_ != false) {
        size += com.google.protobuf.CodedOutputStream
          .computeBoolSize(2, singleSend_);
      }
      if (!getKeyBytes().isEmpty()) {
        size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, key_);
      }
      if (stepId_ != 0L) {
        size += com.google.protobuf.CodedOutputStream
          .computeInt64Size(4, stepId_);
      }
      if (checksum_ != 0L) {
        size += com.google.protobuf.CodedOutputStream
          .computeUInt64Size(5, checksum_);
      }
      memoizedSize = size;
      return size;
    }

    private static final long serialVersionUID = 0L;
    @java.lang.Override
    public boolean equals(final java.lang.Object obj) {
      if (obj == this) {
       return true;
      }
      if (!(obj instanceof tensorflow.MpiMsg.MPIRecvTensorResponse)) {
        return super.equals(obj);
      }
      tensorflow.MpiMsg.MPIRecvTensorResponse other = (tensorflow.MpiMsg.MPIRecvTensorResponse) obj;

      boolean result = true;
      result = result && (hasResponse() == other.hasResponse());
      if (hasResponse()) {
        result = result && getResponse()
            .equals(other.getResponse());
      }
      result = result && (getSingleSend()
          == other.getSingleSend());
      result = result && getKey()
          .equals(other.getKey());
      result = result && (getStepId()
          == other.getStepId());
      result = result && (getChecksum()
          == other.getChecksum());
      return result;
    }

    @java.lang.Override
    public int hashCode() {
      if (memoizedHashCode != 0) {
        return memoizedHashCode;
      }
      int hash = 41;
      hash = (19 * hash) + getDescriptor().hashCode();
      if (hasResponse()) {
        hash = (37 * hash) + RESPONSE_FIELD_NUMBER;
        hash = (53 * hash) + getResponse().hashCode();
      }
      hash = (37 * hash) + SINGLESEND_FIELD_NUMBER;
      hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
          getSingleSend());
      hash = (37 * hash) + KEY_FIELD_NUMBER;
      hash = (53 * hash) + getKey().hashCode();
      hash = (37 * hash) + STEP_ID_FIELD_NUMBER;
      hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
          getStepId());
      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.MpiMsg.MPIRecvTensorResponse parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static tensorflow.MpiMsg.MPIRecvTensorResponse parseFrom(
        com.google.protobuf.ByteString data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static tensorflow.MpiMsg.MPIRecvTensorResponse parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static tensorflow.MpiMsg.MPIRecvTensorResponse parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static tensorflow.MpiMsg.MPIRecvTensorResponse parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static tensorflow.MpiMsg.MPIRecvTensorResponse 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.MpiMsg.MPIRecvTensorResponse parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseDelimitedWithIOException(PARSER, input);
    }
    public static tensorflow.MpiMsg.MPIRecvTensorResponse 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.MpiMsg.MPIRecvTensorResponse parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static tensorflow.MpiMsg.MPIRecvTensorResponse parseFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input, extensionRegistry);
    }

    public Builder newBuilderForType() { return newBuilder(); }
    public static Builder newBuilder() {
      return DEFAULT_INSTANCE.toBuilder();
    }
    public static Builder newBuilder(tensorflow.MpiMsg.MPIRecvTensorResponse 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(
        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
      Builder builder = new Builder(parent);
      return builder;
    }
    /**
     * Protobuf type {@code tensorflow.MPIRecvTensorResponse}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
        // @@protoc_insertion_point(builder_implements:tensorflow.MPIRecvTensorResponse)
        tensorflow.MpiMsg.MPIRecvTensorResponseOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return tensorflow.MpiMsg.internal_static_tensorflow_MPIRecvTensorResponse_descriptor;
      }

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return tensorflow.MpiMsg.internal_static_tensorflow_MPIRecvTensorResponse_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                tensorflow.MpiMsg.MPIRecvTensorResponse.class, tensorflow.MpiMsg.MPIRecvTensorResponse.Builder.class);
      }

      // Construct using tensorflow.MpiMsg.MPIRecvTensorResponse.newBuilder()
      private Builder() {
        maybeForceBuilderInitialization();
      }

      private Builder(
          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
        super(parent);
        maybeForceBuilderInitialization();
      }
      private void maybeForceBuilderInitialization() {
        if (com.google.protobuf.GeneratedMessageV3
                .alwaysUseFieldBuilders) {
        }
      }
      public Builder clear() {
        super.clear();
        if (responseBuilder_ == null) {
          response_ = null;
        } else {
          response_ = null;
          responseBuilder_ = null;
        }
        singleSend_ = false;

        key_ = "";

        stepId_ = 0L;

        checksum_ = 0L;

        return this;
      }

      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return tensorflow.MpiMsg.internal_static_tensorflow_MPIRecvTensorResponse_descriptor;
      }

      public tensorflow.MpiMsg.MPIRecvTensorResponse getDefaultInstanceForType() {
        return tensorflow.MpiMsg.MPIRecvTensorResponse.getDefaultInstance();
      }

      public tensorflow.MpiMsg.MPIRecvTensorResponse build() {
        tensorflow.MpiMsg.MPIRecvTensorResponse result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      public tensorflow.MpiMsg.MPIRecvTensorResponse buildPartial() {
        tensorflow.MpiMsg.MPIRecvTensorResponse result = new tensorflow.MpiMsg.MPIRecvTensorResponse(this);
        if (responseBuilder_ == null) {
          result.response_ = response_;
        } else {
          result.response_ = responseBuilder_.build();
        }
        result.singleSend_ = singleSend_;
        result.key_ = key_;
        result.stepId_ = stepId_;
        result.checksum_ = checksum_;
        onBuilt();
        return result;
      }

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

      public Builder mergeFrom(tensorflow.MpiMsg.MPIRecvTensorResponse other) {
        if (other == tensorflow.MpiMsg.MPIRecvTensorResponse.getDefaultInstance()) return this;
        if (other.hasResponse()) {
          mergeResponse(other.getResponse());
        }
        if (other.getSingleSend() != false) {
          setSingleSend(other.getSingleSend());
        }
        if (!other.getKey().isEmpty()) {
          key_ = other.key_;
          onChanged();
        }
        if (other.getStepId() != 0L) {
          setStepId(other.getStepId());
        }
        if (other.getChecksum() != 0L) {
          setChecksum(other.getChecksum());
        }
        onChanged();
        return this;
      }

      public final boolean isInitialized() {
        return true;
      }

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

      private org.tensorflow.distruntime.RecvTensorResponse response_ = null;
      private com.google.protobuf.SingleFieldBuilderV3<
          org.tensorflow.distruntime.RecvTensorResponse, org.tensorflow.distruntime.RecvTensorResponse.Builder, org.tensorflow.distruntime.RecvTensorResponseOrBuilder> responseBuilder_;
      /**
       * <code>.tensorflow.RecvTensorResponse response = 1;</code>
       */
      public boolean hasResponse() {
        return responseBuilder_ != null || response_ != null;
      }
      /**
       * <code>.tensorflow.RecvTensorResponse response = 1;</code>
       */
      public org.tensorflow.distruntime.RecvTensorResponse getResponse() {
        if (responseBuilder_ == null) {
          return response_ == null ? org.tensorflow.distruntime.RecvTensorResponse.getDefaultInstance() : response_;
        } else {
          return responseBuilder_.getMessage();
        }
      }
      /**
       * <code>.tensorflow.RecvTensorResponse response = 1;</code>
       */
      public Builder setResponse(org.tensorflow.distruntime.RecvTensorResponse value) {
        if (responseBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          response_ = value;
          onChanged();
        } else {
          responseBuilder_.setMessage(value);
        }

        return this;
      }
      /**
       * <code>.tensorflow.RecvTensorResponse response = 1;</code>
       */
      public Builder setResponse(
          org.tensorflow.distruntime.RecvTensorResponse.Builder builderForValue) {
        if (responseBuilder_ == null) {
          response_ = builderForValue.build();
          onChanged();
        } else {
          responseBuilder_.setMessage(builderForValue.build());
        }

        return this;
      }
      /**
       * <code>.tensorflow.RecvTensorResponse response = 1;</code>
       */
      public Builder mergeResponse(org.tensorflow.distruntime.RecvTensorResponse value) {
        if (responseBuilder_ == null) {
          if (response_ != null) {
            response_ =
              org.tensorflow.distruntime.RecvTensorResponse.newBuilder(response_).mergeFrom(value).buildPartial();
          } else {
            response_ = value;
          }
          onChanged();
        } else {
          responseBuilder_.mergeFrom(value);
        }

        return this;
      }
      /**
       * <code>.tensorflow.RecvTensorResponse response = 1;</code>
       */
      public Builder clearResponse() {
        if (responseBuilder_ == null) {
          response_ = null;
          onChanged();
        } else {
          response_ = null;
          responseBuilder_ = null;
        }

        return this;
      }
      /**
       * <code>.tensorflow.RecvTensorResponse response = 1;</code>
       */
      public org.tensorflow.distruntime.RecvTensorResponse.Builder getResponseBuilder() {
        
        onChanged();
        return getResponseFieldBuilder().getBuilder();
      }
      /**
       * <code>.tensorflow.RecvTensorResponse response = 1;</code>
       */
      public org.tensorflow.distruntime.RecvTensorResponseOrBuilder getResponseOrBuilder() {
        if (responseBuilder_ != null) {
          return responseBuilder_.getMessageOrBuilder();
        } else {
          return response_ == null ?
              org.tensorflow.distruntime.RecvTensorResponse.getDefaultInstance() : response_;
        }
      }
      /**
       * <code>.tensorflow.RecvTensorResponse response = 1;</code>
       */
      private com.google.protobuf.SingleFieldBuilderV3<
          org.tensorflow.distruntime.RecvTensorResponse, org.tensorflow.distruntime.RecvTensorResponse.Builder, org.tensorflow.distruntime.RecvTensorResponseOrBuilder> 
          getResponseFieldBuilder() {
        if (responseBuilder_ == null) {
          responseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
              org.tensorflow.distruntime.RecvTensorResponse, org.tensorflow.distruntime.RecvTensorResponse.Builder, org.tensorflow.distruntime.RecvTensorResponseOrBuilder>(
                  getResponse(),
                  getParentForChildren(),
                  isClean());
          response_ = null;
        }
        return responseBuilder_;
      }

      private boolean singleSend_ ;
      /**
       * <code>bool singleSend = 2;</code>
       */
      public boolean getSingleSend() {
        return singleSend_;
      }
      /**
       * <code>bool singleSend = 2;</code>
       */
      public Builder setSingleSend(boolean value) {
        
        singleSend_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>bool singleSend = 2;</code>
       */
      public Builder clearSingleSend() {
        
        singleSend_ = false;
        onChanged();
        return this;
      }

      private java.lang.Object key_ = "";
      /**
       * <code>string key = 3;</code>
       */
      public java.lang.String getKey() {
        java.lang.Object ref = key_;
        if (!(ref instanceof java.lang.String)) {
          com.google.protobuf.ByteString bs =
              (com.google.protobuf.ByteString) ref;
          java.lang.String s = bs.toStringUtf8();
          key_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       * <code>string key = 3;</code>
       */
      public com.google.protobuf.ByteString
          getKeyBytes() {
        java.lang.Object ref = key_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b = 
              com.google.protobuf.ByteString.copyFromUtf8(
                  (java.lang.String) ref);
          key_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       * <code>string key = 3;</code>
       */
      public Builder setKey(
          java.lang.String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  
        key_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>string key = 3;</code>
       */
      public Builder clearKey() {
        
        key_ = getDefaultInstance().getKey();
        onChanged();
        return this;
      }
      /**
       * <code>string key = 3;</code>
       */
      public Builder setKeyBytes(
          com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
        
        key_ = value;
        onChanged();
        return this;
      }

      private long stepId_ ;
      /**
       * <code>int64 step_id = 4;</code>
       */
      public long getStepId() {
        return stepId_;
      }
      /**
       * <code>int64 step_id = 4;</code>
       */
      public Builder setStepId(long value) {
        
        stepId_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>int64 step_id = 4;</code>
       */
      public Builder clearStepId() {
        
        stepId_ = 0L;
        onChanged();
        return this;
      }

      private long checksum_ ;
      /**
       * <code>uint64 checksum = 5;</code>
       */
      public long getChecksum() {
        return checksum_;
      }
      /**
       * <code>uint64 checksum = 5;</code>
       */
      public Builder setChecksum(long value) {
        
        checksum_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>uint64 checksum = 5;</code>
       */
      public Builder clearChecksum() {
        
        checksum_ = 0L;
        onChanged();
        return this;
      }
      public final Builder setUnknownFields(
          final com.google.protobuf.UnknownFieldSet unknownFields) {
        return this;
      }

      public final Builder mergeUnknownFields(
          final com.google.protobuf.UnknownFieldSet unknownFields) {
        return this;
      }


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

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

    public static tensorflow.MpiMsg.MPIRecvTensorResponse getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

    private static final com.google.protobuf.Parser<MPIRecvTensorResponse>
        PARSER = new com.google.protobuf.AbstractParser<MPIRecvTensorResponse>() {
      public MPIRecvTensorResponse parsePartialFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
          return new MPIRecvTensorResponse(input, extensionRegistry);
      }
    };

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

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

    public tensorflow.MpiMsg.MPIRecvTensorResponse getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }

  }

  private static final com.google.protobuf.Descriptors.Descriptor
    internal_static_tensorflow_MPIRecvTensorResponse_descriptor;
  private static final 
    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internal_static_tensorflow_MPIRecvTensorResponse_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/mpi/mpi_msg.proto\022\n" +
      "tensorflow\032%tensorflow/core/protobuf/wor" +
      "ker.proto\"\215\001\n\025MPIRecvTensorResponse\0220\n\010r" +
      "esponse\030\001 \001(\0132\036.tensorflow.RecvTensorRes" +
      "ponse\022\022\n\nsingleSend\030\002 \001(\010\022\013\n\003key\030\003 \001(\t\022\017" +
      "\n\007step_id\030\004 \001(\003\022\020\n\010checksum\030\005 \001(\004B\003\370\001\001b\006" +
      "proto3"
    };
    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[] {
          org.tensorflow.distruntime.WorkerProtos.getDescriptor(),
        }, assigner);
    internal_static_tensorflow_MPIRecvTensorResponse_descriptor =
      getDescriptor().getMessageTypes().get(0);
    internal_static_tensorflow_MPIRecvTensorResponse_fieldAccessorTable = new
      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
        internal_static_tensorflow_MPIRecvTensorResponse_descriptor,
        new java.lang.String[] { "Response", "SingleSend", "Key", "StepId", "Checksum", });
    org.tensorflow.distruntime.WorkerProtos.getDescriptor();
  }

  // @@protoc_insertion_point(outer_class_scope)
}
