code: public Sink updateSinkAsync(String sinkName, String datasetName)
        throws ExecutionException, InterruptedException {
      // [START updateSinkAsync]
      SinkInfo sinkInfo =
          SinkInfo.newBuilder(sinkName, DatasetDestination.of(datasetName))
              .setVersionFormat(SinkInfo.VersionFormat.V2)
              .setFilter("severity>=ERROR")
              .build();
      Future<Sink> future = logging.updateAsync(sinkInfo);
      // ...
      Sink sink = future.get();
      // [END updateSinkAsync]
      return sink;
    }
docs: [VARIABLE "my_dataset"]