code: public void setUseGoogIsRtlForBidiGlobalDir(boolean useGoogIsRtlForBidiGlobalDir) {
      Preconditions.checkState(
          !useGoogIsRtlForBidiGlobalDir || shouldGenerateGoogMsgDefs,
          "Do not specify useGoogIsRtlForBidiGlobalDir without shouldGenerateGoogMsgDefs.");
      Preconditions.checkState(
          !useGoogIsRtlForBidiGlobalDir || bidiGlobalDir == 0,
          "Must not specify both bidiGlobalDir and useGoogIsRtlForBidiGlobalDir.");
      this.useGoogIsRtlForBidiGlobalDir = useGoogIsRtlForBidiGlobalDir;
    }
docs: Sets the Javascript code snippet that will evaluate at template runtime to a boolean value
  indicating whether the bidi global direction is rtl. Can only be used when
  shouldGenerateGoogMsgDefs is true.
  
  @param useGoogIsRtlForBidiGlobalDir Whether to determine the bidi global direction at template
  runtime by evaluating goog.i18n.bidi.IS_RTL.