code: public Page<MonitoredResourceDescriptor> listMonitoredResourceDescriptors() {
      // [START listMonitoredResourceDescriptors]
      Page<MonitoredResourceDescriptor> descriptors =
          logging.listMonitoredResourceDescriptors(ListOption.pageSize(100));
      for (MonitoredResourceDescriptor descriptor : descriptors.iterateAll()) {
        // do something with the descriptor
      }
      // [END listMonitoredResourceDescriptors]
      return descriptors;
    }
docs: [TARGET listMonitoredResourceDescriptors(ListOption...)]