/** * <code>repeated .alluxio.grpc.job.TaskInfo taskInfos = 2;</code> */ public Builder clearTaskInfos() { if (taskInfosBuilder_ == null) { taskInfos_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { taskInfosBuilder_.clear(); } return this; } /**
/** * <code>optional .alluxio.grpc.job.JobHeartbeatPOptions options = 3;</code> */ public Builder setOptions(alluxio.grpc.JobHeartbeatPOptions value) { if (optionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } options_ = value; onChanged(); } else { optionsBuilder_.setMessage(value); } bitField0_ |= 0x00000004; return this; } /**
/** * <code>repeated .alluxio.grpc.job.TaskInfo taskInfos = 2;</code> */ public Builder setTaskInfos( int index, alluxio.grpc.TaskInfo value) { if (taskInfosBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureTaskInfosIsMutable(); taskInfos_.set(index, value); onChanged(); } else { taskInfosBuilder_.setMessage(index, value); } return this; } /**
/** * <code>optional .alluxio.grpc.job.JobHeartbeatPOptions options = 3;</code> */ public Builder mergeOptions(alluxio.grpc.JobHeartbeatPOptions value) { if (optionsBuilder_ == null) { if (((bitField0_ & 0x00000004) == 0x00000004) && options_ != null && options_ != alluxio.grpc.JobHeartbeatPOptions.getDefaultInstance()) { options_ = alluxio.grpc.JobHeartbeatPOptions.newBuilder(options_).mergeFrom(value).buildPartial(); } else { options_ = value; } onChanged(); } else { optionsBuilder_.mergeFrom(value); } bitField0_ |= 0x00000004; return this; } /**
/** * <code>repeated .alluxio.grpc.job.TaskInfo taskInfos = 2;</code> */ public Builder addTaskInfos(alluxio.grpc.TaskInfo value) { if (taskInfosBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureTaskInfosIsMutable(); taskInfos_.add(value); onChanged(); } else { taskInfosBuilder_.addMessage(value); } return this; } /**
/** * <code>repeated .alluxio.grpc.job.TaskInfo taskInfos = 2;</code> */ public Builder addTaskInfos( int index, alluxio.grpc.TaskInfo value) { if (taskInfosBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureTaskInfosIsMutable(); taskInfos_.add(index, value); onChanged(); } else { taskInfosBuilder_.addMessage(index, value); } return this; } /**
/** * <code>repeated .alluxio.grpc.job.TaskInfo taskInfos = 2;</code> */ public Builder addTaskInfos( int index, alluxio.grpc.TaskInfo.Builder builderForValue) { if (taskInfosBuilder_ == null) { ensureTaskInfosIsMutable(); taskInfos_.add(index, builderForValue.build()); onChanged(); } else { taskInfosBuilder_.addMessage(index, builderForValue.build()); } return this; } /**
/** * <code>repeated .alluxio.grpc.job.TaskInfo taskInfos = 2;</code> */ public Builder addTaskInfos( alluxio.grpc.TaskInfo.Builder builderForValue) { if (taskInfosBuilder_ == null) { ensureTaskInfosIsMutable(); taskInfos_.add(builderForValue.build()); onChanged(); } else { taskInfosBuilder_.addMessage(builderForValue.build()); } return this; } /**
/** * <code>repeated .alluxio.grpc.job.TaskInfo taskInfos = 2;</code> */ public Builder addAllTaskInfos( java.lang.Iterable<? extends alluxio.grpc.TaskInfo> values) { if (taskInfosBuilder_ == null) { ensureTaskInfosIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, taskInfos_); onChanged(); } else { taskInfosBuilder_.addAllMessages(values); } return this; } /**
/** * <code>optional .alluxio.grpc.job.JobHeartbeatPOptions options = 3;</code> */ public Builder setOptions( alluxio.grpc.JobHeartbeatPOptions.Builder builderForValue) { if (optionsBuilder_ == null) { options_ = builderForValue.build(); onChanged(); } else { optionsBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; return this; } /**
/** * <code>repeated .alluxio.grpc.job.TaskInfo taskInfos = 2;</code> */ public Builder setTaskInfos( int index, alluxio.grpc.TaskInfo.Builder builderForValue) { if (taskInfosBuilder_ == null) { ensureTaskInfosIsMutable(); taskInfos_.set(index, builderForValue.build()); onChanged(); } else { taskInfosBuilder_.setMessage(index, builderForValue.build()); } return this; } /**
/** * <code>repeated .alluxio.grpc.job.TaskInfo taskInfos = 2;</code> */ public Builder removeTaskInfos(int index) { if (taskInfosBuilder_ == null) { ensureTaskInfosIsMutable(); taskInfos_.remove(index); onChanged(); } else { taskInfosBuilder_.remove(index); } return this; } /**
/** * <code>optional .alluxio.grpc.job.JobHeartbeatPOptions options = 3;</code> */ public Builder clearOptions() { if (optionsBuilder_ == null) { options_ = null; onChanged(); } else { optionsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); return this; } /**
/** * <code>optional int64 workerId = 1;</code> */ public Builder setWorkerId(long value) { bitField0_ |= 0x00000001; workerId_ = value; onChanged(); return this; } /**
/** * <code>optional .alluxio.grpc.job.JobHeartbeatPOptions options = 3;</code> */ public alluxio.grpc.JobHeartbeatPOptions.Builder getOptionsBuilder() { bitField0_ |= 0x00000004; onChanged(); return getOptionsFieldBuilder().getBuilder(); } /**
/** * <code>optional int64 workerId = 1;</code> */ public Builder clearWorkerId() { bitField0_ = (bitField0_ & ~0x00000001); workerId_ = 0L; onChanged(); return this; }