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

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

There is a newer version: 1.0.0-M2.1
Show newest version
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: tensorflow/core/protobuf/worker.proto

package org.tensorflow.distruntime;

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

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

  @java.lang.Override
  public final org.nd4j.shade.protobuf.UnknownFieldSet
  getUnknownFields() {
    return this.unknownFields;
  }
  private RecvTensorResponse(
      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 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: {
            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;
          }
          default: {
            if (!parseUnknownField(
                input, unknownFields, extensionRegistry, tag)) {
              done = true;
            }
            break;
          }
        }
      }
    } catch (org.nd4j.shade.protobuf.InvalidProtocolBufferException e) {
      throw e.setUnfinishedMessage(this);
    } catch (java.io.IOException e) {
      throw new org.nd4j.shade.protobuf.InvalidProtocolBufferException(
          e).setUnfinishedMessage(this);
    } finally {
      this.unknownFields = unknownFields.build();
      makeExtensionsImmutable();
    }
  }
  public static final org.nd4j.shade.protobuf.Descriptors.Descriptor
      getDescriptor() {
    return org.tensorflow.distruntime.WorkerProtos.internal_static_tensorflow_RecvTensorResponse_descriptor;
  }

  @java.lang.Override
  protected org.nd4j.shade.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_;
  /**
   * 
   * The tensor as a proto.
   * 
* * .tensorflow.TensorProto tensor = 1; */ public boolean hasTensor() { return tensor_ != null; } /** *
   * The tensor as a proto.
   * 
* * .tensorflow.TensorProto tensor = 1; */ public org.tensorflow.framework.TensorProto getTensor() { return tensor_ == null ? org.tensorflow.framework.TensorProto.getDefaultInstance() : tensor_; } /** *
   * The tensor as a proto.
   * 
* * .tensorflow.TensorProto tensor = 1; */ public org.tensorflow.framework.TensorProtoOrBuilder getTensorOrBuilder() { return getTensor(); } public static final int IS_DEAD_FIELD_NUMBER = 2; private boolean isDead_; /** *
   * If true, this tensor was the output of a dead node, and the
   * content is invalid.
   * 
* * bool is_dead = 2; */ public boolean getIsDead() { return isDead_; } public static final int SEND_START_MICROS_FIELD_NUMBER = 3; private long sendStartMicros_; /** *
   * The time at which tensor was available and started to be returned.
   * 
* * int64 send_start_micros = 3; */ public long getSendStartMicros() { return sendStartMicros_; } public static final int TRANSPORT_OPTIONS_FIELD_NUMBER = 4; private org.nd4j.shade.protobuf.Any transportOptions_; /** *
   * Optional additional information about how to receive the tensor,
   * e.g. in the event that `RecvTensorRequest.dma_ok` was true.
   * 
* * .google.protobuf.Any transport_options = 4; */ public boolean hasTransportOptions() { return transportOptions_ != null; } /** *
   * Optional additional information about how to receive the tensor,
   * e.g. in the event that `RecvTensorRequest.dma_ok` was true.
   * 
* * .google.protobuf.Any transport_options = 4; */ public org.nd4j.shade.protobuf.Any getTransportOptions() { return transportOptions_ == null ? org.nd4j.shade.protobuf.Any.getDefaultInstance() : transportOptions_; } /** *
   * Optional additional information about how to receive the tensor,
   * e.g. in the event that `RecvTensorRequest.dma_ok` was true.
   * 
* * .google.protobuf.Any transport_options = 4; */ public org.nd4j.shade.protobuf.AnyOrBuilder getTransportOptionsOrBuilder() { return getTransportOptions(); } 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 (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()); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (tensor_ != null) { size += org.nd4j.shade.protobuf.CodedOutputStream .computeMessageSize(1, getTensor()); } if (isDead_ != false) { size += org.nd4j.shade.protobuf.CodedOutputStream .computeBoolSize(2, isDead_); } if (sendStartMicros_ != 0L) { size += org.nd4j.shade.protobuf.CodedOutputStream .computeInt64Size(3, sendStartMicros_); } if (transportOptions_ != null) { size += org.nd4j.shade.protobuf.CodedOutputStream .computeMessageSize(4, getTransportOptions()); } 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.RecvTensorResponse)) { return super.equals(obj); } org.tensorflow.distruntime.RecvTensorResponse other = (org.tensorflow.distruntime.RecvTensorResponse) obj; if (hasTensor() != other.hasTensor()) return false; if (hasTensor()) { if (!getTensor() .equals(other.getTensor())) return false; } if (getIsDead() != other.getIsDead()) return false; if (getSendStartMicros() != other.getSendStartMicros()) return false; if (hasTransportOptions() != other.hasTransportOptions()) return false; if (hasTransportOptions()) { if (!getTransportOptions() .equals(other.getTransportOptions())) 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(); if (hasTensor()) { hash = (37 * hash) + TENSOR_FIELD_NUMBER; hash = (53 * hash) + getTensor().hashCode(); } hash = (37 * hash) + IS_DEAD_FIELD_NUMBER; hash = (53 * hash) + org.nd4j.shade.protobuf.Internal.hashBoolean( getIsDead()); hash = (37 * hash) + SEND_START_MICROS_FIELD_NUMBER; hash = (53 * hash) + org.nd4j.shade.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( java.nio.ByteBuffer data) throws org.nd4j.shade.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tensorflow.distruntime.RecvTensorResponse 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.RecvTensorResponse parseFrom( org.nd4j.shade.protobuf.ByteString data) throws org.nd4j.shade.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tensorflow.distruntime.RecvTensorResponse 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.RecvTensorResponse parseFrom(byte[] data) throws org.nd4j.shade.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tensorflow.distruntime.RecvTensorResponse 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.RecvTensorResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return org.nd4j.shade.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tensorflow.distruntime.RecvTensorResponse 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.RecvTensorResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return org.nd4j.shade.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tensorflow.distruntime.RecvTensorResponse 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.RecvTensorResponse 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.RecvTensorResponse 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.RecvTensorResponse 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.RecvTensorResponse} */ public static final class Builder extends org.nd4j.shade.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:tensorflow.RecvTensorResponse) org.tensorflow.distruntime.RecvTensorResponseOrBuilder { public static final org.nd4j.shade.protobuf.Descriptors.Descriptor getDescriptor() { return org.tensorflow.distruntime.WorkerProtos.internal_static_tensorflow_RecvTensorResponse_descriptor; } @java.lang.Override protected org.nd4j.shade.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( 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(); 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; } @java.lang.Override public org.nd4j.shade.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tensorflow.distruntime.WorkerProtos.internal_static_tensorflow_RecvTensorResponse_descriptor; } @java.lang.Override public org.tensorflow.distruntime.RecvTensorResponse getDefaultInstanceForType() { return org.tensorflow.distruntime.RecvTensorResponse.getDefaultInstance(); } @java.lang.Override public org.tensorflow.distruntime.RecvTensorResponse build() { org.tensorflow.distruntime.RecvTensorResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override 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; } @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.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()); } 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.RecvTensorResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (org.nd4j.shade.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_; private org.nd4j.shade.protobuf.SingleFieldBuilderV3< org.tensorflow.framework.TensorProto, org.tensorflow.framework.TensorProto.Builder, org.tensorflow.framework.TensorProtoOrBuilder> tensorBuilder_; /** *
     * The tensor as a proto.
     * 
* * .tensorflow.TensorProto tensor = 1; */ public boolean hasTensor() { return tensorBuilder_ != null || tensor_ != null; } /** *
     * The tensor as a proto.
     * 
* * .tensorflow.TensorProto tensor = 1; */ public org.tensorflow.framework.TensorProto getTensor() { if (tensorBuilder_ == null) { return tensor_ == null ? org.tensorflow.framework.TensorProto.getDefaultInstance() : tensor_; } else { return tensorBuilder_.getMessage(); } } /** *
     * The tensor as a proto.
     * 
* * .tensorflow.TensorProto tensor = 1; */ 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; } /** *
     * The tensor as a proto.
     * 
* * .tensorflow.TensorProto tensor = 1; */ public Builder setTensor( org.tensorflow.framework.TensorProto.Builder builderForValue) { if (tensorBuilder_ == null) { tensor_ = builderForValue.build(); onChanged(); } else { tensorBuilder_.setMessage(builderForValue.build()); } return this; } /** *
     * The tensor as a proto.
     * 
* * .tensorflow.TensorProto tensor = 1; */ 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; } /** *
     * The tensor as a proto.
     * 
* * .tensorflow.TensorProto tensor = 1; */ public Builder clearTensor() { if (tensorBuilder_ == null) { tensor_ = null; onChanged(); } else { tensor_ = null; tensorBuilder_ = null; } return this; } /** *
     * The tensor as a proto.
     * 
* * .tensorflow.TensorProto tensor = 1; */ public org.tensorflow.framework.TensorProto.Builder getTensorBuilder() { onChanged(); return getTensorFieldBuilder().getBuilder(); } /** *
     * The tensor as a proto.
     * 
* * .tensorflow.TensorProto tensor = 1; */ public org.tensorflow.framework.TensorProtoOrBuilder getTensorOrBuilder() { if (tensorBuilder_ != null) { return tensorBuilder_.getMessageOrBuilder(); } else { return tensor_ == null ? org.tensorflow.framework.TensorProto.getDefaultInstance() : tensor_; } } /** *
     * The tensor as a proto.
     * 
* * .tensorflow.TensorProto tensor = 1; */ private org.nd4j.shade.protobuf.SingleFieldBuilderV3< org.tensorflow.framework.TensorProto, org.tensorflow.framework.TensorProto.Builder, org.tensorflow.framework.TensorProtoOrBuilder> getTensorFieldBuilder() { if (tensorBuilder_ == null) { tensorBuilder_ = new org.nd4j.shade.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_ ; /** *
     * If true, this tensor was the output of a dead node, and the
     * content is invalid.
     * 
* * bool is_dead = 2; */ public boolean getIsDead() { return isDead_; } /** *
     * If true, this tensor was the output of a dead node, and the
     * content is invalid.
     * 
* * bool is_dead = 2; */ public Builder setIsDead(boolean value) { isDead_ = value; onChanged(); return this; } /** *
     * If true, this tensor was the output of a dead node, and the
     * content is invalid.
     * 
* * bool is_dead = 2; */ public Builder clearIsDead() { isDead_ = false; onChanged(); return this; } private long sendStartMicros_ ; /** *
     * The time at which tensor was available and started to be returned.
     * 
* * int64 send_start_micros = 3; */ public long getSendStartMicros() { return sendStartMicros_; } /** *
     * The time at which tensor was available and started to be returned.
     * 
* * int64 send_start_micros = 3; */ public Builder setSendStartMicros(long value) { sendStartMicros_ = value; onChanged(); return this; } /** *
     * The time at which tensor was available and started to be returned.
     * 
* * int64 send_start_micros = 3; */ public Builder clearSendStartMicros() { sendStartMicros_ = 0L; onChanged(); return this; } 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 additional information about how to receive the tensor,
     * e.g. in the event that `RecvTensorRequest.dma_ok` was true.
     * 
* * .google.protobuf.Any transport_options = 4; */ public boolean hasTransportOptions() { return transportOptionsBuilder_ != null || transportOptions_ != null; } /** *
     * Optional additional information about how to receive the tensor,
     * e.g. in the event that `RecvTensorRequest.dma_ok` was true.
     * 
* * .google.protobuf.Any transport_options = 4; */ 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 additional information about how to receive the tensor,
     * e.g. in the event that `RecvTensorRequest.dma_ok` was true.
     * 
* * .google.protobuf.Any transport_options = 4; */ 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 additional information about how to receive the tensor,
     * e.g. in the event that `RecvTensorRequest.dma_ok` was true.
     * 
* * .google.protobuf.Any transport_options = 4; */ 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 additional information about how to receive the tensor,
     * e.g. in the event that `RecvTensorRequest.dma_ok` was true.
     * 
* * .google.protobuf.Any transport_options = 4; */ 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 additional information about how to receive the tensor,
     * e.g. in the event that `RecvTensorRequest.dma_ok` was true.
     * 
* * .google.protobuf.Any transport_options = 4; */ public Builder clearTransportOptions() { if (transportOptionsBuilder_ == null) { transportOptions_ = null; onChanged(); } else { transportOptions_ = null; transportOptionsBuilder_ = null; } return this; } /** *
     * Optional additional information about how to receive the tensor,
     * e.g. in the event that `RecvTensorRequest.dma_ok` was true.
     * 
* * .google.protobuf.Any transport_options = 4; */ public org.nd4j.shade.protobuf.Any.Builder getTransportOptionsBuilder() { onChanged(); return getTransportOptionsFieldBuilder().getBuilder(); } /** *
     * Optional additional information about how to receive the tensor,
     * e.g. in the event that `RecvTensorRequest.dma_ok` was true.
     * 
* * .google.protobuf.Any transport_options = 4; */ 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 additional information about how to receive the tensor,
     * e.g. in the event that `RecvTensorRequest.dma_ok` was true.
     * 
* * .google.protobuf.Any transport_options = 4; */ 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_; } @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.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 org.nd4j.shade.protobuf.Parser PARSER = new org.nd4j.shade.protobuf.AbstractParser() { @java.lang.Override public RecvTensorResponse parsePartialFrom( org.nd4j.shade.protobuf.CodedInputStream input, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws org.nd4j.shade.protobuf.InvalidProtocolBufferException { return new RecvTensorResponse(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.RecvTensorResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy