public boolean idCache() {
   return flags.isSet(Flag.IdCache);
 }
 public IndicesStatsRequest docs(boolean docs) {
   flags.set(Flag.Docs, docs);
   return this;
 }
 public IndicesStatsRequest store(boolean store) {
   flags.set(Flag.Store, store);
   return this;
 }
 /** Sets all flags to return all stats. */
 public IndicesStatsRequest all() {
   flags.all();
   return this;
 }
 /**
  * Document types to return stats for. Mainly affects {@link #indexing(boolean)} when enabled,
  * returning specific indexing stats for those types.
  */
 public IndicesStatsRequest types(String... types) {
   flags.types(types);
   return this;
 }
 public IndicesStatsRequest queryCache(boolean queryCache) {
   flags.set(Flag.QueryCache, queryCache);
   return this;
 }
 @Override
 public void writeTo(StreamOutput out) throws IOException {
   super.writeTo(out);
   flags.writeTo(out);
 }
 public boolean segments() {
   return flags.isSet(Flag.Segments);
 }
 public IndicesStatsRequest fieldDataFields(String... fieldDataFields) {
   flags.fieldDataFields(fieldDataFields);
   return this;
 }
 public boolean percolate() {
   return flags.isSet(Flag.Percolate);
 }
 public IndicesStatsRequest segments(boolean segments) {
   flags.set(Flag.Segments, segments);
   return this;
 }
 public IndicesStatsRequest percolate(boolean percolate) {
   flags.set(Flag.Percolate, percolate);
   return this;
 }
 public boolean fieldData() {
   return flags.isSet(Flag.FieldData);
 }
 public IndicesStatsRequest fieldData(boolean fieldData) {
   flags.set(Flag.FieldData, fieldData);
   return this;
 }
 public IndicesStatsRequest suggest(boolean suggest) {
   flags.set(Flag.Suggest, suggest);
   return this;
 }
 public String[] fieldDataFields() {
   return flags.fieldDataFields();
 }
 public boolean suggest() {
   return flags.isSet(Flag.Suggest);
 }
 public IndicesStatsRequest completion(boolean completion) {
   flags.set(Flag.Completion, completion);
   return this;
 }
 public boolean queryCache() {
   return flags.isSet(Flag.QueryCache);
 }
 public boolean completion() {
   return flags.isSet(Flag.Completion);
 }
 @Override
 public void readFrom(StreamInput in) throws IOException {
   super.readFrom(in);
   flags = CommonStatsFlags.readCommonStatsFlags(in);
 }
 public IndicesStatsRequest completionFields(String... completionDataFields) {
   flags.completionDataFields(completionDataFields);
   return this;
 }
 /** Clears all stats. */
 public IndicesStatsRequest clear() {
   flags.clear();
   return this;
 }
 public String[] completionFields() {
   return flags.completionDataFields();
 }
 /**
  * Sets specific search group stats to retrieve the stats for. Mainly affects search when enabled.
  */
 public IndicesStatsRequest groups(String... groups) {
   flags.groups(groups);
   return this;
 }
 public IndicesStatsRequest translog(boolean translog) {
   flags.set(Flag.Translog, translog);
   return this;
 }
 public boolean docs() {
   return flags.isSet(Flag.Docs);
 }
 public boolean translog() {
   return flags.isSet(Flag.Translog);
 }
 public boolean store() {
   return flags.isSet(Flag.Store);
 }
 public IndicesStatsRequest idCache(boolean idCache) {
   flags.set(Flag.IdCache, idCache);
   return this;
 }