/** * <code>repeated .hadoop.yarn.PreemptionContainerProto container = 1;</code> */ public Builder clearContainer() { if (containerBuilder_ == null) { container_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { containerBuilder_.clear(); } return this; } /**
/** * <code>repeated .hadoop.yarn.PreemptionContainerProto container = 1;</code> */ public Builder addContainer( int index, org.apache.hadoop.yarn.proto.YarnProtos.PreemptionContainerProto value) { if (containerBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureContainerIsMutable(); container_.add(index, value); onChanged(); } else { containerBuilder_.addMessage(index, value); } return this; } /**
/** * <code>repeated .hadoop.yarn.PreemptionContainerProto container = 1;</code> */ public Builder addContainer(org.apache.hadoop.yarn.proto.YarnProtos.PreemptionContainerProto value) { if (containerBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureContainerIsMutable(); container_.add(value); onChanged(); } else { containerBuilder_.addMessage(value); } return this; } /**
container_.addAll(other.container_); onChanged();
/** * <code>repeated .hadoop.yarn.PreemptionContainerProto container = 1;</code> */ public Builder setContainer( int index, org.apache.hadoop.yarn.proto.YarnProtos.PreemptionContainerProto value) { if (containerBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureContainerIsMutable(); container_.set(index, value); onChanged(); } else { containerBuilder_.setMessage(index, value); } return this; } /**
/** * <code>repeated .hadoop.yarn.PreemptionContainerProto container = 1;</code> */ public Builder setContainer( int index, org.apache.hadoop.yarn.proto.YarnProtos.PreemptionContainerProto.Builder builderForValue) { if (containerBuilder_ == null) { ensureContainerIsMutable(); container_.set(index, builderForValue.build()); onChanged(); } else { containerBuilder_.setMessage(index, builderForValue.build()); } return this; } /**
/** * <code>repeated .hadoop.yarn.PreemptionContainerProto container = 1;</code> */ public Builder addContainer( org.apache.hadoop.yarn.proto.YarnProtos.PreemptionContainerProto.Builder builderForValue) { if (containerBuilder_ == null) { ensureContainerIsMutable(); container_.add(builderForValue.build()); onChanged(); } else { containerBuilder_.addMessage(builderForValue.build()); } return this; } /**
/** * <code>repeated .hadoop.yarn.PreemptionContainerProto container = 1;</code> */ public Builder addContainer( int index, org.apache.hadoop.yarn.proto.YarnProtos.PreemptionContainerProto.Builder builderForValue) { if (containerBuilder_ == null) { ensureContainerIsMutable(); container_.add(index, builderForValue.build()); onChanged(); } else { containerBuilder_.addMessage(index, builderForValue.build()); } return this; } /**
/** * <code>repeated .hadoop.yarn.PreemptionContainerProto container = 1;</code> */ public Builder removeContainer(int index) { if (containerBuilder_ == null) { ensureContainerIsMutable(); container_.remove(index); onChanged(); } else { containerBuilder_.remove(index); } return this; } /**
/** * <code>repeated .hadoop.yarn.PreemptionContainerProto container = 1;</code> */ public Builder addAllContainer( java.lang.Iterable<? extends org.apache.hadoop.yarn.proto.YarnProtos.PreemptionContainerProto> values) { if (containerBuilder_ == null) { ensureContainerIsMutable(); super.addAll(values, container_); onChanged(); } else { containerBuilder_.addAllMessages(values); } return this; } /**