/** * <code>repeated .hadoop.hdfs.fsimage.FileSummary.Section sections = 4;</code> */ public Builder clearSections() { if (sectionsBuilder_ == null) { sections_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000008); onChanged(); } else { sectionsBuilder_.clear(); } return this; } /**
/** * <code>repeated .hadoop.hdfs.fsimage.FileSummary.Section sections = 4;</code> */ public Builder addSections(org.apache.hadoop.hdfs.server.namenode.FsImageProto.FileSummary.Section value) { if (sectionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureSectionsIsMutable(); sections_.add(value); onChanged(); } else { sectionsBuilder_.addMessage(value); } return this; } /**
/** * <code>repeated .hadoop.hdfs.fsimage.FileSummary.Section sections = 4;</code> */ public Builder setSections( int index, org.apache.hadoop.hdfs.server.namenode.FsImageProto.FileSummary.Section value) { if (sectionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureSectionsIsMutable(); sections_.set(index, value); onChanged(); } else { sectionsBuilder_.setMessage(index, value); } return this; } /**
/** * <code>optional string codec = 3;</code> */ public Builder setCodecBytes( io.prestosql.hadoop.$internal.com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; codec_ = value; onChanged(); return this; }
/** * <code>optional string codec = 3;</code> */ public Builder clearCodec() { bitField0_ = (bitField0_ & ~0x00000004); codec_ = getDefaultInstance().getCodec(); onChanged(); return this; } /**
/** * <code>optional string codec = 3;</code> */ public Builder clearCodec() { bitField0_ = (bitField0_ & ~0x00000004); codec_ = getDefaultInstance().getCodec(); onChanged(); return this; } /**
/** * <code>repeated .hadoop.hdfs.fsimage.FileSummary.Section sections = 4;</code> */ public Builder addSections( int index, org.apache.hadoop.hdfs.server.namenode.FsImageProto.FileSummary.Section value) { if (sectionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureSectionsIsMutable(); sections_.add(index, value); onChanged(); } else { sectionsBuilder_.addMessage(index, value); } return this; } /**
/** * <code>repeated .hadoop.hdfs.fsimage.FileSummary.Section sections = 4;</code> */ public Builder addSections( org.apache.hadoop.hdfs.server.namenode.FsImageProto.FileSummary.Section.Builder builderForValue) { if (sectionsBuilder_ == null) { ensureSectionsIsMutable(); sections_.add(builderForValue.build()); onChanged(); } else { sectionsBuilder_.addMessage(builderForValue.build()); } return this; } /**
/** * <code>repeated .hadoop.hdfs.fsimage.FileSummary.Section sections = 4;</code> */ public Builder addAllSections( java.lang.Iterable<? extends org.apache.hadoop.hdfs.server.namenode.FsImageProto.FileSummary.Section> values) { if (sectionsBuilder_ == null) { ensureSectionsIsMutable(); super.addAll(values, sections_); onChanged(); } else { sectionsBuilder_.addAllMessages(values); } return this; } /**
/** * <code>repeated .hadoop.hdfs.fsimage.FileSummary.Section sections = 4;</code> */ public Builder setSections( int index, org.apache.hadoop.hdfs.server.namenode.FsImageProto.FileSummary.Section.Builder builderForValue) { if (sectionsBuilder_ == null) { ensureSectionsIsMutable(); sections_.set(index, builderForValue.build()); onChanged(); } else { sectionsBuilder_.setMessage(index, builderForValue.build()); } return this; } /**
/** * <code>required uint32 layoutVersion = 2;</code> * * <pre> * layoutVersion describes which features are available in the * FSImage. * </pre> */ public Builder setLayoutVersion(int value) { bitField0_ |= 0x00000002; layoutVersion_ = value; onChanged(); return this; } /**
/** * <code>repeated .hadoop.hdfs.fsimage.FileSummary.Section sections = 4;</code> */ public Builder addSections( int index, org.apache.hadoop.hdfs.server.namenode.FsImageProto.FileSummary.Section.Builder builderForValue) { if (sectionsBuilder_ == null) { ensureSectionsIsMutable(); sections_.add(index, builderForValue.build()); onChanged(); } else { sectionsBuilder_.addMessage(index, builderForValue.build()); } return this; } /**
/** * <code>optional string codec = 3;</code> */ public Builder setCodec( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; codec_ = value; onChanged(); return this; } /**
/** * <code>required uint32 layoutVersion = 2;</code> * * <pre> * layoutVersion describes which features are available in the * FSImage. * </pre> */ public Builder clearLayoutVersion() { bitField0_ = (bitField0_ & ~0x00000002); layoutVersion_ = 0; onChanged(); return this; }
/** * <code>repeated .hadoop.hdfs.fsimage.FileSummary.Section sections = 4;</code> */ public Builder removeSections(int index) { if (sectionsBuilder_ == null) { ensureSectionsIsMutable(); sections_.remove(index); onChanged(); } else { sectionsBuilder_.remove(index); } return this; } /**
/** * <code>required uint32 ondiskVersion = 1;</code> * * <pre> * The version of the above EBNF grammars. * </pre> */ public Builder setOndiskVersion(int value) { bitField0_ |= 0x00000001; ondiskVersion_ = value; onChanged(); return this; } /**
/** * <code>required uint32 ondiskVersion = 1;</code> * * <pre> * The version of the above EBNF grammars. * </pre> */ public Builder clearOndiskVersion() { bitField0_ = (bitField0_ & ~0x00000001); ondiskVersion_ = 0; onChanged(); return this; }
/** * <code>optional string codec = 3;</code> */ public Builder setCodecBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; codec_ = value; onChanged(); return this; }
/** * <code>optional string codec = 3;</code> */ public Builder clearCodec() { bitField0_ = (bitField0_ & ~0x00000004); codec_ = getDefaultInstance().getCodec(); onChanged(); return this; } /**