/** * <code>repeated .hadoop.yarn.QueueACLProto userAcls = 2;</code> */ public Builder clearUserAcls() { userAcls_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; }
/** * <code>repeated .hadoop.yarn.QueueACLProto userAcls = 2;</code> */ public Builder addUserAcls(org.apache.hadoop.yarn.proto.YarnProtos.QueueACLProto value) { if (value == null) { throw new NullPointerException(); } ensureUserAclsIsMutable(); userAcls_.add(value); onChanged(); return this; } /**
/** * <code>optional string queueName = 1;</code> */ public Builder setQueueNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; queueName_ = value; onChanged(); return this; }
public Builder mergeFrom(org.apache.hadoop.yarn.proto.YarnProtos.QueueUserACLInfoProto other) { if (other == org.apache.hadoop.yarn.proto.YarnProtos.QueueUserACLInfoProto.getDefaultInstance()) return this; if (other.hasQueueName()) { bitField0_ |= 0x00000001; queueName_ = other.queueName_; onChanged(); } if (!other.userAcls_.isEmpty()) { if (userAcls_.isEmpty()) { userAcls_ = other.userAcls_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureUserAclsIsMutable(); userAcls_.addAll(other.userAcls_); } onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); return this; }
/** * <code>repeated .hadoop.yarn.QueueACLProto userAcls = 2;</code> */ public Builder setUserAcls( int index, org.apache.hadoop.yarn.proto.YarnProtos.QueueACLProto value) { if (value == null) { throw new NullPointerException(); } ensureUserAclsIsMutable(); userAcls_.set(index, value); onChanged(); return this; } /**
/** * <code>optional string queueName = 1;</code> */ public Builder setQueueName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; queueName_ = value; onChanged(); return this; } /**
/** * <code>optional string queueName = 1;</code> */ public Builder clearQueueName() { bitField0_ = (bitField0_ & ~0x00000001); queueName_ = getDefaultInstance().getQueueName(); onChanged(); return this; } /**
/** * <code>repeated .hadoop.yarn.QueueACLProto userAcls = 2;</code> */ public Builder addAllUserAcls( java.lang.Iterable<? extends org.apache.hadoop.yarn.proto.YarnProtos.QueueACLProto> values) { ensureUserAclsIsMutable(); super.addAll(values, userAcls_); onChanged(); return this; } /**