code: public Page<Sink> listSinks() {
      // [START logging_list_sinks]
      Page<Sink> sinks = logging.listSinks(ListOption.pageSize(100));
      for (Sink sink : sinks.iterateAll()) {
        // do something with the sink
      }
      // [END logging_list_sinks]
      return sinks;
    }
docs: [TARGET listSinks(ListOption...)]