code: public org.tensorflow.framework.DeviceLocality getLocality() {
      return locality_ == null ? org.tensorflow.framework.DeviceLocality.getDefaultInstance() : locality_;
    }
docs: <pre>
  Platform-specific data about device that may be useful
  for supporting efficient data transfers.
  </pre>
  
  <code>optional .tensorflow.DeviceLocality locality = 5;</code>