code: LoggingOptions getLoggingOptions() {
      if (loggingOptions == null) {
        if (Strings.isNullOrEmpty(credentialsFile)) {
          loggingOptions = LoggingOptions.getDefaultInstance();
        } else {
          try {
            loggingOptions =
                LoggingOptions.newBuilder()
                    .setCredentials(
                        GoogleCredentials.fromStream(new FileInputStream(credentialsFile)))
                    .build();
          } catch (IOException e) {
            throw new RuntimeException(
                String.format(
                    "Could not read credentials file %s. Please verify that the file exists and is a valid Google credentials file.",
                    credentialsFile),
                e);
          }
        }
      }
      return loggingOptions;
    }
docs: Gets the {@link LoggingOptions} to use for this {@link LoggingAppender}.