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

org.tensorflow.framework.GraphTransferNodeInfo 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/framework/graph_transfer_info.proto

package org.tensorflow.framework;

/**
 * Protobuf type {@code tensorflow.GraphTransferNodeInfo}
 */
public  final class GraphTransferNodeInfo extends
    com.github.os72.protobuf351.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:tensorflow.GraphTransferNodeInfo)
    GraphTransferNodeInfoOrBuilder {
private static final long serialVersionUID = 0L;
  // Use GraphTransferNodeInfo.newBuilder() to construct.
  private GraphTransferNodeInfo(com.github.os72.protobuf351.GeneratedMessageV3.Builder builder) {
    super(builder);
  }
  private GraphTransferNodeInfo() {
    name_ = "";
    nodeId_ = 0;
    typeName_ = "";
    socOpId_ = 0;
    paddingId_ = 0;
    inputCount_ = 0;
    outputCount_ = 0;
  }

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

            name_ = s;
            break;
          }
          case 16: {

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

            typeName_ = s;
            break;
          }
          case 32: {

            socOpId_ = input.readInt32();
            break;
          }
          case 40: {

            paddingId_ = input.readInt32();
            break;
          }
          case 48: {

            inputCount_ = input.readInt32();
            break;
          }
          case 56: {

            outputCount_ = input.readInt32();
            break;
          }
        }
      }
    } catch (com.github.os72.protobuf351.InvalidProtocolBufferException e) {
      throw e.setUnfinishedMessage(this);
    } catch (java.io.IOException e) {
      throw new com.github.os72.protobuf351.InvalidProtocolBufferException(
          e).setUnfinishedMessage(this);
    } finally {
      this.unknownFields = unknownFields.build();
      makeExtensionsImmutable();
    }
  }
  public static final com.github.os72.protobuf351.Descriptors.Descriptor
      getDescriptor() {
    return org.tensorflow.framework.GraphTransferInfoProto.internal_static_tensorflow_GraphTransferNodeInfo_descriptor;
  }

  protected com.github.os72.protobuf351.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return org.tensorflow.framework.GraphTransferInfoProto.internal_static_tensorflow_GraphTransferNodeInfo_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            org.tensorflow.framework.GraphTransferNodeInfo.class, org.tensorflow.framework.GraphTransferNodeInfo.Builder.class);
  }

  public static final int NAME_FIELD_NUMBER = 1;
  private volatile java.lang.Object name_;
  /**
   * string name = 1;
   */
  public java.lang.String getName() {
    java.lang.Object ref = name_;
    if (ref instanceof java.lang.String) {
      return (java.lang.String) ref;
    } else {
      com.github.os72.protobuf351.ByteString bs = 
          (com.github.os72.protobuf351.ByteString) ref;
      java.lang.String s = bs.toStringUtf8();
      name_ = s;
      return s;
    }
  }
  /**
   * string name = 1;
   */
  public com.github.os72.protobuf351.ByteString
      getNameBytes() {
    java.lang.Object ref = name_;
    if (ref instanceof java.lang.String) {
      com.github.os72.protobuf351.ByteString b = 
          com.github.os72.protobuf351.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      name_ = b;
      return b;
    } else {
      return (com.github.os72.protobuf351.ByteString) ref;
    }
  }

  public static final int NODE_ID_FIELD_NUMBER = 2;
  private int nodeId_;
  /**
   * int32 node_id = 2;
   */
  public int getNodeId() {
    return nodeId_;
  }

  public static final int TYPE_NAME_FIELD_NUMBER = 3;
  private volatile java.lang.Object typeName_;
  /**
   * string type_name = 3;
   */
  public java.lang.String getTypeName() {
    java.lang.Object ref = typeName_;
    if (ref instanceof java.lang.String) {
      return (java.lang.String) ref;
    } else {
      com.github.os72.protobuf351.ByteString bs = 
          (com.github.os72.protobuf351.ByteString) ref;
      java.lang.String s = bs.toStringUtf8();
      typeName_ = s;
      return s;
    }
  }
  /**
   * string type_name = 3;
   */
  public com.github.os72.protobuf351.ByteString
      getTypeNameBytes() {
    java.lang.Object ref = typeName_;
    if (ref instanceof java.lang.String) {
      com.github.os72.protobuf351.ByteString b = 
          com.github.os72.protobuf351.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      typeName_ = b;
      return b;
    } else {
      return (com.github.os72.protobuf351.ByteString) ref;
    }
  }

  public static final int SOC_OP_ID_FIELD_NUMBER = 4;
  private int socOpId_;
  /**
   * int32 soc_op_id = 4;
   */
  public int getSocOpId() {
    return socOpId_;
  }

  public static final int PADDING_ID_FIELD_NUMBER = 5;
  private int paddingId_;
  /**
   * int32 padding_id = 5;
   */
  public int getPaddingId() {
    return paddingId_;
  }

  public static final int INPUT_COUNT_FIELD_NUMBER = 6;
  private int inputCount_;
  /**
   * int32 input_count = 6;
   */
  public int getInputCount() {
    return inputCount_;
  }

  public static final int OUTPUT_COUNT_FIELD_NUMBER = 7;
  private int outputCount_;
  /**
   * int32 output_count = 7;
   */
  public int getOutputCount() {
    return outputCount_;
  }

  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.github.os72.protobuf351.CodedOutputStream output)
                      throws java.io.IOException {
    if (!getNameBytes().isEmpty()) {
      com.github.os72.protobuf351.GeneratedMessageV3.writeString(output, 1, name_);
    }
    if (nodeId_ != 0) {
      output.writeInt32(2, nodeId_);
    }
    if (!getTypeNameBytes().isEmpty()) {
      com.github.os72.protobuf351.GeneratedMessageV3.writeString(output, 3, typeName_);
    }
    if (socOpId_ != 0) {
      output.writeInt32(4, socOpId_);
    }
    if (paddingId_ != 0) {
      output.writeInt32(5, paddingId_);
    }
    if (inputCount_ != 0) {
      output.writeInt32(6, inputCount_);
    }
    if (outputCount_ != 0) {
      output.writeInt32(7, outputCount_);
    }
    unknownFields.writeTo(output);
  }

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

    size = 0;
    if (!getNameBytes().isEmpty()) {
      size += com.github.os72.protobuf351.GeneratedMessageV3.computeStringSize(1, name_);
    }
    if (nodeId_ != 0) {
      size += com.github.os72.protobuf351.CodedOutputStream
        .computeInt32Size(2, nodeId_);
    }
    if (!getTypeNameBytes().isEmpty()) {
      size += com.github.os72.protobuf351.GeneratedMessageV3.computeStringSize(3, typeName_);
    }
    if (socOpId_ != 0) {
      size += com.github.os72.protobuf351.CodedOutputStream
        .computeInt32Size(4, socOpId_);
    }
    if (paddingId_ != 0) {
      size += com.github.os72.protobuf351.CodedOutputStream
        .computeInt32Size(5, paddingId_);
    }
    if (inputCount_ != 0) {
      size += com.github.os72.protobuf351.CodedOutputStream
        .computeInt32Size(6, inputCount_);
    }
    if (outputCount_ != 0) {
      size += com.github.os72.protobuf351.CodedOutputStream
        .computeInt32Size(7, outputCount_);
    }
    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.framework.GraphTransferNodeInfo)) {
      return super.equals(obj);
    }
    org.tensorflow.framework.GraphTransferNodeInfo other = (org.tensorflow.framework.GraphTransferNodeInfo) obj;

    boolean result = true;
    result = result && getName()
        .equals(other.getName());
    result = result && (getNodeId()
        == other.getNodeId());
    result = result && getTypeName()
        .equals(other.getTypeName());
    result = result && (getSocOpId()
        == other.getSocOpId());
    result = result && (getPaddingId()
        == other.getPaddingId());
    result = result && (getInputCount()
        == other.getInputCount());
    result = result && (getOutputCount()
        == other.getOutputCount());
    result = result && unknownFields.equals(other.unknownFields);
    return result;
  }

  @java.lang.Override
  public int hashCode() {
    if (memoizedHashCode != 0) {
      return memoizedHashCode;
    }
    int hash = 41;
    hash = (19 * hash) + getDescriptor().hashCode();
    hash = (37 * hash) + NAME_FIELD_NUMBER;
    hash = (53 * hash) + getName().hashCode();
    hash = (37 * hash) + NODE_ID_FIELD_NUMBER;
    hash = (53 * hash) + getNodeId();
    hash = (37 * hash) + TYPE_NAME_FIELD_NUMBER;
    hash = (53 * hash) + getTypeName().hashCode();
    hash = (37 * hash) + SOC_OP_ID_FIELD_NUMBER;
    hash = (53 * hash) + getSocOpId();
    hash = (37 * hash) + PADDING_ID_FIELD_NUMBER;
    hash = (53 * hash) + getPaddingId();
    hash = (37 * hash) + INPUT_COUNT_FIELD_NUMBER;
    hash = (53 * hash) + getInputCount();
    hash = (37 * hash) + OUTPUT_COUNT_FIELD_NUMBER;
    hash = (53 * hash) + getOutputCount();
    hash = (29 * hash) + unknownFields.hashCode();
    memoizedHashCode = hash;
    return hash;
  }

  public static org.tensorflow.framework.GraphTransferNodeInfo parseFrom(
      java.nio.ByteBuffer data)
      throws com.github.os72.protobuf351.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static org.tensorflow.framework.GraphTransferNodeInfo parseFrom(
      java.nio.ByteBuffer data,
      com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry)
      throws com.github.os72.protobuf351.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static org.tensorflow.framework.GraphTransferNodeInfo parseFrom(
      com.github.os72.protobuf351.ByteString data)
      throws com.github.os72.protobuf351.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static org.tensorflow.framework.GraphTransferNodeInfo parseFrom(
      com.github.os72.protobuf351.ByteString data,
      com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry)
      throws com.github.os72.protobuf351.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static org.tensorflow.framework.GraphTransferNodeInfo parseFrom(byte[] data)
      throws com.github.os72.protobuf351.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static org.tensorflow.framework.GraphTransferNodeInfo parseFrom(
      byte[] data,
      com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry)
      throws com.github.os72.protobuf351.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static org.tensorflow.framework.GraphTransferNodeInfo parseFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.github.os72.protobuf351.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static org.tensorflow.framework.GraphTransferNodeInfo parseFrom(
      java.io.InputStream input,
      com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry)
      throws java.io.IOException {
    return com.github.os72.protobuf351.GeneratedMessageV3
        .parseWithIOException(PARSER, input, extensionRegistry);
  }
  public static org.tensorflow.framework.GraphTransferNodeInfo parseDelimitedFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.github.os72.protobuf351.GeneratedMessageV3
        .parseDelimitedWithIOException(PARSER, input);
  }
  public static org.tensorflow.framework.GraphTransferNodeInfo parseDelimitedFrom(
      java.io.InputStream input,
      com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry)
      throws java.io.IOException {
    return com.github.os72.protobuf351.GeneratedMessageV3
        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
  }
  public static org.tensorflow.framework.GraphTransferNodeInfo parseFrom(
      com.github.os72.protobuf351.CodedInputStream input)
      throws java.io.IOException {
    return com.github.os72.protobuf351.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static org.tensorflow.framework.GraphTransferNodeInfo parseFrom(
      com.github.os72.protobuf351.CodedInputStream input,
      com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry)
      throws java.io.IOException {
    return com.github.os72.protobuf351.GeneratedMessageV3
        .parseWithIOException(PARSER, input, extensionRegistry);
  }

  public Builder newBuilderForType() { return newBuilder(); }
  public static Builder newBuilder() {
    return DEFAULT_INSTANCE.toBuilder();
  }
  public static Builder newBuilder(org.tensorflow.framework.GraphTransferNodeInfo 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.github.os72.protobuf351.GeneratedMessageV3.BuilderParent parent) {
    Builder builder = new Builder(parent);
    return builder;
  }
  /**
   * Protobuf type {@code tensorflow.GraphTransferNodeInfo}
   */
  public static final class Builder extends
      com.github.os72.protobuf351.GeneratedMessageV3.Builder implements
      // @@protoc_insertion_point(builder_implements:tensorflow.GraphTransferNodeInfo)
      org.tensorflow.framework.GraphTransferNodeInfoOrBuilder {
    public static final com.github.os72.protobuf351.Descriptors.Descriptor
        getDescriptor() {
      return org.tensorflow.framework.GraphTransferInfoProto.internal_static_tensorflow_GraphTransferNodeInfo_descriptor;
    }

    protected com.github.os72.protobuf351.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return org.tensorflow.framework.GraphTransferInfoProto.internal_static_tensorflow_GraphTransferNodeInfo_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              org.tensorflow.framework.GraphTransferNodeInfo.class, org.tensorflow.framework.GraphTransferNodeInfo.Builder.class);
    }

    // Construct using org.tensorflow.framework.GraphTransferNodeInfo.newBuilder()
    private Builder() {
      maybeForceBuilderInitialization();
    }

    private Builder(
        com.github.os72.protobuf351.GeneratedMessageV3.BuilderParent parent) {
      super(parent);
      maybeForceBuilderInitialization();
    }
    private void maybeForceBuilderInitialization() {
      if (com.github.os72.protobuf351.GeneratedMessageV3
              .alwaysUseFieldBuilders) {
      }
    }
    public Builder clear() {
      super.clear();
      name_ = "";

      nodeId_ = 0;

      typeName_ = "";

      socOpId_ = 0;

      paddingId_ = 0;

      inputCount_ = 0;

      outputCount_ = 0;

      return this;
    }

    public com.github.os72.protobuf351.Descriptors.Descriptor
        getDescriptorForType() {
      return org.tensorflow.framework.GraphTransferInfoProto.internal_static_tensorflow_GraphTransferNodeInfo_descriptor;
    }

    public org.tensorflow.framework.GraphTransferNodeInfo getDefaultInstanceForType() {
      return org.tensorflow.framework.GraphTransferNodeInfo.getDefaultInstance();
    }

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

    public org.tensorflow.framework.GraphTransferNodeInfo buildPartial() {
      org.tensorflow.framework.GraphTransferNodeInfo result = new org.tensorflow.framework.GraphTransferNodeInfo(this);
      result.name_ = name_;
      result.nodeId_ = nodeId_;
      result.typeName_ = typeName_;
      result.socOpId_ = socOpId_;
      result.paddingId_ = paddingId_;
      result.inputCount_ = inputCount_;
      result.outputCount_ = outputCount_;
      onBuilt();
      return result;
    }

    public Builder clone() {
      return (Builder) super.clone();
    }
    public Builder setField(
        com.github.os72.protobuf351.Descriptors.FieldDescriptor field,
        java.lang.Object value) {
      return (Builder) super.setField(field, value);
    }
    public Builder clearField(
        com.github.os72.protobuf351.Descriptors.FieldDescriptor field) {
      return (Builder) super.clearField(field);
    }
    public Builder clearOneof(
        com.github.os72.protobuf351.Descriptors.OneofDescriptor oneof) {
      return (Builder) super.clearOneof(oneof);
    }
    public Builder setRepeatedField(
        com.github.os72.protobuf351.Descriptors.FieldDescriptor field,
        int index, java.lang.Object value) {
      return (Builder) super.setRepeatedField(field, index, value);
    }
    public Builder addRepeatedField(
        com.github.os72.protobuf351.Descriptors.FieldDescriptor field,
        java.lang.Object value) {
      return (Builder) super.addRepeatedField(field, value);
    }
    public Builder mergeFrom(com.github.os72.protobuf351.Message other) {
      if (other instanceof org.tensorflow.framework.GraphTransferNodeInfo) {
        return mergeFrom((org.tensorflow.framework.GraphTransferNodeInfo)other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(org.tensorflow.framework.GraphTransferNodeInfo other) {
      if (other == org.tensorflow.framework.GraphTransferNodeInfo.getDefaultInstance()) return this;
      if (!other.getName().isEmpty()) {
        name_ = other.name_;
        onChanged();
      }
      if (other.getNodeId() != 0) {
        setNodeId(other.getNodeId());
      }
      if (!other.getTypeName().isEmpty()) {
        typeName_ = other.typeName_;
        onChanged();
      }
      if (other.getSocOpId() != 0) {
        setSocOpId(other.getSocOpId());
      }
      if (other.getPaddingId() != 0) {
        setPaddingId(other.getPaddingId());
      }
      if (other.getInputCount() != 0) {
        setInputCount(other.getInputCount());
      }
      if (other.getOutputCount() != 0) {
        setOutputCount(other.getOutputCount());
      }
      this.mergeUnknownFields(other.unknownFields);
      onChanged();
      return this;
    }

    public final boolean isInitialized() {
      return true;
    }

    public Builder mergeFrom(
        com.github.os72.protobuf351.CodedInputStream input,
        com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      org.tensorflow.framework.GraphTransferNodeInfo parsedMessage = null;
      try {
        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
      } catch (com.github.os72.protobuf351.InvalidProtocolBufferException e) {
        parsedMessage = (org.tensorflow.framework.GraphTransferNodeInfo) e.getUnfinishedMessage();
        throw e.unwrapIOException();
      } finally {
        if (parsedMessage != null) {
          mergeFrom(parsedMessage);
        }
      }
      return this;
    }

    private java.lang.Object name_ = "";
    /**
     * string name = 1;
     */
    public java.lang.String getName() {
      java.lang.Object ref = name_;
      if (!(ref instanceof java.lang.String)) {
        com.github.os72.protobuf351.ByteString bs =
            (com.github.os72.protobuf351.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        name_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * string name = 1;
     */
    public com.github.os72.protobuf351.ByteString
        getNameBytes() {
      java.lang.Object ref = name_;
      if (ref instanceof String) {
        com.github.os72.protobuf351.ByteString b = 
            com.github.os72.protobuf351.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        name_ = b;
        return b;
      } else {
        return (com.github.os72.protobuf351.ByteString) ref;
      }
    }
    /**
     * string name = 1;
     */
    public Builder setName(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      name_ = value;
      onChanged();
      return this;
    }
    /**
     * string name = 1;
     */
    public Builder clearName() {
      
      name_ = getDefaultInstance().getName();
      onChanged();
      return this;
    }
    /**
     * string name = 1;
     */
    public Builder setNameBytes(
        com.github.os72.protobuf351.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      name_ = value;
      onChanged();
      return this;
    }

    private int nodeId_ ;
    /**
     * int32 node_id = 2;
     */
    public int getNodeId() {
      return nodeId_;
    }
    /**
     * int32 node_id = 2;
     */
    public Builder setNodeId(int value) {
      
      nodeId_ = value;
      onChanged();
      return this;
    }
    /**
     * int32 node_id = 2;
     */
    public Builder clearNodeId() {
      
      nodeId_ = 0;
      onChanged();
      return this;
    }

    private java.lang.Object typeName_ = "";
    /**
     * string type_name = 3;
     */
    public java.lang.String getTypeName() {
      java.lang.Object ref = typeName_;
      if (!(ref instanceof java.lang.String)) {
        com.github.os72.protobuf351.ByteString bs =
            (com.github.os72.protobuf351.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        typeName_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * string type_name = 3;
     */
    public com.github.os72.protobuf351.ByteString
        getTypeNameBytes() {
      java.lang.Object ref = typeName_;
      if (ref instanceof String) {
        com.github.os72.protobuf351.ByteString b = 
            com.github.os72.protobuf351.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        typeName_ = b;
        return b;
      } else {
        return (com.github.os72.protobuf351.ByteString) ref;
      }
    }
    /**
     * string type_name = 3;
     */
    public Builder setTypeName(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      typeName_ = value;
      onChanged();
      return this;
    }
    /**
     * string type_name = 3;
     */
    public Builder clearTypeName() {
      
      typeName_ = getDefaultInstance().getTypeName();
      onChanged();
      return this;
    }
    /**
     * string type_name = 3;
     */
    public Builder setTypeNameBytes(
        com.github.os72.protobuf351.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      typeName_ = value;
      onChanged();
      return this;
    }

    private int socOpId_ ;
    /**
     * int32 soc_op_id = 4;
     */
    public int getSocOpId() {
      return socOpId_;
    }
    /**
     * int32 soc_op_id = 4;
     */
    public Builder setSocOpId(int value) {
      
      socOpId_ = value;
      onChanged();
      return this;
    }
    /**
     * int32 soc_op_id = 4;
     */
    public Builder clearSocOpId() {
      
      socOpId_ = 0;
      onChanged();
      return this;
    }

    private int paddingId_ ;
    /**
     * int32 padding_id = 5;
     */
    public int getPaddingId() {
      return paddingId_;
    }
    /**
     * int32 padding_id = 5;
     */
    public Builder setPaddingId(int value) {
      
      paddingId_ = value;
      onChanged();
      return this;
    }
    /**
     * int32 padding_id = 5;
     */
    public Builder clearPaddingId() {
      
      paddingId_ = 0;
      onChanged();
      return this;
    }

    private int inputCount_ ;
    /**
     * int32 input_count = 6;
     */
    public int getInputCount() {
      return inputCount_;
    }
    /**
     * int32 input_count = 6;
     */
    public Builder setInputCount(int value) {
      
      inputCount_ = value;
      onChanged();
      return this;
    }
    /**
     * int32 input_count = 6;
     */
    public Builder clearInputCount() {
      
      inputCount_ = 0;
      onChanged();
      return this;
    }

    private int outputCount_ ;
    /**
     * int32 output_count = 7;
     */
    public int getOutputCount() {
      return outputCount_;
    }
    /**
     * int32 output_count = 7;
     */
    public Builder setOutputCount(int value) {
      
      outputCount_ = value;
      onChanged();
      return this;
    }
    /**
     * int32 output_count = 7;
     */
    public Builder clearOutputCount() {
      
      outputCount_ = 0;
      onChanged();
      return this;
    }
    public final Builder setUnknownFields(
        final com.github.os72.protobuf351.UnknownFieldSet unknownFields) {
      return super.setUnknownFieldsProto3(unknownFields);
    }

    public final Builder mergeUnknownFields(
        final com.github.os72.protobuf351.UnknownFieldSet unknownFields) {
      return super.mergeUnknownFields(unknownFields);
    }


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

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

  public static org.tensorflow.framework.GraphTransferNodeInfo getDefaultInstance() {
    return DEFAULT_INSTANCE;
  }

  private static final com.github.os72.protobuf351.Parser
      PARSER = new com.github.os72.protobuf351.AbstractParser() {
    public GraphTransferNodeInfo parsePartialFrom(
        com.github.os72.protobuf351.CodedInputStream input,
        com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry)
        throws com.github.os72.protobuf351.InvalidProtocolBufferException {
      return new GraphTransferNodeInfo(input, extensionRegistry);
    }
  };

  public static com.github.os72.protobuf351.Parser parser() {
    return PARSER;
  }

  @java.lang.Override
  public com.github.os72.protobuf351.Parser getParserForType() {
    return PARSER;
  }

  public org.tensorflow.framework.GraphTransferNodeInfo getDefaultInstanceForType() {
    return DEFAULT_INSTANCE;
  }

}





© 2015 - 2024 Weber Informatics LLC | Privacy Policy