// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: tensorflow/core/protobuf/worker.proto

package org.tensorflow.distruntime;

/**
 * Protobuf type {@code tensorflow.RecvTensorResponse}
 */
public  final class RecvTensorResponse extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:tensorflow.RecvTensorResponse)
    RecvTensorResponseOrBuilder {
  // Use RecvTensorResponse.newBuilder() to construct.
  private RecvTensorResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
    super(builder);
  }
  private RecvTensorResponse() {
    isDead_ = false;
    sendStartMicros_ = 0L;
  }

  @java.lang.Override
  public final com.google.protobuf.UnknownFieldSet
  getUnknownFields() {
    return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
  }
  private RecvTensorResponse(
      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.framework.TensorProto.Builder subBuilder = null;
            if (tensor_ != null) {
              subBuilder = tensor_.toBuilder();
            }
            tensor_ = input.readMessage(org.tensorflow.framework.TensorProto.parser(), extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom(tensor_);
              tensor_ = subBuilder.buildPartial();
            }

            break;
          }
          case 16: {

            isDead_ = input.readBool();
            break;
          }
          case 24: {

            sendStartMicros_ = input.readInt64();
            break;
          }
          case 34: {
            com.google.protobuf.Any.Builder subBuilder = null;
            if (transportOptions_ != null) {
              subBuilder = transportOptions_.toBuilder();
            }
            transportOptions_ = input.readMessage(com.google.protobuf.Any.parser(), extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom(transportOptions_);
              transportOptions_ = subBuilder.buildPartial();
            }

            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 org.tensorflow.distruntime.WorkerProtos.internal_static_tensorflow_RecvTensorResponse_descriptor;
  }

  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return org.tensorflow.distruntime.WorkerProtos.internal_static_tensorflow_RecvTensorResponse_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            org.tensorflow.distruntime.RecvTensorResponse.class, org.tensorflow.distruntime.RecvTensorResponse.Builder.class);
  }

  public static final int TENSOR_FIELD_NUMBER = 1;
  private org.tensorflow.framework.TensorProto tensor_;
  /**
   * <pre>
   * The tensor as a proto.
   * </pre>
   *
   * <code>.tensorflow.TensorProto tensor = 1;</code>
   */
  public boolean hasTensor() {
    return tensor_ != null;
  }
  /**
   * <pre>
   * The tensor as a proto.
   * </pre>
   *
   * <code>.tensorflow.TensorProto tensor = 1;</code>
   */
  public org.tensorflow.framework.TensorProto getTensor() {
    return tensor_ == null ? org.tensorflow.framework.TensorProto.getDefaultInstance() : tensor_;
  }
  /**
   * <pre>
   * The tensor as a proto.
   * </pre>
   *
   * <code>.tensorflow.TensorProto tensor = 1;</code>
   */
  public org.tensorflow.framework.TensorProtoOrBuilder getTensorOrBuilder() {
    return getTensor();
  }

  public static final int IS_DEAD_FIELD_NUMBER = 2;
  private boolean isDead_;
  /**
   * <pre>
   * If true, this tensor was the output of a dead node, and the
   * content is invalid.
   * </pre>
   *
   * <code>bool is_dead = 2;</code>
   */
  public boolean getIsDead() {
    return isDead_;
  }

  public static final int SEND_START_MICROS_FIELD_NUMBER = 3;
  private long sendStartMicros_;
  /**
   * <pre>
   * The time at which tensor was available and started to be returned.
   * </pre>
   *
   * <code>int64 send_start_micros = 3;</code>
   */
  public long getSendStartMicros() {
    return sendStartMicros_;
  }

  public static final int TRANSPORT_OPTIONS_FIELD_NUMBER = 4;
  private com.google.protobuf.Any transportOptions_;
  /**
   * <pre>
   * Optional additional information about how to receive the tensor,
   * e.g. in the event that `RecvTensorRequest.dma_ok` was true.
   * </pre>
   *
   * <code>.google.protobuf.Any transport_options = 4;</code>
   */
  public boolean hasTransportOptions() {
    return transportOptions_ != null;
  }
  /**
   * <pre>
   * Optional additional information about how to receive the tensor,
   * e.g. in the event that `RecvTensorRequest.dma_ok` was true.
   * </pre>
   *
   * <code>.google.protobuf.Any transport_options = 4;</code>
   */
  public com.google.protobuf.Any getTransportOptions() {
    return transportOptions_ == null ? com.google.protobuf.Any.getDefaultInstance() : transportOptions_;
  }
  /**
   * <pre>
   * Optional additional information about how to receive the tensor,
   * e.g. in the event that `RecvTensorRequest.dma_ok` was true.
   * </pre>
   *
   * <code>.google.protobuf.Any transport_options = 4;</code>
   */
  public com.google.protobuf.AnyOrBuilder getTransportOptionsOrBuilder() {
    return getTransportOptions();
  }

  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 (tensor_ != null) {
      output.writeMessage(1, getTensor());
    }
    if (isDead_ != false) {
      output.writeBool(2, isDead_);
    }
    if (sendStartMicros_ != 0L) {
      output.writeInt64(3, sendStartMicros_);
    }
    if (transportOptions_ != null) {
      output.writeMessage(4, getTransportOptions());
    }
  }

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

    size = 0;
    if (tensor_ != null) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(1, getTensor());
    }
    if (isDead_ != false) {
      size += com.google.protobuf.CodedOutputStream
        .computeBoolSize(2, isDead_);
    }
    if (sendStartMicros_ != 0L) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt64Size(3, sendStartMicros_);
    }
    if (transportOptions_ != null) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(4, getTransportOptions());
    }
    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 org.tensorflow.distruntime.RecvTensorResponse)) {
      return super.equals(obj);
    }
    org.tensorflow.distruntime.RecvTensorResponse other = (org.tensorflow.distruntime.RecvTensorResponse) obj;

    boolean result = true;
    result = result && (hasTensor() == other.hasTensor());
    if (hasTensor()) {
      result = result && getTensor()
          .equals(other.getTensor());
    }
    result = result && (getIsDead()
        == other.getIsDead());
    result = result && (getSendStartMicros()
        == other.getSendStartMicros());
    result = result && (hasTransportOptions() == other.hasTransportOptions());
    if (hasTransportOptions()) {
      result = result && getTransportOptions()
          .equals(other.getTransportOptions());
    }
    return result;
  }

  @java.lang.Override
  public int hashCode() {
    if (memoizedHashCode != 0) {
      return memoizedHashCode;
    }
    int hash = 41;
    hash = (19 * hash) + getDescriptor().hashCode();
    if (hasTensor()) {
      hash = (37 * hash) + TENSOR_FIELD_NUMBER;
      hash = (53 * hash) + getTensor().hashCode();
    }
    hash = (37 * hash) + IS_DEAD_FIELD_NUMBER;
    hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
        getIsDead());
    hash = (37 * hash) + SEND_START_MICROS_FIELD_NUMBER;
    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
        getSendStartMicros());
    if (hasTransportOptions()) {
      hash = (37 * hash) + TRANSPORT_OPTIONS_FIELD_NUMBER;
      hash = (53 * hash) + getTransportOptions().hashCode();
    }
    hash = (29 * hash) + unknownFields.hashCode();
    memoizedHashCode = hash;
    return hash;
  }

  public static org.tensorflow.distruntime.RecvTensorResponse parseFrom(
      com.google.protobuf.ByteString data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static org.tensorflow.distruntime.RecvTensorResponse parseFrom(
      com.google.protobuf.ByteString data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static org.tensorflow.distruntime.RecvTensorResponse parseFrom(byte[] data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static org.tensorflow.distruntime.RecvTensorResponse parseFrom(
      byte[] data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static org.tensorflow.distruntime.RecvTensorResponse parseFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static org.tensorflow.distruntime.RecvTensorResponse 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 org.tensorflow.distruntime.RecvTensorResponse parseDelimitedFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseDelimitedWithIOException(PARSER, input);
  }
  public static org.tensorflow.distruntime.RecvTensorResponse 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 org.tensorflow.distruntime.RecvTensorResponse parseFrom(
      com.google.protobuf.CodedInputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static org.tensorflow.distruntime.RecvTensorResponse 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(org.tensorflow.distruntime.RecvTensorResponse 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.RecvTensorResponse}
   */
  public static final class Builder extends
      com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
      // @@protoc_insertion_point(builder_implements:tensorflow.RecvTensorResponse)
      org.tensorflow.distruntime.RecvTensorResponseOrBuilder {
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return org.tensorflow.distruntime.WorkerProtos.internal_static_tensorflow_RecvTensorResponse_descriptor;
    }

    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return org.tensorflow.distruntime.WorkerProtos.internal_static_tensorflow_RecvTensorResponse_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              org.tensorflow.distruntime.RecvTensorResponse.class, org.tensorflow.distruntime.RecvTensorResponse.Builder.class);
    }

    // Construct using org.tensorflow.distruntime.RecvTensorResponse.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 (tensorBuilder_ == null) {
        tensor_ = null;
      } else {
        tensor_ = null;
        tensorBuilder_ = null;
      }
      isDead_ = false;

      sendStartMicros_ = 0L;

      if (transportOptionsBuilder_ == null) {
        transportOptions_ = null;
      } else {
        transportOptions_ = null;
        transportOptionsBuilder_ = null;
      }
      return this;
    }

    public com.google.protobuf.Descriptors.Descriptor
        getDescriptorForType() {
      return org.tensorflow.distruntime.WorkerProtos.internal_static_tensorflow_RecvTensorResponse_descriptor;
    }

    public org.tensorflow.distruntime.RecvTensorResponse getDefaultInstanceForType() {
      return org.tensorflow.distruntime.RecvTensorResponse.getDefaultInstance();
    }

    public org.tensorflow.distruntime.RecvTensorResponse build() {
      org.tensorflow.distruntime.RecvTensorResponse result = buildPartial();
      if (!result.isInitialized()) {
        throw newUninitializedMessageException(result);
      }
      return result;
    }

    public org.tensorflow.distruntime.RecvTensorResponse buildPartial() {
      org.tensorflow.distruntime.RecvTensorResponse result = new org.tensorflow.distruntime.RecvTensorResponse(this);
      if (tensorBuilder_ == null) {
        result.tensor_ = tensor_;
      } else {
        result.tensor_ = tensorBuilder_.build();
      }
      result.isDead_ = isDead_;
      result.sendStartMicros_ = sendStartMicros_;
      if (transportOptionsBuilder_ == null) {
        result.transportOptions_ = transportOptions_;
      } else {
        result.transportOptions_ = transportOptionsBuilder_.build();
      }
      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 org.tensorflow.distruntime.RecvTensorResponse) {
        return mergeFrom((org.tensorflow.distruntime.RecvTensorResponse)other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(org.tensorflow.distruntime.RecvTensorResponse other) {
      if (other == org.tensorflow.distruntime.RecvTensorResponse.getDefaultInstance()) return this;
      if (other.hasTensor()) {
        mergeTensor(other.getTensor());
      }
      if (other.getIsDead() != false) {
        setIsDead(other.getIsDead());
      }
      if (other.getSendStartMicros() != 0L) {
        setSendStartMicros(other.getSendStartMicros());
      }
      if (other.hasTransportOptions()) {
        mergeTransportOptions(other.getTransportOptions());
      }
      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 {
      org.tensorflow.distruntime.RecvTensorResponse parsedMessage = null;
      try {
        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        parsedMessage = (org.tensorflow.distruntime.RecvTensorResponse) e.getUnfinishedMessage();
        throw e.unwrapIOException();
      } finally {
        if (parsedMessage != null) {
          mergeFrom(parsedMessage);
        }
      }
      return this;
    }

    private org.tensorflow.framework.TensorProto tensor_ = null;
    private com.google.protobuf.SingleFieldBuilderV3<
        org.tensorflow.framework.TensorProto, org.tensorflow.framework.TensorProto.Builder, org.tensorflow.framework.TensorProtoOrBuilder> tensorBuilder_;
    /**
     * <pre>
     * The tensor as a proto.
     * </pre>
     *
     * <code>.tensorflow.TensorProto tensor = 1;</code>
     */
    public boolean hasTensor() {
      return tensorBuilder_ != null || tensor_ != null;
    }
    /**
     * <pre>
     * The tensor as a proto.
     * </pre>
     *
     * <code>.tensorflow.TensorProto tensor = 1;</code>
     */
    public org.tensorflow.framework.TensorProto getTensor() {
      if (tensorBuilder_ == null) {
        return tensor_ == null ? org.tensorflow.framework.TensorProto.getDefaultInstance() : tensor_;
      } else {
        return tensorBuilder_.getMessage();
      }
    }
    /**
     * <pre>
     * The tensor as a proto.
     * </pre>
     *
     * <code>.tensorflow.TensorProto tensor = 1;</code>
     */
    public Builder setTensor(org.tensorflow.framework.TensorProto value) {
      if (tensorBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        tensor_ = value;
        onChanged();
      } else {
        tensorBuilder_.setMessage(value);
      }

      return this;
    }
    /**
     * <pre>
     * The tensor as a proto.
     * </pre>
     *
     * <code>.tensorflow.TensorProto tensor = 1;</code>
     */
    public Builder setTensor(
        org.tensorflow.framework.TensorProto.Builder builderForValue) {
      if (tensorBuilder_ == null) {
        tensor_ = builderForValue.build();
        onChanged();
      } else {
        tensorBuilder_.setMessage(builderForValue.build());
      }

      return this;
    }
    /**
     * <pre>
     * The tensor as a proto.
     * </pre>
     *
     * <code>.tensorflow.TensorProto tensor = 1;</code>
     */
    public Builder mergeTensor(org.tensorflow.framework.TensorProto value) {
      if (tensorBuilder_ == null) {
        if (tensor_ != null) {
          tensor_ =
            org.tensorflow.framework.TensorProto.newBuilder(tensor_).mergeFrom(value).buildPartial();
        } else {
          tensor_ = value;
        }
        onChanged();
      } else {
        tensorBuilder_.mergeFrom(value);
      }

      return this;
    }
    /**
     * <pre>
     * The tensor as a proto.
     * </pre>
     *
     * <code>.tensorflow.TensorProto tensor = 1;</code>
     */
    public Builder clearTensor() {
      if (tensorBuilder_ == null) {
        tensor_ = null;
        onChanged();
      } else {
        tensor_ = null;
        tensorBuilder_ = null;
      }

      return this;
    }
    /**
     * <pre>
     * The tensor as a proto.
     * </pre>
     *
     * <code>.tensorflow.TensorProto tensor = 1;</code>
     */
    public org.tensorflow.framework.TensorProto.Builder getTensorBuilder() {
      
      onChanged();
      return getTensorFieldBuilder().getBuilder();
    }
    /**
     * <pre>
     * The tensor as a proto.
     * </pre>
     *
     * <code>.tensorflow.TensorProto tensor = 1;</code>
     */
    public org.tensorflow.framework.TensorProtoOrBuilder getTensorOrBuilder() {
      if (tensorBuilder_ != null) {
        return tensorBuilder_.getMessageOrBuilder();
      } else {
        return tensor_ == null ?
            org.tensorflow.framework.TensorProto.getDefaultInstance() : tensor_;
      }
    }
    /**
     * <pre>
     * The tensor as a proto.
     * </pre>
     *
     * <code>.tensorflow.TensorProto tensor = 1;</code>
     */
    private com.google.protobuf.SingleFieldBuilderV3<
        org.tensorflow.framework.TensorProto, org.tensorflow.framework.TensorProto.Builder, org.tensorflow.framework.TensorProtoOrBuilder> 
        getTensorFieldBuilder() {
      if (tensorBuilder_ == null) {
        tensorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            org.tensorflow.framework.TensorProto, org.tensorflow.framework.TensorProto.Builder, org.tensorflow.framework.TensorProtoOrBuilder>(
                getTensor(),
                getParentForChildren(),
                isClean());
        tensor_ = null;
      }
      return tensorBuilder_;
    }

    private boolean isDead_ ;
    /**
     * <pre>
     * If true, this tensor was the output of a dead node, and the
     * content is invalid.
     * </pre>
     *
     * <code>bool is_dead = 2;</code>
     */
    public boolean getIsDead() {
      return isDead_;
    }
    /**
     * <pre>
     * If true, this tensor was the output of a dead node, and the
     * content is invalid.
     * </pre>
     *
     * <code>bool is_dead = 2;</code>
     */
    public Builder setIsDead(boolean value) {
      
      isDead_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     * If true, this tensor was the output of a dead node, and the
     * content is invalid.
     * </pre>
     *
     * <code>bool is_dead = 2;</code>
     */
    public Builder clearIsDead() {
      
      isDead_ = false;
      onChanged();
      return this;
    }

    private long sendStartMicros_ ;
    /**
     * <pre>
     * The time at which tensor was available and started to be returned.
     * </pre>
     *
     * <code>int64 send_start_micros = 3;</code>
     */
    public long getSendStartMicros() {
      return sendStartMicros_;
    }
    /**
     * <pre>
     * The time at which tensor was available and started to be returned.
     * </pre>
     *
     * <code>int64 send_start_micros = 3;</code>
     */
    public Builder setSendStartMicros(long value) {
      
      sendStartMicros_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     * The time at which tensor was available and started to be returned.
     * </pre>
     *
     * <code>int64 send_start_micros = 3;</code>
     */
    public Builder clearSendStartMicros() {
      
      sendStartMicros_ = 0L;
      onChanged();
      return this;
    }

    private com.google.protobuf.Any transportOptions_ = null;
    private com.google.protobuf.SingleFieldBuilderV3<
        com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> transportOptionsBuilder_;
    /**
     * <pre>
     * Optional additional information about how to receive the tensor,
     * e.g. in the event that `RecvTensorRequest.dma_ok` was true.
     * </pre>
     *
     * <code>.google.protobuf.Any transport_options = 4;</code>
     */
    public boolean hasTransportOptions() {
      return transportOptionsBuilder_ != null || transportOptions_ != null;
    }
    /**
     * <pre>
     * Optional additional information about how to receive the tensor,
     * e.g. in the event that `RecvTensorRequest.dma_ok` was true.
     * </pre>
     *
     * <code>.google.protobuf.Any transport_options = 4;</code>
     */
    public com.google.protobuf.Any getTransportOptions() {
      if (transportOptionsBuilder_ == null) {
        return transportOptions_ == null ? com.google.protobuf.Any.getDefaultInstance() : transportOptions_;
      } else {
        return transportOptionsBuilder_.getMessage();
      }
    }
    /**
     * <pre>
     * Optional additional information about how to receive the tensor,
     * e.g. in the event that `RecvTensorRequest.dma_ok` was true.
     * </pre>
     *
     * <code>.google.protobuf.Any transport_options = 4;</code>
     */
    public Builder setTransportOptions(com.google.protobuf.Any value) {
      if (transportOptionsBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        transportOptions_ = value;
        onChanged();
      } else {
        transportOptionsBuilder_.setMessage(value);
      }

      return this;
    }
    /**
     * <pre>
     * Optional additional information about how to receive the tensor,
     * e.g. in the event that `RecvTensorRequest.dma_ok` was true.
     * </pre>
     *
     * <code>.google.protobuf.Any transport_options = 4;</code>
     */
    public Builder setTransportOptions(
        com.google.protobuf.Any.Builder builderForValue) {
      if (transportOptionsBuilder_ == null) {
        transportOptions_ = builderForValue.build();
        onChanged();
      } else {
        transportOptionsBuilder_.setMessage(builderForValue.build());
      }

      return this;
    }
    /**
     * <pre>
     * Optional additional information about how to receive the tensor,
     * e.g. in the event that `RecvTensorRequest.dma_ok` was true.
     * </pre>
     *
     * <code>.google.protobuf.Any transport_options = 4;</code>
     */
    public Builder mergeTransportOptions(com.google.protobuf.Any value) {
      if (transportOptionsBuilder_ == null) {
        if (transportOptions_ != null) {
          transportOptions_ =
            com.google.protobuf.Any.newBuilder(transportOptions_).mergeFrom(value).buildPartial();
        } else {
          transportOptions_ = value;
        }
        onChanged();
      } else {
        transportOptionsBuilder_.mergeFrom(value);
      }

      return this;
    }
    /**
     * <pre>
     * Optional additional information about how to receive the tensor,
     * e.g. in the event that `RecvTensorRequest.dma_ok` was true.
     * </pre>
     *
     * <code>.google.protobuf.Any transport_options = 4;</code>
     */
    public Builder clearTransportOptions() {
      if (transportOptionsBuilder_ == null) {
        transportOptions_ = null;
        onChanged();
      } else {
        transportOptions_ = null;
        transportOptionsBuilder_ = null;
      }

      return this;
    }
    /**
     * <pre>
     * Optional additional information about how to receive the tensor,
     * e.g. in the event that `RecvTensorRequest.dma_ok` was true.
     * </pre>
     *
     * <code>.google.protobuf.Any transport_options = 4;</code>
     */
    public com.google.protobuf.Any.Builder getTransportOptionsBuilder() {
      
      onChanged();
      return getTransportOptionsFieldBuilder().getBuilder();
    }
    /**
     * <pre>
     * Optional additional information about how to receive the tensor,
     * e.g. in the event that `RecvTensorRequest.dma_ok` was true.
     * </pre>
     *
     * <code>.google.protobuf.Any transport_options = 4;</code>
     */
    public com.google.protobuf.AnyOrBuilder getTransportOptionsOrBuilder() {
      if (transportOptionsBuilder_ != null) {
        return transportOptionsBuilder_.getMessageOrBuilder();
      } else {
        return transportOptions_ == null ?
            com.google.protobuf.Any.getDefaultInstance() : transportOptions_;
      }
    }
    /**
     * <pre>
     * Optional additional information about how to receive the tensor,
     * e.g. in the event that `RecvTensorRequest.dma_ok` was true.
     * </pre>
     *
     * <code>.google.protobuf.Any transport_options = 4;</code>
     */
    private com.google.protobuf.SingleFieldBuilderV3<
        com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> 
        getTransportOptionsFieldBuilder() {
      if (transportOptionsBuilder_ == null) {
        transportOptionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder>(
                getTransportOptions(),
                getParentForChildren(),
                isClean());
        transportOptions_ = null;
      }
      return transportOptionsBuilder_;
    }
    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.RecvTensorResponse)
  }

  // @@protoc_insertion_point(class_scope:tensorflow.RecvTensorResponse)
  private static final org.tensorflow.distruntime.RecvTensorResponse DEFAULT_INSTANCE;
  static {
    DEFAULT_INSTANCE = new org.tensorflow.distruntime.RecvTensorResponse();
  }

  public static org.tensorflow.distruntime.RecvTensorResponse getDefaultInstance() {
    return DEFAULT_INSTANCE;
  }

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

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

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

  public org.tensorflow.distruntime.RecvTensorResponse getDefaultInstanceForType() {
    return DEFAULT_INSTANCE;
  }

}

