code: @SuppressWarnings("WeakerAccess")
    public CreateAppProfileRequest setRoutingPolicy(RoutingPolicy routingPolicy) {
      Preconditions.checkNotNull(routingPolicy);
  
      if (routingPolicy instanceof MultiClusterRoutingPolicy) {
        proto
            .getAppProfileBuilder()
            .setMultiClusterRoutingUseAny(((MultiClusterRoutingPolicy) routingPolicy).toProto());
      } else if (routingPolicy instanceof SingleClusterRoutingPolicy) {
        proto
            .getAppProfileBuilder()
            .setSingleClusterRouting(((SingleClusterRoutingPolicy) routingPolicy).toProto());
      } else {
        throw new IllegalArgumentException("Unknown policy type: " + routingPolicy);
      }
  
      return this;
    }
docs: Sets the routing policy for all read/write requests that use this app profile.