예제 #1
0
 @Override
 public void setJobId(JobId jobId) {
   maybeInitBuilder();
   if (jobId == null) builder.clearJobId();
   this.jobId = jobId;
 }
예제 #2
0
 private void mergeLocalToBuilder() {
   if (this.jobId != null) {
     builder.setJobId(convertToProtoFormat(this.jobId));
   }
 }
예제 #3
0
 private void mergeLocalToProto() {
   if (viaProto) maybeInitBuilder();
   mergeLocalToBuilder();
   proto = builder.build();
   viaProto = true;
 }
예제 #4
0
 public KillJobRequestProto getProto() {
   mergeLocalToProto();
   proto = viaProto ? proto : builder.build();
   viaProto = true;
   return proto;
 }