code: public Bucket update() {
      // [START update]
      Bucket updatedBucket = bucket.toBuilder().setVersioningEnabled(true).build().update();
      // [END update]
      return updatedBucket;
    }
docs: [TARGET update(BucketTargetOption...)]