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

org.tensorflow.distruntime.RecvTensorRequest Maven / Gradle / Ivy

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

package org.tensorflow.distruntime;

/**
 * Protobuf type {@code tensorflow.RecvTensorRequest}
 */
public final class RecvTensorRequest extends
    org.nd4j.shade.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:tensorflow.RecvTensorRequest)
    RecvTensorRequestOrBuilder {
private static final long serialVersionUID = 0L;
  // Use RecvTensorRequest.newBuilder() to construct.
  private RecvTensorRequest(org.nd4j.shade.protobuf.GeneratedMessageV3.Builder builder) {
    super(builder);
  }
  private RecvTensorRequest() {
    rendezvousKey_ = "";
  }

  @java.lang.Override
  @SuppressWarnings({"unused"})
  protected java.lang.Object newInstance(
      UnusedPrivateParameter unused) {
    return new RecvTensorRequest();
  }

  @java.lang.Override
  public final org.nd4j.shade.protobuf.UnknownFieldSet
  getUnknownFields() {
    return this.unknownFields;
  }
  private RecvTensorRequest(
      org.nd4j.shade.protobuf.CodedInputStream input,
      org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry)
      throws org.nd4j.shade.protobuf.InvalidProtocolBufferException {
    this();
    if (extensionRegistry == null) {
      throw new java.lang.NullPointerException();
    }
    org.nd4j.shade.protobuf.UnknownFieldSet.Builder unknownFields =
        org.nd4j.shade.protobuf.UnknownFieldSet.newBuilder();
    try {
      boolean done = false;
      while (!done) {
        int tag = input.readTag();
        switch (tag) {
          case 0:
            done = true;
            break;
          case 8: {

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

            rendezvousKey_ = s;
            break;
          }
          case 24: {

            dmaOk_ = input.readBool();
            break;
          }
          case 34: {
            org.tensorflow.framework.DeviceLocality.Builder subBuilder = null;
            if (clientLocality_ != null) {
              subBuilder = clientLocality_.toBuilder();
            }
            clientLocality_ = input.readMessage(org.tensorflow.framework.DeviceLocality.parser(), extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom(clientLocality_);
              clientLocality_ = subBuilder.buildPartial();
            }

            break;
          }
          case 42: {
            org.tensorflow.framework.DeviceLocality.Builder subBuilder = null;
            if (serverLocality_ != null) {
              subBuilder = serverLocality_.toBuilder();
            }
            serverLocality_ = input.readMessage(org.tensorflow.framework.DeviceLocality.parser(), extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom(serverLocality_);
              serverLocality_ = subBuilder.buildPartial();
            }

            break;
          }
          case 50: {
            org.nd4j.shade.protobuf.Any.Builder subBuilder = null;
            if (transportOptions_ != null) {
              subBuilder = transportOptions_.toBuilder();
            }
            transportOptions_ = input.readMessage(org.nd4j.shade.protobuf.Any.parser(), extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom(transportOptions_);
              transportOptions_ = subBuilder.buildPartial();
            }

            break;
          }
          case 56: {

            requestId_ = input.readInt64();
            break;
          }
          default: {
            if (!parseUnknownField(
                input, unknownFields, extensionRegistry, tag)) {
              done = true;
            }
            break;
          }
        }
      }
    } catch (org.nd4j.shade.protobuf.InvalidProtocolBufferException e) {
      throw e.setUnfinishedMessage(this);
    } catch (org.nd4j.shade.protobuf.UninitializedMessageException e) {
      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
    } catch (java.io.IOException e) {
      throw new org.nd4j.shade.protobuf.InvalidProtocolBufferException(
          e).setUnfinishedMessage(this);
    } finally {
      this.unknownFields = unknownFields.build();
      makeExtensionsImmutable();
    }
  }
  public static final org.nd4j.shade.protobuf.Descriptors.Descriptor
      getDescriptor() {
    return org.tensorflow.distruntime.WorkerProtos.internal_static_tensorflow_RecvTensorRequest_descriptor;
  }

  @java.lang.Override
  protected org.nd4j.shade.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return org.tensorflow.distruntime.WorkerProtos.internal_static_tensorflow_RecvTensorRequest_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            org.tensorflow.distruntime.RecvTensorRequest.class, org.tensorflow.distruntime.RecvTensorRequest.Builder.class);
  }

  public static final int STEP_ID_FIELD_NUMBER = 1;
  private long stepId_;
  /**
   * 
   * The step in which the tensor will be produced.
   * REQUIRED: This must eventually correspond to the `step_id` passed
   * into a RunGraph call on the same WorkerService.
   * 
* * int64 step_id = 1; * @return The stepId. */ @java.lang.Override public long getStepId() { return stepId_; } public static final int RENDEZVOUS_KEY_FIELD_NUMBER = 2; private volatile java.lang.Object rendezvousKey_; /** *
   * A key identifying the channel to receive tensors from. A RecvTensor request
   * retrieves one tensor from the channel, but multiple tensors can be sent and
   * received over the same channel with multiple RecvTensor requests. See
   * rendezvous.h for details.
   * 
* * string rendezvous_key = 2; * @return The rendezvousKey. */ @java.lang.Override public java.lang.String getRendezvousKey() { java.lang.Object ref = rendezvousKey_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { org.nd4j.shade.protobuf.ByteString bs = (org.nd4j.shade.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); rendezvousKey_ = s; return s; } } /** *
   * A key identifying the channel to receive tensors from. A RecvTensor request
   * retrieves one tensor from the channel, but multiple tensors can be sent and
   * received over the same channel with multiple RecvTensor requests. See
   * rendezvous.h for details.
   * 
* * string rendezvous_key = 2; * @return The bytes for rendezvousKey. */ @java.lang.Override public org.nd4j.shade.protobuf.ByteString getRendezvousKeyBytes() { java.lang.Object ref = rendezvousKey_; if (ref instanceof java.lang.String) { org.nd4j.shade.protobuf.ByteString b = org.nd4j.shade.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); rendezvousKey_ = b; return b; } else { return (org.nd4j.shade.protobuf.ByteString) ref; } } public static final int DMA_OK_FIELD_NUMBER = 3; private boolean dmaOk_; /** *
   * If true, use an out-of-band DMA mechanism to transfer the
   * received tensor.
   * 
* * bool dma_ok = 3; * @return The dmaOk. */ @java.lang.Override public boolean getDmaOk() { return dmaOk_; } public static final int CLIENT_LOCALITY_FIELD_NUMBER = 4; private org.tensorflow.framework.DeviceLocality clientLocality_; /** *
   * Optional information on client-side device locality.
   * 
* * .tensorflow.DeviceLocality client_locality = 4; * @return Whether the clientLocality field is set. */ @java.lang.Override public boolean hasClientLocality() { return clientLocality_ != null; } /** *
   * Optional information on client-side device locality.
   * 
* * .tensorflow.DeviceLocality client_locality = 4; * @return The clientLocality. */ @java.lang.Override public org.tensorflow.framework.DeviceLocality getClientLocality() { return clientLocality_ == null ? org.tensorflow.framework.DeviceLocality.getDefaultInstance() : clientLocality_; } /** *
   * Optional information on client-side device locality.
   * 
* * .tensorflow.DeviceLocality client_locality = 4; */ @java.lang.Override public org.tensorflow.framework.DeviceLocalityOrBuilder getClientLocalityOrBuilder() { return getClientLocality(); } public static final int SERVER_LOCALITY_FIELD_NUMBER = 5; private org.tensorflow.framework.DeviceLocality serverLocality_; /** *
   * Optional information on server-side device locality.
   * 
* * .tensorflow.DeviceLocality server_locality = 5; * @return Whether the serverLocality field is set. */ @java.lang.Override public boolean hasServerLocality() { return serverLocality_ != null; } /** *
   * Optional information on server-side device locality.
   * 
* * .tensorflow.DeviceLocality server_locality = 5; * @return The serverLocality. */ @java.lang.Override public org.tensorflow.framework.DeviceLocality getServerLocality() { return serverLocality_ == null ? org.tensorflow.framework.DeviceLocality.getDefaultInstance() : serverLocality_; } /** *
   * Optional information on server-side device locality.
   * 
* * .tensorflow.DeviceLocality server_locality = 5; */ @java.lang.Override public org.tensorflow.framework.DeviceLocalityOrBuilder getServerLocalityOrBuilder() { return getServerLocality(); } public static final int TRANSPORT_OPTIONS_FIELD_NUMBER = 6; private org.nd4j.shade.protobuf.Any transportOptions_; /** *
   * Optional information needed by the RPC subsystem.
   * 
* * .google.protobuf.Any transport_options = 6; * @return Whether the transportOptions field is set. */ @java.lang.Override public boolean hasTransportOptions() { return transportOptions_ != null; } /** *
   * Optional information needed by the RPC subsystem.
   * 
* * .google.protobuf.Any transport_options = 6; * @return The transportOptions. */ @java.lang.Override public org.nd4j.shade.protobuf.Any getTransportOptions() { return transportOptions_ == null ? org.nd4j.shade.protobuf.Any.getDefaultInstance() : transportOptions_; } /** *
   * Optional information needed by the RPC subsystem.
   * 
* * .google.protobuf.Any transport_options = 6; */ @java.lang.Override public org.nd4j.shade.protobuf.AnyOrBuilder getTransportOptionsOrBuilder() { return getTransportOptions(); } public static final int REQUEST_ID_FIELD_NUMBER = 7; private long requestId_; /** *
   * Unique identifier for this request. Every RecvTensorRequest must have a
   * unique request_id, and retried RecvTensorRequests must have the same
   * request_id. If request_id is zero, retry detection is disabled.
   * Retried RecvTensorRequests are problematic because a RecvTensor with no
   * corresponding sender will wait forever, and the tensor may have been
   * delivered to a previous retry. Workers use request_ids to reject retried
   * RecvTensor requests instead of waiting forever.
   * 
* * int64 request_id = 7; * @return The requestId. */ @java.lang.Override public long getRequestId() { return requestId_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(org.nd4j.shade.protobuf.CodedOutputStream output) throws java.io.IOException { if (stepId_ != 0L) { output.writeInt64(1, stepId_); } if (!org.nd4j.shade.protobuf.GeneratedMessageV3.isStringEmpty(rendezvousKey_)) { org.nd4j.shade.protobuf.GeneratedMessageV3.writeString(output, 2, rendezvousKey_); } if (dmaOk_ != false) { output.writeBool(3, dmaOk_); } if (clientLocality_ != null) { output.writeMessage(4, getClientLocality()); } if (serverLocality_ != null) { output.writeMessage(5, getServerLocality()); } if (transportOptions_ != null) { output.writeMessage(6, getTransportOptions()); } if (requestId_ != 0L) { output.writeInt64(7, requestId_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (stepId_ != 0L) { size += org.nd4j.shade.protobuf.CodedOutputStream .computeInt64Size(1, stepId_); } if (!org.nd4j.shade.protobuf.GeneratedMessageV3.isStringEmpty(rendezvousKey_)) { size += org.nd4j.shade.protobuf.GeneratedMessageV3.computeStringSize(2, rendezvousKey_); } if (dmaOk_ != false) { size += org.nd4j.shade.protobuf.CodedOutputStream .computeBoolSize(3, dmaOk_); } if (clientLocality_ != null) { size += org.nd4j.shade.protobuf.CodedOutputStream .computeMessageSize(4, getClientLocality()); } if (serverLocality_ != null) { size += org.nd4j.shade.protobuf.CodedOutputStream .computeMessageSize(5, getServerLocality()); } if (transportOptions_ != null) { size += org.nd4j.shade.protobuf.CodedOutputStream .computeMessageSize(6, getTransportOptions()); } if (requestId_ != 0L) { size += org.nd4j.shade.protobuf.CodedOutputStream .computeInt64Size(7, requestId_); } 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 org.tensorflow.distruntime.RecvTensorRequest)) { return super.equals(obj); } org.tensorflow.distruntime.RecvTensorRequest other = (org.tensorflow.distruntime.RecvTensorRequest) obj; if (getStepId() != other.getStepId()) return false; if (!getRendezvousKey() .equals(other.getRendezvousKey())) return false; if (getDmaOk() != other.getDmaOk()) return false; if (hasClientLocality() != other.hasClientLocality()) return false; if (hasClientLocality()) { if (!getClientLocality() .equals(other.getClientLocality())) return false; } if (hasServerLocality() != other.hasServerLocality()) return false; if (hasServerLocality()) { if (!getServerLocality() .equals(other.getServerLocality())) return false; } if (hasTransportOptions() != other.hasTransportOptions()) return false; if (hasTransportOptions()) { if (!getTransportOptions() .equals(other.getTransportOptions())) return false; } if (getRequestId() != other.getRequestId()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + STEP_ID_FIELD_NUMBER; hash = (53 * hash) + org.nd4j.shade.protobuf.Internal.hashLong( getStepId()); hash = (37 * hash) + RENDEZVOUS_KEY_FIELD_NUMBER; hash = (53 * hash) + getRendezvousKey().hashCode(); hash = (37 * hash) + DMA_OK_FIELD_NUMBER; hash = (53 * hash) + org.nd4j.shade.protobuf.Internal.hashBoolean( getDmaOk()); if (hasClientLocality()) { hash = (37 * hash) + CLIENT_LOCALITY_FIELD_NUMBER; hash = (53 * hash) + getClientLocality().hashCode(); } if (hasServerLocality()) { hash = (37 * hash) + SERVER_LOCALITY_FIELD_NUMBER; hash = (53 * hash) + getServerLocality().hashCode(); } if (hasTransportOptions()) { hash = (37 * hash) + TRANSPORT_OPTIONS_FIELD_NUMBER; hash = (53 * hash) + getTransportOptions().hashCode(); } hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; hash = (53 * hash) + org.nd4j.shade.protobuf.Internal.hashLong( getRequestId()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.tensorflow.distruntime.RecvTensorRequest parseFrom( java.nio.ByteBuffer data) throws org.nd4j.shade.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tensorflow.distruntime.RecvTensorRequest parseFrom( java.nio.ByteBuffer data, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws org.nd4j.shade.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tensorflow.distruntime.RecvTensorRequest parseFrom( org.nd4j.shade.protobuf.ByteString data) throws org.nd4j.shade.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tensorflow.distruntime.RecvTensorRequest parseFrom( org.nd4j.shade.protobuf.ByteString data, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws org.nd4j.shade.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tensorflow.distruntime.RecvTensorRequest parseFrom(byte[] data) throws org.nd4j.shade.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tensorflow.distruntime.RecvTensorRequest parseFrom( byte[] data, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws org.nd4j.shade.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tensorflow.distruntime.RecvTensorRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return org.nd4j.shade.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tensorflow.distruntime.RecvTensorRequest parseFrom( java.io.InputStream input, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return org.nd4j.shade.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static org.tensorflow.distruntime.RecvTensorRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return org.nd4j.shade.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tensorflow.distruntime.RecvTensorRequest parseDelimitedFrom( java.io.InputStream input, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return org.nd4j.shade.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.tensorflow.distruntime.RecvTensorRequest parseFrom( org.nd4j.shade.protobuf.CodedInputStream input) throws java.io.IOException { return org.nd4j.shade.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tensorflow.distruntime.RecvTensorRequest parseFrom( org.nd4j.shade.protobuf.CodedInputStream input, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return org.nd4j.shade.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.tensorflow.distruntime.RecvTensorRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( org.nd4j.shade.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code tensorflow.RecvTensorRequest} */ public static final class Builder extends org.nd4j.shade.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:tensorflow.RecvTensorRequest) org.tensorflow.distruntime.RecvTensorRequestOrBuilder { public static final org.nd4j.shade.protobuf.Descriptors.Descriptor getDescriptor() { return org.tensorflow.distruntime.WorkerProtos.internal_static_tensorflow_RecvTensorRequest_descriptor; } @java.lang.Override protected org.nd4j.shade.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tensorflow.distruntime.WorkerProtos.internal_static_tensorflow_RecvTensorRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tensorflow.distruntime.RecvTensorRequest.class, org.tensorflow.distruntime.RecvTensorRequest.Builder.class); } // Construct using org.tensorflow.distruntime.RecvTensorRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( org.nd4j.shade.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (org.nd4j.shade.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); stepId_ = 0L; rendezvousKey_ = ""; dmaOk_ = false; if (clientLocalityBuilder_ == null) { clientLocality_ = null; } else { clientLocality_ = null; clientLocalityBuilder_ = null; } if (serverLocalityBuilder_ == null) { serverLocality_ = null; } else { serverLocality_ = null; serverLocalityBuilder_ = null; } if (transportOptionsBuilder_ == null) { transportOptions_ = null; } else { transportOptions_ = null; transportOptionsBuilder_ = null; } requestId_ = 0L; return this; } @java.lang.Override public org.nd4j.shade.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tensorflow.distruntime.WorkerProtos.internal_static_tensorflow_RecvTensorRequest_descriptor; } @java.lang.Override public org.tensorflow.distruntime.RecvTensorRequest getDefaultInstanceForType() { return org.tensorflow.distruntime.RecvTensorRequest.getDefaultInstance(); } @java.lang.Override public org.tensorflow.distruntime.RecvTensorRequest build() { org.tensorflow.distruntime.RecvTensorRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.tensorflow.distruntime.RecvTensorRequest buildPartial() { org.tensorflow.distruntime.RecvTensorRequest result = new org.tensorflow.distruntime.RecvTensorRequest(this); result.stepId_ = stepId_; result.rendezvousKey_ = rendezvousKey_; result.dmaOk_ = dmaOk_; if (clientLocalityBuilder_ == null) { result.clientLocality_ = clientLocality_; } else { result.clientLocality_ = clientLocalityBuilder_.build(); } if (serverLocalityBuilder_ == null) { result.serverLocality_ = serverLocality_; } else { result.serverLocality_ = serverLocalityBuilder_.build(); } if (transportOptionsBuilder_ == null) { result.transportOptions_ = transportOptions_; } else { result.transportOptions_ = transportOptionsBuilder_.build(); } result.requestId_ = requestId_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( org.nd4j.shade.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(org.nd4j.shade.protobuf.Message other) { if (other instanceof org.tensorflow.distruntime.RecvTensorRequest) { return mergeFrom((org.tensorflow.distruntime.RecvTensorRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tensorflow.distruntime.RecvTensorRequest other) { if (other == org.tensorflow.distruntime.RecvTensorRequest.getDefaultInstance()) return this; if (other.getStepId() != 0L) { setStepId(other.getStepId()); } if (!other.getRendezvousKey().isEmpty()) { rendezvousKey_ = other.rendezvousKey_; onChanged(); } if (other.getDmaOk() != false) { setDmaOk(other.getDmaOk()); } if (other.hasClientLocality()) { mergeClientLocality(other.getClientLocality()); } if (other.hasServerLocality()) { mergeServerLocality(other.getServerLocality()); } if (other.hasTransportOptions()) { mergeTransportOptions(other.getTransportOptions()); } if (other.getRequestId() != 0L) { setRequestId(other.getRequestId()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( org.nd4j.shade.protobuf.CodedInputStream input, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.tensorflow.distruntime.RecvTensorRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (org.nd4j.shade.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tensorflow.distruntime.RecvTensorRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private long stepId_ ; /** *
     * The step in which the tensor will be produced.
     * REQUIRED: This must eventually correspond to the `step_id` passed
     * into a RunGraph call on the same WorkerService.
     * 
* * int64 step_id = 1; * @return The stepId. */ @java.lang.Override public long getStepId() { return stepId_; } /** *
     * The step in which the tensor will be produced.
     * REQUIRED: This must eventually correspond to the `step_id` passed
     * into a RunGraph call on the same WorkerService.
     * 
* * int64 step_id = 1; * @param value The stepId to set. * @return This builder for chaining. */ public Builder setStepId(long value) { stepId_ = value; onChanged(); return this; } /** *
     * The step in which the tensor will be produced.
     * REQUIRED: This must eventually correspond to the `step_id` passed
     * into a RunGraph call on the same WorkerService.
     * 
* * int64 step_id = 1; * @return This builder for chaining. */ public Builder clearStepId() { stepId_ = 0L; onChanged(); return this; } private java.lang.Object rendezvousKey_ = ""; /** *
     * A key identifying the channel to receive tensors from. A RecvTensor request
     * retrieves one tensor from the channel, but multiple tensors can be sent and
     * received over the same channel with multiple RecvTensor requests. See
     * rendezvous.h for details.
     * 
* * string rendezvous_key = 2; * @return The rendezvousKey. */ public java.lang.String getRendezvousKey() { java.lang.Object ref = rendezvousKey_; if (!(ref instanceof java.lang.String)) { org.nd4j.shade.protobuf.ByteString bs = (org.nd4j.shade.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); rendezvousKey_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * A key identifying the channel to receive tensors from. A RecvTensor request
     * retrieves one tensor from the channel, but multiple tensors can be sent and
     * received over the same channel with multiple RecvTensor requests. See
     * rendezvous.h for details.
     * 
* * string rendezvous_key = 2; * @return The bytes for rendezvousKey. */ public org.nd4j.shade.protobuf.ByteString getRendezvousKeyBytes() { java.lang.Object ref = rendezvousKey_; if (ref instanceof String) { org.nd4j.shade.protobuf.ByteString b = org.nd4j.shade.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); rendezvousKey_ = b; return b; } else { return (org.nd4j.shade.protobuf.ByteString) ref; } } /** *
     * A key identifying the channel to receive tensors from. A RecvTensor request
     * retrieves one tensor from the channel, but multiple tensors can be sent and
     * received over the same channel with multiple RecvTensor requests. See
     * rendezvous.h for details.
     * 
* * string rendezvous_key = 2; * @param value The rendezvousKey to set. * @return This builder for chaining. */ public Builder setRendezvousKey( java.lang.String value) { if (value == null) { throw new NullPointerException(); } rendezvousKey_ = value; onChanged(); return this; } /** *
     * A key identifying the channel to receive tensors from. A RecvTensor request
     * retrieves one tensor from the channel, but multiple tensors can be sent and
     * received over the same channel with multiple RecvTensor requests. See
     * rendezvous.h for details.
     * 
* * string rendezvous_key = 2; * @return This builder for chaining. */ public Builder clearRendezvousKey() { rendezvousKey_ = getDefaultInstance().getRendezvousKey(); onChanged(); return this; } /** *
     * A key identifying the channel to receive tensors from. A RecvTensor request
     * retrieves one tensor from the channel, but multiple tensors can be sent and
     * received over the same channel with multiple RecvTensor requests. See
     * rendezvous.h for details.
     * 
* * string rendezvous_key = 2; * @param value The bytes for rendezvousKey to set. * @return This builder for chaining. */ public Builder setRendezvousKeyBytes( org.nd4j.shade.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); rendezvousKey_ = value; onChanged(); return this; } private boolean dmaOk_ ; /** *
     * If true, use an out-of-band DMA mechanism to transfer the
     * received tensor.
     * 
* * bool dma_ok = 3; * @return The dmaOk. */ @java.lang.Override public boolean getDmaOk() { return dmaOk_; } /** *
     * If true, use an out-of-band DMA mechanism to transfer the
     * received tensor.
     * 
* * bool dma_ok = 3; * @param value The dmaOk to set. * @return This builder for chaining. */ public Builder setDmaOk(boolean value) { dmaOk_ = value; onChanged(); return this; } /** *
     * If true, use an out-of-band DMA mechanism to transfer the
     * received tensor.
     * 
* * bool dma_ok = 3; * @return This builder for chaining. */ public Builder clearDmaOk() { dmaOk_ = false; onChanged(); return this; } private org.tensorflow.framework.DeviceLocality clientLocality_; private org.nd4j.shade.protobuf.SingleFieldBuilderV3< org.tensorflow.framework.DeviceLocality, org.tensorflow.framework.DeviceLocality.Builder, org.tensorflow.framework.DeviceLocalityOrBuilder> clientLocalityBuilder_; /** *
     * Optional information on client-side device locality.
     * 
* * .tensorflow.DeviceLocality client_locality = 4; * @return Whether the clientLocality field is set. */ public boolean hasClientLocality() { return clientLocalityBuilder_ != null || clientLocality_ != null; } /** *
     * Optional information on client-side device locality.
     * 
* * .tensorflow.DeviceLocality client_locality = 4; * @return The clientLocality. */ public org.tensorflow.framework.DeviceLocality getClientLocality() { if (clientLocalityBuilder_ == null) { return clientLocality_ == null ? org.tensorflow.framework.DeviceLocality.getDefaultInstance() : clientLocality_; } else { return clientLocalityBuilder_.getMessage(); } } /** *
     * Optional information on client-side device locality.
     * 
* * .tensorflow.DeviceLocality client_locality = 4; */ public Builder setClientLocality(org.tensorflow.framework.DeviceLocality value) { if (clientLocalityBuilder_ == null) { if (value == null) { throw new NullPointerException(); } clientLocality_ = value; onChanged(); } else { clientLocalityBuilder_.setMessage(value); } return this; } /** *
     * Optional information on client-side device locality.
     * 
* * .tensorflow.DeviceLocality client_locality = 4; */ public Builder setClientLocality( org.tensorflow.framework.DeviceLocality.Builder builderForValue) { if (clientLocalityBuilder_ == null) { clientLocality_ = builderForValue.build(); onChanged(); } else { clientLocalityBuilder_.setMessage(builderForValue.build()); } return this; } /** *
     * Optional information on client-side device locality.
     * 
* * .tensorflow.DeviceLocality client_locality = 4; */ public Builder mergeClientLocality(org.tensorflow.framework.DeviceLocality value) { if (clientLocalityBuilder_ == null) { if (clientLocality_ != null) { clientLocality_ = org.tensorflow.framework.DeviceLocality.newBuilder(clientLocality_).mergeFrom(value).buildPartial(); } else { clientLocality_ = value; } onChanged(); } else { clientLocalityBuilder_.mergeFrom(value); } return this; } /** *
     * Optional information on client-side device locality.
     * 
* * .tensorflow.DeviceLocality client_locality = 4; */ public Builder clearClientLocality() { if (clientLocalityBuilder_ == null) { clientLocality_ = null; onChanged(); } else { clientLocality_ = null; clientLocalityBuilder_ = null; } return this; } /** *
     * Optional information on client-side device locality.
     * 
* * .tensorflow.DeviceLocality client_locality = 4; */ public org.tensorflow.framework.DeviceLocality.Builder getClientLocalityBuilder() { onChanged(); return getClientLocalityFieldBuilder().getBuilder(); } /** *
     * Optional information on client-side device locality.
     * 
* * .tensorflow.DeviceLocality client_locality = 4; */ public org.tensorflow.framework.DeviceLocalityOrBuilder getClientLocalityOrBuilder() { if (clientLocalityBuilder_ != null) { return clientLocalityBuilder_.getMessageOrBuilder(); } else { return clientLocality_ == null ? org.tensorflow.framework.DeviceLocality.getDefaultInstance() : clientLocality_; } } /** *
     * Optional information on client-side device locality.
     * 
* * .tensorflow.DeviceLocality client_locality = 4; */ private org.nd4j.shade.protobuf.SingleFieldBuilderV3< org.tensorflow.framework.DeviceLocality, org.tensorflow.framework.DeviceLocality.Builder, org.tensorflow.framework.DeviceLocalityOrBuilder> getClientLocalityFieldBuilder() { if (clientLocalityBuilder_ == null) { clientLocalityBuilder_ = new org.nd4j.shade.protobuf.SingleFieldBuilderV3< org.tensorflow.framework.DeviceLocality, org.tensorflow.framework.DeviceLocality.Builder, org.tensorflow.framework.DeviceLocalityOrBuilder>( getClientLocality(), getParentForChildren(), isClean()); clientLocality_ = null; } return clientLocalityBuilder_; } private org.tensorflow.framework.DeviceLocality serverLocality_; private org.nd4j.shade.protobuf.SingleFieldBuilderV3< org.tensorflow.framework.DeviceLocality, org.tensorflow.framework.DeviceLocality.Builder, org.tensorflow.framework.DeviceLocalityOrBuilder> serverLocalityBuilder_; /** *
     * Optional information on server-side device locality.
     * 
* * .tensorflow.DeviceLocality server_locality = 5; * @return Whether the serverLocality field is set. */ public boolean hasServerLocality() { return serverLocalityBuilder_ != null || serverLocality_ != null; } /** *
     * Optional information on server-side device locality.
     * 
* * .tensorflow.DeviceLocality server_locality = 5; * @return The serverLocality. */ public org.tensorflow.framework.DeviceLocality getServerLocality() { if (serverLocalityBuilder_ == null) { return serverLocality_ == null ? org.tensorflow.framework.DeviceLocality.getDefaultInstance() : serverLocality_; } else { return serverLocalityBuilder_.getMessage(); } } /** *
     * Optional information on server-side device locality.
     * 
* * .tensorflow.DeviceLocality server_locality = 5; */ public Builder setServerLocality(org.tensorflow.framework.DeviceLocality value) { if (serverLocalityBuilder_ == null) { if (value == null) { throw new NullPointerException(); } serverLocality_ = value; onChanged(); } else { serverLocalityBuilder_.setMessage(value); } return this; } /** *
     * Optional information on server-side device locality.
     * 
* * .tensorflow.DeviceLocality server_locality = 5; */ public Builder setServerLocality( org.tensorflow.framework.DeviceLocality.Builder builderForValue) { if (serverLocalityBuilder_ == null) { serverLocality_ = builderForValue.build(); onChanged(); } else { serverLocalityBuilder_.setMessage(builderForValue.build()); } return this; } /** *
     * Optional information on server-side device locality.
     * 
* * .tensorflow.DeviceLocality server_locality = 5; */ public Builder mergeServerLocality(org.tensorflow.framework.DeviceLocality value) { if (serverLocalityBuilder_ == null) { if (serverLocality_ != null) { serverLocality_ = org.tensorflow.framework.DeviceLocality.newBuilder(serverLocality_).mergeFrom(value).buildPartial(); } else { serverLocality_ = value; } onChanged(); } else { serverLocalityBuilder_.mergeFrom(value); } return this; } /** *
     * Optional information on server-side device locality.
     * 
* * .tensorflow.DeviceLocality server_locality = 5; */ public Builder clearServerLocality() { if (serverLocalityBuilder_ == null) { serverLocality_ = null; onChanged(); } else { serverLocality_ = null; serverLocalityBuilder_ = null; } return this; } /** *
     * Optional information on server-side device locality.
     * 
* * .tensorflow.DeviceLocality server_locality = 5; */ public org.tensorflow.framework.DeviceLocality.Builder getServerLocalityBuilder() { onChanged(); return getServerLocalityFieldBuilder().getBuilder(); } /** *
     * Optional information on server-side device locality.
     * 
* * .tensorflow.DeviceLocality server_locality = 5; */ public org.tensorflow.framework.DeviceLocalityOrBuilder getServerLocalityOrBuilder() { if (serverLocalityBuilder_ != null) { return serverLocalityBuilder_.getMessageOrBuilder(); } else { return serverLocality_ == null ? org.tensorflow.framework.DeviceLocality.getDefaultInstance() : serverLocality_; } } /** *
     * Optional information on server-side device locality.
     * 
* * .tensorflow.DeviceLocality server_locality = 5; */ private org.nd4j.shade.protobuf.SingleFieldBuilderV3< org.tensorflow.framework.DeviceLocality, org.tensorflow.framework.DeviceLocality.Builder, org.tensorflow.framework.DeviceLocalityOrBuilder> getServerLocalityFieldBuilder() { if (serverLocalityBuilder_ == null) { serverLocalityBuilder_ = new org.nd4j.shade.protobuf.SingleFieldBuilderV3< org.tensorflow.framework.DeviceLocality, org.tensorflow.framework.DeviceLocality.Builder, org.tensorflow.framework.DeviceLocalityOrBuilder>( getServerLocality(), getParentForChildren(), isClean()); serverLocality_ = null; } return serverLocalityBuilder_; } private org.nd4j.shade.protobuf.Any transportOptions_; private org.nd4j.shade.protobuf.SingleFieldBuilderV3< org.nd4j.shade.protobuf.Any, org.nd4j.shade.protobuf.Any.Builder, org.nd4j.shade.protobuf.AnyOrBuilder> transportOptionsBuilder_; /** *
     * Optional information needed by the RPC subsystem.
     * 
* * .google.protobuf.Any transport_options = 6; * @return Whether the transportOptions field is set. */ public boolean hasTransportOptions() { return transportOptionsBuilder_ != null || transportOptions_ != null; } /** *
     * Optional information needed by the RPC subsystem.
     * 
* * .google.protobuf.Any transport_options = 6; * @return The transportOptions. */ public org.nd4j.shade.protobuf.Any getTransportOptions() { if (transportOptionsBuilder_ == null) { return transportOptions_ == null ? org.nd4j.shade.protobuf.Any.getDefaultInstance() : transportOptions_; } else { return transportOptionsBuilder_.getMessage(); } } /** *
     * Optional information needed by the RPC subsystem.
     * 
* * .google.protobuf.Any transport_options = 6; */ public Builder setTransportOptions(org.nd4j.shade.protobuf.Any value) { if (transportOptionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } transportOptions_ = value; onChanged(); } else { transportOptionsBuilder_.setMessage(value); } return this; } /** *
     * Optional information needed by the RPC subsystem.
     * 
* * .google.protobuf.Any transport_options = 6; */ public Builder setTransportOptions( org.nd4j.shade.protobuf.Any.Builder builderForValue) { if (transportOptionsBuilder_ == null) { transportOptions_ = builderForValue.build(); onChanged(); } else { transportOptionsBuilder_.setMessage(builderForValue.build()); } return this; } /** *
     * Optional information needed by the RPC subsystem.
     * 
* * .google.protobuf.Any transport_options = 6; */ public Builder mergeTransportOptions(org.nd4j.shade.protobuf.Any value) { if (transportOptionsBuilder_ == null) { if (transportOptions_ != null) { transportOptions_ = org.nd4j.shade.protobuf.Any.newBuilder(transportOptions_).mergeFrom(value).buildPartial(); } else { transportOptions_ = value; } onChanged(); } else { transportOptionsBuilder_.mergeFrom(value); } return this; } /** *
     * Optional information needed by the RPC subsystem.
     * 
* * .google.protobuf.Any transport_options = 6; */ public Builder clearTransportOptions() { if (transportOptionsBuilder_ == null) { transportOptions_ = null; onChanged(); } else { transportOptions_ = null; transportOptionsBuilder_ = null; } return this; } /** *
     * Optional information needed by the RPC subsystem.
     * 
* * .google.protobuf.Any transport_options = 6; */ public org.nd4j.shade.protobuf.Any.Builder getTransportOptionsBuilder() { onChanged(); return getTransportOptionsFieldBuilder().getBuilder(); } /** *
     * Optional information needed by the RPC subsystem.
     * 
* * .google.protobuf.Any transport_options = 6; */ public org.nd4j.shade.protobuf.AnyOrBuilder getTransportOptionsOrBuilder() { if (transportOptionsBuilder_ != null) { return transportOptionsBuilder_.getMessageOrBuilder(); } else { return transportOptions_ == null ? org.nd4j.shade.protobuf.Any.getDefaultInstance() : transportOptions_; } } /** *
     * Optional information needed by the RPC subsystem.
     * 
* * .google.protobuf.Any transport_options = 6; */ private org.nd4j.shade.protobuf.SingleFieldBuilderV3< org.nd4j.shade.protobuf.Any, org.nd4j.shade.protobuf.Any.Builder, org.nd4j.shade.protobuf.AnyOrBuilder> getTransportOptionsFieldBuilder() { if (transportOptionsBuilder_ == null) { transportOptionsBuilder_ = new org.nd4j.shade.protobuf.SingleFieldBuilderV3< org.nd4j.shade.protobuf.Any, org.nd4j.shade.protobuf.Any.Builder, org.nd4j.shade.protobuf.AnyOrBuilder>( getTransportOptions(), getParentForChildren(), isClean()); transportOptions_ = null; } return transportOptionsBuilder_; } private long requestId_ ; /** *
     * Unique identifier for this request. Every RecvTensorRequest must have a
     * unique request_id, and retried RecvTensorRequests must have the same
     * request_id. If request_id is zero, retry detection is disabled.
     * Retried RecvTensorRequests are problematic because a RecvTensor with no
     * corresponding sender will wait forever, and the tensor may have been
     * delivered to a previous retry. Workers use request_ids to reject retried
     * RecvTensor requests instead of waiting forever.
     * 
* * int64 request_id = 7; * @return The requestId. */ @java.lang.Override public long getRequestId() { return requestId_; } /** *
     * Unique identifier for this request. Every RecvTensorRequest must have a
     * unique request_id, and retried RecvTensorRequests must have the same
     * request_id. If request_id is zero, retry detection is disabled.
     * Retried RecvTensorRequests are problematic because a RecvTensor with no
     * corresponding sender will wait forever, and the tensor may have been
     * delivered to a previous retry. Workers use request_ids to reject retried
     * RecvTensor requests instead of waiting forever.
     * 
* * int64 request_id = 7; * @param value The requestId to set. * @return This builder for chaining. */ public Builder setRequestId(long value) { requestId_ = value; onChanged(); return this; } /** *
     * Unique identifier for this request. Every RecvTensorRequest must have a
     * unique request_id, and retried RecvTensorRequests must have the same
     * request_id. If request_id is zero, retry detection is disabled.
     * Retried RecvTensorRequests are problematic because a RecvTensor with no
     * corresponding sender will wait forever, and the tensor may have been
     * delivered to a previous retry. Workers use request_ids to reject retried
     * RecvTensor requests instead of waiting forever.
     * 
* * int64 request_id = 7; * @return This builder for chaining. */ public Builder clearRequestId() { requestId_ = 0L; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final org.nd4j.shade.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final org.nd4j.shade.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:tensorflow.RecvTensorRequest) } // @@protoc_insertion_point(class_scope:tensorflow.RecvTensorRequest) private static final org.tensorflow.distruntime.RecvTensorRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tensorflow.distruntime.RecvTensorRequest(); } public static org.tensorflow.distruntime.RecvTensorRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final org.nd4j.shade.protobuf.Parser PARSER = new org.nd4j.shade.protobuf.AbstractParser() { @java.lang.Override public RecvTensorRequest parsePartialFrom( org.nd4j.shade.protobuf.CodedInputStream input, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws org.nd4j.shade.protobuf.InvalidProtocolBufferException { return new RecvTensorRequest(input, extensionRegistry); } }; public static org.nd4j.shade.protobuf.Parser parser() { return PARSER; } @java.lang.Override public org.nd4j.shade.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public org.tensorflow.distruntime.RecvTensorRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy