code: function ListBuckets(options, callback) {
      CommandBase.call(this, 'RpbListBucketsReq', 'RpbListBucketsResp', callback);
      this.validateOptions(options, schema);
      if (!this.options.stream) {
          this.buckets = [];
      }
      if (!this.options.allowListing) {
          throw errors.ListError();
      }
  }
docs: Provides the ListBuckets command and its builder
  @module KV
   
  Command used to list buckets in a bucket type.
  
  As a convenience, a builder class is provided;
  
  var listBuckets = new ListBuckets.Builder()
  .withBucketType('myBucketType')
  .withCallback(myCallback)
  .build();
  
  See {{#crossLink "ListBuckets.Builder"}}ListBuckets.Builder{{/crossLink}}
  @class ListBuckets
  @constructor
  @param {Object} options The options for this command
  @param {Boolean} [options.allowListing=false] Whether to allow this command. Must be set to true or exception will result.
  @param {String} [options.bucketType=default] The bucket type in riak.
  @param {Boolean} [options.stream=true] Whether to stream or accumulate the result before calling callback
  @param {Number} [options.timeout] Set a timeout for this operation.
  @param {Function} callback The callback to be executed when the operation completes.
  @param {String} callback.err An error message. Will be null if no error.
  @param {Object} callback.response The response from Riak.
  @param {String[]} callback.response.buckets The buckets returned from Riak.
  @param {Boolean} callback.response.done True if you have received all the buckets.
  @param {Object} callback.data additional error data. Will be null if no error.
  
  @extends CommandBase