code: @Override
      public final void setLocationMode(final LocationMode locationMode) {
          if (locationMode != null && !locationMode.equals(LocationMode.PRIMARY_ONLY)) {
              throw new UnsupportedOperationException(SR.PRIMARY_ONLY_COMMAND);
          }
  
          super.setLocationMode(locationMode);
      }
docs: Sets the {@link LocationMode} for this request.
  <p>
  The default {@link LocationMode} is set in the client and is by default {@link LocationMode#PRIMARY_ONLY}. You
  can change the {@link LocationMode} on this request by setting this property. You can also change the value on
  the {@link ServiceClient#getDefaultRequestOptions()} object so that all subsequent requests made via the service
  client will use that {@link LocationMode}.
  
  @param locationMode
  the locationMode to set