public override void SetYarnApplicationAttemptState(YarnApplicationAttemptState state
                                                     )
 {
     MaybeInitBuilder();
     if (state == null)
     {
         builder.ClearYarnApplicationAttemptState();
         return;
     }
     builder.SetYarnApplicationAttemptState(ConvertToProtoFormat(state));
 }