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

package org.tensorflow.proto.framework;

/**
 * Protobuf type {@code tensorflow.DeviceProperties}
 */
public  final class DeviceProperties extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:tensorflow.DeviceProperties)
    DevicePropertiesOrBuilder {
private static final long serialVersionUID = 0L;
  // Use DeviceProperties.newBuilder() to construct.
  private DeviceProperties(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
    super(builder);
  }
  private DeviceProperties() {
    type_ = "";
    vendor_ = "";
    model_ = "";
  }

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

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

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

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

            model_ = s;
            break;
          }
          case 32: {

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

            numCores_ = input.readInt64();
            break;
          }
          case 50: {
            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
              environment_ = com.google.protobuf.MapField.newMapField(
                  EnvironmentDefaultEntryHolder.defaultEntry);
              mutable_bitField0_ |= 0x00000001;
            }
            com.google.protobuf.MapEntry<java.lang.String, java.lang.String>
            environment__ = input.readMessage(
                EnvironmentDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
            environment_.getMutableMap().put(
                environment__.getKey(), environment__.getValue());
            break;
          }
          case 56: {

            numRegisters_ = input.readInt64();
            break;
          }
          case 64: {

            l1CacheSize_ = input.readInt64();
            break;
          }
          case 72: {

            l2CacheSize_ = input.readInt64();
            break;
          }
          case 80: {

            l3CacheSize_ = input.readInt64();
            break;
          }
          case 88: {

            sharedMemorySizePerMultiprocessor_ = input.readInt64();
            break;
          }
          case 96: {

            memorySize_ = input.readInt64();
            break;
          }
          case 104: {

            bandwidth_ = input.readInt64();
            break;
          }
          default: {
            if (!parseUnknownField(
                input, unknownFields, extensionRegistry, tag)) {
              done = true;
            }
            break;
          }
        }
      }
    } catch (com.google.protobuf.InvalidProtocolBufferException e) {
      throw e.setUnfinishedMessage(this);
    } catch (java.io.IOException e) {
      throw new com.google.protobuf.InvalidProtocolBufferException(
          e).setUnfinishedMessage(this);
    } finally {
      this.unknownFields = unknownFields.build();
      makeExtensionsImmutable();
    }
  }
  public static final com.google.protobuf.Descriptors.Descriptor
      getDescriptor() {
    return org.tensorflow.proto.framework.DevicePropertiesProtos.internal_static_tensorflow_DeviceProperties_descriptor;
  }

  @SuppressWarnings({"rawtypes"})
  @java.lang.Override
  protected com.google.protobuf.MapField internalGetMapField(
      int number) {
    switch (number) {
      case 6:
        return internalGetEnvironment();
      default:
        throw new RuntimeException(
            "Invalid map field number: " + number);
    }
  }
  @java.lang.Override
  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return org.tensorflow.proto.framework.DevicePropertiesProtos.internal_static_tensorflow_DeviceProperties_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            org.tensorflow.proto.framework.DeviceProperties.class, org.tensorflow.proto.framework.DeviceProperties.Builder.class);
  }

  public static final int TYPE_FIELD_NUMBER = 1;
  private volatile java.lang.Object type_;
  /**
   * <pre>
   * Device type (CPU, GPU, ...)
   * </pre>
   *
   * <code>string type = 1;</code>
   */
  public java.lang.String getType() {
    java.lang.Object ref = type_;
    if (ref instanceof java.lang.String) {
      return (java.lang.String) ref;
    } else {
      com.google.protobuf.ByteString bs = 
          (com.google.protobuf.ByteString) ref;
      java.lang.String s = bs.toStringUtf8();
      type_ = s;
      return s;
    }
  }
  /**
   * <pre>
   * Device type (CPU, GPU, ...)
   * </pre>
   *
   * <code>string type = 1;</code>
   */
  public com.google.protobuf.ByteString
      getTypeBytes() {
    java.lang.Object ref = type_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      type_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int VENDOR_FIELD_NUMBER = 2;
  private volatile java.lang.Object vendor_;
  /**
   * <pre>
   * Vendor (Intel, nvidia, ...)
   * </pre>
   *
   * <code>string vendor = 2;</code>
   */
  public java.lang.String getVendor() {
    java.lang.Object ref = vendor_;
    if (ref instanceof java.lang.String) {
      return (java.lang.String) ref;
    } else {
      com.google.protobuf.ByteString bs = 
          (com.google.protobuf.ByteString) ref;
      java.lang.String s = bs.toStringUtf8();
      vendor_ = s;
      return s;
    }
  }
  /**
   * <pre>
   * Vendor (Intel, nvidia, ...)
   * </pre>
   *
   * <code>string vendor = 2;</code>
   */
  public com.google.protobuf.ByteString
      getVendorBytes() {
    java.lang.Object ref = vendor_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      vendor_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int MODEL_FIELD_NUMBER = 3;
  private volatile java.lang.Object model_;
  /**
   * <pre>
   * Model (Haswell, K40, ...)
   * </pre>
   *
   * <code>string model = 3;</code>
   */
  public java.lang.String getModel() {
    java.lang.Object ref = model_;
    if (ref instanceof java.lang.String) {
      return (java.lang.String) ref;
    } else {
      com.google.protobuf.ByteString bs = 
          (com.google.protobuf.ByteString) ref;
      java.lang.String s = bs.toStringUtf8();
      model_ = s;
      return s;
    }
  }
  /**
   * <pre>
   * Model (Haswell, K40, ...)
   * </pre>
   *
   * <code>string model = 3;</code>
   */
  public com.google.protobuf.ByteString
      getModelBytes() {
    java.lang.Object ref = model_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      model_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int FREQUENCY_FIELD_NUMBER = 4;
  private long frequency_;
  /**
   * <pre>
   * Core Frequency in Mhz
   * </pre>
   *
   * <code>int64 frequency = 4;</code>
   */
  public long getFrequency() {
    return frequency_;
  }

  public static final int NUM_CORES_FIELD_NUMBER = 5;
  private long numCores_;
  /**
   * <pre>
   * Number of cores
   * </pre>
   *
   * <code>int64 num_cores = 5;</code>
   */
  public long getNumCores() {
    return numCores_;
  }

  public static final int ENVIRONMENT_FIELD_NUMBER = 6;
  private static final class EnvironmentDefaultEntryHolder {
    static final com.google.protobuf.MapEntry<
        java.lang.String, java.lang.String> defaultEntry =
            com.google.protobuf.MapEntry
            .<java.lang.String, java.lang.String>newDefaultInstance(
                org.tensorflow.proto.framework.DevicePropertiesProtos.internal_static_tensorflow_DeviceProperties_EnvironmentEntry_descriptor, 
                com.google.protobuf.WireFormat.FieldType.STRING,
                "",
                com.google.protobuf.WireFormat.FieldType.STRING,
                "");
  }
  private com.google.protobuf.MapField<
      java.lang.String, java.lang.String> environment_;
  private com.google.protobuf.MapField<java.lang.String, java.lang.String>
  internalGetEnvironment() {
    if (environment_ == null) {
      return com.google.protobuf.MapField.emptyMapField(
          EnvironmentDefaultEntryHolder.defaultEntry);
    }
    return environment_;
  }

  public int getEnvironmentCount() {
    return internalGetEnvironment().getMap().size();
  }
  /**
   * <pre>
   * Version of the tools and libraries used with this device (e.g. gcc 4.9,
   * cudnn 5.1)
   * </pre>
   *
   * <code>map&lt;string, string&gt; environment = 6;</code>
   */

  public boolean containsEnvironment(
      java.lang.String key) {
    if (key == null) { throw new java.lang.NullPointerException(); }
    return internalGetEnvironment().getMap().containsKey(key);
  }
  /**
   * Use {@link #getEnvironmentMap()} instead.
   */
  @java.lang.Deprecated
  public java.util.Map<java.lang.String, java.lang.String> getEnvironment() {
    return getEnvironmentMap();
  }
  /**
   * <pre>
   * Version of the tools and libraries used with this device (e.g. gcc 4.9,
   * cudnn 5.1)
   * </pre>
   *
   * <code>map&lt;string, string&gt; environment = 6;</code>
   */

  public java.util.Map<java.lang.String, java.lang.String> getEnvironmentMap() {
    return internalGetEnvironment().getMap();
  }
  /**
   * <pre>
   * Version of the tools and libraries used with this device (e.g. gcc 4.9,
   * cudnn 5.1)
   * </pre>
   *
   * <code>map&lt;string, string&gt; environment = 6;</code>
   */

  public java.lang.String getEnvironmentOrDefault(
      java.lang.String key,
      java.lang.String defaultValue) {
    if (key == null) { throw new java.lang.NullPointerException(); }
    java.util.Map<java.lang.String, java.lang.String> map =
        internalGetEnvironment().getMap();
    return map.containsKey(key) ? map.get(key) : defaultValue;
  }
  /**
   * <pre>
   * Version of the tools and libraries used with this device (e.g. gcc 4.9,
   * cudnn 5.1)
   * </pre>
   *
   * <code>map&lt;string, string&gt; environment = 6;</code>
   */

  public java.lang.String getEnvironmentOrThrow(
      java.lang.String key) {
    if (key == null) { throw new java.lang.NullPointerException(); }
    java.util.Map<java.lang.String, java.lang.String> map =
        internalGetEnvironment().getMap();
    if (!map.containsKey(key)) {
      throw new java.lang.IllegalArgumentException();
    }
    return map.get(key);
  }

  public static final int NUM_REGISTERS_FIELD_NUMBER = 7;
  private long numRegisters_;
  /**
   * <pre>
   * Number of registers per core.
   * </pre>
   *
   * <code>int64 num_registers = 7;</code>
   */
  public long getNumRegisters() {
    return numRegisters_;
  }

  public static final int L1_CACHE_SIZE_FIELD_NUMBER = 8;
  private long l1CacheSize_;
  /**
   * <pre>
   * L1 cache size in bytes
   * </pre>
   *
   * <code>int64 l1_cache_size = 8;</code>
   */
  public long getL1CacheSize() {
    return l1CacheSize_;
  }

  public static final int L2_CACHE_SIZE_FIELD_NUMBER = 9;
  private long l2CacheSize_;
  /**
   * <pre>
   * L2 cache size in bytes
   * </pre>
   *
   * <code>int64 l2_cache_size = 9;</code>
   */
  public long getL2CacheSize() {
    return l2CacheSize_;
  }

  public static final int L3_CACHE_SIZE_FIELD_NUMBER = 10;
  private long l3CacheSize_;
  /**
   * <pre>
   * L3 cache size in bytes
   * </pre>
   *
   * <code>int64 l3_cache_size = 10;</code>
   */
  public long getL3CacheSize() {
    return l3CacheSize_;
  }

  public static final int SHARED_MEMORY_SIZE_PER_MULTIPROCESSOR_FIELD_NUMBER = 11;
  private long sharedMemorySizePerMultiprocessor_;
  /**
   * <pre>
   * Shared memory size per multiprocessor in bytes. This field is
   * applicable to GPUs only.
   * </pre>
   *
   * <code>int64 shared_memory_size_per_multiprocessor = 11;</code>
   */
  public long getSharedMemorySizePerMultiprocessor() {
    return sharedMemorySizePerMultiprocessor_;
  }

  public static final int MEMORY_SIZE_FIELD_NUMBER = 12;
  private long memorySize_;
  /**
   * <pre>
   * Memory size in bytes
   * </pre>
   *
   * <code>int64 memory_size = 12;</code>
   */
  public long getMemorySize() {
    return memorySize_;
  }

  public static final int BANDWIDTH_FIELD_NUMBER = 13;
  private long bandwidth_;
  /**
   * <pre>
   * Memory bandwidth in KB/s
   * </pre>
   *
   * <code>int64 bandwidth = 13;</code>
   */
  public long getBandwidth() {
    return bandwidth_;
  }

  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(com.google.protobuf.CodedOutputStream output)
                      throws java.io.IOException {
    if (!getTypeBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 1, type_);
    }
    if (!getVendorBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 2, vendor_);
    }
    if (!getModelBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 3, model_);
    }
    if (frequency_ != 0L) {
      output.writeInt64(4, frequency_);
    }
    if (numCores_ != 0L) {
      output.writeInt64(5, numCores_);
    }
    com.google.protobuf.GeneratedMessageV3
      .serializeStringMapTo(
        output,
        internalGetEnvironment(),
        EnvironmentDefaultEntryHolder.defaultEntry,
        6);
    if (numRegisters_ != 0L) {
      output.writeInt64(7, numRegisters_);
    }
    if (l1CacheSize_ != 0L) {
      output.writeInt64(8, l1CacheSize_);
    }
    if (l2CacheSize_ != 0L) {
      output.writeInt64(9, l2CacheSize_);
    }
    if (l3CacheSize_ != 0L) {
      output.writeInt64(10, l3CacheSize_);
    }
    if (sharedMemorySizePerMultiprocessor_ != 0L) {
      output.writeInt64(11, sharedMemorySizePerMultiprocessor_);
    }
    if (memorySize_ != 0L) {
      output.writeInt64(12, memorySize_);
    }
    if (bandwidth_ != 0L) {
      output.writeInt64(13, bandwidth_);
    }
    unknownFields.writeTo(output);
  }

  @java.lang.Override
  public int getSerializedSize() {
    int size = memoizedSize;
    if (size != -1) return size;

    size = 0;
    if (!getTypeBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, type_);
    }
    if (!getVendorBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, vendor_);
    }
    if (!getModelBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, model_);
    }
    if (frequency_ != 0L) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt64Size(4, frequency_);
    }
    if (numCores_ != 0L) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt64Size(5, numCores_);
    }
    for (java.util.Map.Entry<java.lang.String, java.lang.String> entry
         : internalGetEnvironment().getMap().entrySet()) {
      com.google.protobuf.MapEntry<java.lang.String, java.lang.String>
      environment__ = EnvironmentDefaultEntryHolder.defaultEntry.newBuilderForType()
          .setKey(entry.getKey())
          .setValue(entry.getValue())
          .build();
      size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(6, environment__);
    }
    if (numRegisters_ != 0L) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt64Size(7, numRegisters_);
    }
    if (l1CacheSize_ != 0L) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt64Size(8, l1CacheSize_);
    }
    if (l2CacheSize_ != 0L) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt64Size(9, l2CacheSize_);
    }
    if (l3CacheSize_ != 0L) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt64Size(10, l3CacheSize_);
    }
    if (sharedMemorySizePerMultiprocessor_ != 0L) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt64Size(11, sharedMemorySizePerMultiprocessor_);
    }
    if (memorySize_ != 0L) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt64Size(12, memorySize_);
    }
    if (bandwidth_ != 0L) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt64Size(13, bandwidth_);
    }
    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.proto.framework.DeviceProperties)) {
      return super.equals(obj);
    }
    org.tensorflow.proto.framework.DeviceProperties other = (org.tensorflow.proto.framework.DeviceProperties) obj;

    if (!getType()
        .equals(other.getType())) return false;
    if (!getVendor()
        .equals(other.getVendor())) return false;
    if (!getModel()
        .equals(other.getModel())) return false;
    if (getFrequency()
        != other.getFrequency()) return false;
    if (getNumCores()
        != other.getNumCores()) return false;
    if (!internalGetEnvironment().equals(
        other.internalGetEnvironment())) return false;
    if (getNumRegisters()
        != other.getNumRegisters()) return false;
    if (getL1CacheSize()
        != other.getL1CacheSize()) return false;
    if (getL2CacheSize()
        != other.getL2CacheSize()) return false;
    if (getL3CacheSize()
        != other.getL3CacheSize()) return false;
    if (getSharedMemorySizePerMultiprocessor()
        != other.getSharedMemorySizePerMultiprocessor()) return false;
    if (getMemorySize()
        != other.getMemorySize()) return false;
    if (getBandwidth()
        != other.getBandwidth()) 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) + TYPE_FIELD_NUMBER;
    hash = (53 * hash) + getType().hashCode();
    hash = (37 * hash) + VENDOR_FIELD_NUMBER;
    hash = (53 * hash) + getVendor().hashCode();
    hash = (37 * hash) + MODEL_FIELD_NUMBER;
    hash = (53 * hash) + getModel().hashCode();
    hash = (37 * hash) + FREQUENCY_FIELD_NUMBER;
    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
        getFrequency());
    hash = (37 * hash) + NUM_CORES_FIELD_NUMBER;
    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
        getNumCores());
    if (!internalGetEnvironment().getMap().isEmpty()) {
      hash = (37 * hash) + ENVIRONMENT_FIELD_NUMBER;
      hash = (53 * hash) + internalGetEnvironment().hashCode();
    }
    hash = (37 * hash) + NUM_REGISTERS_FIELD_NUMBER;
    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
        getNumRegisters());
    hash = (37 * hash) + L1_CACHE_SIZE_FIELD_NUMBER;
    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
        getL1CacheSize());
    hash = (37 * hash) + L2_CACHE_SIZE_FIELD_NUMBER;
    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
        getL2CacheSize());
    hash = (37 * hash) + L3_CACHE_SIZE_FIELD_NUMBER;
    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
        getL3CacheSize());
    hash = (37 * hash) + SHARED_MEMORY_SIZE_PER_MULTIPROCESSOR_FIELD_NUMBER;
    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
        getSharedMemorySizePerMultiprocessor());
    hash = (37 * hash) + MEMORY_SIZE_FIELD_NUMBER;
    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
        getMemorySize());
    hash = (37 * hash) + BANDWIDTH_FIELD_NUMBER;
    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
        getBandwidth());
    hash = (29 * hash) + unknownFields.hashCode();
    memoizedHashCode = hash;
    return hash;
  }

  public static org.tensorflow.proto.framework.DeviceProperties parseFrom(
      java.nio.ByteBuffer data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static org.tensorflow.proto.framework.DeviceProperties parseFrom(
      java.nio.ByteBuffer data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static org.tensorflow.proto.framework.DeviceProperties parseFrom(
      com.google.protobuf.ByteString data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static org.tensorflow.proto.framework.DeviceProperties parseFrom(
      com.google.protobuf.ByteString data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static org.tensorflow.proto.framework.DeviceProperties parseFrom(byte[] data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static org.tensorflow.proto.framework.DeviceProperties parseFrom(
      byte[] data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static org.tensorflow.proto.framework.DeviceProperties parseFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static org.tensorflow.proto.framework.DeviceProperties parseFrom(
      java.io.InputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input, extensionRegistry);
  }
  public static org.tensorflow.proto.framework.DeviceProperties parseDelimitedFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseDelimitedWithIOException(PARSER, input);
  }
  public static org.tensorflow.proto.framework.DeviceProperties parseDelimitedFrom(
      java.io.InputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
  }
  public static org.tensorflow.proto.framework.DeviceProperties parseFrom(
      com.google.protobuf.CodedInputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static org.tensorflow.proto.framework.DeviceProperties parseFrom(
      com.google.protobuf.CodedInputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws java.io.IOException {
    return com.google.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.proto.framework.DeviceProperties 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(
      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
    Builder builder = new Builder(parent);
    return builder;
  }
  /**
   * Protobuf type {@code tensorflow.DeviceProperties}
   */
  public static final class Builder extends
      com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
      // @@protoc_insertion_point(builder_implements:tensorflow.DeviceProperties)
      org.tensorflow.proto.framework.DevicePropertiesOrBuilder {
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return org.tensorflow.proto.framework.DevicePropertiesProtos.internal_static_tensorflow_DeviceProperties_descriptor;
    }

    @SuppressWarnings({"rawtypes"})
    protected com.google.protobuf.MapField internalGetMapField(
        int number) {
      switch (number) {
        case 6:
          return internalGetEnvironment();
        default:
          throw new RuntimeException(
              "Invalid map field number: " + number);
      }
    }
    @SuppressWarnings({"rawtypes"})
    protected com.google.protobuf.MapField internalGetMutableMapField(
        int number) {
      switch (number) {
        case 6:
          return internalGetMutableEnvironment();
        default:
          throw new RuntimeException(
              "Invalid map field number: " + number);
      }
    }
    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return org.tensorflow.proto.framework.DevicePropertiesProtos.internal_static_tensorflow_DeviceProperties_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              org.tensorflow.proto.framework.DeviceProperties.class, org.tensorflow.proto.framework.DeviceProperties.Builder.class);
    }

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

    private Builder(
        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
      super(parent);
      maybeForceBuilderInitialization();
    }
    private void maybeForceBuilderInitialization() {
      if (com.google.protobuf.GeneratedMessageV3
              .alwaysUseFieldBuilders) {
      }
    }
    @java.lang.Override
    public Builder clear() {
      super.clear();
      type_ = "";

      vendor_ = "";

      model_ = "";

      frequency_ = 0L;

      numCores_ = 0L;

      internalGetMutableEnvironment().clear();
      numRegisters_ = 0L;

      l1CacheSize_ = 0L;

      l2CacheSize_ = 0L;

      l3CacheSize_ = 0L;

      sharedMemorySizePerMultiprocessor_ = 0L;

      memorySize_ = 0L;

      bandwidth_ = 0L;

      return this;
    }

    @java.lang.Override
    public com.google.protobuf.Descriptors.Descriptor
        getDescriptorForType() {
      return org.tensorflow.proto.framework.DevicePropertiesProtos.internal_static_tensorflow_DeviceProperties_descriptor;
    }

    @java.lang.Override
    public org.tensorflow.proto.framework.DeviceProperties getDefaultInstanceForType() {
      return org.tensorflow.proto.framework.DeviceProperties.getDefaultInstance();
    }

    @java.lang.Override
    public org.tensorflow.proto.framework.DeviceProperties build() {
      org.tensorflow.proto.framework.DeviceProperties result = buildPartial();
      if (!result.isInitialized()) {
        throw newUninitializedMessageException(result);
      }
      return result;
    }

    @java.lang.Override
    public org.tensorflow.proto.framework.DeviceProperties buildPartial() {
      org.tensorflow.proto.framework.DeviceProperties result = new org.tensorflow.proto.framework.DeviceProperties(this);
      int from_bitField0_ = bitField0_;
      result.type_ = type_;
      result.vendor_ = vendor_;
      result.model_ = model_;
      result.frequency_ = frequency_;
      result.numCores_ = numCores_;
      result.environment_ = internalGetEnvironment();
      result.environment_.makeImmutable();
      result.numRegisters_ = numRegisters_;
      result.l1CacheSize_ = l1CacheSize_;
      result.l2CacheSize_ = l2CacheSize_;
      result.l3CacheSize_ = l3CacheSize_;
      result.sharedMemorySizePerMultiprocessor_ = sharedMemorySizePerMultiprocessor_;
      result.memorySize_ = memorySize_;
      result.bandwidth_ = bandwidth_;
      onBuilt();
      return result;
    }

    @java.lang.Override
    public Builder clone() {
      return super.clone();
    }
    @java.lang.Override
    public Builder setField(
        com.google.protobuf.Descriptors.FieldDescriptor field,
        java.lang.Object value) {
      return super.setField(field, value);
    }
    @java.lang.Override
    public Builder clearField(
        com.google.protobuf.Descriptors.FieldDescriptor field) {
      return super.clearField(field);
    }
    @java.lang.Override
    public Builder clearOneof(
        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
      return super.clearOneof(oneof);
    }
    @java.lang.Override
    public Builder setRepeatedField(
        com.google.protobuf.Descriptors.FieldDescriptor field,
        int index, java.lang.Object value) {
      return super.setRepeatedField(field, index, value);
    }
    @java.lang.Override
    public Builder addRepeatedField(
        com.google.protobuf.Descriptors.FieldDescriptor field,
        java.lang.Object value) {
      return super.addRepeatedField(field, value);
    }
    @java.lang.Override
    public Builder mergeFrom(com.google.protobuf.Message other) {
      if (other instanceof org.tensorflow.proto.framework.DeviceProperties) {
        return mergeFrom((org.tensorflow.proto.framework.DeviceProperties)other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(org.tensorflow.proto.framework.DeviceProperties other) {
      if (other == org.tensorflow.proto.framework.DeviceProperties.getDefaultInstance()) return this;
      if (!other.getType().isEmpty()) {
        type_ = other.type_;
        onChanged();
      }
      if (!other.getVendor().isEmpty()) {
        vendor_ = other.vendor_;
        onChanged();
      }
      if (!other.getModel().isEmpty()) {
        model_ = other.model_;
        onChanged();
      }
      if (other.getFrequency() != 0L) {
        setFrequency(other.getFrequency());
      }
      if (other.getNumCores() != 0L) {
        setNumCores(other.getNumCores());
      }
      internalGetMutableEnvironment().mergeFrom(
          other.internalGetEnvironment());
      if (other.getNumRegisters() != 0L) {
        setNumRegisters(other.getNumRegisters());
      }
      if (other.getL1CacheSize() != 0L) {
        setL1CacheSize(other.getL1CacheSize());
      }
      if (other.getL2CacheSize() != 0L) {
        setL2CacheSize(other.getL2CacheSize());
      }
      if (other.getL3CacheSize() != 0L) {
        setL3CacheSize(other.getL3CacheSize());
      }
      if (other.getSharedMemorySizePerMultiprocessor() != 0L) {
        setSharedMemorySizePerMultiprocessor(other.getSharedMemorySizePerMultiprocessor());
      }
      if (other.getMemorySize() != 0L) {
        setMemorySize(other.getMemorySize());
      }
      if (other.getBandwidth() != 0L) {
        setBandwidth(other.getBandwidth());
      }
      this.mergeUnknownFields(other.unknownFields);
      onChanged();
      return this;
    }

    @java.lang.Override
    public final boolean isInitialized() {
      return true;
    }

    @java.lang.Override
    public Builder mergeFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      org.tensorflow.proto.framework.DeviceProperties parsedMessage = null;
      try {
        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        parsedMessage = (org.tensorflow.proto.framework.DeviceProperties) e.getUnfinishedMessage();
        throw e.unwrapIOException();
      } finally {
        if (parsedMessage != null) {
          mergeFrom(parsedMessage);
        }
      }
      return this;
    }
    private int bitField0_;

    private java.lang.Object type_ = "";
    /**
     * <pre>
     * Device type (CPU, GPU, ...)
     * </pre>
     *
     * <code>string type = 1;</code>
     */
    public java.lang.String getType() {
      java.lang.Object ref = type_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        type_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <pre>
     * Device type (CPU, GPU, ...)
     * </pre>
     *
     * <code>string type = 1;</code>
     */
    public com.google.protobuf.ByteString
        getTypeBytes() {
      java.lang.Object ref = type_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        type_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     * Device type (CPU, GPU, ...)
     * </pre>
     *
     * <code>string type = 1;</code>
     */
    public Builder setType(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      type_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     * Device type (CPU, GPU, ...)
     * </pre>
     *
     * <code>string type = 1;</code>
     */
    public Builder clearType() {
      
      type_ = getDefaultInstance().getType();
      onChanged();
      return this;
    }
    /**
     * <pre>
     * Device type (CPU, GPU, ...)
     * </pre>
     *
     * <code>string type = 1;</code>
     */
    public Builder setTypeBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      type_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object vendor_ = "";
    /**
     * <pre>
     * Vendor (Intel, nvidia, ...)
     * </pre>
     *
     * <code>string vendor = 2;</code>
     */
    public java.lang.String getVendor() {
      java.lang.Object ref = vendor_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        vendor_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <pre>
     * Vendor (Intel, nvidia, ...)
     * </pre>
     *
     * <code>string vendor = 2;</code>
     */
    public com.google.protobuf.ByteString
        getVendorBytes() {
      java.lang.Object ref = vendor_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        vendor_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     * Vendor (Intel, nvidia, ...)
     * </pre>
     *
     * <code>string vendor = 2;</code>
     */
    public Builder setVendor(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      vendor_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     * Vendor (Intel, nvidia, ...)
     * </pre>
     *
     * <code>string vendor = 2;</code>
     */
    public Builder clearVendor() {
      
      vendor_ = getDefaultInstance().getVendor();
      onChanged();
      return this;
    }
    /**
     * <pre>
     * Vendor (Intel, nvidia, ...)
     * </pre>
     *
     * <code>string vendor = 2;</code>
     */
    public Builder setVendorBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      vendor_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object model_ = "";
    /**
     * <pre>
     * Model (Haswell, K40, ...)
     * </pre>
     *
     * <code>string model = 3;</code>
     */
    public java.lang.String getModel() {
      java.lang.Object ref = model_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        model_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <pre>
     * Model (Haswell, K40, ...)
     * </pre>
     *
     * <code>string model = 3;</code>
     */
    public com.google.protobuf.ByteString
        getModelBytes() {
      java.lang.Object ref = model_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        model_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     * Model (Haswell, K40, ...)
     * </pre>
     *
     * <code>string model = 3;</code>
     */
    public Builder setModel(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      model_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     * Model (Haswell, K40, ...)
     * </pre>
     *
     * <code>string model = 3;</code>
     */
    public Builder clearModel() {
      
      model_ = getDefaultInstance().getModel();
      onChanged();
      return this;
    }
    /**
     * <pre>
     * Model (Haswell, K40, ...)
     * </pre>
     *
     * <code>string model = 3;</code>
     */
    public Builder setModelBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      model_ = value;
      onChanged();
      return this;
    }

    private long frequency_ ;
    /**
     * <pre>
     * Core Frequency in Mhz
     * </pre>
     *
     * <code>int64 frequency = 4;</code>
     */
    public long getFrequency() {
      return frequency_;
    }
    /**
     * <pre>
     * Core Frequency in Mhz
     * </pre>
     *
     * <code>int64 frequency = 4;</code>
     */
    public Builder setFrequency(long value) {
      
      frequency_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     * Core Frequency in Mhz
     * </pre>
     *
     * <code>int64 frequency = 4;</code>
     */
    public Builder clearFrequency() {
      
      frequency_ = 0L;
      onChanged();
      return this;
    }

    private long numCores_ ;
    /**
     * <pre>
     * Number of cores
     * </pre>
     *
     * <code>int64 num_cores = 5;</code>
     */
    public long getNumCores() {
      return numCores_;
    }
    /**
     * <pre>
     * Number of cores
     * </pre>
     *
     * <code>int64 num_cores = 5;</code>
     */
    public Builder setNumCores(long value) {
      
      numCores_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     * Number of cores
     * </pre>
     *
     * <code>int64 num_cores = 5;</code>
     */
    public Builder clearNumCores() {
      
      numCores_ = 0L;
      onChanged();
      return this;
    }

    private com.google.protobuf.MapField<
        java.lang.String, java.lang.String> environment_;
    private com.google.protobuf.MapField<java.lang.String, java.lang.String>
    internalGetEnvironment() {
      if (environment_ == null) {
        return com.google.protobuf.MapField.emptyMapField(
            EnvironmentDefaultEntryHolder.defaultEntry);
      }
      return environment_;
    }
    private com.google.protobuf.MapField<java.lang.String, java.lang.String>
    internalGetMutableEnvironment() {
      onChanged();;
      if (environment_ == null) {
        environment_ = com.google.protobuf.MapField.newMapField(
            EnvironmentDefaultEntryHolder.defaultEntry);
      }
      if (!environment_.isMutable()) {
        environment_ = environment_.copy();
      }
      return environment_;
    }

    public int getEnvironmentCount() {
      return internalGetEnvironment().getMap().size();
    }
    /**
     * <pre>
     * Version of the tools and libraries used with this device (e.g. gcc 4.9,
     * cudnn 5.1)
     * </pre>
     *
     * <code>map&lt;string, string&gt; environment = 6;</code>
     */

    public boolean containsEnvironment(
        java.lang.String key) {
      if (key == null) { throw new java.lang.NullPointerException(); }
      return internalGetEnvironment().getMap().containsKey(key);
    }
    /**
     * Use {@link #getEnvironmentMap()} instead.
     */
    @java.lang.Deprecated
    public java.util.Map<java.lang.String, java.lang.String> getEnvironment() {
      return getEnvironmentMap();
    }
    /**
     * <pre>
     * Version of the tools and libraries used with this device (e.g. gcc 4.9,
     * cudnn 5.1)
     * </pre>
     *
     * <code>map&lt;string, string&gt; environment = 6;</code>
     */

    public java.util.Map<java.lang.String, java.lang.String> getEnvironmentMap() {
      return internalGetEnvironment().getMap();
    }
    /**
     * <pre>
     * Version of the tools and libraries used with this device (e.g. gcc 4.9,
     * cudnn 5.1)
     * </pre>
     *
     * <code>map&lt;string, string&gt; environment = 6;</code>
     */

    public java.lang.String getEnvironmentOrDefault(
        java.lang.String key,
        java.lang.String defaultValue) {
      if (key == null) { throw new java.lang.NullPointerException(); }
      java.util.Map<java.lang.String, java.lang.String> map =
          internalGetEnvironment().getMap();
      return map.containsKey(key) ? map.get(key) : defaultValue;
    }
    /**
     * <pre>
     * Version of the tools and libraries used with this device (e.g. gcc 4.9,
     * cudnn 5.1)
     * </pre>
     *
     * <code>map&lt;string, string&gt; environment = 6;</code>
     */

    public java.lang.String getEnvironmentOrThrow(
        java.lang.String key) {
      if (key == null) { throw new java.lang.NullPointerException(); }
      java.util.Map<java.lang.String, java.lang.String> map =
          internalGetEnvironment().getMap();
      if (!map.containsKey(key)) {
        throw new java.lang.IllegalArgumentException();
      }
      return map.get(key);
    }

    public Builder clearEnvironment() {
      internalGetMutableEnvironment().getMutableMap()
          .clear();
      return this;
    }
    /**
     * <pre>
     * Version of the tools and libraries used with this device (e.g. gcc 4.9,
     * cudnn 5.1)
     * </pre>
     *
     * <code>map&lt;string, string&gt; environment = 6;</code>
     */

    public Builder removeEnvironment(
        java.lang.String key) {
      if (key == null) { throw new java.lang.NullPointerException(); }
      internalGetMutableEnvironment().getMutableMap()
          .remove(key);
      return this;
    }
    /**
     * Use alternate mutation accessors instead.
     */
    @java.lang.Deprecated
    public java.util.Map<java.lang.String, java.lang.String>
    getMutableEnvironment() {
      return internalGetMutableEnvironment().getMutableMap();
    }
    /**
     * <pre>
     * Version of the tools and libraries used with this device (e.g. gcc 4.9,
     * cudnn 5.1)
     * </pre>
     *
     * <code>map&lt;string, string&gt; environment = 6;</code>
     */
    public Builder putEnvironment(
        java.lang.String key,
        java.lang.String value) {
      if (key == null) { throw new java.lang.NullPointerException(); }
      if (value == null) { throw new java.lang.NullPointerException(); }
      internalGetMutableEnvironment().getMutableMap()
          .put(key, value);
      return this;
    }
    /**
     * <pre>
     * Version of the tools and libraries used with this device (e.g. gcc 4.9,
     * cudnn 5.1)
     * </pre>
     *
     * <code>map&lt;string, string&gt; environment = 6;</code>
     */

    public Builder putAllEnvironment(
        java.util.Map<java.lang.String, java.lang.String> values) {
      internalGetMutableEnvironment().getMutableMap()
          .putAll(values);
      return this;
    }

    private long numRegisters_ ;
    /**
     * <pre>
     * Number of registers per core.
     * </pre>
     *
     * <code>int64 num_registers = 7;</code>
     */
    public long getNumRegisters() {
      return numRegisters_;
    }
    /**
     * <pre>
     * Number of registers per core.
     * </pre>
     *
     * <code>int64 num_registers = 7;</code>
     */
    public Builder setNumRegisters(long value) {
      
      numRegisters_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     * Number of registers per core.
     * </pre>
     *
     * <code>int64 num_registers = 7;</code>
     */
    public Builder clearNumRegisters() {
      
      numRegisters_ = 0L;
      onChanged();
      return this;
    }

    private long l1CacheSize_ ;
    /**
     * <pre>
     * L1 cache size in bytes
     * </pre>
     *
     * <code>int64 l1_cache_size = 8;</code>
     */
    public long getL1CacheSize() {
      return l1CacheSize_;
    }
    /**
     * <pre>
     * L1 cache size in bytes
     * </pre>
     *
     * <code>int64 l1_cache_size = 8;</code>
     */
    public Builder setL1CacheSize(long value) {
      
      l1CacheSize_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     * L1 cache size in bytes
     * </pre>
     *
     * <code>int64 l1_cache_size = 8;</code>
     */
    public Builder clearL1CacheSize() {
      
      l1CacheSize_ = 0L;
      onChanged();
      return this;
    }

    private long l2CacheSize_ ;
    /**
     * <pre>
     * L2 cache size in bytes
     * </pre>
     *
     * <code>int64 l2_cache_size = 9;</code>
     */
    public long getL2CacheSize() {
      return l2CacheSize_;
    }
    /**
     * <pre>
     * L2 cache size in bytes
     * </pre>
     *
     * <code>int64 l2_cache_size = 9;</code>
     */
    public Builder setL2CacheSize(long value) {
      
      l2CacheSize_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     * L2 cache size in bytes
     * </pre>
     *
     * <code>int64 l2_cache_size = 9;</code>
     */
    public Builder clearL2CacheSize() {
      
      l2CacheSize_ = 0L;
      onChanged();
      return this;
    }

    private long l3CacheSize_ ;
    /**
     * <pre>
     * L3 cache size in bytes
     * </pre>
     *
     * <code>int64 l3_cache_size = 10;</code>
     */
    public long getL3CacheSize() {
      return l3CacheSize_;
    }
    /**
     * <pre>
     * L3 cache size in bytes
     * </pre>
     *
     * <code>int64 l3_cache_size = 10;</code>
     */
    public Builder setL3CacheSize(long value) {
      
      l3CacheSize_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     * L3 cache size in bytes
     * </pre>
     *
     * <code>int64 l3_cache_size = 10;</code>
     */
    public Builder clearL3CacheSize() {
      
      l3CacheSize_ = 0L;
      onChanged();
      return this;
    }

    private long sharedMemorySizePerMultiprocessor_ ;
    /**
     * <pre>
     * Shared memory size per multiprocessor in bytes. This field is
     * applicable to GPUs only.
     * </pre>
     *
     * <code>int64 shared_memory_size_per_multiprocessor = 11;</code>
     */
    public long getSharedMemorySizePerMultiprocessor() {
      return sharedMemorySizePerMultiprocessor_;
    }
    /**
     * <pre>
     * Shared memory size per multiprocessor in bytes. This field is
     * applicable to GPUs only.
     * </pre>
     *
     * <code>int64 shared_memory_size_per_multiprocessor = 11;</code>
     */
    public Builder setSharedMemorySizePerMultiprocessor(long value) {
      
      sharedMemorySizePerMultiprocessor_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     * Shared memory size per multiprocessor in bytes. This field is
     * applicable to GPUs only.
     * </pre>
     *
     * <code>int64 shared_memory_size_per_multiprocessor = 11;</code>
     */
    public Builder clearSharedMemorySizePerMultiprocessor() {
      
      sharedMemorySizePerMultiprocessor_ = 0L;
      onChanged();
      return this;
    }

    private long memorySize_ ;
    /**
     * <pre>
     * Memory size in bytes
     * </pre>
     *
     * <code>int64 memory_size = 12;</code>
     */
    public long getMemorySize() {
      return memorySize_;
    }
    /**
     * <pre>
     * Memory size in bytes
     * </pre>
     *
     * <code>int64 memory_size = 12;</code>
     */
    public Builder setMemorySize(long value) {
      
      memorySize_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     * Memory size in bytes
     * </pre>
     *
     * <code>int64 memory_size = 12;</code>
     */
    public Builder clearMemorySize() {
      
      memorySize_ = 0L;
      onChanged();
      return this;
    }

    private long bandwidth_ ;
    /**
     * <pre>
     * Memory bandwidth in KB/s
     * </pre>
     *
     * <code>int64 bandwidth = 13;</code>
     */
    public long getBandwidth() {
      return bandwidth_;
    }
    /**
     * <pre>
     * Memory bandwidth in KB/s
     * </pre>
     *
     * <code>int64 bandwidth = 13;</code>
     */
    public Builder setBandwidth(long value) {
      
      bandwidth_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     * Memory bandwidth in KB/s
     * </pre>
     *
     * <code>int64 bandwidth = 13;</code>
     */
    public Builder clearBandwidth() {
      
      bandwidth_ = 0L;
      onChanged();
      return this;
    }
    @java.lang.Override
    public final Builder setUnknownFields(
        final com.google.protobuf.UnknownFieldSet unknownFields) {
      return super.setUnknownFields(unknownFields);
    }

    @java.lang.Override
    public final Builder mergeUnknownFields(
        final com.google.protobuf.UnknownFieldSet unknownFields) {
      return super.mergeUnknownFields(unknownFields);
    }


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

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

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

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

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

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

  @java.lang.Override
  public org.tensorflow.proto.framework.DeviceProperties getDefaultInstanceForType() {
    return DEFAULT_INSTANCE;
  }

}

